From 1bd49c310f7ff652435e62e48fda6a8272b5987e Mon Sep 17 00:00:00 2001 From: acgnhik Date: Wed, 8 Jun 2022 19:43:23 +0800 Subject: [PATCH] fix: fix fps display --- src/blrec/core/cover_downloader.py | 5 +- src/blrec/core/danmaku_dumper.py | 59 ++++++++----------- src/blrec/core/raw_danmaku_dumper.py | 29 ++++----- src/blrec/data/webapp/183.b24b23ce9efcd26f.js | 1 + src/blrec/data/webapp/869.0ab6b8a3f466df77.js | 1 - src/blrec/data/webapp/index.html | 2 +- ...0840c7101a.js => main.411b4a979eb179f8.js} | 2 +- src/blrec/data/webapp/ngsw.json | 16 ++--- ...2d0946d.js => runtime.4a35817fcd0b6f13.js} | 2 +- .../info-panel/info-panel.component.html | 2 +- .../tasks/info-panel/info-panel.component.ts | 10 ++++ 11 files changed, 62 insertions(+), 67 deletions(-) create mode 100644 src/blrec/data/webapp/183.b24b23ce9efcd26f.js delete mode 100644 src/blrec/data/webapp/869.0ab6b8a3f466df77.js rename src/blrec/data/webapp/{main.b9234f0840c7101a.js => main.411b4a979eb179f8.js} (99%) rename src/blrec/data/webapp/{runtime.8ba8344712d0946d.js => runtime.4a35817fcd0b6f13.js} (95%) diff --git a/src/blrec/core/cover_downloader.py b/src/blrec/core/cover_downloader.py index 488f792..730f5e5 100644 --- a/src/blrec/core/cover_downloader.py +++ b/src/blrec/core/cover_downloader.py @@ -1,6 +1,7 @@ import asyncio import logging from enum import Enum +from threading import Lock from typing import Set import aiofiles @@ -45,7 +46,7 @@ class CoverDownloader(StreamRecorderEventListener, SwitchableMixin): super().__init__() self._live = live self._stream_recorder = stream_recorder - self._lock: asyncio.Lock = asyncio.Lock() + self._lock: Lock = Lock() self._sha1_set: Set[str] = set() self.save_cover = save_cover self.cover_save_strategy = cover_save_strategy @@ -60,7 +61,7 @@ class CoverDownloader(StreamRecorderEventListener, SwitchableMixin): logger.debug('Disabled cover downloader') async def on_video_file_completed(self, video_path: str) -> None: - async with self._lock: + with self._lock: if not self.save_cover: return task = asyncio.create_task(self._save_cover(video_path)) diff --git a/src/blrec/core/danmaku_dumper.py b/src/blrec/core/danmaku_dumper.py index 34e042e..964608e 100644 --- a/src/blrec/core/danmaku_dumper.py +++ b/src/blrec/core/danmaku_dumper.py @@ -1,31 +1,31 @@ -import html import asyncio +import html import logging from contextlib import suppress +from threading import Lock from typing import Iterator, List, Optional -from tenacity import ( - AsyncRetrying, - stop_after_attempt, - retry_if_not_exception_type, -) +from tenacity import AsyncRetrying, retry_if_not_exception_type, stop_after_attempt -from .. import __version__, __prog__, __github__ -from .danmaku_receiver import DanmakuReceiver, DanmuMsg -from .stream_recorder import StreamRecorder, StreamRecorderEventListener -from .statistics import Statistics +from .. import __github__, __prog__, __version__ from ..bili.live import Live -from ..exception import exception_callback, submit_exception -from ..event.event_emitter import EventListener, EventEmitter -from ..path import danmaku_path from ..core.models import GiftSendMsg, GuardBuyMsg, SuperChatMsg -from ..danmaku.models import ( - Metadata, Danmu, GiftSendRecord, GuardBuyRecord, SuperChatRecord -) from ..danmaku.io import DanmakuWriter -from ..utils.mixins import SwitchableMixin +from ..danmaku.models import ( + Danmu, + GiftSendRecord, + GuardBuyRecord, + Metadata, + SuperChatRecord, +) +from ..event.event_emitter import EventEmitter, EventListener +from ..exception import exception_callback, submit_exception from ..logging.room_id import aio_task_with_room_id - +from ..path import danmaku_path +from ..utils.mixins import SwitchableMixin +from .danmaku_receiver import DanmakuReceiver, DanmuMsg +from .statistics import Statistics +from .stream_recorder import StreamRecorder, StreamRecorderEventListener __all__ = 'DanmakuDumper', 'DanmakuDumperEventListener' @@ -70,7 +70,7 @@ class DanmakuDumper( self.record_guard_buy = record_guard_buy self.record_super_chat = record_super_chat - self._lock: asyncio.Lock = asyncio.Lock() + self._lock: Lock = Lock() self._path: Optional[str] = None self._files: List[str] = [] self._statistics = Statistics(interval=60) @@ -115,14 +115,14 @@ class DanmakuDumper( async def on_video_file_created( self, video_path: str, record_start_time: int ) -> None: - async with self._lock: + with self._lock: self._path = danmaku_path(video_path) self._record_start_time = record_start_time self._files.append(self._path) self._start_dumping() async def on_video_file_completed(self, video_path: str) -> None: - async with self._lock: + with self._lock: await self._stop_dumping() self._path = None @@ -154,9 +154,7 @@ class DanmakuDumper( await writer.write_metadata(self._make_metadata()) async for attempt in AsyncRetrying( - retry=retry_if_not_exception_type(( - asyncio.CancelledError - )), + retry=retry_if_not_exception_type((asyncio.CancelledError)), stop=stop_after_attempt(3), ): with attempt: @@ -181,24 +179,17 @@ class DanmakuDumper( if not self.record_gift_send: continue record = self._make_gift_send_record(msg) - if ( - not self.record_free_gifts and - record.is_free_gift() - ): + if not self.record_free_gifts and record.is_free_gift(): continue await writer.write_gift_send_record(record) elif isinstance(msg, GuardBuyMsg): if not self.record_guard_buy: continue - await writer.write_guard_buy_record( - self._make_guard_buy_record(msg) - ) + await writer.write_guard_buy_record(self._make_guard_buy_record(msg)) elif isinstance(msg, SuperChatMsg): if not self.record_super_chat: continue - await writer.write_super_chat_record( - self._make_super_chat_record(msg) - ) + await writer.write_super_chat_record(self._make_super_chat_record(msg)) else: logger.warning('Unsupported message type:', repr(msg)) diff --git a/src/blrec/core/raw_danmaku_dumper.py b/src/blrec/core/raw_danmaku_dumper.py index a87ce40..9ab5f96 100644 --- a/src/blrec/core/raw_danmaku_dumper.py +++ b/src/blrec/core/raw_danmaku_dumper.py @@ -1,25 +1,21 @@ -import json import asyncio +import json import logging from contextlib import suppress +from threading import Lock import aiofiles from aiofiles.threadpool.text import AsyncTextIOWrapper -from tenacity import ( - AsyncRetrying, - stop_after_attempt, - retry_if_not_exception_type, -) +from tenacity import AsyncRetrying, retry_if_not_exception_type, stop_after_attempt -from .raw_danmaku_receiver import RawDanmakuReceiver -from .stream_recorder import StreamRecorder, StreamRecorderEventListener from ..bili.live import Live +from ..event.event_emitter import EventEmitter, EventListener from ..exception import exception_callback, submit_exception -from ..event.event_emitter import EventListener, EventEmitter +from ..logging.room_id import aio_task_with_room_id from ..path import raw_danmaku_path from ..utils.mixins import SwitchableMixin -from ..logging.room_id import aio_task_with_room_id - +from .raw_danmaku_receiver import RawDanmakuReceiver +from .stream_recorder import StreamRecorder, StreamRecorderEventListener __all__ = 'RawDanmakuDumper', 'RawDanmakuDumperEventListener' @@ -50,8 +46,7 @@ class RawDanmakuDumper( self._live = live # @aio_task_with_room_id self._stream_recorder = stream_recorder self._receiver = danmaku_receiver - - self._lock: asyncio.Lock = asyncio.Lock() + self._lock: Lock = Lock() def _do_enable(self) -> None: self._stream_recorder.add_listener(self) @@ -64,12 +59,12 @@ class RawDanmakuDumper( async def on_video_file_created( self, video_path: str, record_start_time: int ) -> None: - async with self._lock: + with self._lock: self._path = raw_danmaku_path(video_path) self._start_dumping() async def on_video_file_completed(self, video_path: str) -> None: - async with self._lock: + with self._lock: await self._stop_dumping() def _start_dumping(self) -> None: @@ -96,9 +91,7 @@ class RawDanmakuDumper( await self._emit('raw_danmaku_file_created', self._path) async for attempt in AsyncRetrying( - retry=retry_if_not_exception_type(( - asyncio.CancelledError - )), + retry=retry_if_not_exception_type((asyncio.CancelledError)), stop=stop_after_attempt(3), ): with attempt: diff --git a/src/blrec/data/webapp/183.b24b23ce9efcd26f.js b/src/blrec/data/webapp/183.b24b23ce9efcd26f.js new file mode 100644 index 0000000..3152d36 --- /dev/null +++ b/src/blrec/data/webapp/183.b24b23ce9efcd26f.js @@ -0,0 +1 @@ +(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[183],{3692:(D,v,r)=>{"use strict";r.d(v,{f:()=>y});var _=r(2134),m=r(5e3);let y=(()=>{class t{transform(c,f){if("string"==typeof c)c=parseFloat(c);else if("number"!=typeof c||isNaN(c))return"N/A";return(f=Object.assign({bitrate:!1,precision:3,spacer:" "},f)).bitrate?(0,_.AX)(c,f.spacer,f.precision):(0,_.N4)(c,f.spacer,f.precision)}}return t.\u0275fac=function(c){return new(c||t)},t.\u0275pipe=m.Yjl({name:"datarate",type:t,pure:!0}),t})()},3520:(D,v,r)=>{"use strict";r.d(v,{U:()=>y});const _={2e4:"4K",1e4:"\u539f\u753b",401:"\u84dd\u5149(\u675c\u6bd4)",400:"\u84dd\u5149",250:"\u8d85\u6e05",150:"\u9ad8\u6e05",80:"\u6d41\u7545"};var m=r(5e3);let y=(()=>{class t{transform(c){return _[c]}}return t.\u0275fac=function(c){return new(c||t)},t.\u0275pipe=m.Yjl({name:"quality",type:t,pure:!0}),t})()},5141:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{i:()=>InfoPanelComponent});var _angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5e3),rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(1715),rxjs__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1746),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(534),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(7221),src_app_shared_rx_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7106),_shared_task_model__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2948),ng_zorro_antd_notification__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5278),_shared_services_task_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(844),_angular_common__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(9808),_wave_graph_wave_graph_component__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(1755),_shared_pipes_datarate_pipe__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(3692),_shared_pipes_quality_pipe__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3520);function InfoPanelComponent_ul_3_ng_container_36_Template(D,v){1&D&&(_angular_core__WEBPACK_IMPORTED_MODULE_2__.ynx(0),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(1,", bluray"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.BQk())}function InfoPanelComponent_ul_3_li_38_Template(D,v){if(1&D&&(_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(0,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(1,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(2,"\u6d41\u7f16\u7801\u5668"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(3,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA()),2&D){const r=_angular_core__WEBPACK_IMPORTED_MODULE_2__.oxw(2);_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Oqu(null==r.profile.streams[0]||null==r.profile.streams[0].tags?null:r.profile.streams[0].tags.encoder)}}const _c0=function(){return{bitrate:!0}};function InfoPanelComponent_ul_3_Template(D,v){if(1&D&&(_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(0,"ul",3),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(1,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(2,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(3,"\u89c6\u9891\u4fe1\u606f"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(4,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(5,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(6),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(7,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(9,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(10),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(11,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(12),_angular_core__WEBPACK_IMPORTED_MODULE_2__.ALo(13,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(14,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(15,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(16,"\u97f3\u9891\u4fe1\u606f"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(17,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(18,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(19),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(20,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(21),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(22,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(23),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(24,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(25),_angular_core__WEBPACK_IMPORTED_MODULE_2__.ALo(26,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(27,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(28,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(29,"\u683c\u5f0f\u753b\u8d28"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(30,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(31,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(32),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(33,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(34),_angular_core__WEBPACK_IMPORTED_MODULE_2__.ALo(35,"quality"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.YNc(36,InfoPanelComponent_ul_3_ng_container_36_Template,2,0,"ng-container",7),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(37,") "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.YNc(38,InfoPanelComponent_ul_3_li_38_Template,5,1,"li",8),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(39,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(40,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(41,"\u6d41\u4e3b\u673a\u540d"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(42,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(43),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(44,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(45,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(46,"\u4e0b\u8f7d\u901f\u5ea6"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__._UZ(47,"app-wave-graph",9),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(48,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(49),_angular_core__WEBPACK_IMPORTED_MODULE_2__.ALo(50,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(51,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(52,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(53,"\u5f55\u5236\u901f\u5ea6"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__._UZ(54,"app-wave-graph",9),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(55,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(56),_angular_core__WEBPACK_IMPORTED_MODULE_2__.ALo(57,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA()),2&D){const r=_angular_core__WEBPACK_IMPORTED_MODULE_2__.oxw();let _;_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",null==r.profile.streams[0]?null:r.profile.streams[0].codec_name," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.AsE(" ",null==r.profile.streams[0]?null:r.profile.streams[0].width,"x",null==r.profile.streams[0]?null:r.profile.streams[0].height," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",r.fps," fps"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_2__.xi3(13,19,1e3*r.metadata.videodatarate,_angular_core__WEBPACK_IMPORTED_MODULE_2__.DdM(32,_c0))," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(7),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",null==r.profile.streams[1]?null:r.profile.streams[1].codec_name," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",null==r.profile.streams[1]?null:r.profile.streams[1].sample_rate," HZ"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",null==r.profile.streams[1]?null:r.profile.streams[1].channel_layout," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_2__.xi3(26,22,1e3*r.metadata.audiodatarate,_angular_core__WEBPACK_IMPORTED_MODULE_2__.DdM(33,_c0))," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(7),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",r.data.task_status.real_stream_format?r.data.task_status.real_stream_format:"N/A"," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.AsE(" ",r.data.task_status.real_quality_number?_angular_core__WEBPACK_IMPORTED_MODULE_2__.lcZ(35,25,r.data.task_status.real_quality_number):"N/A"," (",null!==(_=r.data.task_status.real_quality_number)&&void 0!==_?_:"N/A",""),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Q6J("ngIf",r.isBlurayStreamQuality()),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Q6J("ngIf",null==r.profile.streams[0]||null==r.profile.streams[0].tags?null:r.profile.streams[0].tags.encoder),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",r.data.task_status.stream_host," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Q6J("value",r.data.task_status.dl_rate),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_2__.xi3(50,27,8*r.data.task_status.dl_rate,_angular_core__WEBPACK_IMPORTED_MODULE_2__.DdM(34,_c0))," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Q6J("value",r.data.task_status.rec_rate),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_2__.lcZ(57,30,r.data.task_status.rec_rate)," ")}}let InfoPanelComponent=(()=>{class InfoPanelComponent{constructor(D,v,r){this.changeDetector=D,this.notification=v,this.taskService=r,this.metadata=null,this.close=new _angular_core__WEBPACK_IMPORTED_MODULE_2__.vpe,this.RunningStatus=_shared_task_model__WEBPACK_IMPORTED_MODULE_3__.cG}get fps(){var _a,_b;const avgFrameRate=null===(_b=null===(_a=this.profile)||void 0===_a?void 0:_a.streams[0])||void 0===_b?void 0:_b.avg_frame_rate;return avgFrameRate?eval(avgFrameRate).toString():"N/A"}ngOnInit(){this.syncData()}ngOnDestroy(){this.desyncData()}isBlurayStreamQuality(){return/_bluray/.test(this.data.task_status.stream_url)}closePanel(D){D.preventDefault(),D.stopPropagation(),this.close.emit()}syncData(){this.dataSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_4__.of)((0,rxjs__WEBPACK_IMPORTED_MODULE_4__.of)(0),(0,rxjs__WEBPACK_IMPORTED_MODULE_5__.F)(1e3)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.u)(),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.w)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_8__.$R)(this.taskService.getStreamProfile(this.data.room_info.room_id),this.taskService.getMetadata(this.data.room_info.room_id))),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.K)(D=>{throw this.notification.error("\u83b7\u53d6\u6570\u636e\u51fa\u9519",D.message),D}),(0,src_app_shared_rx_operators__WEBPACK_IMPORTED_MODULE_10__.X)(3,1e3)).subscribe(([D,v])=>{this.profile=D,this.metadata=v,this.changeDetector.markForCheck()},D=>{this.notification.error("\u83b7\u53d6\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncData(){var D;null===(D=this.dataSubscription)||void 0===D||D.unsubscribe()}}return InfoPanelComponent.\u0275fac=function D(v){return new(v||InfoPanelComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__.Y36(_angular_core__WEBPACK_IMPORTED_MODULE_2__.sBO),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Y36(ng_zorro_antd_notification__WEBPACK_IMPORTED_MODULE_11__.zb),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Y36(_shared_services_task_service__WEBPACK_IMPORTED_MODULE_0__.M))},InfoPanelComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_2__.Xpm({type:InfoPanelComponent,selectors:[["app-info-panel"]],inputs:{data:"data",profile:"profile",metadata:"metadata"},outputs:{close:"close"},decls:4,vars:1,consts:[[1,"info-panel"],["title","\u5173\u95ed",1,"close-panel",3,"click"],["class","info-list",4,"ngIf"],[1,"info-list"],[1,"info-item"],[1,"label"],[1,"value"],[4,"ngIf"],["class","info-item",4,"ngIf"],[3,"value"]],template:function D(v,r){1&v&&(_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(0,"div",0),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(1,"button",1),_angular_core__WEBPACK_IMPORTED_MODULE_2__.NdJ("click",function(m){return r.closePanel(m)}),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(2," [x] "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.YNc(3,InfoPanelComponent_ul_3_Template,58,35,"ul",2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA()),2&v&&(_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(3),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Q6J("ngIf",r.data.task_status.running_status===r.RunningStatus.RECORDING&&r.profile&&r.profile.streams&&r.profile.format&&r.metadata))},directives:[_angular_common__WEBPACK_IMPORTED_MODULE_12__.O5,_wave_graph_wave_graph_component__WEBPACK_IMPORTED_MODULE_13__.w],pipes:[_shared_pipes_datarate_pipe__WEBPACK_IMPORTED_MODULE_14__.f,_shared_pipes_quality_pipe__WEBPACK_IMPORTED_MODULE_1__.U],styles:['@charset "UTF-8";.info-panel[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.info-panel[_ngcontent-%COMP%]{position:absolute;top:2.55rem;bottom:2rem;left:0rem;right:0rem;width:100%;font-size:1rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;overflow:auto}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar{background-color:transparent;width:4px}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#eee;border-radius:2px}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#fff}.info-panel[_ngcontent-%COMP%] .close-panel[_ngcontent-%COMP%]{position:absolute;top:0rem;right:0rem;width:2rem;height:2rem;padding:0;color:#fff;background:transparent;border:none;font-size:1rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none;width:100%;height:100%}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:inline-block;margin:0;width:5rem;text-align:right}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:after{content:"\\ff1a"}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{display:inline-block;margin:0;text-align:left}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:not(:first-child):before{content:", "}app-wave-graph[_ngcontent-%COMP%]{margin-right:1rem}'],changeDetection:0}),InfoPanelComponent})()},1755:(D,v,r)=>{"use strict";r.d(v,{w:()=>y});var _=r(1715),m=r(5e3);let y=(()=>{class t{constructor(c){this.changeDetector=c,this.value=0,this.width=200,this.height=16,this.stroke="white",this.data=[],this.points=[];for(let f=0;f<=this.width;f+=2)this.data.push(0),this.points.push({x:f,y:this.height})}get polylinePoints(){return this.points.map(c=>`${c.x},${c.y}`).join(" ")}ngOnInit(){this.subscription=(0,_.F)(1e3).subscribe(()=>{this.data.push(this.value||0),this.data.shift();let c=Math.max(...this.data);this.points=this.data.map((f,Z)=>({x:Math.min(2*Z,this.width),y:(1-f/(c||1))*this.height})),this.changeDetector.markForCheck()})}ngOnDestroy(){var c;null===(c=this.subscription)||void 0===c||c.unsubscribe()}}return t.\u0275fac=function(c){return new(c||t)(m.Y36(m.sBO))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-wave-graph"]],inputs:{value:"value",width:"width",height:"height",stroke:"stroke"},decls:2,vars:4,consts:[["fill","none"]],template:function(c,f){1&c&&(m.O4$(),m.TgZ(0,"svg"),m._UZ(1,"polyline",0),m.qZA()),2&c&&(m.uIk("width",f.width)("height",f.height),m.xp6(1),m.uIk("stroke",f.stroke)("points",f.polylinePoints))},styles:["[_nghost-%COMP%]{position:relative;top:2px}"],changeDetection:0}),t})()},844:(D,v,r)=>{"use strict";r.d(v,{M:()=>c});var _=r(2340),m=r(2948),y=r(5e3),t=r(520);const p=_.N.apiUrl;let c=(()=>{class f{constructor(g){this.http=g}getAllTaskData(g=m.jf.ALL){return this.http.get(p+"/api/v1/tasks/data",{params:{select:g}})}getTaskData(g){return this.http.get(p+`/api/v1/tasks/${g}/data`)}getVideoFileDetails(g){return this.http.get(p+`/api/v1/tasks/${g}/videos`)}getDanmakuFileDetails(g){return this.http.get(p+`/api/v1/tasks/${g}/danmakus`)}getTaskParam(g){return this.http.get(p+`/api/v1/tasks/${g}/param`)}getMetadata(g){return this.http.get(p+`/api/v1/tasks/${g}/metadata`)}getStreamProfile(g){return this.http.get(p+`/api/v1/tasks/${g}/profile`)}updateAllTaskInfos(){return this.http.post(p+"/api/v1/tasks/info",null)}updateTaskInfo(g){return this.http.post(p+`/api/v1/tasks/${g}/info`,null)}addTask(g){return this.http.post(p+`/api/v1/tasks/${g}`,null)}removeTask(g){return this.http.delete(p+`/api/v1/tasks/${g}`)}removeAllTasks(){return this.http.delete(p+"/api/v1/tasks")}startTask(g){return this.http.post(p+`/api/v1/tasks/${g}/start`,null)}startAllTasks(){return this.http.post(p+"/api/v1/tasks/start",null)}stopTask(g,h=!1,P=!1){return this.http.post(p+`/api/v1/tasks/${g}/stop`,{force:h,background:P})}stopAllTasks(g=!1,h=!1){return this.http.post(p+"/api/v1/tasks/stop",{force:g,background:h})}enableTaskMonitor(g){return this.http.post(p+`/api/v1/tasks/${g}/monitor/enable`,null)}enableAllMonitors(){return this.http.post(p+"/api/v1/tasks/monitor/enable",null)}disableTaskMonitor(g,h=!1){return this.http.post(p+`/api/v1/tasks/${g}/monitor/disable`,{background:h})}disableAllMonitors(g=!1){return this.http.post(p+"/api/v1/tasks/monitor/disable",{background:g})}enableTaskRecorder(g){return this.http.post(p+`/api/v1/tasks/${g}/recorder/enable`,null)}enableAllRecorders(){return this.http.post(p+"/api/v1/tasks/recorder/enable",null)}disableTaskRecorder(g,h=!1,P=!1){return this.http.post(p+`/api/v1/tasks/${g}/recorder/disable`,{force:h,background:P})}disableAllRecorders(g=!1,h=!1){return this.http.post(p+"/api/v1/tasks/recorder/disable",{force:g,background:h})}cutStream(g){return this.http.post(p+`/api/v1/tasks/${g}/cut`,null)}}return f.\u0275fac=function(g){return new(g||f)(y.LFG(t.eN))},f.\u0275prov=y.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})()},2948:(D,v,r)=>{"use strict";r.d(v,{jf:()=>_,cG:()=>m,ii:()=>y,cS:()=>t});var _=(()=>{return(c=_||(_={})).ALL="all",c.PREPARING="preparing",c.LIVING="living",c.ROUNDING="rounding",c.MONITOR_ENABLED="monitor_enabled",c.MONITOR_DISABLED="monitor_disabled",c.RECORDER_ENABLED="recorder_enabled",c.RECORDER_DISABLED="recorder_disabled",c.STOPPED="stopped",c.WAITTING="waitting",c.RECORDING="recording",c.REMUXING="remuxing",c.INJECTING="injecting",_;var c})(),m=(()=>{return(c=m||(m={})).STOPPED="stopped",c.WAITING="waiting",c.RECORDING="recording",c.REMUXING="remuxing",c.INJECTING="injecting",m;var c})(),y=(()=>{return(c=y||(y={})).WAITING="waiting",c.REMUXING="remuxing",c.INJECTING="injecting",y;var c})(),t=(()=>{return(c=t||(t={})).RECORDING="recording",c.REMUXING="remuxing",c.INJECTING="injecting",c.COMPLETED="completed",c.MISSING="missing",c.BROKEN="broken",t;var c})()},3183:(D,v,r)=>{"use strict";r.r(v),r.d(v,{TasksModule:()=>qa});var _=r(9808),m=r(4182),y=r(5113),t=r(5e3);class p{constructor(i,e){this._document=e;const o=this._textarea=this._document.createElement("textarea"),a=o.style;a.position="fixed",a.top=a.opacity="0",a.left="-999em",o.setAttribute("aria-hidden","true"),o.value=i,this._document.body.appendChild(o)}copy(){const i=this._textarea;let e=!1;try{if(i){const o=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),o&&o.focus()}}catch(o){}return e}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let c=(()=>{class n{constructor(e){this._document=e}copy(e){const o=this.beginCopy(e),a=o.copy();return o.destroy(),a}beginCopy(e){return new p(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(_.K0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),g=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();var h=r(1894),P=r(7484),k=r(647),u=r(655),C=r(8929),O=r(7625),I=r(8693),A=r(1721),S=r(226);function N(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"i",1),t.NdJ("click",function(a){return t.CHM(e),t.oxw().closeTag(a)}),t.qZA()}}const J=["*"];let et=(()=>{class n{constructor(e,o,a,s){this.cdr=e,this.renderer=o,this.elementRef=a,this.directionality=s,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzOnClose=new t.vpe,this.nzCheckedChange=new t.vpe,this.dir="ltr",this.destroy$=new C.xQ}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(e){this.nzOnClose.emit(e),e.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const e=this.elementRef.nativeElement,o=new RegExp(`(ant-tag-(?:${[...I.uf,...I.Bh].join("|")}))`,"g"),a=e.classList.toString(),s=[];let d=o.exec(a);for(;null!==d;)s.push(d[1]),d=o.exec(a);e.classList.remove(...s)}setPresetColor(){const e=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,I.o2)(this.nzColor)||(0,I.M8)(this.nzColor)),this.isPresetColor&&e.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){const{nzColor:o}=e;o&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(S.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:10,hostBindings:function(e,o){1&e&&t.NdJ("click",function(){return o.updateCheckedStatus()}),2&e&&(t.Udp("background-color",o.isPresetColor?"":o.nzColor),t.ekj("ant-tag-has-color",o.nzColor&&!o.isPresetColor)("ant-tag-checkable","checkable"===o.nzMode)("ant-tag-checkable-checked",o.nzChecked)("ant-tag-rtl","rtl"===o.dir))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:"nzChecked"},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[t.TTD],ngContentSelectors:J,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(e,o){1&e&&(t.F$t(),t.Hsn(0),t.YNc(1,N,1,0,"i",0)),2&e&&(t.xp6(1),t.Q6J("ngIf","closeable"===o.nzMode))},directives:[_.O5,k.Ls],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,A.yF)()],n.prototype,"nzChecked",void 0),n})(),G=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[S.vT,_.ez,m.u5,k.PV]]}),n})();var nt=r(6699);const j=["nzType","avatar"];function H(n,i){if(1&n&&(t.TgZ(0,"div",5),t._UZ(1,"nz-skeleton-element",6),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzSize",e.avatar.size||"default")("nzShape",e.avatar.shape||"circle")}}function ut(n,i){if(1&n&&t._UZ(0,"h3",7),2&n){const e=t.oxw(2);t.Udp("width",e.toCSSUnit(e.title.width))}}function pt(n,i){if(1&n&&t._UZ(0,"li"),2&n){const e=i.index,o=t.oxw(3);t.Udp("width",o.toCSSUnit(o.widthList[e]))}}function gt(n,i){if(1&n&&(t.TgZ(0,"ul",8),t.YNc(1,pt,1,2,"li",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.rowsList)}}function dt(n,i){if(1&n&&(t.ynx(0),t.YNc(1,H,2,2,"div",1),t.TgZ(2,"div",2),t.YNc(3,ut,1,2,"h3",3),t.YNc(4,gt,2,1,"ul",4),t.qZA(),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!!e.nzAvatar),t.xp6(2),t.Q6J("ngIf",!!e.nzTitle),t.xp6(1),t.Q6J("ngIf",!!e.nzParagraph)}}function mt(n,i){1&n&&(t.ynx(0),t.Hsn(1),t.BQk())}const xt=["*"];let ge=(()=>{class n{constructor(){this.nzActive=!1,this.nzBlock=!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(e,o){2&e&&t.ekj("ant-skeleton-active",o.nzActive)("ant-skeleton-block",o.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,u.gn)([(0,A.yF)()],n.prototype,"nzBlock",void 0),n})(),de=(()=>{class n{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(e){if(e.nzSize&&"number"==typeof this.nzSize){const o=`${this.nzSize}px`;this.styleMap={width:o,height:o,"line-height":o}}else this.styleMap={}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[t.TTD],attrs:j,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(e,o){1&e&&t._UZ(0,"span",0),2&e&&(t.ekj("ant-skeleton-avatar-square","square"===o.nzShape)("ant-skeleton-avatar-circle","circle"===o.nzShape)("ant-skeleton-avatar-lg","large"===o.nzSize)("ant-skeleton-avatar-sm","small"===o.nzSize),t.Q6J("ngStyle",o.styleMap))},directives:[_.PC],encapsulation:2,changeDetection:0}),n})(),me=(()=>{class n{constructor(e,o,a){this.cdr=e,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],o.addClass(a.nativeElement,"ant-skeleton")}toCSSUnit(e=""){return(0,A.WX)(e)}getTitleProps(){const e=!!this.nzAvatar,o=!!this.nzParagraph;let a="";return!e&&o?a="38%":e&&o&&(a="50%"),Object.assign({width:a},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const e=!!this.nzAvatar,o=!!this.nzTitle,a={};return(!e||!o)&&(a.width="61%"),a.rows=!e&&o?3:2,Object.assign(Object.assign({},a),this.getProps(this.nzParagraph))}getProps(e){return e&&"object"==typeof e?e:{}}getWidthList(){const{width:e,rows:o}=this.paragraph;let a=[];return e&&Array.isArray(e)?a=e:e&&!Array.isArray(e)&&(a=[],a[o-1]=e),a}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(e){(e.nzTitle||e.nzAvatar||e.nzParagraph)&&this.updateProps()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(e,o){2&e&&t.ekj("ant-skeleton-with-avatar",!!o.nzAvatar)("ant-skeleton-active",o.nzActive)("ant-skeleton-round",!!o.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[t.TTD],ngContentSelectors:xt,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(e,o){1&e&&(t.F$t(),t.YNc(0,dt,5,3,"ng-container",0),t.YNc(1,mt,2,0,"ng-container",0)),2&e&&(t.Q6J("ngIf",o.nzLoading),t.xp6(1),t.Q6J("ngIf",!o.nzLoading))},directives:[de,_.O5,ge,_.sg],encapsulation:2,changeDetection:0}),n})(),Nt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[S.vT,_.ez]]}),n})();var ot=r(404),Dt=r(6462),X=r(3677),ht=r(6042),$=r(7957),W=r(4546),tt=r(1047),Bt=r(6114),he=r(4832),fe=r(2845),Ce=r(6950),ze=r(5664),Q=r(969),Te=r(4170);let Ae=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[S.vT,_.ez,ht.sL,fe.U8,Te.YI,k.PV,Q.T,Ce.e4,he.g,ot.cg,ze.rt]]}),n})();var ft=r(3868),Ut=r(5737),Rt=r(685),Lt=r(7525),Pe=r(8076),F=r(9439);function be(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"i",5),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzType",e.nzIconType||e.inferredIconType)("nzTheme",e.iconTheme)}}function ye(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzMessage)}}function Se(n,i){if(1&n&&(t.TgZ(0,"span",9),t.YNc(1,ye,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzMessage)}}function Ze(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzDescription)}}function we(n,i){if(1&n&&(t.TgZ(0,"span",11),t.YNc(1,Ze,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzDescription)}}function Fe(n,i){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,Se,2,1,"span",7),t.YNc(2,we,2,1,"span",8),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.nzMessage),t.xp6(1),t.Q6J("ngIf",e.nzDescription)}}function Ie(n,i){1&n&&t._UZ(0,"i",15)}function Ne(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"span",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=t.oxw(4);t.xp6(2),t.Oqu(e.nzCloseText)}}function Be(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ne,3,1,"ng-container",10),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzCloseText)}}function Ue(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).closeAlert()}),t.YNc(1,Ie,1,0,"ng-template",null,13,t.W1O),t.YNc(3,Be,2,1,"ng-container",14),t.qZA()}if(2&n){const e=t.MAs(2),o=t.oxw(2);t.xp6(3),t.Q6J("ngIf",o.nzCloseText)("ngIfElse",e)}}function Re(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.NdJ("@slideAlertMotion.done",function(){return t.CHM(e),t.oxw().onFadeAnimationDone()}),t.YNc(1,be,2,2,"ng-container",2),t.YNc(2,Fe,3,2,"div",3),t.YNc(3,Ue,4,2,"button",4),t.qZA()}if(2&n){const e=t.oxw();t.ekj("ant-alert-rtl","rtl"===e.dir)("ant-alert-success","success"===e.nzType)("ant-alert-info","info"===e.nzType)("ant-alert-warning","warning"===e.nzType)("ant-alert-error","error"===e.nzType)("ant-alert-no-icon",!e.nzShowIcon)("ant-alert-banner",e.nzBanner)("ant-alert-closable",e.nzCloseable)("ant-alert-with-description",!!e.nzDescription),t.Q6J("@.disabled",e.nzNoAnimation)("@slideAlertMotion",void 0),t.xp6(1),t.Q6J("ngIf",e.nzShowIcon),t.xp6(1),t.Q6J("ngIf",e.nzMessage||e.nzDescription),t.xp6(1),t.Q6J("ngIf",e.nzCloseable||e.nzCloseText)}}let Le=(()=>{class n{constructor(e,o,a){this.nzConfigService=e,this.cdr=o,this.directionality=a,this._nzModuleName="alert",this.nzCloseText=null,this.nzIconType=null,this.nzMessage=null,this.nzDescription=null,this.nzType="info",this.nzCloseable=!1,this.nzShowIcon=!1,this.nzBanner=!1,this.nzNoAnimation=!1,this.nzOnClose=new t.vpe,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.dir="ltr",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new C.xQ,this.nzConfigService.getConfigChangeEventForComponent("alert").pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(e){const{nzShowIcon:o,nzDescription:a,nzType:s,nzBanner:d}=e;if(o&&(this.isShowIconSet=!0),s)switch(this.isTypeSet=!0,this.nzType){case"error":this.inferredIconType="close-circle";break;case"success":this.inferredIconType="check-circle";break;case"info":this.inferredIconType="info-circle";break;case"warning":this.inferredIconType="exclamation-circle"}a&&(this.iconTheme=this.nzDescription?"outline":"fill"),d&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(F.jY),t.Y36(t.sBO),t.Y36(S.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-alert"]],inputs:{nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:"nzCloseable",nzShowIcon:"nzShowIcon",nzBanner:"nzBanner",nzNoAnimation:"nzNoAnimation"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[t.TTD],decls:1,vars:1,consts:[["class","ant-alert",3,"ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description",4,"ngIf"],[1,"ant-alert"],[4,"ngIf"],["class","ant-alert-content",4,"ngIf"],["type","button","tabindex","0","class","ant-alert-close-icon",3,"click",4,"ngIf"],["nz-icon","",1,"ant-alert-icon",3,"nzType","nzTheme"],[1,"ant-alert-content"],["class","ant-alert-message",4,"ngIf"],["class","ant-alert-description",4,"ngIf"],[1,"ant-alert-message"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["closeDefaultTemplate",""],[4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(e,o){1&e&&t.YNc(0,Re,4,23,"div",0),2&e&&t.Q6J("ngIf",!o.closed)},directives:[_.O5,k.Ls,Q.f],encapsulation:2,data:{animation:[Pe.Rq]},changeDetection:0}),(0,u.gn)([(0,F.oS)(),(0,A.yF)()],n.prototype,"nzCloseable",void 0),(0,u.gn)([(0,F.oS)(),(0,A.yF)()],n.prototype,"nzShowIcon",void 0),(0,u.gn)([(0,A.yF)()],n.prototype,"nzBanner",void 0),(0,u.gn)([(0,A.yF)()],n.prototype,"nzNoAnimation",void 0),n})(),Je=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[S.vT,_.ez,k.PV,Q.T]]}),n})();var it=r(4147),Mt=r(5197);function Qe(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"i",8),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzType",e.icon)}}function qe(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.hij(" ",e(o.nzPercent)," ")}}const We=function(n){return{$implicit:n}};function Ye(n,i){if(1&n&&t.YNc(0,qe,2,1,"ng-container",9),2&n){const e=t.oxw(3);t.Q6J("nzStringTemplateOutlet",e.formatter)("nzStringTemplateOutletContext",t.VKq(2,We,e.nzPercent))}}function Ke(n,i){if(1&n&&(t.TgZ(0,"span",5),t.YNc(1,Qe,2,1,"ng-container",6),t.YNc(2,Ye,1,4,"ng-template",null,7,t.W1O),t.qZA()),2&n){const e=t.MAs(3),o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",("exception"===o.status||"success"===o.status)&&!o.nzFormat)("ngIfElse",e)}}function Ge(n,i){if(1&n&&t.YNc(0,Ke,4,2,"span",4),2&n){const e=t.oxw();t.Q6J("ngIf",e.nzShowInfo)}}function je(n,i){if(1&n&&t._UZ(0,"div",17),2&n){const e=t.oxw(4);t.Udp("width",e.nzSuccessPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("height",e.strokeWidth,"px")}}function $e(n,i){if(1&n&&(t.TgZ(0,"div",13),t.TgZ(1,"div",14),t._UZ(2,"div",15),t.YNc(3,je,1,6,"div",16),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(2),t.Udp("width",e.nzPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("background",e.isGradient?null:e.nzStrokeColor)("background-image",e.isGradient?e.lineGradient:null)("height",e.strokeWidth,"px"),t.xp6(1),t.Q6J("ngIf",e.nzSuccessPercent||0===e.nzSuccessPercent)}}function Ve(n,i){}function He(n,i){if(1&n&&(t.ynx(0),t.YNc(1,$e,4,11,"div",11),t.YNc(2,Ve,0,0,"ng-template",12),t.BQk()),2&n){const e=t.oxw(2),o=t.MAs(1);t.xp6(1),t.Q6J("ngIf",!e.isSteps),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function Xe(n,i){1&n&&t._UZ(0,"div",20),2&n&&t.Q6J("ngStyle",i.$implicit)}function tn(n,i){}function en(n,i){if(1&n&&(t.TgZ(0,"div",18),t.YNc(1,Xe,1,1,"div",19),t.YNc(2,tn,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(2),o=t.MAs(1);t.xp6(1),t.Q6J("ngForOf",e.steps),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function nn(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,He,3,2,"ng-container",2),t.YNc(2,en,3,2,"div",10),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.isSteps),t.xp6(1),t.Q6J("ngIf",e.isSteps)}}function on(n,i){if(1&n&&(t.O4$(),t._UZ(0,"stop")),2&n){const e=i.$implicit;t.uIk("offset",e.offset)("stop-color",e.color)}}function an(n,i){if(1&n&&(t.O4$(),t.TgZ(0,"defs"),t.TgZ(1,"linearGradient",24),t.YNc(2,on,1,2,"stop",25),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("id","gradient-"+e.gradientId),t.xp6(1),t.Q6J("ngForOf",e.circleGradient)}}function sn(n,i){if(1&n&&(t.O4$(),t._UZ(0,"path",26)),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("ngStyle",e.strokePathStyle),t.uIk("d",o.pathString)("stroke-linecap",o.nzStrokeLinecap)("stroke",e.stroke)("stroke-width",o.nzPercent?o.strokeWidth:0)}}function rn(n,i){1&n&&t.O4$()}function ln(n,i){if(1&n&&(t.TgZ(0,"div",14),t.O4$(),t.TgZ(1,"svg",21),t.YNc(2,an,3,2,"defs",2),t._UZ(3,"path",22),t.YNc(4,sn,1,5,"path",23),t.qZA(),t.YNc(5,rn,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(),o=t.MAs(1);t.Udp("width",e.nzWidth,"px")("height",e.nzWidth,"px")("font-size",.15*e.nzWidth+6,"px"),t.ekj("ant-progress-circle-gradient",e.isGradient),t.xp6(2),t.Q6J("ngIf",e.isGradient),t.xp6(1),t.Q6J("ngStyle",e.trailPathStyle),t.uIk("stroke-width",e.strokeWidth)("d",e.pathString),t.xp6(1),t.Q6J("ngForOf",e.progressCirclePath)("ngForTrackBy",e.trackByFn),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}const Qt=n=>{let i=[];return Object.keys(n).forEach(e=>{const o=n[e],a=function cn(n){return+n.replace("%","")}(e);isNaN(a)||i.push({key:a,value:o})}),i=i.sort((e,o)=>e.key-o.key),i};let pn=0;const qt="progress",gn=new Map([["success","check"],["exception","close"]]),dn=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),mn=n=>`${n}%`;let Wt=(()=>{class n{constructor(e,o,a){this.cdr=e,this.nzConfigService=o,this.directionality=a,this._nzModuleName=qt,this.nzShowInfo=!0,this.nzWidth=132,this.nzStrokeColor=void 0,this.nzSize="default",this.nzPercent=0,this.nzStrokeWidth=void 0,this.nzGapDegree=void 0,this.nzType="line",this.nzGapPosition="top",this.nzStrokeLinecap="round",this.nzSteps=0,this.steps=[],this.lineGradient=null,this.isGradient=!1,this.isSteps=!1,this.gradientId=pn++,this.progressCirclePath=[],this.trailPathStyle=null,this.dir="ltr",this.trackByFn=s=>`${s}`,this.cachedStatus="normal",this.inferredStatus="normal",this.destroy$=new C.xQ}get formatter(){return this.nzFormat||mn}get status(){return this.nzStatus||this.inferredStatus}get strokeWidth(){return this.nzStrokeWidth||("line"===this.nzType&&"small"!==this.nzSize?8:6)}get isCircleStyle(){return"circle"===this.nzType||"dashboard"===this.nzType}ngOnChanges(e){const{nzSteps:o,nzGapPosition:a,nzStrokeLinecap:s,nzStrokeColor:d,nzGapDegree:x,nzType:M,nzStatus:E,nzPercent:l,nzSuccessPercent:L,nzStrokeWidth:q}=e;E&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(l||L)&&(parseInt(this.nzPercent.toString(),10)>=100?((0,A.DX)(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||void 0===this.nzSuccessPercent)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(E||l||L||d)&&this.updateIcon(),d&&this.setStrokeColor(),(a||s||x||M||l||d||d)&&this.getCirclePaths(),(l||o||q)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps())}ngOnInit(){var e;this.nzConfigService.getConfigChangeEventForComponent(qt).pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths()}),null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateIcon(){const e=gn.get(this.status);this.icon=e?e+(this.isCircleStyle?"-o":"-circle-fill"):""}getSteps(){const e=Math.floor(this.nzSteps*(this.nzPercent/100)),o="small"===this.nzSize?2:14,a=[];for(let s=0;s{const K=2===e.length&&0===q;return{stroke:this.isGradient&&!K?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:K?dn.get("success"):this.nzStrokeColor,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",strokeDasharray:`${(L||0)/100*(s-d)}px ${s}px`,strokeDashoffset:`-${d/2}px`}}}).reverse()}setStrokeColor(){const e=this.nzStrokeColor,o=this.isGradient=!!e&&"string"!=typeof e;o&&!this.isCircleStyle?this.lineGradient=(n=>{const{from:i="#1890ff",to:e="#1890ff",direction:o="to right"}=n,a=(0,u._T)(n,["from","to","direction"]);return 0!==Object.keys(a).length?`linear-gradient(${o}, ${Qt(a).map(({key:d,value:x})=>`${x} ${d}%`).join(", ")})`:`linear-gradient(${o}, ${i}, ${e})`})(e):o&&this.isCircleStyle?this.circleGradient=(n=>Qt(this.nzStrokeColor).map(({key:i,value:e})=>({offset:`${i}%`,color:e})))():(this.lineGradient=null,this.circleGradient=[])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(F.jY),t.Y36(S.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-progress"]],inputs:{nzShowInfo:"nzShowInfo",nzWidth:"nzWidth",nzStrokeColor:"nzStrokeColor",nzSize:"nzSize",nzFormat:"nzFormat",nzSuccessPercent:"nzSuccessPercent",nzPercent:"nzPercent",nzStrokeWidth:"nzStrokeWidth",nzGapDegree:"nzGapDegree",nzStatus:"nzStatus",nzType:"nzType",nzGapPosition:"nzGapPosition",nzStrokeLinecap:"nzStrokeLinecap",nzSteps:"nzSteps"},exportAs:["nzProgress"],features:[t.TTD],decls:5,vars:15,consts:[["progressInfoTemplate",""],[3,"ngClass"],[4,"ngIf"],["class","ant-progress-inner",3,"width","height","fontSize","ant-progress-circle-gradient",4,"ngIf"],["class","ant-progress-text",4,"ngIf"],[1,"ant-progress-text"],[4,"ngIf","ngIfElse"],["formatTemplate",""],["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-progress-steps-outer",4,"ngIf"],["class","ant-progress-outer",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-progress-outer"],[1,"ant-progress-inner"],[1,"ant-progress-bg"],["class","ant-progress-success-bg",3,"width","border-radius","height",4,"ngIf"],[1,"ant-progress-success-bg"],[1,"ant-progress-steps-outer"],["class","ant-progress-steps-item",3,"ngStyle",4,"ngFor","ngForOf"],[1,"ant-progress-steps-item",3,"ngStyle"],["viewBox","0 0 100 100",1,"ant-progress-circle"],["stroke","#f3f3f3","fill-opacity","0",1,"ant-progress-circle-trail",3,"ngStyle"],["class","ant-progress-circle-path","fill-opacity","0",3,"ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],["x1","100%","y1","0%","x2","0%","y2","0%",3,"id"],[4,"ngFor","ngForOf"],["fill-opacity","0",1,"ant-progress-circle-path",3,"ngStyle"]],template:function(e,o){1&e&&(t.YNc(0,Ge,1,1,"ng-template",null,0,t.W1O),t.TgZ(2,"div",1),t.YNc(3,nn,3,2,"div",2),t.YNc(4,ln,6,15,"div",3),t.qZA()),2&e&&(t.xp6(2),t.ekj("ant-progress-line","line"===o.nzType)("ant-progress-small","small"===o.nzSize)("ant-progress-show-info",o.nzShowInfo)("ant-progress-circle",o.isCircleStyle)("ant-progress-steps",o.isSteps)("ant-progress-rtl","rtl"===o.dir),t.Q6J("ngClass","ant-progress ant-progress-status-"+o.status),t.xp6(1),t.Q6J("ngIf","line"===o.nzType),t.xp6(1),t.Q6J("ngIf",o.isCircleStyle))},directives:[_.O5,k.Ls,Q.f,_.mk,_.tP,_.sg,_.PC],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,F.oS)()],n.prototype,"nzShowInfo",void 0),(0,u.gn)([(0,F.oS)()],n.prototype,"nzStrokeColor",void 0),(0,u.gn)([(0,F.oS)()],n.prototype,"nzSize",void 0),(0,u.gn)([(0,A.Rn)()],n.prototype,"nzSuccessPercent",void 0),(0,u.gn)([(0,A.Rn)()],n.prototype,"nzPercent",void 0),(0,u.gn)([(0,F.oS)(),(0,A.Rn)()],n.prototype,"nzStrokeWidth",void 0),(0,u.gn)([(0,F.oS)(),(0,A.Rn)()],n.prototype,"nzGapDegree",void 0),(0,u.gn)([(0,F.oS)()],n.prototype,"nzGapPosition",void 0),(0,u.gn)([(0,F.oS)()],n.prototype,"nzStrokeLinecap",void 0),(0,u.gn)([(0,A.Rn)()],n.prototype,"nzSteps",void 0),n})(),hn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[S.vT,_.ez,k.PV,Q.T]]}),n})();var Y=r(592),Yt=r(925);let fn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez]]}),n})();const Cn=function(n){return{$implicit:n}};function zn(n,i){if(1&n&&t.GkF(0,3),2&n){const e=t.oxw();t.Q6J("ngTemplateOutlet",e.nzValueTemplate)("ngTemplateOutletContext",t.VKq(2,Cn,e.nzValue))}}function Tn(n,i){if(1&n&&(t.TgZ(0,"span",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayInt)}}function xn(n,i){if(1&n&&(t.TgZ(0,"span",7),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayDecimal)}}function Dn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Tn,2,1,"span",4),t.YNc(2,xn,2,1,"span",5),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.displayInt),t.xp6(1),t.Q6J("ngIf",e.displayDecimal)}}function Mn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.nzTitle)}}function vn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzPrefix)}}function On(n,i){if(1&n&&(t.TgZ(0,"span",7),t.YNc(1,vn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzPrefix)}}function kn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzSuffix)}}function En(n,i){if(1&n&&(t.TgZ(0,"span",8),t.YNc(1,kn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzSuffix)}}let An=(()=>{class n{constructor(e){this.locale_id=e,this.displayInt="",this.displayDecimal=""}ngOnChanges(){this.formatNumber()}formatNumber(){const e="number"==typeof this.nzValue?".":(0,_.dv)(this.locale_id,_.wE.Decimal),o=String(this.nzValue),[a,s]=o.split(e);this.displayInt=a,this.displayDecimal=s?`${e}${s}`:""}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.soG))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic-number"]],inputs:{nzValue:"nzValue",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatisticNumber"],features:[t.TTD],decls:3,vars:2,consts:[[1,"ant-statistic-content-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-statistic-content-value-int",4,"ngIf"],["class","ant-statistic-content-value-decimal",4,"ngIf"],[1,"ant-statistic-content-value-int"],[1,"ant-statistic-content-value-decimal"]],template:function(e,o){1&e&&(t.TgZ(0,"span",0),t.YNc(1,zn,1,4,"ng-container",1),t.YNc(2,Dn,3,2,"ng-container",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",o.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",!o.nzValueTemplate))},directives:[_.O5,_.tP],encapsulation:2,changeDetection:0}),n})(),Kt=(()=>{class n{constructor(e,o){this.cdr=e,this.directionality=o,this.nzValueStyle={},this.dir="ltr",this.destroy$=new C.xQ}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(S.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic"]],inputs:{nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzTitle:"nzTitle",nzValue:"nzValue",nzValueStyle:"nzValueStyle",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatistic"],decls:7,vars:8,consts:[[1,"ant-statistic"],[1,"ant-statistic-title"],[4,"nzStringTemplateOutlet"],[1,"ant-statistic-content",3,"ngStyle"],["class","ant-statistic-content-prefix",4,"ngIf"],[3,"nzValue","nzValueTemplate"],["class","ant-statistic-content-suffix",4,"ngIf"],[1,"ant-statistic-content-prefix"],[1,"ant-statistic-content-suffix"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,Mn,2,1,"ng-container",2),t.qZA(),t.TgZ(3,"div",3),t.YNc(4,On,2,1,"span",4),t._UZ(5,"nz-statistic-number",5),t.YNc(6,En,2,1,"span",6),t.qZA(),t.qZA()),2&e&&(t.ekj("ant-statistic-rtl","rtl"===o.dir),t.xp6(2),t.Q6J("nzStringTemplateOutlet",o.nzTitle),t.xp6(1),t.Q6J("ngStyle",o.nzValueStyle),t.xp6(1),t.Q6J("ngIf",o.nzPrefix),t.xp6(1),t.Q6J("nzValue",o.nzValue)("nzValueTemplate",o.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",o.nzSuffix))},directives:[An,Q.f,_.PC,_.O5],encapsulation:2,changeDetection:0}),n})(),Pn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[S.vT,_.ez,Yt.ud,Q.T,fn]]}),n})();var Gt=r(6787),bn=r(1059),at=r(7545),yn=r(7138),w=r(2994),Sn=r(6947),vt=r(4090);function Zn(n,i){1&n&&t.Hsn(0)}const wn=["*"];function Fn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzTitle)}}function In(n,i){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,Fn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzTitle)}}function Nn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzExtra)}}function Bn(n,i){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,Nn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExtra)}}function Un(n,i){if(1&n&&(t.TgZ(0,"div",3),t.YNc(1,In,2,1,"div",4),t.YNc(2,Bn,2,1,"div",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.nzTitle),t.xp6(1),t.Q6J("ngIf",e.nzExtra)}}function Rn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Ln(n,i){}function Jn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,Rn,2,1,"ng-container",7),t.qZA(),t.TgZ(5,"span",15),t.YNc(6,Ln,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit,o=t.oxw(3);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!o.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title),t.xp6(2),t.Q6J("ngTemplateOutlet",e.content)}}function Qn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function qn(n,i){if(1&n&&(t.TgZ(0,"td",14),t.YNc(1,Qn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function Wn(n,i){}function Yn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,qn,2,1,"td",17),t.TgZ(2,"td",18),t.YNc(3,Wn,0,0,"ng-template",16),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title),t.xp6(1),t.Q6J("colSpan",2*e.span-1),t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function Kn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Jn,7,5,"ng-container",2),t.YNc(2,Yn,4,3,"ng-container",2),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}function Gn(n,i){if(1&n&&(t.TgZ(0,"tr",10),t.YNc(1,Kn,3,2,"ng-container",11),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngForOf",e)}}function jn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Gn,2,1,"tr",9),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function $n(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Vn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,$n,2,1,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!o.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function Hn(n,i){}function Xn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",15),t.YNc(4,Hn,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(3),t.Q6J("ngTemplateOutlet",e.content)}}function to(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,Vn,5,4,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,Xn,5,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function eo(n,i){if(1&n&&(t.ynx(0),t.YNc(1,to,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function no(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function oo(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",19),t.YNc(2,no,2,1,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function io(n,i){}function ao(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",18),t.YNc(2,io,0,0,"ng-template",16),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function so(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,oo,3,2,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,ao,3,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function ro(n,i){if(1&n&&(t.ynx(0),t.YNc(1,so,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function lo(n,i){if(1&n&&(t.ynx(0),t.YNc(1,eo,2,1,"ng-container",2),t.YNc(2,ro,2,1,"ng-container",2),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}let Ot=(()=>{class n{constructor(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new C.xQ}ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions-item"]],viewQuery:function(e,o){if(1&e&&t.Gf(t.Rgc,7),2&e){let a;t.iGM(a=t.CRH())&&(o.content=a.first)}},inputs:{nzSpan:"nzSpan",nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],features:[t.TTD],ngContentSelectors:wn,decls:1,vars:0,template:function(e,o){1&e&&(t.F$t(),t.YNc(0,Zn,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,u.gn)([(0,A.Rn)()],n.prototype,"nzSpan",void 0),n})();const _o={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};let jt=(()=>{class n{constructor(e,o,a,s){this.nzConfigService=e,this.cdr=o,this.breakpointService=a,this.directionality=s,this._nzModuleName="descriptions",this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=_o,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.dir="ltr",this.breakpoint=vt.G_.md,this.destroy$=new C.xQ}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o})}ngOnChanges(e){e.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){const e=this.items.changes.pipe((0,bn.O)(this.items),(0,O.R)(this.destroy$));(0,Gt.T)(e,e.pipe((0,at.w)(()=>(0,Gt.T)(...this.items.map(o=>o.inputChange$)).pipe((0,yn.e)(16)))),this.breakpointService.subscribe(vt.WV).pipe((0,w.b)(o=>this.breakpoint=o))).pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}prepareMatrix(){if(!this.items)return;let e=[],o=0;const a=this.realColumn=this.getColumn(),s=this.items.toArray(),d=s.length,x=[],M=()=>{x.push(e),e=[],o=0};for(let E=0;E=a?(o>a&&(0,Sn.ZK)(`"nzColumn" is ${a} but we have row length ${o}`),e.push({title:L,content:q,span:a-(o-K)}),M()):E===d-1?(e.push({title:L,content:q,span:a-(o-K)}),M()):e.push({title:L,content:q,span:K})}this.itemMatrix=x}getColumn(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(F.jY),t.Y36(t.sBO),t.Y36(vt.r3),t.Y36(S.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions"]],contentQueries:function(e,o,a){if(1&e&&t.Suo(a,Ot,4),2&e){let s;t.iGM(s=t.CRH())&&(o.items=s)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(e,o){2&e&&t.ekj("ant-descriptions-bordered",o.nzBordered)("ant-descriptions-middle","middle"===o.nzSize)("ant-descriptions-small","small"===o.nzSize)("ant-descriptions-rtl","rtl"===o.dir)},inputs:{nzBordered:"nzBordered",nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:"nzColon"},exportAs:["nzDescriptions"],features:[t.TTD],decls:6,vars:3,consts:[["class","ant-descriptions-header",4,"ngIf"],[1,"ant-descriptions-view"],[4,"ngIf"],[1,"ant-descriptions-header"],["class","ant-descriptions-title",4,"ngIf"],["class","ant-descriptions-extra",4,"ngIf"],[1,"ant-descriptions-title"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-extra"],["class","ant-descriptions-row",4,"ngFor","ngForOf"],[1,"ant-descriptions-row"],[4,"ngFor","ngForOf"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],["class","ant-descriptions-item-label",4,"nzStringTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(e,o){1&e&&(t.YNc(0,Un,3,2,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"table"),t.TgZ(3,"tbody"),t.YNc(4,jn,2,1,"ng-container",2),t.YNc(5,lo,3,2,"ng-container",2),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("ngIf",o.nzTitle||o.nzExtra),t.xp6(4),t.Q6J("ngIf","horizontal"===o.nzLayout),t.xp6(1),t.Q6J("ngIf","vertical"===o.nzLayout))},directives:[_.O5,Q.f,_.sg,_.tP],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,A.yF)(),(0,F.oS)()],n.prototype,"nzBordered",void 0),(0,u.gn)([(0,F.oS)()],n.prototype,"nzColumn",void 0),(0,u.gn)([(0,F.oS)()],n.prototype,"nzSize",void 0),(0,u.gn)([(0,F.oS)(),(0,A.yF)()],n.prototype,"nzColon",void 0),n})(),uo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[S.vT,_.ez,Q.T,Yt.ud]]}),n})();var B=r(1086),Ct=r(8896),$t=r(353),po=r(6498),go=r(3489);const Vt={leading:!0,trailing:!1};class Co{constructor(i,e,o,a){this.duration=i,this.scheduler=e,this.leading=o,this.trailing=a}call(i,e){return e.subscribe(new zo(i,this.duration,this.scheduler,this.leading,this.trailing))}}class zo extends go.L{constructor(i,e,o,a,s){super(i),this.duration=e,this.scheduler=o,this.leading=a,this.trailing=s,this._hasTrailingValue=!1,this._trailingValue=null}_next(i){this.throttled?this.trailing&&(this._trailingValue=i,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(To,this.duration,{subscriber:this})),this.leading?this.destination.next(i):this.trailing&&(this._trailingValue=i,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const i=this.throttled;i&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),i.unsubscribe(),this.remove(i),this.throttled=null)}}function To(n){const{subscriber:i}=n;i.clearThrottle()}class kt{constructor(i){this.changes=i}static of(i){return new kt(i)}notEmpty(i){if(this.changes[i]){const e=this.changes[i].currentValue;if(null!=e)return(0,B.of)(e)}return Ct.E}has(i){return this.changes[i]?(0,B.of)(this.changes[i].currentValue):Ct.E}notFirst(i){return this.changes[i]&&!this.changes[i].isFirstChange()?(0,B.of)(this.changes[i].currentValue):Ct.E}notFirstAndEmpty(i){if(this.changes[i]&&!this.changes[i].isFirstChange()){const e=this.changes[i].currentValue;if(null!=e)return(0,B.of)(e)}return Ct.E}}const Ht=new t.OlP("NGX_ECHARTS_CONFIG");let Xt=(()=>{class n{constructor(e,o,a){this.el=o,this.ngZone=a,this.autoResize=!0,this.loadingType="default",this.chartInit=new t.vpe,this.optionsError=new t.vpe,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.resize$=new C.xQ,this.echarts=e.echarts}ngOnChanges(e){const o=kt.of(e);o.notFirstAndEmpty("options").subscribe(a=>this.onOptionsChange(a)),o.notFirstAndEmpty("merge").subscribe(a=>this.setOption(a)),o.has("loading").subscribe(a=>this.toggleLoading(!!a)),o.notFirst("theme").subscribe(()=>this.refreshChart())}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function fo(n,i=$t.P,e=Vt){return o=>o.lift(new Co(n,i,e.leading,e.trailing))}(100,$t.z,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(()=>{this.animationFrameID=window.requestAnimationFrame(()=>this.resize$.next())})),this.resizeOb.observe(this.el.nativeElement))}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(e){this.chart&&(e?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}setOption(e,o){if(this.chart)try{this.chart.setOption(e,o)}catch(a){console.error(a),this.optionsError.emit(a)}}refreshChart(){return(0,u.mG)(this,void 0,void 0,function*(){this.dispose(),yield this.initChart()})}createChart(){const e=this.el.nativeElement;if(window&&window.getComputedStyle){const o=window.getComputedStyle(e,null).getPropertyValue("height");(!o||"0px"===o)&&(!e.style.height||"0px"===e.style.height)&&(e.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:a})=>a(e,this.theme,this.initOpts)))}initChart(){return(0,u.mG)(this,void 0,void 0,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(e){return(0,u.mG)(this,void 0,void 0,function*(){!e||(this.chart||(this.chart=yield this.createChart(),this.chartInit.emit(this.chart)),this.setOption(this.options,!0))})}createLazyEvent(e){return this.chartInit.pipe((0,at.w)(o=>new po.y(a=>(o.on(e,s=>this.ngZone.run(()=>a.next(s))),()=>{this.chart&&(this.chart.isDisposed()||o.off(e))}))))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ht),t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275dir=t.lG2({type:n,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loadingType:"loadingType",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:[t.TTD]}),n})(),xo=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:Ht,useValue:e}]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[]]}),n})();var Do=r(4466),st=r(2302),te=r(1715),ee=r(1746),ne=r(534),rt=r(7221),Et=r(7106),oe=r(5278),At=r(844),Mo=r(7512),vo=r(5545);let Oo=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-user-info-detail"]],inputs:{loading:"loading",userInfo:"userInfo"},decls:12,vars:6,consts:[["nzTitle","\u4e3b\u64ad\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6635\u79f0"],["nzTitle","\u6027\u522b"],["nzTitle","UID"],["nzTitle","\u7b49\u7ea7"],["nzTitle","\u7b7e\u540d"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t._uU(7),t.qZA(),t.TgZ(8,"nz-descriptions-item",5),t._uU(9),t.qZA(),t.TgZ(10,"nz-descriptions-item",6),t._uU(11),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",o.loading),t.xp6(3),t.Oqu(o.userInfo.name),t.xp6(2),t.Oqu(o.userInfo.gender),t.xp6(2),t.Oqu(o.userInfo.uid),t.xp6(2),t.Oqu(o.userInfo.level),t.xp6(2),t.hij(" ",o.userInfo.sign," "))},directives:[P.bd,jt,Ot],styles:[""],changeDetection:0}),n})();function ko(n,i){if(1&n&&(t.TgZ(0,"span",18),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",e.roomInfo.short_room_id," ")}}function Eo(n,i){1&n&&(t.ynx(0),t._uU(1,"\u95f2\u7f6e"),t.BQk())}function Ao(n,i){1&n&&(t.ynx(0),t._uU(1,"\u76f4\u64ad\u4e2d"),t.BQk())}function Po(n,i){1&n&&(t.ynx(0),t._uU(1,"\u8f6e\u64ad\u4e2d"),t.BQk())}function bo(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",t.Dn7(2,1,1e3*e.roomInfo.live_start_time,"YYYY-MM-dd HH:mm:ss","+8")," ")}}function yo(n,i){if(1&n&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",e," ")}}function So(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}let Zo=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-room-info-detail"]],inputs:{loading:"loading",roomInfo:"roomInfo"},decls:24,vars:13,consts:[["nzTitle","\u76f4\u64ad\u95f4\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6807\u9898"],["nzTitle","\u5206\u533a"],["nzTitle","\u623f\u95f4\u53f7"],[1,"room-id-wrapper"],["class","short-room-id",4,"ngIf"],[1,"real-room-id"],["nzTitle","\u72b6\u6001"],[3,"ngSwitch"],[4,"ngSwitchCase"],["nzTitle","\u5f00\u64ad\u65f6\u95f4"],[4,"ngIf"],["nzTitle","\u6807\u7b7e"],[1,"tags"],[4,"ngFor","ngForOf"],["nzTitle","\u7b80\u4ecb"],[1,"introduction"],[1,"short-room-id"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t.TgZ(7,"span",5),t.YNc(8,ko,2,1,"span",6),t.TgZ(9,"span",7),t._uU(10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"nz-descriptions-item",8),t.ynx(12,9),t.YNc(13,Eo,2,0,"ng-container",10),t.YNc(14,Ao,2,0,"ng-container",10),t.YNc(15,Po,2,0,"ng-container",10),t.BQk(),t.qZA(),t.TgZ(16,"nz-descriptions-item",11),t.YNc(17,bo,3,5,"ng-container",12),t.qZA(),t.TgZ(18,"nz-descriptions-item",13),t.TgZ(19,"div",14),t.YNc(20,yo,2,1,"nz-tag",15),t.qZA(),t.qZA(),t.TgZ(21,"nz-descriptions-item",16),t.TgZ(22,"div",17),t.YNc(23,So,2,1,"p",15),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",o.loading),t.xp6(3),t.Oqu(o.roomInfo.title),t.xp6(2),t.AsE(" ",o.roomInfo.parent_area_name," - ",o.roomInfo.area_name," "),t.xp6(3),t.Q6J("ngIf",o.roomInfo.short_room_id),t.xp6(2),t.hij(" ",o.roomInfo.room_id," "),t.xp6(2),t.Q6J("ngSwitch",o.roomInfo.live_status),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1),t.xp6(1),t.Q6J("ngSwitchCase",2),t.xp6(2),t.Q6J("ngIf",0!==o.roomInfo.live_start_time),t.xp6(3),t.Q6J("ngForOf",o.roomInfo.tags.split(",")),t.xp6(3),t.Q6J("ngForOf",o.roomInfo.description.split("\n")))},directives:[P.bd,jt,Ot,_.O5,_.RF,_.n9,_.sg,et],pipes:[_.uU],styles:['.room-id-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.room-id-wrapper[_ngcontent-%COMP%] .short-room-id[_ngcontent-%COMP%]:after{display:inline-block;width:1em;content:","}.tags[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;row-gap:.5em}.introduction[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;padding:0}'],changeDetection:0}),n})();var z=r(2948),lt=r(2134);let ie=(()=>{class n{transform(e){if(e<0)throw RangeError("the argument totalSeconds must be greater than or equal to 0");const o=Math.floor(e/3600),a=Math.floor(e/60%60),s=Math.floor(e%60);let d="";return o>0&&(d+=o+":"),d+=a<10?"0"+a:a,d+=":",d+=s<10?"0"+s:s,d}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"duration",type:n,pure:!0}),n})();var Pt=r(3692),wo=r(855);let zt=(()=>{class n{transform(e,o){return wo(e,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filesize",type:n,pure:!0}),n})();var ae=r(3520);function Fo(n,i){if(1&n&&(t._uU(0),t.ALo(1,"duration")),2&n){const e=t.oxw();t.Oqu(t.lcZ(1,1,e.taskStatus.rec_elapsed))}}function Io(n,i){if(1&n&&(t._uU(0),t.ALo(1,"datarate")),2&n){const e=t.oxw();t.Oqu(t.lcZ(1,1,e.taskStatus.rec_rate))}}const No=function(){return{spacer:" "}};function Bo(n,i){if(1&n&&(t._uU(0),t.ALo(1,"filesize")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,e.taskStatus.rec_total,t.DdM(4,No)))}}function Uo(n,i){if(1&n&&(t._uU(0),t.ALo(1,"quality")),2&n){const e=t.oxw();t.Oqu(e.taskStatus.real_quality_number?t.lcZ(1,1,e.taskStatus.real_quality_number)+" ("+e.taskStatus.real_quality_number+")":"")}}let Ro=(()=>{class n{constructor(e){this.changeDetector=e,this.loading=!0,this.initialChartOptions={},this.updatedChartOptions={},this.chartData=[],this.initChartOptions()}ngOnChanges(){this.taskStatus.running_status===z.cG.RECORDING&&this.updateChartOptions()}initChartOptions(){const e=Date.now();for(let o=59;o>=0;o--){const a=new Date(e-1e3*o);this.chartData.push({name:a.toLocaleString("zh-CN",{hour12:!1}),value:[a.toISOString(),0]})}this.initialChartOptions={title:{},tooltip:{trigger:"axis",formatter:o=>{const a=o[0];return`\n
\n
\n ${new Date(a.name).toLocaleTimeString("zh-CN",{hour12:!1})}\n
\n
${(0,lt.N4)(a.value[1])}
\n
\n `},axisPointer:{animation:!1}},xAxis:{type:"time",name:"\u65f6\u95f4",min:"dataMin",max:"dataMax",splitLine:{show:!0}},yAxis:{type:"value",name:"\u5f55\u5236\u901f\u5ea6",splitLine:{show:!0},axisLabel:{formatter:o=>(0,lt.N4)(o)}},series:[{name:"\u5f55\u5236\u901f\u5ea6",type:"line",showSymbol:!1,smooth:!0,lineStyle:{width:1},areaStyle:{opacity:.2},data:this.chartData}]}}updateChartOptions(){const e=new Date;this.chartData.push({name:e.toLocaleString("zh-CN",{hour12:!1}),value:[e.toISOString(),this.taskStatus.rec_rate]}),this.chartData.shift(),this.updatedChartOptions={series:[{data:this.chartData}]},this.changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-recording-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},features:[t.TTD],decls:17,vars:17,consts:[["nzTitle","\u5f55\u5236\u8be6\u60c5",3,"nzLoading"],[1,"statistics"],[3,"nzTitle","nzValueTemplate"],["recordingElapsed",""],["recordingRate",""],["recordedTotal",""],["recordingQuality",""],[3,"nzTitle","nzValue"],["echarts","",1,"rec-rate-chart",3,"loading","options","merge"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.YNc(3,Fo,2,3,"ng-template",null,3,t.W1O),t._UZ(5,"nz-statistic",2),t.YNc(6,Io,2,3,"ng-template",null,4,t.W1O),t._UZ(8,"nz-statistic",2),t.YNc(9,Bo,2,5,"ng-template",null,5,t.W1O),t._UZ(11,"nz-statistic",2),t.YNc(12,Uo,2,3,"ng-template",null,6,t.W1O),t._UZ(14,"nz-statistic",7),t.ALo(15,"number"),t.qZA(),t._UZ(16,"div",8),t.qZA()),2&e){const a=t.MAs(4),s=t.MAs(7),d=t.MAs(10),x=t.MAs(13);t.Q6J("nzLoading",o.loading),t.xp6(2),t.Q6J("nzTitle","\u5f55\u5236\u7528\u65f6")("nzValueTemplate",a),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u901f\u5ea6")("nzValueTemplate",s),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u603b\u8ba1")("nzValueTemplate",d),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u753b\u8d28")("nzValueTemplate",x),t.xp6(3),t.Q6J("nzTitle","\u5f39\u5e55\u603b\u8ba1")("nzValue",t.xi3(15,14,o.taskStatus.danmu_total,"1.0-2")),t.xp6(2),t.Q6J("loading",o.loading)("options",o.initialChartOptions)("merge",o.updatedChartOptions)}},directives:[P.bd,Kt,Xt],pipes:[ie,Pt.f,zt,ae.U,_.JJ],styles:[".statistics[_ngcontent-%COMP%]{--grid-width: 200px;display:grid;grid-template-columns:repeat(auto-fill,var(--grid-width));grid-gap:1em;gap:1em;justify-content:center;margin:0 auto}@media screen and (max-width: 1024px){.statistics[_ngcontent-%COMP%]{--grid-width: 180px}}@media screen and (max-width: 720px){.statistics[_ngcontent-%COMP%]{--grid-width: 160px}}@media screen and (max-width: 680px){.statistics[_ngcontent-%COMP%]{--grid-width: 140px}}@media screen and (max-width: 480px){.statistics[_ngcontent-%COMP%]{--grid-width: 120px}}.rec-rate-chart[_ngcontent-%COMP%]{width:100%;height:300px;margin:0}"],changeDetection:0}),n})();function Lo(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.taskStatus.stream_host)}}function Jo(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.taskStatus.real_stream_format)}}const Qo=function(){return{bitrate:!0}};function qo(n,i){if(1&n&&(t._uU(0),t.ALo(1,"datarate")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,8*e.taskStatus.dl_rate,t.DdM(4,Qo)))}}const Wo=function(){return{spacer:" "}};function Yo(n,i){if(1&n&&(t._uU(0),t.ALo(1,"filesize")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,e.taskStatus.dl_total,t.DdM(4,Wo)))}}let Ko=(()=>{class n{constructor(e){this.changeDetector=e,this.loading=!0,this.initialChartOptions={},this.updatedChartOptions={},this.chartData=[],this.initChartOptions()}ngOnChanges(){this.taskStatus.running_status===z.cG.RECORDING&&this.updateChartOptions()}initChartOptions(){const e=Date.now();for(let o=59;o>=0;o--){const a=new Date(e-1e3*o);this.chartData.push({name:a.toLocaleString("zh-CN",{hour12:!1}),value:[a.toISOString(),0]})}this.initialChartOptions={title:{},tooltip:{trigger:"axis",formatter:o=>{const a=o[0];return`\n
\n
\n ${new Date(a.name).toLocaleTimeString("zh-CN",{hour12:!1})}\n
\n
${(0,lt.AX)(a.value[1])}
\n
\n `},axisPointer:{animation:!1}},xAxis:{type:"time",name:"\u65f6\u95f4",min:"dataMin",max:"dataMax",splitLine:{show:!0}},yAxis:{type:"value",name:"\u4e0b\u8f7d\u901f\u5ea6",splitLine:{show:!0},axisLabel:{formatter:function(o){return(0,lt.AX)(o)}}},series:[{name:"\u4e0b\u8f7d\u901f\u5ea6",type:"line",showSymbol:!1,smooth:!0,lineStyle:{width:1},areaStyle:{opacity:.2},data:this.chartData}]}}updateChartOptions(){const e=new Date;this.chartData.push({name:e.toLocaleString("zh-CN",{hour12:!1}),value:[e.toISOString(),8*this.taskStatus.dl_rate]}),this.chartData.shift(),this.updatedChartOptions={series:[{data:this.chartData}]},this.changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-network-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},features:[t.TTD],decls:15,vars:12,consts:[["nzTitle","\u7f51\u7edc\u8be6\u60c5",3,"nzLoading"],[1,"statistics"],[1,"stream-host",3,"nzTitle","nzValueTemplate"],["streamHost",""],[3,"nzTitle","nzValueTemplate"],["realStreamFormat",""],["downloadRate",""],["downloadTotal",""],["echarts","",1,"dl-rate-chart",3,"loading","options","merge"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.YNc(3,Lo,1,1,"ng-template",null,3,t.W1O),t._UZ(5,"nz-statistic",4),t.YNc(6,Jo,1,1,"ng-template",null,5,t.W1O),t._UZ(8,"nz-statistic",4),t.YNc(9,qo,2,5,"ng-template",null,6,t.W1O),t._UZ(11,"nz-statistic",4),t.YNc(12,Yo,2,5,"ng-template",null,7,t.W1O),t.qZA(),t._UZ(14,"div",8),t.qZA()),2&e){const a=t.MAs(4),s=t.MAs(7),d=t.MAs(10),x=t.MAs(13);t.Q6J("nzLoading",o.loading),t.xp6(2),t.Q6J("nzTitle","\u6d41\u4e3b\u673a")("nzValueTemplate",a),t.xp6(3),t.Q6J("nzTitle","\u6d41\u683c\u5f0f")("nzValueTemplate",s),t.xp6(3),t.Q6J("nzTitle","\u4e0b\u8f7d\u901f\u5ea6")("nzValueTemplate",d),t.xp6(3),t.Q6J("nzTitle","\u4e0b\u8f7d\u603b\u8ba1")("nzValueTemplate",x),t.xp6(3),t.Q6J("loading",o.loading)("options",o.initialChartOptions)("merge",o.updatedChartOptions)}},directives:[P.bd,Kt,Xt],pipes:[Pt.f,zt],styles:[".statistics[_ngcontent-%COMP%]{--grid-width: 200px;display:grid;grid-template-columns:repeat(auto-fill,var(--grid-width));grid-gap:1em;gap:1em;justify-content:center;margin:0 auto}@media screen and (max-width: 1024px){.statistics[_ngcontent-%COMP%]{--grid-width: 180px}}@media screen and (max-width: 720px){.statistics[_ngcontent-%COMP%]{--grid-width: 160px}}@media screen and (max-width: 680px){.statistics[_ngcontent-%COMP%]{--grid-width: 140px}}@media screen and (max-width: 480px){.statistics[_ngcontent-%COMP%]{--grid-width: 120px}}.stream-host[_ngcontent-%COMP%]{grid-column:1/3;grid-row:1}.dl-rate-chart[_ngcontent-%COMP%]{width:100%;height:300px;margin:0}"],changeDetection:0}),n})(),bt=(()=>{class n{transform(e){var o,a;return e?e.startsWith("/")?null!==(o=e.split("/").pop())&&void 0!==o?o:"":null!==(a=e.split("\\").pop())&&void 0!==a?a:"":""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filename",type:n,pure:!0}),n})(),se=(()=>{class n{transform(e){return e&&0!==e.total?Math.round(e.count/e.total*100):0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"progress",type:n,pure:!0}),n})(),Go=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}get title(){switch(this.taskStatus.postprocessor_status){case z.ii.INJECTING:return"\u66f4\u65b0 FLV \u5143\u6570\u636e";case z.ii.REMUXING:return"\u8f6c\u6362 FLV \u4e3a MP4";default:return"\u6587\u4ef6\u5904\u7406"}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-postprocessing-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},decls:6,vars:9,consts:[[3,"nzTitle","nzLoading"],[3,"title"],["nzStatus","active",3,"nzPercent"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"p",1),t._uU(2),t.ALo(3,"filename"),t.qZA(),t._UZ(4,"nz-progress",2),t.ALo(5,"progress"),t.qZA()),2&e){let a;t.Q6J("nzTitle",o.title)("nzLoading",o.loading),t.xp6(1),t.Q6J("title",o.taskStatus.postprocessing_path),t.xp6(1),t.hij(" ",t.lcZ(3,5,null!==(a=o.taskStatus.postprocessing_path)&&void 0!==a?a:"")," "),t.xp6(2),t.Q6J("nzPercent",null===o.taskStatus.postprocessing_progress?0:t.lcZ(5,7,o.taskStatus.postprocessing_progress))}},directives:[P.bd,Wt],pipes:[bt,se],styles:["p[_ngcontent-%COMP%]{margin:0}"],changeDetection:0}),n})();const jo=new Map([[z.cS.RECORDING,"\u5f55\u5236\u4e2d"],[z.cS.INJECTING,"\u5904\u7406\u4e2d"],[z.cS.REMUXING,"\u5904\u7406\u4e2d"],[z.cS.COMPLETED,"\u5df2\u5b8c\u6210"],[z.cS.MISSING,"\u4e0d\u5b58\u5728"],[z.cS.BROKEN,"\u5f55\u5236\u4e2d\u65ad"]]);let $o=(()=>{class n{transform(e){var o;return null!==(o=jo.get(e))&&void 0!==o?o:"\uff1f\uff1f\uff1f"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filestatus",type:n,pure:!0}),n})();function Vo(n,i){if(1&n&&(t.TgZ(0,"th",5),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("nzSortOrder",e.sortOrder)("nzSortFn",e.sortFn)("nzSortDirections",e.sortDirections)("nzFilters",e.listOfFilter)("nzFilterFn",e.filterFn)("nzFilterMultiple",e.filterMultiple)("nzShowFilter",e.listOfFilter.length>0),t.xp6(1),t.hij(" ",e.name," ")}}function Ho(n,i){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td",6),t._uU(2),t.ALo(3,"filename"),t.qZA(),t.TgZ(4,"td",6),t.ALo(5,"number"),t._uU(6),t.ALo(7,"filesize"),t.qZA(),t.TgZ(8,"td",6),t._uU(9),t.ALo(10,"filestatus"),t.qZA(),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.s9C("title",e.path),t.xp6(1),t.Oqu(t.lcZ(3,9,e.path)),t.xp6(2),t.s9C("title",t.lcZ(5,11,e.size)),t.xp6(2),t.Oqu(t.lcZ(7,13,e.size)),t.xp6(2),t.Gre("status ",e.status,""),t.s9C("title",e.status),t.xp6(1),t.hij(" ",t.lcZ(10,15,e.status)," ")}}const re=[z.cS.RECORDING,z.cS.INJECTING,z.cS.REMUXING,z.cS.COMPLETED,z.cS.MISSING];let Xo=(()=>{class n{constructor(){this.loading=!0,this.videoFileDetails=[],this.danmakuFileDetails=[],this.VideoFileStatus=z.cS,this.fileDetails=[],this.columns=[{name:"\u6587\u4ef6",sortOrder:"ascend",sortFn:(e,o)=>e.path.localeCompare(o.path),sortDirections:["ascend","descend"],filterMultiple:!1,listOfFilter:[{text:"\u89c6\u9891",value:"video"},{text:"\u5f39\u5e55",value:"danmaku"}],filterFn:(e,o)=>{switch(e){case"video":return o.path.endsWith(".flv")||o.path.endsWith(".mp4");case"danmaku":return o.path.endsWith(".xml");default:return!1}}},{name:"\u5927\u5c0f",sortOrder:null,sortFn:(e,o)=>e.size-o.size,sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[],filterFn:null},{name:"\u72b6\u6001",sortOrder:null,sortFn:(e,o)=>re.indexOf(e.status)-re.indexOf(o.status),sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[{text:"\u5f55\u5236\u4e2d",value:[z.cS.RECORDING]},{text:"\u5904\u7406\u4e2d",value:[z.cS.INJECTING,z.cS.REMUXING]},{text:"\u5df2\u5b8c\u6210",value:[z.cS.COMPLETED]},{text:"\u4e0d\u5b58\u5728",value:[z.cS.MISSING]}],filterFn:(e,o)=>e.some(a=>a.some(s=>s===o.status))}]}ngOnChanges(){this.fileDetails=[...this.videoFileDetails,...this.danmakuFileDetails]}trackByPath(e,o){return o.path}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-file-detail"]],inputs:{loading:"loading",videoFileDetails:"videoFileDetails",danmakuFileDetails:"danmakuFileDetails"},features:[t.TTD],decls:8,vars:8,consts:[["nzTitle","\u6587\u4ef6\u8be6\u60c5",3,"nzLoading"],[3,"nzLoading","nzData","nzPageSize","nzHideOnSinglePage"],["fileDetailsTable",""],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter"],[3,"title"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-table",1,2),t.TgZ(3,"thead"),t.TgZ(4,"tr"),t.YNc(5,Vo,2,8,"th",3),t.qZA(),t.qZA(),t.TgZ(6,"tbody"),t.YNc(7,Ho,11,17,"tr",4),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(2);t.Q6J("nzLoading",o.loading),t.xp6(1),t.Q6J("nzLoading",o.loading)("nzData",o.fileDetails)("nzPageSize",8)("nzHideOnSinglePage",!0),t.xp6(4),t.Q6J("ngForOf",o.columns),t.xp6(2),t.Q6J("ngForOf",a.data)("ngForTrackBy",o.trackByPath)}},directives:[P.bd,Y.N8,Y.Om,Y.$Z,_.sg,Y.Uo,Y._C,Y.qD,Y.p0],pipes:[bt,_.JJ,zt,$o],styles:[".status.recording[_ngcontent-%COMP%]{color:red}.status.injecting[_ngcontent-%COMP%], .status.remuxing[_ngcontent-%COMP%]{color:#00f}.status.completed[_ngcontent-%COMP%]{color:green}.status.missing[_ngcontent-%COMP%]{color:gray}.status.broken[_ngcontent-%COMP%]{color:orange}"],changeDetection:0}),n})();function ti(n,i){if(1&n&&t._UZ(0,"app-task-user-info-detail",6),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("userInfo",e.taskData.user_info)}}function ei(n,i){if(1&n&&t._UZ(0,"app-task-room-info-detail",7),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("roomInfo",e.taskData.room_info)}}function ni(n,i){if(1&n&&t._UZ(0,"app-task-recording-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function oi(n,i){if(1&n&&t._UZ(0,"app-task-network-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function ii(n,i){if(1&n&&t._UZ(0,"app-task-postprocessing-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function ai(n,i){if(1&n&&(t.YNc(0,ti,1,2,"app-task-user-info-detail",2),t.YNc(1,ei,1,2,"app-task-room-info-detail",3),t.YNc(2,ni,1,2,"app-task-recording-detail",4),t.YNc(3,oi,1,2,"app-task-network-detail",4),t.YNc(4,ii,1,2,"app-task-postprocessing-detail",4),t._UZ(5,"app-task-file-detail",5)),2&n){const e=t.oxw();t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",null==e.taskData||null==e.taskData.task_status?null:e.taskData.task_status.postprocessing_path),t.xp6(1),t.Q6J("loading",e.loading)("videoFileDetails",e.videoFileDetails)("danmakuFileDetails",e.danmakuFileDetails)}}const si=function(){return{"max-width":"unset"}},ri=function(){return{"row-gap":"1em"}};let li=(()=>{class n{constructor(e,o,a,s,d){this.route=e,this.router=o,this.changeDetector=a,this.notification=s,this.taskService=d,this.videoFileDetails=[],this.danmakuFileDetails=[],this.loading=!0}ngOnInit(){this.route.paramMap.subscribe(e=>{this.roomId=parseInt(e.get("id")),this.syncData()})}ngOnDestroy(){this.desyncData()}syncData(){this.dataSubscription=(0,B.of)((0,B.of)(0),(0,te.F)(1e3)).pipe((0,ne.u)(),(0,at.w)(()=>(0,ee.$R)(this.taskService.getTaskData(this.roomId),this.taskService.getVideoFileDetails(this.roomId),this.taskService.getDanmakuFileDetails(this.roomId))),(0,rt.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,Et.X)(10,3e3)).subscribe(([e,o,a])=>{this.loading=!1,this.taskData=e,this.videoFileDetails=o,this.danmakuFileDetails=a,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(st.gz),t.Y36(st.F0),t.Y36(t.sBO),t.Y36(oe.zb),t.Y36(At.M))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-detail"]],decls:2,vars:5,consts:[["pageTitle","\u4efb\u52a1\u8be6\u60c5",3,"loading","pageStyles","contentStyles"],["appSubPageContent",""],[3,"loading","userInfo",4,"ngIf"],[3,"loading","roomInfo",4,"ngIf"],[3,"loading","taskStatus",4,"ngIf"],[3,"loading","videoFileDetails","danmakuFileDetails"],[3,"loading","userInfo"],[3,"loading","roomInfo"],[3,"loading","taskStatus"]],template:function(e,o){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,ai,6,8,"ng-template",1),t.qZA()),2&e&&t.Q6J("loading",o.loading)("pageStyles",t.DdM(3,si))("contentStyles",t.DdM(4,ri))},directives:[Mo.q,vo.Y,_.O5,Oo,Zo,Ro,Ko,Go,Xo],styles:[""],changeDetection:0}),n})();var le=r(2323),ci=r(13),_i=r(5778),V=r(4850);const ct=["(max-width: 534.98px)","(min-width: 535px) and (max-width: 1199.98px)","(min-width: 1200px)"];var yt=r(9727);let St=(()=>{class n{constructor(e,o){this.message=e,this.taskService=o}getAllTaskRoomIds(){return this.taskService.getAllTaskData().pipe((0,V.U)(e=>e.map(o=>o.room_info.room_id)))}updateTaskInfo(e){return this.taskService.updateTaskInfo(e).pipe((0,w.b)(()=>{this.message.success(`[${e}] \u6210\u529f\u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e`)},o=>{this.message.error(`[${e}] \u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e\u51fa\u9519: ${o.message}`)}))}updateAllTaskInfos(){return this.taskService.updateAllTaskInfos().pipe((0,w.b)(()=>{this.message.success("\u6210\u529f\u5237\u65b0\u5168\u90e8\u4efb\u52a1\u7684\u6570\u636e")},e=>{this.message.error(`\u5237\u65b0\u5168\u90e8\u4efb\u52a1\u7684\u6570\u636e\u51fa\u9519: ${e.message}`)}))}addTask(e){return this.taskService.addTask(e).pipe((0,V.U)(o=>({type:"success",message:"\u6210\u529f\u6dfb\u52a0\u4efb\u52a1"})),(0,rt.K)(o=>{let a;return a=409==o.status?{type:"error",message:"\u4efb\u52a1\u5df2\u5b58\u5728\uff0c\u4e0d\u80fd\u91cd\u590d\u6dfb\u52a0\u3002"}:403==o.status?{type:"warning",message:"\u4efb\u52a1\u6570\u91cf\u8d85\u8fc7\u9650\u5236\uff0c\u4e0d\u80fd\u6dfb\u52a0\u4efb\u52a1\u3002"}:404==o.status?{type:"error",message:"\u76f4\u64ad\u95f4\u4e0d\u5b58\u5728"}:{type:"error",message:`\u6dfb\u52a0\u4efb\u52a1\u51fa\u9519: ${o.message}`},(0,B.of)(a)}),(0,V.U)(o=>(o.message=`${e}: ${o.message}`,o)),(0,w.b)(o=>{this.message[o.type](o.message)}))}removeTask(e){return this.taskService.removeTask(e).pipe((0,w.b)(()=>{this.message.success(`[${e}] \u4efb\u52a1\u5df2\u5220\u9664`)},o=>{this.message.error(`[${e}] \u5220\u9664\u4efb\u52a1\u51fa\u9519: ${o.message}`)}))}removeAllTasks(){const e=this.message.loading("\u6b63\u5728\u5220\u9664\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.removeAllTasks().pipe((0,w.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5220\u9664\u5168\u90e8\u4efb\u52a1")},o=>{this.message.remove(e),this.message.error(`\u5220\u9664\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${o.message}`)}))}startTask(e){const o=this.message.loading(`[${e}] \u6b63\u5728\u8fd0\u884c\u4efb\u52a1...`,{nzDuration:0}).messageId;return this.taskService.startTask(e).pipe((0,w.b)(()=>{this.message.remove(o),this.message.success(`[${e}] \u6210\u529f\u8fd0\u884c\u4efb\u52a1`)},a=>{this.message.remove(o),this.message.error(`[${e}] \u8fd0\u884c\u4efb\u52a1\u51fa\u9519: ${a.message}`)}))}startAllTasks(){const e=this.message.loading("\u6b63\u5728\u8fd0\u884c\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.startAllTasks().pipe((0,w.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u8fd0\u884c\u5168\u90e8\u4efb\u52a1")},o=>{this.message.remove(e),this.message.error(`\u8fd0\u884c\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${o.message}`)}))}stopTask(e,o=!1){const a=this.message.loading(`[${e}] \u6b63\u5728\u505c\u6b62\u4efb\u52a1...`,{nzDuration:0}).messageId;return this.taskService.stopTask(e,o).pipe((0,w.b)(()=>{this.message.remove(a),this.message.success(`[${e}] \u6210\u529f\u505c\u6b62\u4efb\u52a1`)},s=>{this.message.remove(a),this.message.error(`[${e}] \u505c\u6b62\u4efb\u52a1\u51fa\u9519: ${s.message}`)}))}stopAllTasks(e=!1){const o=this.message.loading("\u6b63\u5728\u505c\u6b62\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.stopAllTasks(e).pipe((0,w.b)(()=>{this.message.remove(o),this.message.success("\u6210\u529f\u505c\u6b62\u5168\u90e8\u4efb\u52a1")},a=>{this.message.remove(o),this.message.error(`\u505c\u6b62\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${a.message}`)}))}enableRecorder(e){const o=this.message.loading(`[${e}] \u6b63\u5728\u5f00\u542f\u5f55\u5236...`,{nzDuration:0}).messageId;return this.taskService.enableTaskRecorder(e).pipe((0,w.b)(()=>{this.message.remove(o),this.message.success(`[${e}] \u6210\u529f\u5f00\u542f\u5f55\u5236`)},a=>{this.message.remove(o),this.message.error(`[${e}] \u5f00\u542f\u5f55\u5236\u51fa\u9519: ${a.message}`)}))}enableAllRecorders(){const e=this.message.loading("\u6b63\u5728\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.enableAllRecorders().pipe((0,w.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},o=>{this.message.remove(e),this.message.error(`\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${o.message}`)}))}disableRecorder(e,o=!1){const a=this.message.loading(`[${e}] \u6b63\u5728\u5173\u95ed\u5f55\u5236...`,{nzDuration:0}).messageId;return this.taskService.disableTaskRecorder(e,o).pipe((0,w.b)(()=>{this.message.remove(a),this.message.success(`[${e}] \u6210\u529f\u5173\u95ed\u5f55\u5236`)},s=>{this.message.remove(a),this.message.error(`[${e}] \u5173\u95ed\u5f55\u5236\u51fa\u9519: ${s.message}`)}))}disableAllRecorders(e=!1){const o=this.message.loading("\u6b63\u5728\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.disableAllRecorders(e).pipe((0,w.b)(()=>{this.message.remove(o),this.message.success("\u6210\u529f\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},a=>{this.message.remove(o),this.message.error(`\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${a.message}`)}))}cutStream(e){return this.taskService.cutStream(e).pipe((0,w.b)(()=>{this.message.success(`[${e}] \u6587\u4ef6\u5207\u5272\u5df2\u89e6\u53d1`)},o=>{403==o.status?this.message.warning(`[${e}] \u65f6\u957f\u592a\u77ed\u4e0d\u80fd\u5207\u5272\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002`):this.message.error(`[${e}] \u5207\u5272\u6587\u4ef6\u51fa\u9519: ${o.message}`)}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(yt.dD),t.LFG(At.M))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Zt=r(2683),_t=r(4219);function ui(n,i){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(5),o=t.MAs(9),a=t.MAs(11),s=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",o),t.xp6(2),t.Q6J("ngTemplateOutlet",a),t.xp6(2),t.Q6J("ngTemplateOutlet",s)}}function pi(n,i){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(7),o=t.MAs(9),a=t.MAs(11),s=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",o),t.xp6(2),t.Q6J("ngTemplateOutlet",a),t.xp6(2),t.Q6J("ngTemplateOutlet",s)}}function gi(n,i){if(1&n&&(t.ynx(0),t.GkF(1,8),t.GkF(2,8),t.BQk()),2&n){t.oxw();const e=t.MAs(9),o=t.MAs(20);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function di(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"label",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("nzValue",e.value),t.xp6(1),t.Oqu(e.label)}}function mi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-radio-group",14),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().selection=a})("ngModelChange",function(a){return t.CHM(e),t.oxw().selectionChange.emit(a)}),t.YNc(1,di,3,2,"ng-container",15),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("ngModel",e.selection),t.xp6(1),t.Q6J("ngForOf",e.selections)}}function hi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-select",17),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().selection=a})("ngModelChange",function(a){return t.CHM(e),t.oxw().selectionChange.emit(a)}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzOptions",e.selections)("ngModel",e.selection)}}function fi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"i",23),t.NdJ("click",function(){t.CHM(e),t.oxw(2);const a=t.MAs(2),s=t.oxw();return a.value="",s.onFilterInput("")}),t.qZA()}}function Ci(n,i){if(1&n&&t.YNc(0,fi,1,0,"i",22),2&n){t.oxw();const e=t.MAs(2);t.Q6J("ngIf",e.value)}}function zi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-input-group",18),t.TgZ(1,"input",19,20),t.NdJ("input",function(){t.CHM(e);const a=t.MAs(2);return t.oxw().onFilterInput(a.value)}),t.qZA(),t.qZA(),t.YNc(3,Ci,1,1,"ng-template",null,21,t.W1O)}if(2&n){const e=t.MAs(4);t.Q6J("nzSuffix",e)}}function Ti(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleReverse()}),t.TgZ(1,"span"),t._uU(2),t.qZA(),t._UZ(3,"i",25),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.reverse?"\u5012\u5e8f":"\u6b63\u5e8f"),t.xp6(1),t.Q6J("nzType",e.reverse?"swap-left":"swap-right")("nzRotate",90)}}function xi(n,i){if(1&n&&(t.TgZ(0,"button",26),t._UZ(1,"i",27),t.qZA()),2&n){t.oxw();const e=t.MAs(15);t.Q6J("nzDropdownMenu",e)}}function Di(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"ul",28),t.TgZ(1,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().startAllTasks()}),t._uU(2,"\u5168\u90e8\u8fd0\u884c"),t.qZA(),t.TgZ(3,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks()}),t._uU(4,"\u5168\u90e8\u505c\u6b62"),t.qZA(),t.TgZ(5,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks(!0)}),t._uU(6,"\u5168\u90e8\u5f3a\u5236\u505c\u6b62"),t.qZA(),t._UZ(7,"li",30),t.TgZ(8,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!1)}),t._uU(9,"\u5168\u90e8\u5173\u95ed\u5f55\u5236"),t.qZA(),t.TgZ(10,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!0)}),t._uU(11,"\u5168\u90e8\u5f3a\u5236\u5173\u95ed\u5f55\u5236"),t.qZA(),t._UZ(12,"li",30),t.TgZ(13,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeAllTasks()}),t._uU(14,"\u5168\u90e8\u5220\u9664"),t.qZA(),t.TgZ(15,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateAllTaskInfos()}),t._uU(16,"\u5168\u90e8\u5237\u65b0\u6570\u636e"),t.qZA(),t.TgZ(17,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().copyAllTaskRoomIds()}),t._uU(18,"\u590d\u5236\u5168\u90e8\u623f\u95f4\u53f7"),t.qZA(),t.qZA()}}function Mi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().drawerVisible=!0}),t._UZ(1,"i",27),t.qZA()}}function vi(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"div",35),t._UZ(2,"nz-divider",36),t.GkF(3,8),t._UZ(4,"nz-divider",37),t.TgZ(5,"div",38),t.GkF(6,8),t.qZA(),t.qZA(),t.BQk()),2&n){t.oxw(2);const e=t.MAs(5),o=t.MAs(11);t.xp6(3),t.Q6J("ngTemplateOutlet",e),t.xp6(3),t.Q6J("ngTemplateOutlet",o)}}function Oi(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",39),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!1}),t.GkF(2,8),t.qZA(),t.BQk()}if(2&n){t.oxw(2);const e=t.MAs(18);t.xp6(2),t.Q6J("ngTemplateOutlet",e)}}const ki=function(){return{padding:"0"}};function Ei(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",32),t.NdJ("nzVisibleChange",function(a){return t.CHM(e),t.oxw().drawerVisible=a})("nzOnClose",function(){return t.CHM(e),t.oxw().drawerVisible=!1}),t.YNc(1,vi,7,2,"ng-container",33),t.TgZ(2,"nz-drawer",34),t.NdJ("nzVisibleChange",function(a){return t.CHM(e),t.oxw().menuDrawerVisible=a})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(3,Oi,3,1,"ng-container",33),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(),o=t.MAs(23);t.Q6J("nzTitle",o)("nzClosable",!1)("nzVisible",e.drawerVisible),t.xp6(2),t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(6,ki))("nzVisible",e.menuDrawerVisible)}}function Ai(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",40),t.TgZ(1,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!0}),t._UZ(2,"i",27),t.qZA(),t.qZA()}}let Pi=(()=>{class n{constructor(e,o,a,s,d,x){this.message=a,this.modal=s,this.clipboard=d,this.taskManager=x,this.selectionChange=new t.vpe,this.reverseChange=new t.vpe,this.filterChange=new t.vpe,this.destroyed=new C.xQ,this.useDrawer=!1,this.useSelector=!1,this.useRadioGroup=!0,this.drawerVisible=!1,this.menuDrawerVisible=!1,this.filterTerms=new C.xQ,this.selections=[{label:"\u5168\u90e8",value:z.jf.ALL},{label:"\u5f55\u5236\u4e2d",value:z.jf.RECORDING},{label:"\u5f55\u5236\u5f00",value:z.jf.RECORDER_ENABLED},{label:"\u5f55\u5236\u5173",value:z.jf.RECORDER_DISABLED},{label:"\u8fd0\u884c",value:z.jf.MONITOR_ENABLED},{label:"\u505c\u6b62",value:z.jf.MONITOR_DISABLED},{label:"\u76f4\u64ad",value:z.jf.LIVING},{label:"\u8f6e\u64ad",value:z.jf.ROUNDING},{label:"\u95f2\u7f6e",value:z.jf.PREPARING}],o.observe(ct).pipe((0,O.R)(this.destroyed)).subscribe(M=>{this.useDrawer=M.breakpoints[ct[0]],this.useSelector=M.breakpoints[ct[1]],this.useRadioGroup=M.breakpoints[ct[2]],e.markForCheck()})}ngOnInit(){this.filterTerms.pipe((0,ci.b)(300),(0,_i.x)()).subscribe(e=>{this.filterChange.emit(e)})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}onFilterInput(e){this.filterTerms.next(e)}toggleReverse(){this.reverse=!this.reverse,this.reverseChange.emit(this.reverse)}removeAllTasks(){this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5220\u9664\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u4efb\u52a1\u5c06\u88ab\u5f3a\u5236\u505c\u6b62\uff01\u4efb\u52a1\u5220\u9664\u540e\u5c06\u4e0d\u53ef\u6062\u590d\uff01",nzOnOk:()=>new Promise((e,o)=>{this.taskManager.removeAllTasks().subscribe(e,o)})})}startAllTasks(){this.taskManager.startAllTasks().subscribe()}stopAllTasks(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.stopAllTasks(e).subscribe(o,a)})}):this.taskManager.stopAllTasks().subscribe()}disableAllRecorders(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.disableAllRecorders(e).subscribe(o,a)})}):this.taskManager.disableAllRecorders().subscribe()}updateAllTaskInfos(){this.taskManager.updateAllTaskInfos().subscribe()}copyAllTaskRoomIds(){this.taskManager.getAllTaskRoomIds().pipe((0,V.U)(e=>e.join(" ")),(0,w.b)(e=>{if(!this.clipboard.copy(e))throw Error("Failed to copy text to the clipboard")})).subscribe(()=>{this.message.success("\u5168\u90e8\u623f\u95f4\u53f7\u5df2\u590d\u5236\u5230\u526a\u5207\u677f")},e=>{this.message.error("\u590d\u5236\u5168\u90e8\u623f\u95f4\u53f7\u5230\u526a\u5207\u677f\u51fa\u9519",e)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(y.Yg),t.Y36(yt.dD),t.Y36($.Sf),t.Y36(c),t.Y36(St))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-toolbar"]],inputs:{selection:"selection",reverse:"reverse"},outputs:{selectionChange:"selectionChange",reverseChange:"reverseChange",filterChange:"filterChange"},decls:24,vars:7,consts:[[1,"controls-wrapper"],[4,"ngIf"],["radioGroup",""],["selector",""],["filter",""],["reorderButton",""],["menuButton",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["drawerButton",""],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],["drawerHeader",""],["nzType","vertical"],["nzButtonStyle","solid",1,"radio-group",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["nz-radio-button","",3,"nzValue"],[1,"selector",3,"nzOptions","ngModel","ngModelChange"],[1,"filter",3,"nzSuffix"],["nz-input","","type","text","maxlength","18","placeholder","\u7528\u6807\u9898\u3001\u5206\u533a\u3001\u4e3b\u64ad\u540d\u3001\u623f\u95f4\u53f7\u7b5b\u9009",3,"input"],["filterInput",""],["inputClearTpl",""],["nz-icon","","class","filter-clear","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"filter-clear",3,"click"],["nz-button","","nzType","text","nzSize","default",1,"reverse-button",3,"click"],["nz-icon","",3,"nzType","nzRotate"],["nz-button","","nzType","text","nzSize","default","nz-dropdown","","nzPlacement","bottomRight",1,"more-actions-button",3,"nzDropdownMenu"],["nz-icon","","nzType","more"],["nz-menu","",1,"menu"],["nz-menu-item","",3,"click"],["nz-menu-divider",""],["nz-button","","nzType","text","nzSize","default",1,"more-actions-button",3,"click"],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose"],[4,"nzDrawerContent"],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose"],[1,"drawer-content"],["nzText","\u7b5b\u9009"],["nzText","\u6392\u5e8f"],[1,"reorder-button-wrapper"],[1,"drawer-content",3,"click"],[1,"drawer-header"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0),t.YNc(1,ui,8,4,"ng-container",1),t.YNc(2,pi,8,4,"ng-container",1),t.YNc(3,gi,3,2,"ng-container",1),t.qZA(),t.YNc(4,mi,2,2,"ng-template",null,2,t.W1O),t.YNc(6,hi,1,2,"ng-template",null,3,t.W1O),t.YNc(8,zi,5,1,"ng-template",null,4,t.W1O),t.YNc(10,Ti,4,3,"ng-template",null,5,t.W1O),t.YNc(12,xi,2,1,"ng-template",null,6,t.W1O),t.TgZ(14,"nz-dropdown-menu",null,7),t.GkF(16,8),t.YNc(17,Di,19,0,"ng-template",null,9,t.W1O),t.qZA(),t.YNc(19,Mi,2,0,"ng-template",null,10,t.W1O),t.YNc(21,Ei,4,7,"nz-drawer",11),t.YNc(22,Ai,3,0,"ng-template",null,12,t.W1O)),2&e){const a=t.MAs(18);t.ekj("use-drawer",o.useDrawer),t.xp6(1),t.Q6J("ngIf",o.useRadioGroup),t.xp6(1),t.Q6J("ngIf",o.useSelector),t.xp6(1),t.Q6J("ngIf",o.useDrawer),t.xp6(13),t.Q6J("ngTemplateOutlet",a),t.xp6(5),t.Q6J("ngIf",o.useDrawer)}},directives:[_.O5,_.tP,Ut.g,ft.Dg,m.JJ,m.On,_.sg,ft.Of,ft.Bq,Mt.Vq,Zt.w,tt.gB,tt.ke,tt.Zp,k.Ls,ht.ix,X.wA,X.cm,X.RR,_t.wO,_t.r9,_t.YV,it.Vz,it.SQ],styles:[".drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{box-shadow:none;padding:.5em 0}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] *[nz-menu-item][_ngcontent-%COMP%]{margin:0;padding:.5em 2em}.controls-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:.2em;width:100%;padding:.2em;background:#f9f9f9;border-left:none;border-right:none}.controls-wrapper[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]{height:1.8em;top:0}.controls-wrapper[_ngcontent-%COMP%]:not(.use-drawer) .filter[_ngcontent-%COMP%]{max-width:18em}.controls-wrapper.use-drawer[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%]{max-width:unset;width:unset;flex:auto}.controls-wrapper[_ngcontent-%COMP%] .selector[_ngcontent-%COMP%]{min-width:6em}.reverse-button[_ngcontent-%COMP%]{padding:0 .5em}.reverse-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0}.more-actions-button[_ngcontent-%COMP%]{margin-left:auto;border:none;background:inherit}.more-actions-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px}.menu[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]{margin:0}.drawer-header[_ngcontent-%COMP%]{display:flex}.drawer-content[_ngcontent-%COMP%] .reorder-button-wrapper[_ngcontent-%COMP%], .drawer-content[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:2vw;gap:2vw}.drawer-content[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]:first-of-type{margin-top:0}.drawer-content[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{text-align:center;padding:0}"],changeDetection:0}),n})();var bi=r(5136);let yi=(()=>{class n{constructor(e){this.storage=e}getSettings(e){var o;const a=this.storage.getData(this.getStorageKey(e));return a&&null!==(o=JSON.parse(a))&&void 0!==o?o:{}}updateSettings(e,o){o=Object.assign(this.getSettings(e),o);const a=JSON.stringify(o);this.storage.setData(this.getStorageKey(e),a)}getStorageKey(e){return`app-tasks-${e}`}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(le.V))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Si=r(5141);const ce=function(){return{spacer:""}};function Zi(n,i){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",3),t.TgZ(2,"span",4),t._UZ(3,"i"),t.qZA(),t.TgZ(4,"span",5),t._uU(5),t.ALo(6,"duration"),t.qZA(),t.TgZ(7,"span",6),t._uU(8),t.ALo(9,"datarate"),t.qZA(),t.TgZ(10,"span",7),t._uU(11),t.ALo(12,"filesize"),t.qZA(),t.TgZ(13,"span",8),t.ALo(14,"number"),t._uU(15),t.ALo(16,"number"),t.qZA(),t.TgZ(17,"span",9),t._uU(18),t.ALo(19,"quality"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(5),t.hij(" ",t.lcZ(6,6,e.status.rec_elapsed)," "),t.xp6(3),t.hij(" ",t.xi3(9,8,e.status.rec_rate,t.DdM(22,ce))," "),t.xp6(3),t.hij(" ",t.xi3(12,11,e.status.rec_total,t.DdM(23,ce))," "),t.xp6(2),t.MGl("nzTooltipTitle","\u5f39\u5e55\u603b\u8ba1\uff1a",t.xi3(14,14,e.status.danmu_total,"1.0-0"),""),t.xp6(2),t.hij(" ",t.xi3(16,17,e.status.danmu_total,"1.0-0")," "),t.xp6(3),t.hij(" ",e.status.real_quality_number?t.lcZ(19,20,e.status.real_quality_number):""," ")}}function wi(n,i){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",10),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let o,a;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u6dfb\u52a0\u5143\u6570\u636e\uff1a",t.lcZ(2,7,null!==(o=e.status.postprocessing_path)&&void 0!==o?o:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(a=e.status.postprocessing_path)&&void 0!==a?a:"")," "),t.xp6(2),t.Q6J("nzType","line")("nzShowInfo",!1)("nzStrokeLinecap","square")("nzStrokeWidth",2)("nzPercent",null===e.status.postprocessing_progress?0:t.lcZ(6,11,e.status.postprocessing_progress))}}function Fi(n,i){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",12),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let o,a;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u8f6c\u5c01\u88c5\uff1a",t.lcZ(2,7,null!==(o=e.status.postprocessing_path)&&void 0!==o?o:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(a=e.status.postprocessing_path)&&void 0!==a?a:"")," "),t.xp6(2),t.Q6J("nzType","line")("nzShowInfo",!1)("nzStrokeLinecap","square")("nzStrokeWidth",2)("nzPercent",null===e.status.postprocessing_progress?0:t.lcZ(6,11,e.status.postprocessing_progress))}}let Ii=(()=>{class n{constructor(){this.RunningStatus=z.cG}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-status-display"]],inputs:{status:"status"},decls:4,vars:4,consts:[[3,"ngSwitch"],["class","status-display",4,"ngSwitchCase"],[1,"status-display"],[1,"status-bar","recording"],["nz-tooltip","","nzTooltipTitle","\u6b63\u5728\u5f55\u5236","nzTooltipPlacement","top",1,"status-indicator"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u7528\u65f6","nzTooltipPlacement","top",1,"time-elapsed"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u901f\u5ea6","nzTooltipPlacement","top",1,"data-rate"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u603b\u8ba1","nzTooltipPlacement","top",1,"data-count"],["nz-tooltip","","nzTooltipPlacement","top",1,"danmu-count",3,"nzTooltipTitle"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u753b\u8d28","nzTooltipPlacement","leftTop",1,"quality"],["nz-tooltip","","nzTooltipPlacement","top",1,"status-bar","injecting",3,"nzTooltipTitle"],[3,"nzType","nzShowInfo","nzStrokeLinecap","nzStrokeWidth","nzPercent"],["nz-tooltip","","nzTooltipPlacement","top",1,"status-bar","remuxing",3,"nzTooltipTitle"]],template:function(e,o){1&e&&(t.ynx(0,0),t.YNc(1,Zi,20,24,"div",1),t.YNc(2,wi,7,13,"div",1),t.YNc(3,Fi,7,13,"div",1),t.BQk()),2&e&&(t.Q6J("ngSwitch",o.status.running_status),t.xp6(1),t.Q6J("ngSwitchCase",o.RunningStatus.RECORDING),t.xp6(1),t.Q6J("ngSwitchCase",o.RunningStatus.INJECTING),t.xp6(1),t.Q6J("ngSwitchCase",o.RunningStatus.REMUXING))},directives:[_.RF,_.n9,ot.SY,Wt],pipes:[ie,Pt.f,zt,_.JJ,ae.U,bt,se],styles:[".status-bar[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.status-display[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.status-bar[_ngcontent-%COMP%]{display:flex;gap:1rem;font-size:1rem;line-height:1.8}.status-bar.recording[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.status-bar.recording[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:1rem;height:1rem;border-radius:.5rem;color:red;background:red;animation:blinker 1s cubic-bezier(1,0,0,1) infinite}@keyframes blinker{0%{opacity:0}to{opacity:1}}.status-bar.injecting[_ngcontent-%COMP%], .status-bar.remuxing[_ngcontent-%COMP%], .status-bar[_ngcontent-%COMP%] .danmu-count[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.status-bar[_ngcontent-%COMP%] .quality[_ngcontent-%COMP%]{flex:none;margin-left:auto}nz-progress[_ngcontent-%COMP%]{display:flex}nz-progress[_ngcontent-%COMP%] .ant-progress-outer{display:flex}"],changeDetection:0}),n})();var R=r(3523),U=r(8737);function Ni(n,i){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u8def\u5f84\u6a21\u677f "),t.BQk())}function Bi(n,i){1&n&&(t.ynx(0),t._uU(1," \u8def\u5f84\u6a21\u677f\u6709\u9519\u8bef "),t.BQk())}function Ui(n,i){if(1&n&&(t.YNc(0,Ni,2,0,"ng-container",66),t.YNc(1,Bi,2,0,"ng-container",66)),2&n){const e=i.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Ri(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u9009\u62e9\u8981\u5f55\u5236\u7684\u76f4\u64ad\u6d41\u683c\u5f0f "),t._UZ(2,"br"),t._uU(3," FLV: \u7f51\u7edc\u4e0d\u7a33\u5b9a\u5bb9\u6613\u4e2d\u65ad\u4e22\u5931\u6570\u636e\u6216\u5f55\u5236\u5230\u4e8c\u538b\u753b\u8d28 "),t._UZ(4,"br"),t._uU(5," HLS (fmp4): \u57fa\u672c\u4e0d\u53d7\u7f51\u7edc\u6ce2\u52a8\u5f71\u54cd\uff0c\u4f46\u53ea\u6709\u90e8\u5206\u76f4\u64ad\u95f4\u652f\u6301\u3002 "),t._UZ(6,"br"),t._uU(7," P.S. "),t._UZ(8,"br"),t._uU(9," \u5f55\u5236 HLS \u6d41\u9700\u8981 ffmpeg "),t._UZ(10,"br"),t._uU(11," \u5728\u8bbe\u5b9a\u65f6\u95f4\u5185\u6ca1\u6709 fmp4 \u6d41\u4f1a\u81ea\u52a8\u5207\u6362\u5f55\u5236 flv \u6d41 "),t._UZ(12,"br"),t._uU(13," WEB \u7aef\u76f4\u64ad\u64ad\u653e\u5668\u662f Hls7Player \u7684\u76f4\u64ad\u95f4\u652f\u6301\u5f55\u5236 fmp4 \u6d41, fMp4Player \u5219\u4e0d\u652f\u6301\u3002 "),t.qZA())}function Li(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u5982\u679c\u8d85\u8fc7\u6240\u8bbe\u7f6e\u7684\u7b49\u5f85\u65f6\u95f4 fmp4 \u6d41\u8fd8\u6ca1\u6709\u5c31\u5207\u6362\u4e3a\u5f55\u5236 flv \u6d41 "),t._UZ(2,"br"),t._uU(3," fmp4 \u6d41\u5728\u521a\u63a8\u6d41\u662f\u6ca1\u6709\u7684\uff0c\u8981\u8fc7\u4e00\u4f1a\u624d\u6709\u3002 "),t._UZ(4,"br"),t._uU(5," fmp4 \u6d41\u51fa\u73b0\u7684\u65f6\u95f4\u548c\u76f4\u64ad\u5ef6\u8fdf\u6709\u5173\uff0c\u4e00\u822c\u90fd\u5728 10 \u79d2\u5185\uff0c\u4f46\u4e5f\u6709\u5ef6\u8fdf\u6bd4\u8f83\u5927\u8d85\u8fc7 1 \u5206\u949f\u7684\u3002 "),t._UZ(6,"br"),t._uU(7," \u63a8\u8350\u5168\u5c40\u8bbe\u7f6e\u4e3a 10 \u79d2\uff0c\u4e2a\u522b\u5ef6\u8fdf\u6bd4\u8f83\u5927\u7684\u76f4\u64ad\u95f4\u5355\u72ec\u8bbe\u7f6e\u3002 "),t.qZA())}function Ji(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u9ed8\u8ba4: \u6bcf\u4e2a\u5206\u5272\u7684\u5f55\u64ad\u6587\u4ef6\u5bf9\u5e94\u4fdd\u5b58\u4e00\u4e2a\u5c01\u9762\u6587\u4ef6\uff0c\u4e0d\u7ba1\u5c01\u9762\u662f\u5426\u76f8\u540c\u3002"),t._UZ(2,"br"),t._uU(3," \u53bb\u91cd: \u76f8\u540c\u7684\u5c01\u9762\u53ea\u4fdd\u5b58\u4e00\u6b21"),t._UZ(4,"br"),t._uU(5," P.S. "),t._UZ(6,"br"),t._uU(7," \u5224\u65ad\u662f\u5426\u76f8\u540c\u662f\u4f9d\u636e\u5c01\u9762\u6570\u636e\u7684 sha1\uff0c\u53ea\u5728\u5355\u6b21\u5f55\u5236\u5185\u6709\u6548\u3002 "),t.qZA())}function Qi(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8: \u6ca1\u51fa\u9519\u5c31\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(2,"br"),t._uU(3," \u8c28\u614e: \u6ca1\u51fa\u9519\u4e14\u6ca1\u8b66\u544a\u624d\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(4,"br"),t._uU(5," \u4ece\u4e0d: \u603b\u662f\u4fdd\u7559\u6e90\u6587\u4ef6"),t._UZ(6,"br"),t.qZA())}function qi(n,i){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 User Agent "),t.BQk())}function Wi(n,i){1&n&&t.YNc(0,qi,2,0,"ng-container",66),2&n&&t.Q6J("ngIf",i.$implicit.hasError("required"))}function Yi(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"div",3),t.TgZ(3,"h2"),t._uU(4,"\u6587\u4ef6"),t.qZA(),t.TgZ(5,"nz-form-item",4),t.TgZ(6,"nz-form-label",5),t._uU(7,"\u8def\u5f84\u6a21\u677f"),t.qZA(),t.TgZ(8,"nz-form-control",6),t.TgZ(9,"input",7),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.output.pathTemplate=a}),t.qZA(),t.YNc(10,Ui,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(12,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.output.pathTemplate=a?s.globalSettings.output.pathTemplate:null}),t._uU(13,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(14,"nz-form-item",10),t.TgZ(15,"nz-form-label",11),t._uU(16,"\u5927\u5c0f\u9650\u5236"),t.qZA(),t.TgZ(17,"nz-form-control",12),t.TgZ(18,"nz-select",13),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.output.filesizeLimit=a}),t.qZA(),t.qZA(),t.TgZ(19,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.output.filesizeLimit=a?s.globalSettings.output.filesizeLimit:null}),t._uU(20,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(21,"nz-form-item",10),t.TgZ(22,"nz-form-label",11),t._uU(23,"\u65f6\u957f\u9650\u5236"),t.qZA(),t.TgZ(24,"nz-form-control",12),t.TgZ(25,"nz-select",14),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.output.durationLimit=a}),t.qZA(),t.qZA(),t.TgZ(26,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.output.durationLimit=a?s.globalSettings.output.durationLimit:null}),t._uU(27,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(28,"div",15),t.TgZ(29,"h2"),t._uU(30,"\u5f55\u5236"),t.qZA(),t.TgZ(31,"nz-form-item",10),t.TgZ(32,"nz-form-label",11),t._uU(33,"\u76f4\u64ad\u6d41\u683c\u5f0f"),t.qZA(),t.YNc(34,Ri,14,0,"ng-template",null,16,t.W1O),t.TgZ(36,"nz-form-control",12),t.TgZ(37,"nz-select",17),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.streamFormat=a}),t.qZA(),t.qZA(),t.TgZ(38,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.recorder.streamFormat=a?s.globalSettings.recorder.streamFormat:null}),t._uU(39,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(40,"nz-form-item",10),t.TgZ(41,"nz-form-label",11),t._uU(42,"fmp4 \u6d41\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.YNc(43,Li,8,0,"ng-template",null,18,t.W1O),t.TgZ(45,"nz-form-control",12),t.TgZ(46,"nz-select",19,20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.fmp4StreamTimeout=a}),t.qZA(),t.qZA(),t.TgZ(48,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.recorder.fmp4StreamTimeout=a?s.globalSettings.recorder.fmp4StreamTimeout:null}),t._uU(49,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(50,"nz-form-item",10),t.TgZ(51,"nz-form-label",21),t._uU(52,"\u753b\u8d28"),t.qZA(),t.TgZ(53,"nz-form-control",12),t.TgZ(54,"nz-select",22),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.qualityNumber=a}),t.qZA(),t.qZA(),t.TgZ(55,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.recorder.qualityNumber=a?s.globalSettings.recorder.qualityNumber:null}),t._uU(56,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(57,"nz-form-item",10),t.TgZ(58,"nz-form-label",23),t._uU(59,"\u4fdd\u5b58\u5c01\u9762"),t.qZA(),t.TgZ(60,"nz-form-control",24),t.TgZ(61,"nz-switch",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.saveCover=a}),t.qZA(),t.qZA(),t.TgZ(62,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.recorder.saveCover=a?s.globalSettings.recorder.saveCover:null}),t._uU(63,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(64,"nz-form-item",10),t.TgZ(65,"nz-form-label",11),t._uU(66,"\u5c01\u9762\u4fdd\u5b58\u7b56\u7565"),t.qZA(),t.YNc(67,Ji,8,0,"ng-template",null,26,t.W1O),t.TgZ(69,"nz-form-control",12),t.TgZ(70,"nz-select",27),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.coverSaveStrategy=a}),t.qZA(),t.qZA(),t.TgZ(71,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.recorder.coverSaveStrategy=a?s.globalSettings.recorder.coverSaveStrategy:null}),t._uU(72,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(73,"nz-form-item",10),t.TgZ(74,"nz-form-label",28),t._uU(75,"\u6570\u636e\u8bfb\u53d6\u8d85\u65f6"),t.qZA(),t.TgZ(76,"nz-form-control",29),t.TgZ(77,"nz-select",30,31),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.readTimeout=a}),t.qZA(),t.qZA(),t.TgZ(79,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.recorder.readTimeout=a?s.globalSettings.recorder.readTimeout:null}),t._uU(80,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(81,"nz-form-item",10),t.TgZ(82,"nz-form-label",32),t._uU(83,"\u65ad\u7f51\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.TgZ(84,"nz-form-control",12),t.TgZ(85,"nz-select",33),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.disconnectionTimeout=a}),t.qZA(),t.qZA(),t.TgZ(86,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.recorder.bufferSize=a?s.globalSettings.recorder.bufferSize:null}),t._uU(87,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(88,"nz-form-item",10),t.TgZ(89,"nz-form-label",34),t._uU(90,"\u786c\u76d8\u5199\u5165\u7f13\u51b2"),t.qZA(),t.TgZ(91,"nz-form-control",12),t.TgZ(92,"nz-select",35),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.bufferSize=a}),t.qZA(),t.qZA(),t.TgZ(93,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.recorder.bufferSize=a?s.globalSettings.recorder.bufferSize:null}),t._uU(94,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(95,"div",36),t.TgZ(96,"h2"),t._uU(97,"\u5f39\u5e55"),t.qZA(),t.TgZ(98,"nz-form-item",10),t.TgZ(99,"nz-form-label",37),t._uU(100,"\u8bb0\u5f55\u793c\u7269"),t.qZA(),t.TgZ(101,"nz-form-control",24),t.TgZ(102,"nz-switch",38),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.recordGiftSend=a}),t.qZA(),t.qZA(),t.TgZ(103,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.danmaku.recordGiftSend=a?s.globalSettings.danmaku.recordGiftSend:null}),t._uU(104,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(105,"nz-form-item",10),t.TgZ(106,"nz-form-label",39),t._uU(107,"\u8bb0\u5f55\u514d\u8d39\u793c\u7269"),t.qZA(),t.TgZ(108,"nz-form-control",24),t.TgZ(109,"nz-switch",40),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.recordFreeGifts=a}),t.qZA(),t.qZA(),t.TgZ(110,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.danmaku.recordFreeGifts=a?s.globalSettings.danmaku.recordFreeGifts:null}),t._uU(111,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(112,"nz-form-item",10),t.TgZ(113,"nz-form-label",41),t._uU(114,"\u8bb0\u5f55\u4e0a\u8230"),t.qZA(),t.TgZ(115,"nz-form-control",24),t.TgZ(116,"nz-switch",42),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.recordGuardBuy=a}),t.qZA(),t.qZA(),t.TgZ(117,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.danmaku.recordGuardBuy=a?s.globalSettings.danmaku.recordGuardBuy:null}),t._uU(118,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(119,"nz-form-item",10),t.TgZ(120,"nz-form-label",43),t._uU(121,"\u8bb0\u5f55 Super Chat"),t.qZA(),t.TgZ(122,"nz-form-control",24),t.TgZ(123,"nz-switch",44),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.recordSuperChat=a}),t.qZA(),t.qZA(),t.TgZ(124,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.danmaku.recordSuperChat=a?s.globalSettings.danmaku.recordSuperChat:null}),t._uU(125,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(126,"nz-form-item",10),t.TgZ(127,"nz-form-label",45),t._uU(128,"\u5f39\u5e55\u524d\u52a0\u7528\u6237\u540d"),t.qZA(),t.TgZ(129,"nz-form-control",24),t.TgZ(130,"nz-switch",46),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.danmuUname=a}),t.qZA(),t.qZA(),t.TgZ(131,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.danmaku.danmuUname=a?s.globalSettings.danmaku.danmuUname:null}),t._uU(132,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(133,"nz-form-item",10),t.TgZ(134,"nz-form-label",47),t._uU(135,"\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55"),t.qZA(),t.TgZ(136,"nz-form-control",24),t.TgZ(137,"nz-switch",48),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.saveRawDanmaku=a}),t.qZA(),t.qZA(),t.TgZ(138,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.danmaku.saveRawDanmaku=a?s.globalSettings.danmaku.saveRawDanmaku:null}),t._uU(139,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(140,"div",49),t.TgZ(141,"h2"),t._uU(142,"\u6587\u4ef6\u5904\u7406"),t.qZA(),t.TgZ(143,"nz-form-item",10),t.TgZ(144,"nz-form-label",50),t._uU(145,"flv \u6dfb\u52a0\u5143\u6570\u636e"),t.qZA(),t.TgZ(146,"nz-form-control",24),t.TgZ(147,"nz-switch",51),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.postprocessing.injectExtraMetadata=a}),t.qZA(),t.qZA(),t.TgZ(148,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.postprocessing.injectExtraMetadata=a?s.globalSettings.postprocessing.injectExtraMetadata:null}),t._uU(149,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(150,"nz-form-item",10),t.TgZ(151,"nz-form-label",52),t._uU(152,"flv \u8f6c\u5c01\u88c5\u4e3a mp4"),t.qZA(),t.TgZ(153,"nz-form-control",24),t.TgZ(154,"nz-switch",53),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.postprocessing.remuxToMp4=a}),t.qZA(),t.qZA(),t.TgZ(155,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.postprocessing.remuxToMp4=a?s.globalSettings.postprocessing.remuxToMp4:null}),t._uU(156,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(157,"nz-form-item",10),t.TgZ(158,"nz-form-label",11),t._uU(159,"\u6e90\u6587\u4ef6\u5220\u9664\u7b56\u7565"),t.qZA(),t.YNc(160,Qi,7,0,"ng-template",null,54,t.W1O),t.TgZ(162,"nz-form-control",12),t.TgZ(163,"nz-select",55),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.postprocessing.deleteSource=a}),t.qZA(),t.qZA(),t.TgZ(164,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.postprocessing.deleteSource=a?s.globalSettings.postprocessing.deleteSource:null}),t._uU(165,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(166,"div",56),t.TgZ(167,"h2"),t._uU(168,"\u7f51\u7edc\u8bf7\u6c42"),t.qZA(),t.TgZ(169,"nz-form-item",57),t.TgZ(170,"nz-form-label",58),t._uU(171,"User Agent"),t.qZA(),t.TgZ(172,"nz-form-control",59),t.TgZ(173,"textarea",60,61),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.header.userAgent=a}),t.qZA(),t.qZA(),t.YNc(175,Wi,1,1,"ng-template",null,8,t.W1O),t.TgZ(177,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.header.userAgent=a?s.globalSettings.header.userAgent:null}),t._uU(178,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(179,"nz-form-item",57),t.TgZ(180,"nz-form-label",62),t._uU(181,"Cookie"),t.qZA(),t.TgZ(182,"nz-form-control",63),t.TgZ(183,"textarea",64,65),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.header.cookie=a}),t.qZA(),t.qZA(),t.TgZ(185,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.header.cookie=a?s.globalSettings.header.cookie:null}),t._uU(186,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&n){const e=t.MAs(11),o=t.MAs(35),a=t.MAs(44),s=t.MAs(68),d=t.MAs(78),x=t.MAs(161),M=t.MAs(174),E=t.MAs(184),l=t.oxw();t.xp6(8),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",l.pathTemplatePattern)("ngModel",l.model.output.pathTemplate)("disabled",null===l.options.output.pathTemplate),t.xp6(3),t.Q6J("nzChecked",null!==l.options.output.pathTemplate),t.xp6(3),t.Q6J("nzTooltipTitle",l.splitFileTip),t.xp6(3),t.Q6J("ngModel",l.model.output.filesizeLimit)("disabled",null===l.options.output.filesizeLimit)("nzOptions",l.filesizeLimitOptions),t.xp6(1),t.Q6J("nzChecked",null!==l.options.output.filesizeLimit),t.xp6(3),t.Q6J("nzTooltipTitle",l.splitFileTip),t.xp6(3),t.Q6J("ngModel",l.model.output.durationLimit)("disabled",null===l.options.output.durationLimit)("nzOptions",l.durationLimitOptions),t.xp6(1),t.Q6J("nzChecked",null!==l.options.output.durationLimit),t.xp6(6),t.Q6J("nzTooltipTitle",o),t.xp6(5),t.Q6J("ngModel",l.model.recorder.streamFormat)("disabled",null===l.options.recorder.streamFormat)("nzOptions",l.streamFormatOptions),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.streamFormat),t.xp6(3),t.Q6J("nzTooltipTitle",a),t.xp6(5),t.Q6J("ngModel",l.model.recorder.fmp4StreamTimeout)("disabled",null===l.options.recorder.fmp4StreamTimeout)("nzOptions",l.fmp4StreamTimeoutOptions),t.xp6(2),t.Q6J("nzChecked",null!==l.options.recorder.fmp4StreamTimeout),t.xp6(6),t.Q6J("ngModel",l.model.recorder.qualityNumber)("disabled",null===l.options.recorder.qualityNumber)("nzOptions",l.qualityOptions),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.qualityNumber),t.xp6(6),t.Q6J("ngModel",l.model.recorder.saveCover)("disabled",null===l.options.recorder.saveCover),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.saveCover),t.xp6(3),t.Q6J("nzTooltipTitle",s),t.xp6(5),t.Q6J("ngModel",l.model.recorder.coverSaveStrategy)("disabled",null===l.options.recorder.coverSaveStrategy||!l.options.recorder.saveCover)("nzOptions",l.coverSaveStrategies),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.coverSaveStrategy),t.xp6(5),t.Q6J("nzValidateStatus",d.value>3?"warning":d),t.xp6(1),t.Q6J("ngModel",l.model.recorder.readTimeout)("disabled",null===l.options.recorder.readTimeout)("nzOptions",l.readTimeoutOptions),t.xp6(2),t.Q6J("nzChecked",null!==l.options.recorder.readTimeout),t.xp6(6),t.Q6J("ngModel",l.model.recorder.disconnectionTimeout)("disabled",null===l.options.recorder.disconnectionTimeout)("nzOptions",l.disconnectionTimeoutOptions)("nzOptionOverflowSize",6),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.bufferSize),t.xp6(6),t.Q6J("ngModel",l.model.recorder.bufferSize)("disabled",null===l.options.recorder.bufferSize)("nzOptions",l.bufferOptions)("nzOptionOverflowSize",6),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.bufferSize),t.xp6(9),t.Q6J("ngModel",l.model.danmaku.recordGiftSend)("disabled",null===l.options.danmaku.recordGiftSend),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordGiftSend),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.recordFreeGifts)("disabled",null===l.options.danmaku.recordFreeGifts),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordFreeGifts),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.recordGuardBuy)("disabled",null===l.options.danmaku.recordGuardBuy),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordGuardBuy),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.recordSuperChat)("disabled",null===l.options.danmaku.recordSuperChat),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordSuperChat),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.danmuUname)("disabled",null===l.options.danmaku.danmuUname),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.danmuUname),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.saveRawDanmaku)("disabled",null===l.options.danmaku.saveRawDanmaku),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.saveRawDanmaku),t.xp6(9),t.Q6J("ngModel",l.model.postprocessing.injectExtraMetadata)("disabled",null===l.options.postprocessing.injectExtraMetadata||!!l.options.postprocessing.remuxToMp4),t.xp6(1),t.Q6J("nzChecked",null!==l.options.postprocessing.injectExtraMetadata),t.xp6(6),t.Q6J("ngModel",l.model.postprocessing.remuxToMp4)("disabled",null===l.options.postprocessing.remuxToMp4),t.xp6(1),t.Q6J("nzChecked",null!==l.options.postprocessing.remuxToMp4),t.xp6(3),t.Q6J("nzTooltipTitle",x),t.xp6(5),t.Q6J("ngModel",l.model.postprocessing.deleteSource)("disabled",null===l.options.postprocessing.deleteSource||!l.options.postprocessing.remuxToMp4)("nzOptions",l.deleteStrategies),t.xp6(1),t.Q6J("nzChecked",null!==l.options.postprocessing.deleteSource),t.xp6(8),t.Q6J("nzWarningTip",l.warningTip)("nzValidateStatus",M.valid&&l.options.header.userAgent!==l.taskOptions.header.userAgent&&l.options.header.userAgent!==l.globalSettings.header.userAgent?"warning":M)("nzErrorTip",e),t.xp6(1),t.Q6J("rows",3)("ngModel",l.model.header.userAgent)("disabled",null===l.options.header.userAgent),t.xp6(4),t.Q6J("nzChecked",null!==l.options.header.userAgent),t.xp6(5),t.Q6J("nzWarningTip",l.warningTip)("nzValidateStatus",E.valid&&l.options.header.cookie!==l.taskOptions.header.cookie&&l.options.header.cookie!==l.globalSettings.header.cookie?"warning":E),t.xp6(1),t.Q6J("rows",3)("ngModel",l.model.header.cookie)("disabled",null===l.options.header.cookie),t.xp6(2),t.Q6J("nzChecked",null!==l.options.header.cookie)}}let Ki=(()=>{class n{constructor(e){this.changeDetector=e,this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.afterOpen=new t.vpe,this.afterClose=new t.vpe,this.warningTip="\u9700\u8981\u91cd\u542f\u5f39\u5e55\u5ba2\u6237\u7aef\u624d\u80fd\u751f\u6548\uff0c\u5982\u679c\u4efb\u52a1\u6b63\u5728\u5f55\u5236\u53ef\u80fd\u4f1a\u4e22\u5931\u5f39\u5e55\uff01",this.splitFileTip=U.Uk,this.pathTemplatePattern=U._m,this.filesizeLimitOptions=(0,R.Z)(U.Pu),this.durationLimitOptions=(0,R.Z)(U.Fg),this.streamFormatOptions=(0,R.Z)(U.tp),this.fmp4StreamTimeoutOptions=(0,R.Z)(U.D4),this.qualityOptions=(0,R.Z)(U.O6),this.readTimeoutOptions=(0,R.Z)(U.D4),this.disconnectionTimeoutOptions=(0,R.Z)(U.$w),this.bufferOptions=(0,R.Z)(U.Rc),this.deleteStrategies=(0,R.Z)(U.rc),this.coverSaveStrategies=(0,R.Z)(U.J_)}ngOnChanges(){this.options=(0,R.Z)(this.taskOptions),this.setupModel(),this.changeDetector.markForCheck()}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit((0,lt.e5)(this.options,this.taskOptions)),this.close()}setupModel(){const e={};for(const o of Object.keys(this.options)){const d=this.globalSettings[o];Reflect.set(e,o,new Proxy(this.options[o],{get:(x,M)=>{var E;return null!==(E=Reflect.get(x,M))&&void 0!==E?E:Reflect.get(d,M)},set:(x,M,E)=>Reflect.set(x,M,E)}))}this.model=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-settings-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(m.F,5),2&e){let a;t.iGM(a=t.CRH())&&(o.ngForm=a.first)}},inputs:{taskOptions:"taskOptions",globalSettings:"globalSettings",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm",afterOpen:"afterOpen",afterClose:"afterClose"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4efb\u52a1\u8bbe\u7f6e","nzCentered","",3,"nzVisible","nzOkDisabled","nzOnOk","nzOnCancel","nzAfterOpen","nzAfterClose"],[4,"nzModalContent"],["nz-form","","ngForm",""],["ngModelGroup","output",1,"form-group","output"],[1,"setting-item","input"],["nzNoColon","","nzTooltipTitle","\u53d8\u91cf\u8bf4\u660e\u8bf7\u67e5\u770b\u5bf9\u5e94\u5168\u5c40\u8bbe\u7f6e",1,"setting-label"],[1,"setting-control","input",3,"nzErrorTip"],["type","text","required","","nz-input","","name","pathTemplate",3,"pattern","ngModel","disabled","ngModelChange"],["errorTip",""],["nz-checkbox","",3,"nzChecked","nzCheckedChange"],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],[1,"setting-control","select"],["name","filesizeLimit",3,"ngModel","disabled","nzOptions","ngModelChange"],["name","durationLimit",3,"ngModel","disabled","nzOptions","ngModelChange"],["ngModelGroup","recorder",1,"form-group","recorder"],["streamFormatTip",""],["name","streamFormat",3,"ngModel","disabled","nzOptions","ngModelChange"],["fmp4StreamTimeoutTip",""],["name","fmp4StreamTimeout",3,"ngModel","disabled","nzOptions","ngModelChange"],["fmp4StreamTimeout","ngModel"],["nzNoColon","","nzTooltipTitle","\u6240\u9009\u753b\u8d28\u4e0d\u5b58\u5728\u5c06\u4ee5\u539f\u753b\u4ee3\u66ff",1,"setting-label"],["name","qualityNumber",3,"ngModel","disabled","nzOptions","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u5f55\u64ad\u6587\u4ef6\u5b8c\u6210\u65f6\u4fdd\u5b58\u5f53\u524d\u76f4\u64ad\u95f4\u7684\u5c01\u9762",1,"setting-label"],[1,"setting-control","switch"],["name","saveCover",3,"ngModel","disabled","ngModelChange"],["coverSaveStrategyTip",""],["name","coverSaveStrategy",3,"ngModel","disabled","nzOptions","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u8d85\u65f6\u65f6\u95f4\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u957f\u76f8\u5bf9\u4e0d\u5bb9\u6613\u56e0\u7f51\u7edc\u4e0d\u7a33\u5b9a\u800c\u51fa\u73b0\u6d41\u4e2d\u65ad\uff0c\u4f46\u662f\u4e00\u65e6\u51fa\u73b0\u4e2d\u65ad\u5c31\u65e0\u6cd5\u5b9e\u73b0\u65e0\u7f1d\u62fc\u63a5\u4e14\u6f0f\u5f55\u8f83\u591a\u3002",1,"setting-label"],["nzWarningTip","\u65e0\u7f1d\u62fc\u63a5\u4f1a\u5931\u6548\uff01",1,"setting-control","select",3,"nzValidateStatus"],["name","readTimeout",3,"ngModel","disabled","nzOptions","ngModelChange"],["readTimeout","ngModel"],["nzNoColon","","nzTooltipTitle","\u65ad\u7f51\u8d85\u8fc7\u7b49\u5f85\u65f6\u95f4\u5c31\u7ed3\u675f\u5f55\u5236\uff0c\u5982\u679c\u7f51\u7edc\u6062\u590d\u540e\u4ecd\u672a\u4e0b\u64ad\u4f1a\u81ea\u52a8\u91cd\u65b0\u5f00\u59cb\u5f55\u5236\u3002",1,"setting-label"],["name","disconnectionTimeout",3,"ngModel","disabled","nzOptions","nzOptionOverflowSize","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u786c\u76d8\u5199\u5165\u7f13\u51b2\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u5927\u53ef\u4ee5\u51cf\u5c11\u5bf9\u786c\u76d8\u7684\u5199\u5165\uff0c\u4f46\u9700\u8981\u5360\u7528\u66f4\u591a\u7684\u5185\u5b58\u3002",1,"setting-label"],["name","bufferSize",3,"ngModel","disabled","nzOptions","nzOptionOverflowSize","ngModelChange"],["ngModelGroup","danmaku",1,"form-group","danmaku"],["nzFor","recordGiftSend","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordGiftSend","name","recordGiftSend",3,"ngModel","disabled","ngModelChange"],["nzFor","recordFreeGifts","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u514d\u8d39\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordFreeGifts","name","recordFreeGifts",3,"ngModel","disabled","ngModelChange"],["nzFor","recordGuardBuy","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u4e0a\u8230\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordGuardBuy","name","recordGuardBuy",3,"ngModel","disabled","ngModelChange"],["nzFor","recordSuperChat","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55 Super Chat \u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordSuperChat","name","recordSuperChat",3,"ngModel","disabled","ngModelChange"],["nzFor","danmuUname","nzNoColon","","nzTooltipTitle","\u53d1\u9001\u8005: \u5f39\u5e55\u5185\u5bb9",1,"setting-label"],["id","danmuUname","name","danmuUname",3,"ngModel","disabled","ngModelChange"],["nzFor","saveRawDanmaku","nzNoColon","","nzTooltipTitle","\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55\u5230 JSON lines \u6587\u4ef6\uff0c\u4e3b\u8981\u7528\u4e8e\u5206\u6790\u8c03\u8bd5\u3002",1,"setting-label"],["id","saveRawDanmaku","name","saveRawDanmaku",3,"ngModel","disabled","ngModelChange"],["ngModelGroup","postprocessing",1,"form-group","postprocessing"],["nzNoColon","","nzTooltipTitle","\u6dfb\u52a0\u5173\u952e\u5e27\u7b49\u5143\u6570\u636e\u4f7f\u5b9a\u4f4d\u64ad\u653e\u548c\u62d6\u8fdb\u5ea6\u6761\u4e0d\u4f1a\u5361\u987f",1,"setting-label"],["name","injectExtraMetadata",3,"ngModel","disabled","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u8c03\u7528 ffmpeg \u8fdb\u884c\u8f6c\u6362\uff0c\u9700\u8981\u5b89\u88c5 ffmpeg \u3002",1,"setting-label"],["name","remuxToMp4",3,"ngModel","disabled","ngModelChange"],["deleteSourceTip",""],["name","deleteSource",3,"ngModel","disabled","nzOptions","ngModelChange"],["ngModelGroup","header",1,"form-group","header"],[1,"setting-item","textarea"],["nzFor","userAgent","nzNoColon","",1,"setting-label"],[1,"setting-control","textarea",3,"nzWarningTip","nzValidateStatus","nzErrorTip"],["nz-input","","required","","id","userAgent","name","userAgent",3,"rows","ngModel","disabled","ngModelChange"],["userAgent","ngModel"],["nzFor","cookie","nzNoColon","",1,"setting-label"],[1,"setting-control","textarea",3,"nzWarningTip","nzValidateStatus"],["nz-input","","id","cookie","name","cookie",3,"rows","ngModel","disabled","ngModelChange"],["cookie","ngModel"],[4,"ngIf"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return o.handleConfirm()})("nzOnCancel",function(){return o.handleCancel()})("nzAfterOpen",function(){return o.afterOpen.emit()})("nzAfterClose",function(){return o.afterClose.emit()}),t.YNc(1,Yi,187,94,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",o.visible)("nzOkDisabled",null==o.ngForm||null==o.ngForm.form?null:o.ngForm.form.invalid)},directives:[$.du,$.Hf,m._Y,m.JL,m.F,W.Lr,m.Mq,h.SK,W.Nx,h.t3,W.iK,W.Fd,tt.Zp,m.Fj,m.Q7,m.c5,m.JJ,m.On,_.O5,Bt.Ie,Mt.Vq,Dt.i],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}nz-divider[_ngcontent-%COMP%]{margin:0!important}.form-group[_ngcontent-%COMP%]:last-child .setting-item[_ngcontent-%COMP%]:last-child{padding-bottom:0}.setting-item[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);align-items:center;padding:1em 0;grid-gap:1em;gap:1em;border:none}.setting-item[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:0!important}.setting-item[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{justify-self:start}.setting-item[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%]{justify-self:center}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{justify-self:end}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%] span:last-of-type{padding-right:0}.setting-item.input[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.setting-item.input[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{grid-row:1/2;grid-column:1/2;justify-self:center}.setting-item.input[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%]{grid-row:2/3;grid-column:1/-1;justify-self:stretch}.setting-item.input[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{grid-row:1/2;grid-column:2/3;justify-self:center}@media screen and (max-width: 450px){.setting-item[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.setting-item[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{grid-column:1/-1;justify-self:center}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{justify-self:end}}"],changeDetection:0}),n})();function _e(n,i,e,o,a,s,d){try{var x=n[s](d),M=x.value}catch(E){return void e(E)}x.done?i(M):Promise.resolve(M).then(o,a)}var wt=r(5254),ji=r(3753),$i=r(2313);const Ft=new Map,It=new Map;let Vi=(()=>{class n{constructor(e){this.domSanitizer=e}transform(e,o="object"){return"object"===o?It.has(e)?(0,B.of)(It.get(e)):(0,wt.D)(this.fetchImage(e)).pipe((0,V.U)(a=>URL.createObjectURL(a)),(0,V.U)(a=>this.domSanitizer.bypassSecurityTrustUrl(a)),(0,w.b)(a=>It.set(e,a)),(0,rt.K)(()=>(0,B.of)(this.domSanitizer.bypassSecurityTrustUrl("")))):Ft.has(e)?(0,B.of)(Ft.get(e)):(0,wt.D)(this.fetchImage(e)).pipe((0,at.w)(a=>this.createDataURL(a)),(0,w.b)(a=>Ft.set(e,a)),(0,rt.K)(()=>(0,B.of)(this.domSanitizer.bypassSecurityTrustUrl(""))))}fetchImage(e){return function Gi(n){return function(){var i=this,e=arguments;return new Promise(function(o,a){var s=n.apply(i,e);function d(M){_e(s,o,a,d,x,"next",M)}function x(M){_e(s,o,a,d,x,"throw",M)}d(void 0)})}}(function*(){return yield(yield fetch(e,{referrer:""})).blob()})()}createDataURL(e){const o=new FileReader,a=(0,ji.R)(o,"load").pipe((0,V.U)(()=>this.domSanitizer.bypassSecurityTrustUrl(o.result)));return o.readAsDataURL(e),a}}return n.\u0275fac=function(e){return new(e||n)(t.Y36($i.H7,16))},n.\u0275pipe=t.Yjl({name:"dataurl",type:n,pure:!0}),n})();function Hi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"app-info-panel",21),t.NdJ("close",function(){return t.CHM(e),t.oxw(2).showInfoPanel=!1}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("data",e.data)}}const Xi=function(n){return[n,"detail"]};function ta(n,i){if(1&n&&(t.TgZ(0,"a",15),t.TgZ(1,"div",16),t._UZ(2,"img",17),t.ALo(3,"async"),t.ALo(4,"dataurl"),t.TgZ(5,"h2",18),t._uU(6),t.qZA(),t.YNc(7,Hi,1,1,"app-info-panel",19),t._UZ(8,"app-status-display",20),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.Q6J("routerLink",t.VKq(10,Xi,e.data.room_info.room_id)),t.xp6(2),t.Q6J("src",t.lcZ(3,6,t.lcZ(4,8,e.data.room_info.cover)),t.LSH),t.xp6(3),t.Q6J("nzTooltipTitle","\u76f4\u64ad\u95f4\u6807\u9898\uff1a"+e.data.room_info.title),t.xp6(1),t.hij(" ",e.data.room_info.title," "),t.xp6(1),t.Q6J("ngIf",e.showInfoPanel),t.xp6(1),t.Q6J("status",e.data.task_status)}}function ea(n,i){if(1&n&&(t._UZ(0,"nz-avatar",22),t.ALo(1,"async"),t.ALo(2,"dataurl")),2&n){const e=t.oxw();t.Q6J("nzShape","square")("nzSize",54)("nzSrc",t.lcZ(1,3,t.lcZ(2,5,e.data.user_info.face)))}}function na(n,i){1&n&&(t.TgZ(0,"nz-tag",31),t._UZ(1,"i",32),t.TgZ(2,"span"),t._uU(3,"\u672a\u5f00\u64ad"),t.qZA(),t.qZA())}function oa(n,i){1&n&&(t.TgZ(0,"nz-tag",33),t._UZ(1,"i",34),t.TgZ(2,"span"),t._uU(3,"\u76f4\u64ad\u4e2d"),t.qZA(),t.qZA())}function ia(n,i){1&n&&(t.TgZ(0,"nz-tag",35),t._UZ(1,"i",36),t.TgZ(2,"span"),t._uU(3,"\u8f6e\u64ad\u4e2d"),t.qZA(),t.qZA())}function aa(n,i){if(1&n&&(t.TgZ(0,"p",23),t.TgZ(1,"span",24),t.TgZ(2,"a",25),t._uU(3),t.qZA(),t.qZA(),t.TgZ(4,"span",26),t.ynx(5,27),t.YNc(6,na,4,0,"nz-tag",28),t.YNc(7,oa,4,0,"nz-tag",29),t.YNc(8,ia,4,0,"nz-tag",30),t.BQk(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.MGl("href","https://space.bilibili.com/",e.data.user_info.uid,"",t.LSH),t.xp6(1),t.hij(" ",e.data.user_info.name," "),t.xp6(2),t.Q6J("ngSwitch",e.data.room_info.live_status),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1),t.xp6(1),t.Q6J("ngSwitchCase",2)}}function sa(n,i){if(1&n&&(t.TgZ(0,"span",44),t.TgZ(1,"a",25),t._uU(2),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.MGl("href","https://live.bilibili.com/",e.data.room_info.short_room_id,"",t.LSH),t.xp6(1),t.hij(" ",e.data.room_info.short_room_id,"")}}function ra(n,i){if(1&n&&(t.TgZ(0,"p",37),t.TgZ(1,"span",38),t.TgZ(2,"span",39),t._uU(3,"\u623f\u95f4\u53f7\uff1a"),t.qZA(),t.YNc(4,sa,3,2,"span",40),t.TgZ(5,"span",41),t.TgZ(6,"a",25),t._uU(7),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"span",42),t.TgZ(9,"a",25),t.TgZ(10,"nz-tag",43),t._uU(11),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(4),t.Q6J("ngIf",e.data.room_info.short_room_id),t.xp6(2),t.MGl("href","https://live.bilibili.com/",e.data.room_info.room_id,"",t.LSH),t.xp6(1),t.Oqu(e.data.room_info.room_id),t.xp6(2),t.hYB("href","https://live.bilibili.com/p/eden/area-tags?parentAreaId=",e.data.room_info.parent_area_id,"&areaId=",e.data.room_info.area_id,"",t.LSH),t.xp6(1),t.Q6J("nzColor","#23ade5"),t.xp6(1),t.hij(" ",e.data.room_info.area_name," ")}}function la(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-switch",45),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleRecorder()}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzDisabled",e.toggleRecorderForbidden)("ngModel",e.data.task_status.recorder_enabled)("nzControl",!0)("nzLoading",e.switchPending)}}function ca(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",46),t.NdJ("click",function(){return t.CHM(e),t.oxw().cutStream()}),t._UZ(1,"i",47),t.qZA()}if(2&n){const e=t.oxw();t.ekj("not-allowed",e.data.task_status.running_status!==e.RunningStatus.RECORDING)}}function ua(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-task-settings-dialog",51),t.NdJ("visibleChange",function(a){return t.CHM(e),t.oxw(2).settingsDialogVisible=a})("confirm",function(a){return t.CHM(e),t.oxw(2).changeTaskOptions(a)})("afterClose",function(){return t.CHM(e),t.oxw(2).cleanSettingsData()}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("taskOptions",e.taskOptions)("globalSettings",e.globalSettings)("visible",e.settingsDialogVisible)}}function pa(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",48),t.NdJ("click",function(){return t.CHM(e),t.oxw().openSettingsDialog()}),t._UZ(1,"i",49),t.qZA(),t.YNc(2,ua,2,3,"ng-container",50)}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.taskOptions&&e.globalSettings)}}function ga(n,i){if(1&n&&(t.TgZ(0,"div",54),t._UZ(1,"i",55),t.qZA()),2&n){t.oxw(2);const e=t.MAs(20);t.Q6J("nzDropdownMenu",e)}}function da(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",56),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!0}),t._UZ(1,"i",55),t.qZA()}}function ma(n,i){if(1&n&&(t.YNc(0,ga,2,1,"div",52),t.YNc(1,da,2,0,"div",53)),2&n){const e=t.oxw();t.Q6J("ngIf",!e.useDrawer),t.xp6(1),t.Q6J("ngIf",e.useDrawer)}}function ha(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"ul",57),t.TgZ(1,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().startTask()}),t._uU(2,"\u8fd0\u884c\u4efb\u52a1"),t.qZA(),t.TgZ(3,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopTask()}),t._uU(4,"\u505c\u6b62\u4efb\u52a1"),t.qZA(),t.TgZ(5,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeTask()}),t._uU(6,"\u5220\u9664\u4efb\u52a1"),t.qZA(),t.TgZ(7,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopTask(!0)}),t._uU(8,"\u5f3a\u5236\u505c\u6b62\u4efb\u52a1"),t.qZA(),t.TgZ(9,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableRecorder(!0)}),t._uU(10,"\u5f3a\u5236\u5173\u95ed\u5f55\u5236"),t.qZA(),t.TgZ(11,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateTaskInfo()}),t._uU(12,"\u5237\u65b0\u6570\u636e"),t.qZA(),t.TgZ(13,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().showInfoPanel=!0}),t._uU(14,"\u663e\u793a\u5f55\u5236\u4fe1\u606f"),t.qZA(),t.qZA()}}function fa(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",61),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!1}),t.GkF(2,12),t.qZA(),t.BQk()}if(2&n){t.oxw(2);const e=t.MAs(23);t.xp6(2),t.Q6J("ngTemplateOutlet",e)}}const Ca=function(){return{padding:"0"}};function za(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",59),t.NdJ("nzVisibleChange",function(a){return t.CHM(e),t.oxw().menuDrawerVisible=a})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(1,fa,3,1,"ng-container",60),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(3,Ca))("nzVisible",e.menuDrawerVisible)}}const Ta=function(n,i,e,o){return[n,i,e,o]},xa=function(){return{padding:"0.5rem"}},Da=function(){return{size:"large"}};let Ma=(()=>{class n{constructor(e,o,a,s,d,x,M){this.changeDetector=o,this.message=a,this.modal=s,this.settingService=d,this.taskManager=x,this.appTaskSettings=M,this.stopped=!1,this.destroyed=new C.xQ,this.useDrawer=!1,this.menuDrawerVisible=!1,this.switchPending=!1,this.settingsDialogVisible=!1,this.RunningStatus=z.cG,e.observe(ct[0]).pipe((0,O.R)(this.destroyed)).subscribe(E=>{this.useDrawer=E.matches,o.markForCheck()})}get roomId(){return this.data.room_info.room_id}get toggleRecorderForbidden(){return!this.data.task_status.monitor_enabled}get showInfoPanel(){return Boolean(this.appTaskSettings.getSettings(this.roomId).showInfoPanel)}set showInfoPanel(e){this.appTaskSettings.updateSettings(this.roomId,{showInfoPanel:e})}ngOnChanges(e){console.debug("[ngOnChanges]",this.roomId,e),this.stopped=this.data.task_status.running_status===z.cG.STOPPED}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}updateTaskInfo(){this.taskManager.updateTaskInfo(this.roomId).subscribe()}toggleRecorder(){this.toggleRecorderForbidden||this.switchPending||(this.switchPending=!0,this.data.task_status.recorder_enabled?this.taskManager.disableRecorder(this.roomId).subscribe(()=>this.switchPending=!1):this.taskManager.enableRecorder(this.roomId).subscribe(()=>this.switchPending=!1))}removeTask(){this.taskManager.removeTask(this.roomId).subscribe()}startTask(){this.data.task_status.running_status===z.cG.STOPPED?this.taskManager.startTask(this.roomId).subscribe():this.message.warning("\u4efb\u52a1\u8fd0\u884c\u4e2d\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}stopTask(e=!1){this.data.task_status.running_status!==z.cG.STOPPED?e&&this.data.task_status.running_status==z.cG.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.stopTask(this.roomId,e).subscribe(o,a)})}):this.taskManager.stopTask(this.roomId).subscribe():this.message.warning("\u4efb\u52a1\u5904\u4e8e\u505c\u6b62\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}disableRecorder(e=!1){this.data.task_status.recorder_enabled?e&&this.data.task_status.running_status==z.cG.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.disableRecorder(this.roomId,e).subscribe(o,a)})}):this.taskManager.disableRecorder(this.roomId).subscribe():this.message.warning("\u5f55\u5236\u5904\u4e8e\u5173\u95ed\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}openSettingsDialog(){(0,ee.$R)(this.settingService.getTaskOptions(this.roomId),this.settingService.getSettings(["output","header","danmaku","recorder","postprocessing"])).subscribe(([e,o])=>{this.taskOptions=e,this.globalSettings=o,this.settingsDialogVisible=!0,this.changeDetector.markForCheck()},e=>{this.message.error(`\u83b7\u53d6\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${e.message}`)})}cleanSettingsData(){delete this.taskOptions,delete this.globalSettings,this.changeDetector.markForCheck()}changeTaskOptions(e){this.settingService.changeTaskOptions(this.roomId,e).pipe((0,Et.X)(3,300)).subscribe(o=>{this.message.success("\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u6210\u529f")},o=>{this.message.error(`\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${o.message}`)})}cutStream(){this.data.task_status.running_status===z.cG.RECORDING&&this.taskManager.cutStream(this.roomId).subscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(y.Yg),t.Y36(t.sBO),t.Y36(yt.dD),t.Y36($.Sf),t.Y36(bi.R),t.Y36(St),t.Y36(yi))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-item"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("stopped",o.stopped)},inputs:{data:"data"},features:[t.TTD],decls:25,vars:19,consts:[[3,"nzCover","nzHoverable","nzActions","nzBodyStyle"],[3,"nzActive","nzLoading","nzAvatar"],[3,"nzAvatar","nzTitle","nzDescription"],["coverTemplate",""],["avatarTemplate",""],["titleTemplate",""],["descTemplate",""],["actionSwitch",""],["actionDelete",""],["actionSetting",""],["actionMore",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],[3,"routerLink"],[1,"cover-wrapper"],["alt","\u76f4\u64ad\u95f4\u5c01\u9762",1,"cover",3,"src"],["nz-tooltip","","nzTooltipPlacement","bottomLeft",1,"title",3,"nzTooltipTitle"],[3,"data","close",4,"ngIf"],[3,"status"],[3,"data","close"],[3,"nzShape","nzSize","nzSrc"],[1,"meta-title"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u4e3b\u64ad\u4e2a\u4eba\u7a7a\u95f4\u9875\u9762","nzTooltipPlacement","right",1,"user-name"],["target","_blank",3,"href"],[1,"live-status"],[3,"ngSwitch"],["nzColor","default",4,"ngSwitchCase"],["nzColor","red",4,"ngSwitchCase"],["nzColor","green",4,"ngSwitchCase"],["nzColor","default"],["nz-icon","","nzType","frown"],["nzColor","red"],["nz-icon","","nzType","fire"],["nzColor","green"],["nz-icon","","nzType","sync","nzSpin",""],[1,"meta-desc"],[1,"room-id-wrapper"],[1,"room-id-label"],["class","short-room-id","nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",4,"ngIf"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",1,"real-room-id"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u5206\u533a\u9875\u9762","nzTooltipPlacement","leftTop",1,"area-name"],[3,"nzColor"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",1,"short-room-id"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u5f00\u5173",3,"nzDisabled","ngModel","nzControl","nzLoading","click"],["nz-tooltip","","nzTooltipTitle","\u5207\u5272\u6587\u4ef6",3,"click"],["nz-icon","","nzType","scissor",1,"action-icon"],["nz-tooltip","","nzTooltipTitle","\u4efb\u52a1\u8bbe\u7f6e",3,"click"],["nz-icon","","nzType","setting",1,"action-icon"],[4,"ngIf"],[3,"taskOptions","globalSettings","visible","visibleChange","confirm","afterClose"],["nz-dropdown","","nzPlacement","topRight",3,"nzDropdownMenu",4,"ngIf"],[3,"click",4,"ngIf"],["nz-dropdown","","nzPlacement","topRight",3,"nzDropdownMenu"],["nz-icon","","nzType","more",1,"action-icon"],[3,"click"],["nz-menu","",1,"menu"],["nz-menu-item","",3,"click"],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose"],[4,"nzDrawerContent"],[1,"drawer-content",3,"click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-skeleton",1),t._UZ(2,"nz-card-meta",2),t.qZA(),t.qZA(),t.YNc(3,ta,9,12,"ng-template",null,3,t.W1O),t.YNc(5,ea,3,7,"ng-template",null,4,t.W1O),t.YNc(7,aa,9,6,"ng-template",null,5,t.W1O),t.YNc(9,ra,12,7,"ng-template",null,6,t.W1O),t.YNc(11,la,1,4,"ng-template",null,7,t.W1O),t.YNc(13,ca,2,2,"ng-template",null,8,t.W1O),t.YNc(15,pa,3,1,"ng-template",null,9,t.W1O),t.YNc(17,ma,2,2,"ng-template",null,10,t.W1O),t.TgZ(19,"nz-dropdown-menu",null,11),t.GkF(21,12),t.YNc(22,ha,15,0,"ng-template",null,13,t.W1O),t.qZA(),t.YNc(24,za,2,4,"nz-drawer",14)),2&e){const a=t.MAs(4),s=t.MAs(6),d=t.MAs(8),x=t.MAs(10),M=t.MAs(12),E=t.MAs(14),l=t.MAs(16),L=t.MAs(18),q=t.MAs(23);t.Q6J("nzCover",a)("nzHoverable",!0)("nzActions",t.l5B(12,Ta,E,l,M,L))("nzBodyStyle",t.DdM(17,xa)),t.xp6(1),t.Q6J("nzActive",!0)("nzLoading",!o.data)("nzAvatar",t.DdM(18,Da)),t.xp6(1),t.Q6J("nzAvatar",s)("nzTitle",d)("nzDescription",x),t.xp6(19),t.Q6J("ngTemplateOutlet",q),t.xp6(3),t.Q6J("ngIf",o.useDrawer)}},directives:[P.bd,me,P.l7,st.yS,ot.SY,_.O5,Si.i,Ii,nt.Dz,_.RF,_.n9,et,k.Ls,Zt.w,Dt.i,m.JJ,m.On,Ki,X.cm,X.RR,_.tP,_t.wO,_t.r9,it.Vz,it.SQ],pipes:[_.Ov,Vi],styles:['.cover-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{box-shadow:none;padding:.5em 0}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] *[nz-menu-item][_ngcontent-%COMP%]{margin:0;padding:.5em 2em}.stopped[_nghost-%COMP%]{filter:grayscale(100%)}a[_ngcontent-%COMP%]{color:inherit}a[_ngcontent-%COMP%]:hover{color:#1890ff}a[_ngcontent-%COMP%]:focus-visible{outline:-webkit-focus-ring-color auto 1px}.cover-wrapper[_ngcontent-%COMP%]{--cover-ratio: 264 / 470;--cover-height: calc(var(--card-width) * var(--cover-ratio));position:relative;width:var(--card-width);height:var(--cover-height)}.cover-wrapper[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%]{width:100%;max-height:var(--cover-height);object-fit:cover}.cover-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{position:absolute;top:.5rem;left:.5rem;font-size:1.2rem;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 1em);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}nz-card-meta[_ngcontent-%COMP%]{margin:0}.meta-title[_ngcontent-%COMP%]{margin:0;display:flex;column-gap:1em}.meta-title[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{color:#fb7299;font-size:1rem;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.meta-title[_ngcontent-%COMP%] .live-status[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;position:relative;bottom:1px}.meta-desc[_ngcontent-%COMP%]{margin:0;display:flex}.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%] .short-room-id[_ngcontent-%COMP%]:after{display:inline-block;width:1em;content:","}@media screen and (max-width: 320px){.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%] .room-id-label[_ngcontent-%COMP%]{display:none}}.meta-desc[_ngcontent-%COMP%] .area-name[_ngcontent-%COMP%]{margin-left:auto}.meta-desc[_ngcontent-%COMP%] .area-name[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;border-radius:30px;padding:0 1em}.action-icon[_ngcontent-%COMP%]{font-size:16px}.not-allowed[_ngcontent-%COMP%]{cursor:not-allowed}'],changeDetection:0}),n})();function va(n,i){1&n&&(t.TgZ(0,"div",2),t._UZ(1,"nz-empty"),t.qZA())}function Oa(n,i){1&n&&t._UZ(0,"app-task-item",6),2&n&&t.Q6J("data",i.$implicit)}function ka(n,i){if(1&n&&(t.TgZ(0,"div",3,4),t.YNc(2,Oa,1,1,"app-task-item",5),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.dataList)("ngForTrackBy",e.trackByRoomId)}}let Ea=(()=>{class n{constructor(){this.dataList=[]}trackByRoomId(e,o){return o.room_info.room_id}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-list"]],inputs:{dataList:"dataList"},decls:3,vars:2,consts:[["class","empty-container",4,"ngIf","ngIfElse"],["elseBlock",""],[1,"empty-container"],[1,"tasks-container"],["tasks",""],[3,"data",4,"ngFor","ngForOf","ngForTrackBy"],[3,"data"]],template:function(e,o){if(1&e&&(t.YNc(0,va,2,0,"div",0),t.YNc(1,ka,3,2,"ng-template",null,1,t.W1O)),2&e){const a=t.MAs(2);t.Q6J("ngIf",0===o.dataList.length)("ngIfElse",a)}},directives:[_.O5,Rt.p9,_.sg,Ma],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}[_nghost-%COMP%]{--card-width: 400px;--grid-gutter: 12px;padding:var(--grid-gutter)}@media screen and (max-width: 400px){[_nghost-%COMP%]{--card-width: 100%;padding:var(--grid-gutter) 0}}.tasks-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,var(--card-width));grid-gap:var(--grid-gutter);gap:var(--grid-gutter);justify-content:center;max-width:100%;margin:0 auto}.empty-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;align-items:center;justify-content:center}"],changeDetection:0}),n})();var Aa=r(2643),Pa=r(1406);function ba(n,i){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u76f4\u64ad\u95f4\u53f7\u6216 URL "),t.BQk())}function ya(n,i){1&n&&(t.ynx(0),t._uU(1," \u8f93\u5165\u6709\u9519\u8bef "),t.BQk())}function Sa(n,i){if(1&n&&(t.YNc(0,ba,2,0,"ng-container",8),t.YNc(1,ya,2,0,"ng-container",8)),2&n){const e=i.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Za(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"nz-alert",9),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("nzType",e.type)("nzMessage",e.message)}}function wa(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"input",4),t.YNc(5,Sa,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t.YNc(8,Za,2,2,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),o=t.oxw();t.xp6(1),t.Q6J("formGroup",o.formGroup),t.xp6(2),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",o.pattern),t.xp6(4),t.Q6J("ngForOf",o.resultMessages)}}const Fa=/^https?:\/\/live\.bilibili\.com\/(\d+).*$/,Ia=/^\s*(?:\d+(?:[ ]+\d+)*|https?:\/\/live\.bilibili\.com\/\d+.*)\s*$/;let Na=(()=>{class n{constructor(e,o,a){this.changeDetector=o,this.taskManager=a,this.visible=!1,this.visibleChange=new t.vpe,this.pending=!1,this.resultMessages=[],this.pattern=Ia,this.formGroup=e.group({input:["",[m.kI.required,m.kI.pattern(this.pattern)]]})}get inputControl(){return this.formGroup.get("input")}open(){this.setVisible(!0)}close(){this.resultMessages=[],this.reset(),this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}reset(){this.pending=!1,this.formGroup.reset(),this.changeDetector.markForCheck()}handleCancel(){this.close()}handleConfirm(){this.pending=!0;const e=this.inputControl.value.trim();let o;o=e.startsWith("http")?[parseInt(Fa.exec(e)[1])]:new Set(e.split(/\s+/).map(a=>parseInt(a))),(0,wt.D)(o).pipe((0,Pa.b)(a=>this.taskManager.addTask(a)),(0,w.b)(a=>{this.resultMessages.push(a),this.changeDetector.markForCheck()})).subscribe({complete:()=>{this.resultMessages.every(a=>"success"===a.type)?this.close():this.reset()}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(m.qu),t.Y36(t.sBO),t.Y36(St))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-task-dialog"]],inputs:{visible:"visible"},outputs:{visibleChange:"visibleChange"},decls:2,vars:6,consts:[["nzTitle","\u6dfb\u52a0\u4efb\u52a1","nzCentered","","nzOkText","\u6dfb\u52a0",3,"nzVisible","nzOkLoading","nzOkDisabled","nzCancelDisabled","nzClosable","nzMaskClosable","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","",3,"nzErrorTip"],["nz-input","","required","","placeholder","\u76f4\u64ad\u95f4 URL \u6216\u623f\u95f4\u53f7\uff08\u652f\u6301\u591a\u4e2a\u623f\u95f4\u53f7\u7528\u7a7a\u683c\u9694\u5f00\uff09","formControlName","input",3,"pattern"],["errorTip",""],[1,"result-messages-container"],[4,"ngFor","ngForOf"],[4,"ngIf"],["nzShowIcon","",3,"nzType","nzMessage"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return o.handleConfirm()})("nzOnCancel",function(){return o.handleCancel()}),t.YNc(1,wa,9,4,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",o.visible)("nzOkLoading",o.pending)("nzOkDisabled",o.formGroup.invalid)("nzCancelDisabled",o.pending)("nzClosable",!o.pending)("nzMaskClosable",!o.pending)},directives:[$.du,$.Hf,m._Y,m.JL,W.Lr,m.sg,h.SK,W.Nx,h.t3,W.Fd,tt.Zp,m.Fj,m.Q7,m.JJ,m.u,m.c5,_.O5,_.sg,Le],styles:[".result-messages-container[_ngcontent-%COMP%]{width:100%;max-height:200px;overflow-y:auto}"],changeDetection:0}),n})(),Ua=(()=>{class n{transform(e,o=""){return console.debug("filter tasks by '%s'",o),[...this.filterByTerm(e,o)]}filterByTerm(e,o){return function*Ba(n,i){for(const e of n)i(e)&&(yield e)}(e,a=>""===(o=o.trim())||a.user_info.name.includes(o)||a.room_info.title.toString().includes(o)||a.room_info.area_name.toString().includes(o)||a.room_info.room_id.toString().includes(o)||a.room_info.short_room_id.toString().includes(o))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filterTasks",type:n,pure:!0}),n})();function Ra(n,i){if(1&n&&t._UZ(0,"nz-spin",6),2&n){const e=t.oxw();t.Q6J("nzSize","large")("nzSpinning",e.loading)}}function La(n,i){if(1&n&&(t._UZ(0,"app-task-list",7),t.ALo(1,"filterTasks")),2&n){const e=t.oxw();t.Q6J("dataList",t.xi3(1,1,e.dataList,e.filterTerm))}}const ue="app-tasks-selection",pe="app-tasks-reverse",Ja=[{path:":id/detail",component:li},{path:"",component:(()=>{class n{constructor(e,o,a,s){this.changeDetector=e,this.notification=o,this.storage=a,this.taskService=s,this.loading=!0,this.dataList=[],this.filterTerm="",this.selection=this.retrieveSelection(),this.reverse=this.retrieveReverse()}ngOnInit(){this.syncTaskData()}ngOnDestroy(){this.desyncTaskData()}onSelectionChanged(e){this.selection=e,this.storeSelection(e),this.desyncTaskData(),this.syncTaskData()}onReverseChanged(e){this.reverse=e,this.storeReverse(e),e&&(this.dataList=[...this.dataList.reverse()],this.changeDetector.markForCheck())}retrieveSelection(){const e=this.storage.getData(ue);return null!==e?e:z.jf.ALL}retrieveReverse(){return"true"===this.storage.getData(pe)}storeSelection(e){this.storage.setData(ue,e)}storeReverse(e){this.storage.setData(pe,e.toString())}syncTaskData(){this.dataSubscription=(0,B.of)((0,B.of)(0),(0,te.F)(1e3)).pipe((0,ne.u)(),(0,at.w)(()=>this.taskService.getAllTaskData(this.selection)),(0,rt.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,Et.X)(10,3e3)).subscribe(e=>{this.loading=!1,this.dataList=this.reverse?e.reverse():e,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncTaskData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(oe.zb),t.Y36(le.V),t.Y36(At.M))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-tasks"]],decls:8,vars:4,consts:[[3,"selection","reverse","selectionChange","reverseChange","filterChange"],["class","spinner",3,"nzSize","nzSpinning",4,"ngIf","ngIfElse"],["elseBlock",""],["nz-button","","nzType","primary","nzSize","large","nzShape","circle","nz-tooltip","","nzTooltipTitle","\u6dfb\u52a0\u4efb\u52a1",1,"add-task-button",3,"click"],["nz-icon","","nzType","plus"],["addTaskDialog",""],[1,"spinner",3,"nzSize","nzSpinning"],[3,"dataList"]],template:function(e,o){if(1&e){const a=t.EpF();t.TgZ(0,"app-toolbar",0),t.NdJ("selectionChange",function(d){return o.onSelectionChanged(d)})("reverseChange",function(d){return o.onReverseChanged(d)})("filterChange",function(d){return o.filterTerm=d}),t.qZA(),t.YNc(1,Ra,1,2,"nz-spin",1),t.YNc(2,La,2,4,"ng-template",null,2,t.W1O),t.TgZ(4,"button",3),t.NdJ("click",function(){return t.CHM(a),t.MAs(7).open()}),t._UZ(5,"i",4),t.qZA(),t._UZ(6,"app-add-task-dialog",null,5)}if(2&e){const a=t.MAs(3);t.Q6J("selection",o.selection)("reverse",o.reverse),t.xp6(1),t.Q6J("ngIf",o.loading)("ngIfElse",a)}},directives:[Pi,_.O5,Lt.W,Ea,ht.ix,Aa.dQ,Zt.w,ot.SY,k.Ls,Na],pipes:[Ua],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0;overflow:hidden}.add-task-button[_ngcontent-%COMP%]{position:fixed;bottom:5vh;right:5vw}"],changeDetection:0}),n})()}];let Qa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[st.Bz.forChild(Ja)],st.Bz]}),n})(),qa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez,m.u5,m.UX,y.xu,g,h.Jb,P.vh,Nt,nt.Rt,k.PV,Nt,ot.cg,G,Dt.m,X.b1,ht.sL,$.Qp,W.U5,tt.o7,Bt.Wr,Ae,ft.aF,Ut.S,Rt.Xo,Lt.j,Je,it.BL,Mt.LV,hn,Y.HQ,Pn,uo,xo.forRoot({echarts:()=>r.e(45).then(r.bind(r,8045))}),Qa,Do.m]]}),n})()},855:function(D){D.exports=function(){"use strict";var v=/^(b|B)$/,r={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},_={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]},m={floor:Math.floor,ceil:Math.ceil};function y(t){var p,c,f,Z,g,h,P,k,u,C,O,I,A,S,N,J,et,G,nt,Tt,j,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},T=[],H=0;if(isNaN(t))throw new TypeError("Invalid number");if(f=!0===b.bits,N=!0===b.unix,I=!0===b.pad,A=void 0!==b.round?b.round:N?1:2,P=void 0!==b.locale?b.locale:"",k=b.localeOptions||{},J=void 0!==b.separator?b.separator:"",et=void 0!==b.spacer?b.spacer:N?"":" ",nt=b.symbols||{},G=2===(c=b.base||2)&&b.standard||"jedec",O=b.output||"string",g=!0===b.fullform,h=b.fullforms instanceof Array?b.fullforms:[],p=void 0!==b.exponent?b.exponent:-1,Tt=m[b.roundingMethod]||Math.round,u=(C=Number(t))<0,Z=c>2?1e3:1024,j=!1===isNaN(b.precision)?parseInt(b.precision,10):0,u&&(C=-C),(-1===p||isNaN(p))&&(p=Math.floor(Math.log(C)/Math.log(Z)))<0&&(p=0),p>8&&(j>0&&(j+=8-p),p=8),"exponent"===O)return p;if(0===C)T[0]=0,S=T[1]=N?"":r[G][f?"bits":"bytes"][p];else{H=C/(2===c?Math.pow(2,10*p):Math.pow(1e3,p)),f&&(H*=8)>=Z&&p<8&&(H/=Z,p++);var ut=Math.pow(10,p>0?A:0);T[0]=Tt(H*ut)/ut,T[0]===Z&&p<8&&void 0===b.exponent&&(T[0]=1,p++),S=T[1]=10===c&&1===p?f?"kb":"kB":r[G][f?"bits":"bytes"][p],N&&(T[1]="jedec"===G?T[1].charAt(0):p>0?T[1].replace(/B$/,""):T[1],v.test(T[1])&&(T[0]=Math.floor(T[0]),T[1]=""))}if(u&&(T[0]=-T[0]),j>0&&(T[0]=T[0].toPrecision(j)),T[1]=nt[T[1]]||T[1],!0===P?T[0]=T[0].toLocaleString():P.length>0?T[0]=T[0].toLocaleString(P,k):J.length>0&&(T[0]=T[0].toString().replace(".",J)),I&&!1===Number.isInteger(T[0])&&A>0){var pt=J||".",gt=T[0].toString().split(pt),dt=gt[1]||"",mt=dt.length,xt=A-mt;T[0]="".concat(gt[0]).concat(pt).concat(dt.padEnd(mt+xt,"0"))}return g&&(T[1]=h[p]?h[p]:_[G][p]+(f?"bit":"byte")+(1===T[0]?"":"s")),"array"===O?T:"object"===O?{value:T[0],symbol:T[1],exponent:p,unit:S}:T.join(et)}return y.partial=function(t){return function(p){return y(p,t)}},y}()},1715:(D,v,r)=>{"use strict";r.d(v,{F:()=>t});var _=r(6498),m=r(353),y=r(4241);function t(c=0,f=m.P){return(!(0,y.k)(c)||c<0)&&(c=0),(!f||"function"!=typeof f.schedule)&&(f=m.P),new _.y(Z=>(Z.add(f.schedule(p,c,{subscriber:Z,counter:0,period:c})),Z))}function p(c){const{subscriber:f,counter:Z,period:g}=c;f.next(Z),this.schedule({subscriber:f,counter:Z+1,period:g},g)}},1746:(D,v,r)=>{"use strict";r.d(v,{$R:()=>c});var _=r(3009),m=r(6688),y=r(3489),t=r(5430),p=r(1177);function c(...k){const u=k[k.length-1];return"function"==typeof u&&k.pop(),(0,_.n)(k,void 0).lift(new f(u))}class f{constructor(u){this.resultSelector=u}call(u,C){return C.subscribe(new Z(u,this.resultSelector))}}class Z extends y.L{constructor(u,C,O=Object.create(null)){super(u),this.resultSelector=C,this.iterators=[],this.active=0,this.resultSelector="function"==typeof C?C:void 0}_next(u){const C=this.iterators;(0,m.k)(u)?C.push(new h(u)):C.push("function"==typeof u[t.hZ]?new g(u[t.hZ]()):new P(this.destination,this,u))}_complete(){const u=this.iterators,C=u.length;if(this.unsubscribe(),0!==C){this.active=C;for(let O=0;Othis.index}hasCompleted(){return this.array.length===this.index}}class P extends p.Ds{constructor(u,C,O){super(u),this.parent=C,this.observable=O,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[t.hZ](){return this}next(){const u=this.buffer;return 0===u.length&&this.isComplete?{value:null,done:!0}:{value:u.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(u){this.buffer.push(u),this.parent.checkIterators()}subscribe(){return(0,p.ft)(this.observable,new p.IY(this))}}}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/869.0ab6b8a3f466df77.js b/src/blrec/data/webapp/869.0ab6b8a3f466df77.js deleted file mode 100644 index 0248b68..0000000 --- a/src/blrec/data/webapp/869.0ab6b8a3f466df77.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[869],{5869:(jt,ot,l)=>{"use strict";l.r(ot),l.d(ot,{TasksModule:()=>ga});var u=l(9808),m=l(4182),U=l(5113),t=l(5e3);class h{constructor(o,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),s=i.style;s.position="fixed",s.top=s.opacity="0",s.left="-999em",i.setAttribute("aria-hidden","true"),i.value=o,this._document.body.appendChild(i)}copy(){const o=this._textarea;let e=!1;try{if(o){const i=this._document.activeElement;o.select(),o.setSelectionRange(0,o.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(i){}return e}destroy(){const o=this._textarea;o&&(o.remove(),this._textarea=void 0)}}let q=(()=>{class n{constructor(e){this._document=e}copy(e){const i=this.beginCopy(e),s=i.copy();return i.destroy(),s}beginCopy(e){return new h(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(u.K0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();var P=l(1894),D=l(7484),M=l(647),_=l(655),v=l(8929),y=l(7625),L=l(8693),T=l(1721),b=l(226);function Y(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"i",1),t.NdJ("click",function(s){return t.CHM(e),t.oxw().closeTag(s)}),t.qZA()}}const X=["*"];let st=(()=>{class n{constructor(e,i,s,a){this.cdr=e,this.renderer=i,this.elementRef=s,this.directionality=a,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzOnClose=new t.vpe,this.nzCheckedChange=new t.vpe,this.dir="ltr",this.destroy$=new v.xQ}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(e){this.nzOnClose.emit(e),e.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const e=this.elementRef.nativeElement,i=new RegExp(`(ant-tag-(?:${[...L.uf,...L.Bh].join("|")}))`,"g"),s=e.classList.toString(),a=[];let c=i.exec(s);for(;null!==c;)a.push(c[1]),c=i.exec(s);e.classList.remove(...a)}setPresetColor(){const e=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,L.o2)(this.nzColor)||(0,L.M8)(this.nzColor)),this.isPresetColor&&e.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,y.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){const{nzColor:i}=e;i&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(b.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:10,hostBindings:function(e,i){1&e&&t.NdJ("click",function(){return i.updateCheckedStatus()}),2&e&&(t.Udp("background-color",i.isPresetColor?"":i.nzColor),t.ekj("ant-tag-has-color",i.nzColor&&!i.isPresetColor)("ant-tag-checkable","checkable"===i.nzMode)("ant-tag-checkable-checked",i.nzChecked)("ant-tag-rtl","rtl"===i.dir))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:"nzChecked"},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[t.TTD],ngContentSelectors:X,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(e,i){1&e&&(t.F$t(),t.Hsn(0),t.YNc(1,Y,1,0,"i",0)),2&e&&(t.xp6(1),t.Q6J("ngIf","closeable"===i.nzMode))},directives:[u.O5,M.Ls],encapsulation:2,changeDetection:0}),(0,_.gn)([(0,T.yF)()],n.prototype,"nzChecked",void 0),n})(),G=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez,m.u5,M.PV]]}),n})();var at=l(6699);const $=["nzType","avatar"];function K(n,o){if(1&n&&(t.TgZ(0,"div",5),t._UZ(1,"nz-skeleton-element",6),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzSize",e.avatar.size||"default")("nzShape",e.avatar.shape||"circle")}}function mt(n,o){if(1&n&&t._UZ(0,"h3",7),2&n){const e=t.oxw(2);t.Udp("width",e.toCSSUnit(e.title.width))}}function _t(n,o){if(1&n&&t._UZ(0,"li"),2&n){const e=o.index,i=t.oxw(3);t.Udp("width",i.toCSSUnit(i.widthList[e]))}}function ht(n,o){if(1&n&&(t.TgZ(0,"ul",8),t.YNc(1,_t,1,2,"li",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.rowsList)}}function ft(n,o){if(1&n&&(t.ynx(0),t.YNc(1,K,2,2,"div",1),t.TgZ(2,"div",2),t.YNc(3,mt,1,2,"h3",3),t.YNc(4,ht,2,1,"ul",4),t.qZA(),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!!e.nzAvatar),t.xp6(2),t.Q6J("ngIf",!!e.nzTitle),t.xp6(1),t.Q6J("ngIf",!!e.nzParagraph)}}function zt(n,o){1&n&&(t.ynx(0),t.Hsn(1),t.BQk())}const Zt=["*"];let ke=(()=>{class n{constructor(){this.nzActive=!1,this.nzBlock=!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(e,i){2&e&&t.ekj("ant-skeleton-active",i.nzActive)("ant-skeleton-block",i.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,_.gn)([(0,T.yF)()],n.prototype,"nzBlock",void 0),n})(),ve=(()=>{class n{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(e){if(e.nzSize&&"number"==typeof this.nzSize){const i=`${this.nzSize}px`;this.styleMap={width:i,height:i,"line-height":i}}else this.styleMap={}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[t.TTD],attrs:$,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(e,i){1&e&&t._UZ(0,"span",0),2&e&&(t.ekj("ant-skeleton-avatar-square","square"===i.nzShape)("ant-skeleton-avatar-circle","circle"===i.nzShape)("ant-skeleton-avatar-lg","large"===i.nzSize)("ant-skeleton-avatar-sm","small"===i.nzSize),t.Q6J("ngStyle",i.styleMap))},directives:[u.PC],encapsulation:2,changeDetection:0}),n})(),ye=(()=>{class n{constructor(e,i,s){this.cdr=e,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],i.addClass(s.nativeElement,"ant-skeleton")}toCSSUnit(e=""){return(0,T.WX)(e)}getTitleProps(){const e=!!this.nzAvatar,i=!!this.nzParagraph;let s="";return!e&&i?s="38%":e&&i&&(s="50%"),Object.assign({width:s},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const e=!!this.nzAvatar,i=!!this.nzTitle,s={};return(!e||!i)&&(s.width="61%"),s.rows=!e&&i?3:2,Object.assign(Object.assign({},s),this.getProps(this.nzParagraph))}getProps(e){return e&&"object"==typeof e?e:{}}getWidthList(){const{width:e,rows:i}=this.paragraph;let s=[];return e&&Array.isArray(e)?s=e:e&&!Array.isArray(e)&&(s=[],s[i-1]=e),s}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(e){(e.nzTitle||e.nzAvatar||e.nzParagraph)&&this.updateProps()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(e,i){2&e&&t.ekj("ant-skeleton-with-avatar",!!i.nzAvatar)("ant-skeleton-active",i.nzActive)("ant-skeleton-round",!!i.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[t.TTD],ngContentSelectors:Zt,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(t.F$t(),t.YNc(0,ft,5,3,"ng-container",0),t.YNc(1,zt,2,0,"ng-container",0)),2&e&&(t.Q6J("ngIf",i.nzLoading),t.xp6(1),t.Q6J("ngIf",!i.nzLoading))},directives:[ve,u.O5,ke,u.sg],encapsulation:2,changeDetection:0}),n})(),Ht=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez]]}),n})();var rt=l(404),Ot=l(6462),tt=l(3677),Ct=l(6042),V=l(7957),B=l(4546),et=l(1047),Wt=l(6114),be=l(4832),Se=l(2845),Ae=l(6950),De=l(5664),E=l(969),Me=l(4170);let Ie=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez,Ct.sL,Se.U8,Me.YI,M.PV,E.T,Ae.e4,be.g,rt.cg,De.rt]]}),n})();var Tt=l(3868),Xt=l(5737),Kt=l(685),te=l(7525),Be=l(8076),S=l(9439);function Je(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"i",5),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzType",e.nzIconType||e.inferredIconType)("nzTheme",e.iconTheme)}}function Qe(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzMessage)}}function Ue(n,o){if(1&n&&(t.TgZ(0,"span",9),t.YNc(1,Qe,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzMessage)}}function qe(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzDescription)}}function Re(n,o){if(1&n&&(t.TgZ(0,"span",11),t.YNc(1,qe,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzDescription)}}function Le(n,o){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,Ue,2,1,"span",7),t.YNc(2,Re,2,1,"span",8),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.nzMessage),t.xp6(1),t.Q6J("ngIf",e.nzDescription)}}function Ye(n,o){1&n&&t._UZ(0,"i",15)}function Ge(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"span",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=t.oxw(4);t.xp6(2),t.Oqu(e.nzCloseText)}}function $e(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Ge,3,1,"ng-container",10),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzCloseText)}}function Ve(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).closeAlert()}),t.YNc(1,Ye,1,0,"ng-template",null,13,t.W1O),t.YNc(3,$e,2,1,"ng-container",14),t.qZA()}if(2&n){const e=t.MAs(2),i=t.oxw(2);t.xp6(3),t.Q6J("ngIf",i.nzCloseText)("ngIfElse",e)}}function je(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.NdJ("@slideAlertMotion.done",function(){return t.CHM(e),t.oxw().onFadeAnimationDone()}),t.YNc(1,Je,2,2,"ng-container",2),t.YNc(2,Le,3,2,"div",3),t.YNc(3,Ve,4,2,"button",4),t.qZA()}if(2&n){const e=t.oxw();t.ekj("ant-alert-rtl","rtl"===e.dir)("ant-alert-success","success"===e.nzType)("ant-alert-info","info"===e.nzType)("ant-alert-warning","warning"===e.nzType)("ant-alert-error","error"===e.nzType)("ant-alert-no-icon",!e.nzShowIcon)("ant-alert-banner",e.nzBanner)("ant-alert-closable",e.nzCloseable)("ant-alert-with-description",!!e.nzDescription),t.Q6J("@.disabled",e.nzNoAnimation)("@slideAlertMotion",void 0),t.xp6(1),t.Q6J("ngIf",e.nzShowIcon),t.xp6(1),t.Q6J("ngIf",e.nzMessage||e.nzDescription),t.xp6(1),t.Q6J("ngIf",e.nzCloseable||e.nzCloseText)}}let He=(()=>{class n{constructor(e,i,s){this.nzConfigService=e,this.cdr=i,this.directionality=s,this._nzModuleName="alert",this.nzCloseText=null,this.nzIconType=null,this.nzMessage=null,this.nzDescription=null,this.nzType="info",this.nzCloseable=!1,this.nzShowIcon=!1,this.nzBanner=!1,this.nzNoAnimation=!1,this.nzOnClose=new t.vpe,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.dir="ltr",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new v.xQ,this.nzConfigService.getConfigChangeEventForComponent("alert").pipe((0,y.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,y.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(e){const{nzShowIcon:i,nzDescription:s,nzType:a,nzBanner:c}=e;if(i&&(this.isShowIconSet=!0),a)switch(this.isTypeSet=!0,this.nzType){case"error":this.inferredIconType="close-circle";break;case"success":this.inferredIconType="check-circle";break;case"info":this.inferredIconType="info-circle";break;case"warning":this.inferredIconType="exclamation-circle"}s&&(this.iconTheme=this.nzDescription?"outline":"fill"),c&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.jY),t.Y36(t.sBO),t.Y36(b.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-alert"]],inputs:{nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:"nzCloseable",nzShowIcon:"nzShowIcon",nzBanner:"nzBanner",nzNoAnimation:"nzNoAnimation"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[t.TTD],decls:1,vars:1,consts:[["class","ant-alert",3,"ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description",4,"ngIf"],[1,"ant-alert"],[4,"ngIf"],["class","ant-alert-content",4,"ngIf"],["type","button","tabindex","0","class","ant-alert-close-icon",3,"click",4,"ngIf"],["nz-icon","",1,"ant-alert-icon",3,"nzType","nzTheme"],[1,"ant-alert-content"],["class","ant-alert-message",4,"ngIf"],["class","ant-alert-description",4,"ngIf"],[1,"ant-alert-message"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["closeDefaultTemplate",""],[4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(e,i){1&e&&t.YNc(0,je,4,23,"div",0),2&e&&t.Q6J("ngIf",!i.closed)},directives:[u.O5,M.Ls,E.f],encapsulation:2,data:{animation:[Be.Rq]},changeDetection:0}),(0,_.gn)([(0,S.oS)(),(0,T.yF)()],n.prototype,"nzCloseable",void 0),(0,_.gn)([(0,S.oS)(),(0,T.yF)()],n.prototype,"nzShowIcon",void 0),(0,_.gn)([(0,T.yF)()],n.prototype,"nzBanner",void 0),(0,_.gn)([(0,T.yF)()],n.prototype,"nzNoAnimation",void 0),n})(),We=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez,M.PV,E.T]]}),n})();var lt=l(4147),wt=l(5197);function Xe(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"i",8),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzType",e.icon)}}function Ke(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=o.$implicit,i=t.oxw(4);t.xp6(1),t.hij(" ",e(i.nzPercent)," ")}}const tn=function(n){return{$implicit:n}};function en(n,o){if(1&n&&t.YNc(0,Ke,2,1,"ng-container",9),2&n){const e=t.oxw(3);t.Q6J("nzStringTemplateOutlet",e.formatter)("nzStringTemplateOutletContext",t.VKq(2,tn,e.nzPercent))}}function nn(n,o){if(1&n&&(t.TgZ(0,"span",5),t.YNc(1,Xe,2,1,"ng-container",6),t.YNc(2,en,1,4,"ng-template",null,7,t.W1O),t.qZA()),2&n){const e=t.MAs(3),i=t.oxw(2);t.xp6(1),t.Q6J("ngIf",("exception"===i.status||"success"===i.status)&&!i.nzFormat)("ngIfElse",e)}}function on(n,o){if(1&n&&t.YNc(0,nn,4,2,"span",4),2&n){const e=t.oxw();t.Q6J("ngIf",e.nzShowInfo)}}function sn(n,o){if(1&n&&t._UZ(0,"div",17),2&n){const e=t.oxw(4);t.Udp("width",e.nzSuccessPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("height",e.strokeWidth,"px")}}function an(n,o){if(1&n&&(t.TgZ(0,"div",13),t.TgZ(1,"div",14),t._UZ(2,"div",15),t.YNc(3,sn,1,6,"div",16),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(2),t.Udp("width",e.nzPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("background",e.isGradient?null:e.nzStrokeColor)("background-image",e.isGradient?e.lineGradient:null)("height",e.strokeWidth,"px"),t.xp6(1),t.Q6J("ngIf",e.nzSuccessPercent||0===e.nzSuccessPercent)}}function rn(n,o){}function ln(n,o){if(1&n&&(t.ynx(0),t.YNc(1,an,4,11,"div",11),t.YNc(2,rn,0,0,"ng-template",12),t.BQk()),2&n){const e=t.oxw(2),i=t.MAs(1);t.xp6(1),t.Q6J("ngIf",!e.isSteps),t.xp6(1),t.Q6J("ngTemplateOutlet",i)}}function cn(n,o){1&n&&t._UZ(0,"div",20),2&n&&t.Q6J("ngStyle",o.$implicit)}function un(n,o){}function pn(n,o){if(1&n&&(t.TgZ(0,"div",18),t.YNc(1,cn,1,1,"div",19),t.YNc(2,un,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(2),i=t.MAs(1);t.xp6(1),t.Q6J("ngForOf",e.steps),t.xp6(1),t.Q6J("ngTemplateOutlet",i)}}function gn(n,o){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,ln,3,2,"ng-container",2),t.YNc(2,pn,3,2,"div",10),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.isSteps),t.xp6(1),t.Q6J("ngIf",e.isSteps)}}function dn(n,o){if(1&n&&(t.O4$(),t._UZ(0,"stop")),2&n){const e=o.$implicit;t.uIk("offset",e.offset)("stop-color",e.color)}}function mn(n,o){if(1&n&&(t.O4$(),t.TgZ(0,"defs"),t.TgZ(1,"linearGradient",24),t.YNc(2,dn,1,2,"stop",25),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("id","gradient-"+e.gradientId),t.xp6(1),t.Q6J("ngForOf",e.circleGradient)}}function _n(n,o){if(1&n&&(t.O4$(),t._UZ(0,"path",26)),2&n){const e=o.$implicit,i=t.oxw(2);t.Q6J("ngStyle",e.strokePathStyle),t.uIk("d",i.pathString)("stroke-linecap",i.nzStrokeLinecap)("stroke",e.stroke)("stroke-width",i.nzPercent?i.strokeWidth:0)}}function hn(n,o){1&n&&t.O4$()}function fn(n,o){if(1&n&&(t.TgZ(0,"div",14),t.O4$(),t.TgZ(1,"svg",21),t.YNc(2,mn,3,2,"defs",2),t._UZ(3,"path",22),t.YNc(4,_n,1,5,"path",23),t.qZA(),t.YNc(5,hn,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(),i=t.MAs(1);t.Udp("width",e.nzWidth,"px")("height",e.nzWidth,"px")("font-size",.15*e.nzWidth+6,"px"),t.ekj("ant-progress-circle-gradient",e.isGradient),t.xp6(2),t.Q6J("ngIf",e.isGradient),t.xp6(1),t.Q6J("ngStyle",e.trailPathStyle),t.uIk("stroke-width",e.strokeWidth)("d",e.pathString),t.xp6(1),t.Q6J("ngForOf",e.progressCirclePath)("ngForTrackBy",e.trackByFn),t.xp6(1),t.Q6J("ngTemplateOutlet",i)}}const ne=n=>{let o=[];return Object.keys(n).forEach(e=>{const i=n[e],s=function zn(n){return+n.replace("%","")}(e);isNaN(s)||o.push({key:s,value:i})}),o=o.sort((e,i)=>e.key-i.key),o};let xn=0;const ie="progress",kn=new Map([["success","check"],["exception","close"]]),vn=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),yn=n=>`${n}%`;let oe=(()=>{class n{constructor(e,i,s){this.cdr=e,this.nzConfigService=i,this.directionality=s,this._nzModuleName=ie,this.nzShowInfo=!0,this.nzWidth=132,this.nzStrokeColor=void 0,this.nzSize="default",this.nzPercent=0,this.nzStrokeWidth=void 0,this.nzGapDegree=void 0,this.nzType="line",this.nzGapPosition="top",this.nzStrokeLinecap="round",this.nzSteps=0,this.steps=[],this.lineGradient=null,this.isGradient=!1,this.isSteps=!1,this.gradientId=xn++,this.progressCirclePath=[],this.trailPathStyle=null,this.dir="ltr",this.trackByFn=a=>`${a}`,this.cachedStatus="normal",this.inferredStatus="normal",this.destroy$=new v.xQ}get formatter(){return this.nzFormat||yn}get status(){return this.nzStatus||this.inferredStatus}get strokeWidth(){return this.nzStrokeWidth||("line"===this.nzType&&"small"!==this.nzSize?8:6)}get isCircleStyle(){return"circle"===this.nzType||"dashboard"===this.nzType}ngOnChanges(e){const{nzSteps:i,nzGapPosition:s,nzStrokeLinecap:a,nzStrokeColor:c,nzGapDegree:p,nzType:d,nzStatus:f,nzPercent:r,nzSuccessPercent:N,nzStrokeWidth:I}=e;f&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(r||N)&&(parseInt(this.nzPercent.toString(),10)>=100?((0,T.DX)(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||void 0===this.nzSuccessPercent)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(f||r||N||c)&&this.updateIcon(),c&&this.setStrokeColor(),(s||a||p||d||r||c||c)&&this.getCirclePaths(),(r||i||I)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps())}ngOnInit(){var e;this.nzConfigService.getConfigChangeEventForComponent(ie).pipe((0,y.R)(this.destroy$)).subscribe(()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths()}),null===(e=this.directionality.change)||void 0===e||e.pipe((0,y.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateIcon(){const e=kn.get(this.status);this.icon=e?e+(this.isCircleStyle?"-o":"-circle-fill"):""}getSteps(){const e=Math.floor(this.nzSteps*(this.nzPercent/100)),i="small"===this.nzSize?2:14,s=[];for(let a=0;a{const Q=2===e.length&&0===I;return{stroke:this.isGradient&&!Q?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:Q?vn.get("success"):this.nzStrokeColor,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",strokeDasharray:`${(N||0)/100*(a-c)}px ${a}px`,strokeDashoffset:`-${c/2}px`}}}).reverse()}setStrokeColor(){const e=this.nzStrokeColor,i=this.isGradient=!!e&&"string"!=typeof e;i&&!this.isCircleStyle?this.lineGradient=(n=>{const{from:o="#1890ff",to:e="#1890ff",direction:i="to right"}=n,s=(0,_._T)(n,["from","to","direction"]);return 0!==Object.keys(s).length?`linear-gradient(${i}, ${ne(s).map(({key:c,value:p})=>`${p} ${c}%`).join(", ")})`:`linear-gradient(${i}, ${o}, ${e})`})(e):i&&this.isCircleStyle?this.circleGradient=(n=>ne(this.nzStrokeColor).map(({key:o,value:e})=>({offset:`${o}%`,color:e})))():(this.lineGradient=null,this.circleGradient=[])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(S.jY),t.Y36(b.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-progress"]],inputs:{nzShowInfo:"nzShowInfo",nzWidth:"nzWidth",nzStrokeColor:"nzStrokeColor",nzSize:"nzSize",nzFormat:"nzFormat",nzSuccessPercent:"nzSuccessPercent",nzPercent:"nzPercent",nzStrokeWidth:"nzStrokeWidth",nzGapDegree:"nzGapDegree",nzStatus:"nzStatus",nzType:"nzType",nzGapPosition:"nzGapPosition",nzStrokeLinecap:"nzStrokeLinecap",nzSteps:"nzSteps"},exportAs:["nzProgress"],features:[t.TTD],decls:5,vars:15,consts:[["progressInfoTemplate",""],[3,"ngClass"],[4,"ngIf"],["class","ant-progress-inner",3,"width","height","fontSize","ant-progress-circle-gradient",4,"ngIf"],["class","ant-progress-text",4,"ngIf"],[1,"ant-progress-text"],[4,"ngIf","ngIfElse"],["formatTemplate",""],["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-progress-steps-outer",4,"ngIf"],["class","ant-progress-outer",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-progress-outer"],[1,"ant-progress-inner"],[1,"ant-progress-bg"],["class","ant-progress-success-bg",3,"width","border-radius","height",4,"ngIf"],[1,"ant-progress-success-bg"],[1,"ant-progress-steps-outer"],["class","ant-progress-steps-item",3,"ngStyle",4,"ngFor","ngForOf"],[1,"ant-progress-steps-item",3,"ngStyle"],["viewBox","0 0 100 100",1,"ant-progress-circle"],["stroke","#f3f3f3","fill-opacity","0",1,"ant-progress-circle-trail",3,"ngStyle"],["class","ant-progress-circle-path","fill-opacity","0",3,"ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],["x1","100%","y1","0%","x2","0%","y2","0%",3,"id"],[4,"ngFor","ngForOf"],["fill-opacity","0",1,"ant-progress-circle-path",3,"ngStyle"]],template:function(e,i){1&e&&(t.YNc(0,on,1,1,"ng-template",null,0,t.W1O),t.TgZ(2,"div",1),t.YNc(3,gn,3,2,"div",2),t.YNc(4,fn,6,15,"div",3),t.qZA()),2&e&&(t.xp6(2),t.ekj("ant-progress-line","line"===i.nzType)("ant-progress-small","small"===i.nzSize)("ant-progress-show-info",i.nzShowInfo)("ant-progress-circle",i.isCircleStyle)("ant-progress-steps",i.isSteps)("ant-progress-rtl","rtl"===i.dir),t.Q6J("ngClass","ant-progress ant-progress-status-"+i.status),t.xp6(1),t.Q6J("ngIf","line"===i.nzType),t.xp6(1),t.Q6J("ngIf",i.isCircleStyle))},directives:[u.O5,M.Ls,E.f,u.mk,u.tP,u.sg,u.PC],encapsulation:2,changeDetection:0}),(0,_.gn)([(0,S.oS)()],n.prototype,"nzShowInfo",void 0),(0,_.gn)([(0,S.oS)()],n.prototype,"nzStrokeColor",void 0),(0,_.gn)([(0,S.oS)()],n.prototype,"nzSize",void 0),(0,_.gn)([(0,T.Rn)()],n.prototype,"nzSuccessPercent",void 0),(0,_.gn)([(0,T.Rn)()],n.prototype,"nzPercent",void 0),(0,_.gn)([(0,S.oS)(),(0,T.Rn)()],n.prototype,"nzStrokeWidth",void 0),(0,_.gn)([(0,S.oS)(),(0,T.Rn)()],n.prototype,"nzGapDegree",void 0),(0,_.gn)([(0,S.oS)()],n.prototype,"nzGapPosition",void 0),(0,_.gn)([(0,S.oS)()],n.prototype,"nzStrokeLinecap",void 0),(0,_.gn)([(0,T.Rn)()],n.prototype,"nzSteps",void 0),n})(),bn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez,M.PV,E.T]]}),n})();var J=l(592),se=l(925);let Sn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[u.ez]]}),n})();const An=function(n){return{$implicit:n}};function Dn(n,o){if(1&n&&t.GkF(0,3),2&n){const e=t.oxw();t.Q6J("ngTemplateOutlet",e.nzValueTemplate)("ngTemplateOutletContext",t.VKq(2,An,e.nzValue))}}function Mn(n,o){if(1&n&&(t.TgZ(0,"span",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayInt)}}function Zn(n,o){if(1&n&&(t.TgZ(0,"span",7),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayDecimal)}}function On(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Mn,2,1,"span",4),t.YNc(2,Zn,2,1,"span",5),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.displayInt),t.xp6(1),t.Q6J("ngIf",e.displayDecimal)}}function wn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.nzTitle)}}function Fn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzPrefix)}}function Nn(n,o){if(1&n&&(t.TgZ(0,"span",7),t.YNc(1,Fn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzPrefix)}}function Pn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzSuffix)}}function En(n,o){if(1&n&&(t.TgZ(0,"span",8),t.YNc(1,Pn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzSuffix)}}let In=(()=>{class n{constructor(e){this.locale_id=e,this.displayInt="",this.displayDecimal=""}ngOnChanges(){this.formatNumber()}formatNumber(){const e="number"==typeof this.nzValue?".":(0,u.dv)(this.locale_id,u.wE.Decimal),i=String(this.nzValue),[s,a]=i.split(e);this.displayInt=s,this.displayDecimal=a?`${e}${a}`:""}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.soG))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic-number"]],inputs:{nzValue:"nzValue",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatisticNumber"],features:[t.TTD],decls:3,vars:2,consts:[[1,"ant-statistic-content-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-statistic-content-value-int",4,"ngIf"],["class","ant-statistic-content-value-decimal",4,"ngIf"],[1,"ant-statistic-content-value-int"],[1,"ant-statistic-content-value-decimal"]],template:function(e,i){1&e&&(t.TgZ(0,"span",0),t.YNc(1,Dn,1,4,"ng-container",1),t.YNc(2,On,3,2,"ng-container",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",i.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",!i.nzValueTemplate))},directives:[u.O5,u.tP],encapsulation:2,changeDetection:0}),n})(),ae=(()=>{class n{constructor(e,i){this.cdr=e,this.directionality=i,this.nzValueStyle={},this.dir="ltr",this.destroy$=new v.xQ}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,y.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(b.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic"]],inputs:{nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzTitle:"nzTitle",nzValue:"nzValue",nzValueStyle:"nzValueStyle",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatistic"],decls:7,vars:8,consts:[[1,"ant-statistic"],[1,"ant-statistic-title"],[4,"nzStringTemplateOutlet"],[1,"ant-statistic-content",3,"ngStyle"],["class","ant-statistic-content-prefix",4,"ngIf"],[3,"nzValue","nzValueTemplate"],["class","ant-statistic-content-suffix",4,"ngIf"],[1,"ant-statistic-content-prefix"],[1,"ant-statistic-content-suffix"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,wn,2,1,"ng-container",2),t.qZA(),t.TgZ(3,"div",3),t.YNc(4,Nn,2,1,"span",4),t._UZ(5,"nz-statistic-number",5),t.YNc(6,En,2,1,"span",6),t.qZA(),t.qZA()),2&e&&(t.ekj("ant-statistic-rtl","rtl"===i.dir),t.xp6(2),t.Q6J("nzStringTemplateOutlet",i.nzTitle),t.xp6(1),t.Q6J("ngStyle",i.nzValueStyle),t.xp6(1),t.Q6J("ngIf",i.nzPrefix),t.xp6(1),t.Q6J("nzValue",i.nzValue)("nzValueTemplate",i.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",i.nzSuffix))},directives:[In,E.f,u.PC,u.O5],encapsulation:2,changeDetection:0}),n})(),Bn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez,se.ud,E.T,Sn]]}),n})();var re=l(6787),Jn=l(1059),nt=l(7545),Qn=l(7138),k=l(2994),Un=l(6947),Ft=l(4090);function qn(n,o){1&n&&t.Hsn(0)}const Rn=["*"];function Ln(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzTitle)}}function Yn(n,o){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,Ln,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzTitle)}}function Gn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzExtra)}}function $n(n,o){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,Gn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExtra)}}function Vn(n,o){if(1&n&&(t.TgZ(0,"div",3),t.YNc(1,Yn,2,1,"div",4),t.YNc(2,$n,2,1,"div",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.nzTitle),t.xp6(1),t.Q6J("ngIf",e.nzExtra)}}function jn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Hn(n,o){}function Wn(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,jn,2,1,"ng-container",7),t.qZA(),t.TgZ(5,"span",15),t.YNc(6,Hn,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!i.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title),t.xp6(2),t.Q6J("ngTemplateOutlet",e.content)}}function Xn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Kn(n,o){if(1&n&&(t.TgZ(0,"td",14),t.YNc(1,Xn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function ti(n,o){}function ei(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Kn,2,1,"td",17),t.TgZ(2,"td",18),t.YNc(3,ti,0,0,"ng-template",16),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title),t.xp6(1),t.Q6J("colSpan",2*e.span-1),t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function ni(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Wn,7,5,"ng-container",2),t.YNc(2,ei,4,3,"ng-container",2),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}function ii(n,o){if(1&n&&(t.TgZ(0,"tr",10),t.YNc(1,ni,3,2,"ng-container",11),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("ngForOf",e)}}function oi(n,o){if(1&n&&(t.ynx(0),t.YNc(1,ii,2,1,"tr",9),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function si(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function ai(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,si,2,1,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=o.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!i.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function ri(n,o){}function li(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",15),t.YNc(4,ri,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(3),t.Q6J("ngTemplateOutlet",e.content)}}function ci(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,ai,5,4,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,li,5,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function ui(n,o){if(1&n&&(t.ynx(0),t.YNc(1,ci,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function pi(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function gi(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",19),t.YNc(2,pi,2,1,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function di(n,o){}function mi(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",18),t.YNc(2,di,0,0,"ng-template",16),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function _i(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,gi,3,2,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,mi,3,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function hi(n,o){if(1&n&&(t.ynx(0),t.YNc(1,_i,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function fi(n,o){if(1&n&&(t.ynx(0),t.YNc(1,ui,2,1,"ng-container",2),t.YNc(2,hi,2,1,"ng-container",2),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}let Nt=(()=>{class n{constructor(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new v.xQ}ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions-item"]],viewQuery:function(e,i){if(1&e&&t.Gf(t.Rgc,7),2&e){let s;t.iGM(s=t.CRH())&&(i.content=s.first)}},inputs:{nzSpan:"nzSpan",nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],features:[t.TTD],ngContentSelectors:Rn,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.YNc(0,qn,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,_.gn)([(0,T.Rn)()],n.prototype,"nzSpan",void 0),n})();const Ci={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};let le=(()=>{class n{constructor(e,i,s,a){this.nzConfigService=e,this.cdr=i,this.breakpointService=s,this.directionality=a,this._nzModuleName="descriptions",this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=Ci,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.dir="ltr",this.breakpoint=Ft.G_.md,this.destroy$=new v.xQ}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe((0,y.R)(this.destroy$)).subscribe(i=>{this.dir=i})}ngOnChanges(e){e.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){const e=this.items.changes.pipe((0,Jn.O)(this.items),(0,y.R)(this.destroy$));(0,re.T)(e,e.pipe((0,nt.w)(()=>(0,re.T)(...this.items.map(i=>i.inputChange$)).pipe((0,Qn.e)(16)))),this.breakpointService.subscribe(Ft.WV).pipe((0,k.b)(i=>this.breakpoint=i))).pipe((0,y.R)(this.destroy$)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}prepareMatrix(){if(!this.items)return;let e=[],i=0;const s=this.realColumn=this.getColumn(),a=this.items.toArray(),c=a.length,p=[],d=()=>{p.push(e),e=[],i=0};for(let f=0;f=s?(i>s&&(0,Un.ZK)(`"nzColumn" is ${s} but we have row length ${i}`),e.push({title:N,content:I,span:s-(i-Q)}),d()):f===c-1?(e.push({title:N,content:I,span:s-(i-Q)}),d()):e.push({title:N,content:I,span:Q})}this.itemMatrix=p}getColumn(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.jY),t.Y36(t.sBO),t.Y36(Ft.r3),t.Y36(b.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions"]],contentQueries:function(e,i,s){if(1&e&&t.Suo(s,Nt,4),2&e){let a;t.iGM(a=t.CRH())&&(i.items=a)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(e,i){2&e&&t.ekj("ant-descriptions-bordered",i.nzBordered)("ant-descriptions-middle","middle"===i.nzSize)("ant-descriptions-small","small"===i.nzSize)("ant-descriptions-rtl","rtl"===i.dir)},inputs:{nzBordered:"nzBordered",nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:"nzColon"},exportAs:["nzDescriptions"],features:[t.TTD],decls:6,vars:3,consts:[["class","ant-descriptions-header",4,"ngIf"],[1,"ant-descriptions-view"],[4,"ngIf"],[1,"ant-descriptions-header"],["class","ant-descriptions-title",4,"ngIf"],["class","ant-descriptions-extra",4,"ngIf"],[1,"ant-descriptions-title"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-extra"],["class","ant-descriptions-row",4,"ngFor","ngForOf"],[1,"ant-descriptions-row"],[4,"ngFor","ngForOf"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],["class","ant-descriptions-item-label",4,"nzStringTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(e,i){1&e&&(t.YNc(0,Vn,3,2,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"table"),t.TgZ(3,"tbody"),t.YNc(4,oi,2,1,"ng-container",2),t.YNc(5,fi,3,2,"ng-container",2),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("ngIf",i.nzTitle||i.nzExtra),t.xp6(4),t.Q6J("ngIf","horizontal"===i.nzLayout),t.xp6(1),t.Q6J("ngIf","vertical"===i.nzLayout))},directives:[u.O5,E.f,u.sg,u.tP],encapsulation:2,changeDetection:0}),(0,_.gn)([(0,T.yF)(),(0,S.oS)()],n.prototype,"nzBordered",void 0),(0,_.gn)([(0,S.oS)()],n.prototype,"nzColumn",void 0),(0,_.gn)([(0,S.oS)()],n.prototype,"nzSize",void 0),(0,_.gn)([(0,S.oS)(),(0,T.yF)()],n.prototype,"nzColon",void 0),n})(),Ti=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez,E.T,se.ud]]}),n})();var A=l(1086),xt=l(8896),kt=l(353),ce=l(6498),ue=l(3489);const pe={leading:!0,trailing:!1};class yi{constructor(o,e,i,s){this.duration=o,this.scheduler=e,this.leading=i,this.trailing=s}call(o,e){return e.subscribe(new bi(o,this.duration,this.scheduler,this.leading,this.trailing))}}class bi extends ue.L{constructor(o,e,i,s,a){super(o),this.duration=e,this.scheduler=i,this.leading=s,this.trailing=a,this._hasTrailingValue=!1,this._trailingValue=null}_next(o){this.throttled?this.trailing&&(this._trailingValue=o,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Si,this.duration,{subscriber:this})),this.leading?this.destination.next(o):this.trailing&&(this._trailingValue=o,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const o=this.throttled;o&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),o.unsubscribe(),this.remove(o),this.throttled=null)}}function Si(n){const{subscriber:o}=n;o.clearThrottle()}class Pt{constructor(o){this.changes=o}static of(o){return new Pt(o)}notEmpty(o){if(this.changes[o]){const e=this.changes[o].currentValue;if(null!=e)return(0,A.of)(e)}return xt.E}has(o){return this.changes[o]?(0,A.of)(this.changes[o].currentValue):xt.E}notFirst(o){return this.changes[o]&&!this.changes[o].isFirstChange()?(0,A.of)(this.changes[o].currentValue):xt.E}notFirstAndEmpty(o){if(this.changes[o]&&!this.changes[o].isFirstChange()){const e=this.changes[o].currentValue;if(null!=e)return(0,A.of)(e)}return xt.E}}const ge=new t.OlP("NGX_ECHARTS_CONFIG");let de=(()=>{class n{constructor(e,i,s){this.el=i,this.ngZone=s,this.autoResize=!0,this.loadingType="default",this.chartInit=new t.vpe,this.optionsError=new t.vpe,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.resize$=new v.xQ,this.echarts=e.echarts}ngOnChanges(e){const i=Pt.of(e);i.notFirstAndEmpty("options").subscribe(s=>this.onOptionsChange(s)),i.notFirstAndEmpty("merge").subscribe(s=>this.setOption(s)),i.has("loading").subscribe(s=>this.toggleLoading(!!s)),i.notFirst("theme").subscribe(()=>this.refreshChart())}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function vi(n,o=kt.P,e=pe){return i=>i.lift(new yi(n,o,e.leading,e.trailing))}(100,kt.z,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(()=>{this.animationFrameID=window.requestAnimationFrame(()=>this.resize$.next())})),this.resizeOb.observe(this.el.nativeElement))}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(e){this.chart&&(e?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}setOption(e,i){if(this.chart)try{this.chart.setOption(e,i)}catch(s){console.error(s),this.optionsError.emit(s)}}refreshChart(){return(0,_.mG)(this,void 0,void 0,function*(){this.dispose(),yield this.initChart()})}createChart(){const e=this.el.nativeElement;if(window&&window.getComputedStyle){const i=window.getComputedStyle(e,null).getPropertyValue("height");(!i||"0px"===i)&&(!e.style.height||"0px"===e.style.height)&&(e.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:s})=>s(e,this.theme,this.initOpts)))}initChart(){return(0,_.mG)(this,void 0,void 0,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(e){return(0,_.mG)(this,void 0,void 0,function*(){!e||(this.chart||(this.chart=yield this.createChart(),this.chartInit.emit(this.chart)),this.setOption(this.options,!0))})}createLazyEvent(e){return this.chartInit.pipe((0,nt.w)(i=>new ce.y(s=>(i.on(e,a=>this.ngZone.run(()=>s.next(a))),()=>{this.chart&&(this.chart.isDisposed()||i.off(e))}))))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ge),t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275dir=t.lG2({type:n,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loadingType:"loadingType",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:[t.TTD]}),n})(),Ai=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:ge,useValue:e}]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[]]}),n})();var Di=l(4466),ct=l(2302),Mi=l(4241);function vt(n=0,o=kt.P){return(!(0,Mi.k)(n)||n<0)&&(n=0),(!o||"function"!=typeof o.schedule)&&(o=kt.P),new ce.y(e=>(e.add(o.schedule(Zi,n,{subscriber:e,counter:0,period:n})),e))}function Zi(n){const{subscriber:o,counter:e,period:i}=n;o.next(e),this.schedule({subscriber:o,counter:e+1,period:i},i)}var Oi=l(3009),wi=l(6688),yt=l(5430),Et=l(1177);function It(...n){const o=n[n.length-1];return"function"==typeof o&&n.pop(),(0,Oi.n)(n,void 0).lift(new Fi(o))}class Fi{constructor(o){this.resultSelector=o}call(o,e){return e.subscribe(new Ni(o,this.resultSelector))}}class Ni extends ue.L{constructor(o,e,i=Object.create(null)){super(o),this.resultSelector=e,this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:void 0}_next(o){const e=this.iterators;(0,wi.k)(o)?e.push(new Ei(o)):e.push("function"==typeof o[yt.hZ]?new Pi(o[yt.hZ]()):new Ii(this.destination,this,o))}_complete(){const o=this.iterators,e=o.length;if(this.unsubscribe(),0!==e){this.active=e;for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class Ii extends Et.Ds{constructor(o,e,i){super(o),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[yt.hZ](){return this}next(){const o=this.buffer;return 0===o.length&&this.isComplete?{value:null,done:!0}:{value:o.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(o){this.buffer.push(o),this.parent.checkIterators()}subscribe(){return(0,Et.ft)(this.observable,new Et.IY(this))}}var Bt=l(534),it=l(7221),bt=l(7106),Jt=l(5278),Bi=l(2340),Z=(()=>{return(n=Z||(Z={})).ALL="all",n.PREPARING="preparing",n.LIVING="living",n.ROUNDING="rounding",n.MONITOR_ENABLED="monitor_enabled",n.MONITOR_DISABLED="monitor_disabled",n.RECORDER_ENABLED="recorder_enabled",n.RECORDER_DISABLED="recorder_disabled",n.STOPPED="stopped",n.WAITTING="waitting",n.RECORDING="recording",n.REMUXING="remuxing",n.INJECTING="injecting",Z;var n})(),O=(()=>{return(n=O||(O={})).STOPPED="stopped",n.WAITING="waiting",n.RECORDING="recording",n.REMUXING="remuxing",n.INJECTING="injecting",O;var n})(),ut=(()=>{return(n=ut||(ut={})).WAITING="waiting",n.REMUXING="remuxing",n.INJECTING="injecting",ut;var n})(),x=(()=>{return(n=x||(x={})).RECORDING="recording",n.REMUXING="remuxing",n.INJECTING="injecting",n.COMPLETED="completed",n.MISSING="missing",n.BROKEN="broken",x;var n})(),Ji=l(520);const C=Bi.N.apiUrl;let St=(()=>{class n{constructor(e){this.http=e}getAllTaskData(e=Z.ALL){return this.http.get(C+"/api/v1/tasks/data",{params:{select:e}})}getTaskData(e){return this.http.get(C+`/api/v1/tasks/${e}/data`)}getVideoFileDetails(e){return this.http.get(C+`/api/v1/tasks/${e}/videos`)}getDanmakuFileDetails(e){return this.http.get(C+`/api/v1/tasks/${e}/danmakus`)}getTaskParam(e){return this.http.get(C+`/api/v1/tasks/${e}/param`)}getMetadata(e){return this.http.get(C+`/api/v1/tasks/${e}/metadata`)}getStreamProfile(e){return this.http.get(C+`/api/v1/tasks/${e}/profile`)}updateAllTaskInfos(){return this.http.post(C+"/api/v1/tasks/info",null)}updateTaskInfo(e){return this.http.post(C+`/api/v1/tasks/${e}/info`,null)}addTask(e){return this.http.post(C+`/api/v1/tasks/${e}`,null)}removeTask(e){return this.http.delete(C+`/api/v1/tasks/${e}`)}removeAllTasks(){return this.http.delete(C+"/api/v1/tasks")}startTask(e){return this.http.post(C+`/api/v1/tasks/${e}/start`,null)}startAllTasks(){return this.http.post(C+"/api/v1/tasks/start",null)}stopTask(e,i=!1,s=!1){return this.http.post(C+`/api/v1/tasks/${e}/stop`,{force:i,background:s})}stopAllTasks(e=!1,i=!1){return this.http.post(C+"/api/v1/tasks/stop",{force:e,background:i})}enableTaskMonitor(e){return this.http.post(C+`/api/v1/tasks/${e}/monitor/enable`,null)}enableAllMonitors(){return this.http.post(C+"/api/v1/tasks/monitor/enable",null)}disableTaskMonitor(e,i=!1){return this.http.post(C+`/api/v1/tasks/${e}/monitor/disable`,{background:i})}disableAllMonitors(e=!1){return this.http.post(C+"/api/v1/tasks/monitor/disable",{background:e})}enableTaskRecorder(e){return this.http.post(C+`/api/v1/tasks/${e}/recorder/enable`,null)}enableAllRecorders(){return this.http.post(C+"/api/v1/tasks/recorder/enable",null)}disableTaskRecorder(e,i=!1,s=!1){return this.http.post(C+`/api/v1/tasks/${e}/recorder/disable`,{force:i,background:s})}disableAllRecorders(e=!1,i=!1){return this.http.post(C+"/api/v1/tasks/recorder/disable",{force:e,background:i})}cutStream(e){return this.http.post(C+`/api/v1/tasks/${e}/cut`,null)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ji.eN))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Qi=l(7512),Ui=l(5545);let qi=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-user-info-detail"]],inputs:{loading:"loading",userInfo:"userInfo"},decls:12,vars:6,consts:[["nzTitle","\u4e3b\u64ad\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6635\u79f0"],["nzTitle","\u6027\u522b"],["nzTitle","UID"],["nzTitle","\u7b49\u7ea7"],["nzTitle","\u7b7e\u540d"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t._uU(7),t.qZA(),t.TgZ(8,"nz-descriptions-item",5),t._uU(9),t.qZA(),t.TgZ(10,"nz-descriptions-item",6),t._uU(11),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",i.loading),t.xp6(3),t.Oqu(i.userInfo.name),t.xp6(2),t.Oqu(i.userInfo.gender),t.xp6(2),t.Oqu(i.userInfo.uid),t.xp6(2),t.Oqu(i.userInfo.level),t.xp6(2),t.hij(" ",i.userInfo.sign," "))},directives:[D.bd,le,Nt],styles:[""],changeDetection:0}),n})();function Ri(n,o){if(1&n&&(t.TgZ(0,"span",18),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",e.roomInfo.short_room_id," ")}}function Li(n,o){1&n&&(t.ynx(0),t._uU(1,"\u95f2\u7f6e"),t.BQk())}function Yi(n,o){1&n&&(t.ynx(0),t._uU(1,"\u76f4\u64ad\u4e2d"),t.BQk())}function Gi(n,o){1&n&&(t.ynx(0),t._uU(1,"\u8f6e\u64ad\u4e2d"),t.BQk())}function $i(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",t.Dn7(2,1,1e3*e.roomInfo.live_start_time,"YYYY-MM-dd HH:mm:ss","+8")," ")}}function Vi(n,o){if(1&n&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e," ")}}function ji(n,o){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Oqu(e)}}let Hi=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-room-info-detail"]],inputs:{loading:"loading",roomInfo:"roomInfo"},decls:24,vars:13,consts:[["nzTitle","\u76f4\u64ad\u95f4\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6807\u9898"],["nzTitle","\u5206\u533a"],["nzTitle","\u623f\u95f4\u53f7"],[1,"room-id-wrapper"],["class","short-room-id",4,"ngIf"],[1,"real-room-id"],["nzTitle","\u72b6\u6001"],[3,"ngSwitch"],[4,"ngSwitchCase"],["nzTitle","\u5f00\u64ad\u65f6\u95f4"],[4,"ngIf"],["nzTitle","\u6807\u7b7e"],[1,"tags"],[4,"ngFor","ngForOf"],["nzTitle","\u7b80\u4ecb"],[1,"introduction"],[1,"short-room-id"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t.TgZ(7,"span",5),t.YNc(8,Ri,2,1,"span",6),t.TgZ(9,"span",7),t._uU(10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"nz-descriptions-item",8),t.ynx(12,9),t.YNc(13,Li,2,0,"ng-container",10),t.YNc(14,Yi,2,0,"ng-container",10),t.YNc(15,Gi,2,0,"ng-container",10),t.BQk(),t.qZA(),t.TgZ(16,"nz-descriptions-item",11),t.YNc(17,$i,3,5,"ng-container",12),t.qZA(),t.TgZ(18,"nz-descriptions-item",13),t.TgZ(19,"div",14),t.YNc(20,Vi,2,1,"nz-tag",15),t.qZA(),t.qZA(),t.TgZ(21,"nz-descriptions-item",16),t.TgZ(22,"div",17),t.YNc(23,ji,2,1,"p",15),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",i.loading),t.xp6(3),t.Oqu(i.roomInfo.title),t.xp6(2),t.AsE(" ",i.roomInfo.parent_area_name," - ",i.roomInfo.area_name," "),t.xp6(3),t.Q6J("ngIf",i.roomInfo.short_room_id),t.xp6(2),t.hij(" ",i.roomInfo.room_id," "),t.xp6(2),t.Q6J("ngSwitch",i.roomInfo.live_status),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1),t.xp6(1),t.Q6J("ngSwitchCase",2),t.xp6(2),t.Q6J("ngIf",0!==i.roomInfo.live_start_time),t.xp6(3),t.Q6J("ngForOf",i.roomInfo.tags.split(",")),t.xp6(3),t.Q6J("ngForOf",i.roomInfo.description.split("\n")))},directives:[D.bd,le,Nt,u.O5,u.RF,u.n9,u.sg,st],pipes:[u.uU],styles:['.room-id-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.room-id-wrapper[_ngcontent-%COMP%] .short-room-id[_ngcontent-%COMP%]:after{display:inline-block;width:1em;content:","}.tags[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;row-gap:.5em}.introduction[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;padding:0}'],changeDetection:0}),n})();var j=l(2134);let me=(()=>{class n{transform(e){if(e<0)throw RangeError("the argument totalSeconds must be greater than or equal to 0");const i=Math.floor(e/3600),s=Math.floor(e/60%60),a=Math.floor(e%60);let c="";return i>0&&(c+=i+":"),c+=s<10?"0"+s:s,c+=":",c+=a<10?"0"+a:a,c}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"duration",type:n,pure:!0}),n})(),At=(()=>{class n{transform(e,i){if("string"==typeof e)e=parseFloat(e);else if("number"!=typeof e||isNaN(e))return"N/A";return(i=Object.assign({bitrate:!1,precision:3,spacer:" "},i)).bitrate?(0,j.AX)(e,i.spacer,i.precision):(0,j.N4)(e,i.spacer,i.precision)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"datarate",type:n,pure:!0}),n})();var Wi=l(855);let Dt=(()=>{class n{transform(e,i){return Wi(e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filesize",type:n,pure:!0}),n})();const Xi={2e4:"4K",1e4:"\u539f\u753b",401:"\u84dd\u5149(\u675c\u6bd4)",400:"\u84dd\u5149",250:"\u8d85\u6e05",150:"\u9ad8\u6e05",80:"\u6d41\u7545"};let Qt=(()=>{class n{transform(e){return Xi[e]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"quality",type:n,pure:!0}),n})();function Ki(n,o){if(1&n&&(t._uU(0),t.ALo(1,"duration")),2&n){const e=t.oxw();t.Oqu(t.lcZ(1,1,e.taskStatus.rec_elapsed))}}function to(n,o){if(1&n&&(t._uU(0),t.ALo(1,"datarate")),2&n){const e=t.oxw();t.Oqu(t.lcZ(1,1,e.taskStatus.rec_rate))}}const eo=function(){return{spacer:" "}};function no(n,o){if(1&n&&(t._uU(0),t.ALo(1,"filesize")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,e.taskStatus.rec_total,t.DdM(4,eo)))}}function io(n,o){if(1&n&&(t._uU(0),t.ALo(1,"quality")),2&n){const e=t.oxw();t.Oqu(e.taskStatus.real_quality_number?t.lcZ(1,1,e.taskStatus.real_quality_number)+" ("+e.taskStatus.real_quality_number+")":"")}}let oo=(()=>{class n{constructor(e){this.changeDetector=e,this.loading=!0,this.initialChartOptions={},this.updatedChartOptions={},this.chartData=[],this.initChartOptions()}ngOnChanges(){this.taskStatus.running_status===O.RECORDING&&this.updateChartOptions()}initChartOptions(){const e=Date.now();for(let i=59;i>=0;i--){const s=new Date(e-1e3*i);this.chartData.push({name:s.toLocaleString("zh-CN",{hour12:!1}),value:[s.toISOString(),0]})}this.initialChartOptions={title:{},tooltip:{trigger:"axis",formatter:i=>{const s=i[0];return`\n
\n
\n ${new Date(s.name).toLocaleTimeString("zh-CN",{hour12:!1})}\n
\n
${(0,j.N4)(s.value[1])}
\n
\n `},axisPointer:{animation:!1}},xAxis:{type:"time",name:"\u65f6\u95f4",min:"dataMin",max:"dataMax",splitLine:{show:!0}},yAxis:{type:"value",name:"\u5f55\u5236\u901f\u5ea6",splitLine:{show:!0},axisLabel:{formatter:i=>(0,j.N4)(i)}},series:[{name:"\u5f55\u5236\u901f\u5ea6",type:"line",showSymbol:!1,smooth:!0,lineStyle:{width:1},areaStyle:{opacity:.2},data:this.chartData}]}}updateChartOptions(){const e=new Date;this.chartData.push({name:e.toLocaleString("zh-CN",{hour12:!1}),value:[e.toISOString(),this.taskStatus.rec_rate]}),this.chartData.shift(),this.updatedChartOptions={series:[{data:this.chartData}]},this.changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-recording-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},features:[t.TTD],decls:17,vars:17,consts:[["nzTitle","\u5f55\u5236\u8be6\u60c5",3,"nzLoading"],[1,"statistics"],[3,"nzTitle","nzValueTemplate"],["recordingElapsed",""],["recordingRate",""],["recordedTotal",""],["recordingQuality",""],[3,"nzTitle","nzValue"],["echarts","",1,"rec-rate-chart",3,"loading","options","merge"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.YNc(3,Ki,2,3,"ng-template",null,3,t.W1O),t._UZ(5,"nz-statistic",2),t.YNc(6,to,2,3,"ng-template",null,4,t.W1O),t._UZ(8,"nz-statistic",2),t.YNc(9,no,2,5,"ng-template",null,5,t.W1O),t._UZ(11,"nz-statistic",2),t.YNc(12,io,2,3,"ng-template",null,6,t.W1O),t._UZ(14,"nz-statistic",7),t.ALo(15,"number"),t.qZA(),t._UZ(16,"div",8),t.qZA()),2&e){const s=t.MAs(4),a=t.MAs(7),c=t.MAs(10),p=t.MAs(13);t.Q6J("nzLoading",i.loading),t.xp6(2),t.Q6J("nzTitle","\u5f55\u5236\u7528\u65f6")("nzValueTemplate",s),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u901f\u5ea6")("nzValueTemplate",a),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u603b\u8ba1")("nzValueTemplate",c),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u753b\u8d28")("nzValueTemplate",p),t.xp6(3),t.Q6J("nzTitle","\u5f39\u5e55\u603b\u8ba1")("nzValue",t.xi3(15,14,i.taskStatus.danmu_total,"1.0-2")),t.xp6(2),t.Q6J("loading",i.loading)("options",i.initialChartOptions)("merge",i.updatedChartOptions)}},directives:[D.bd,ae,de],pipes:[me,At,Dt,Qt,u.JJ],styles:[".statistics[_ngcontent-%COMP%]{--grid-width: 200px;display:grid;grid-template-columns:repeat(auto-fill,var(--grid-width));grid-gap:1em;gap:1em;justify-content:center;margin:0 auto}@media screen and (max-width: 1024px){.statistics[_ngcontent-%COMP%]{--grid-width: 180px}}@media screen and (max-width: 720px){.statistics[_ngcontent-%COMP%]{--grid-width: 160px}}@media screen and (max-width: 680px){.statistics[_ngcontent-%COMP%]{--grid-width: 140px}}@media screen and (max-width: 480px){.statistics[_ngcontent-%COMP%]{--grid-width: 120px}}.rec-rate-chart[_ngcontent-%COMP%]{width:100%;height:300px;margin:0}"],changeDetection:0}),n})();function so(n,o){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.taskStatus.stream_host)}}function ao(n,o){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.taskStatus.real_stream_format)}}const ro=function(){return{bitrate:!0}};function lo(n,o){if(1&n&&(t._uU(0),t.ALo(1,"datarate")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,8*e.taskStatus.dl_rate,t.DdM(4,ro)))}}const co=function(){return{spacer:" "}};function uo(n,o){if(1&n&&(t._uU(0),t.ALo(1,"filesize")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,e.taskStatus.dl_total,t.DdM(4,co)))}}let po=(()=>{class n{constructor(e){this.changeDetector=e,this.loading=!0,this.initialChartOptions={},this.updatedChartOptions={},this.chartData=[],this.initChartOptions()}ngOnChanges(){this.taskStatus.running_status===O.RECORDING&&this.updateChartOptions()}initChartOptions(){const e=Date.now();for(let i=59;i>=0;i--){const s=new Date(e-1e3*i);this.chartData.push({name:s.toLocaleString("zh-CN",{hour12:!1}),value:[s.toISOString(),0]})}this.initialChartOptions={title:{},tooltip:{trigger:"axis",formatter:i=>{const s=i[0];return`\n
\n
\n ${new Date(s.name).toLocaleTimeString("zh-CN",{hour12:!1})}\n
\n
${(0,j.AX)(s.value[1])}
\n
\n `},axisPointer:{animation:!1}},xAxis:{type:"time",name:"\u65f6\u95f4",min:"dataMin",max:"dataMax",splitLine:{show:!0}},yAxis:{type:"value",name:"\u4e0b\u8f7d\u901f\u5ea6",splitLine:{show:!0},axisLabel:{formatter:function(i){return(0,j.AX)(i)}}},series:[{name:"\u4e0b\u8f7d\u901f\u5ea6",type:"line",showSymbol:!1,smooth:!0,lineStyle:{width:1},areaStyle:{opacity:.2},data:this.chartData}]}}updateChartOptions(){const e=new Date;this.chartData.push({name:e.toLocaleString("zh-CN",{hour12:!1}),value:[e.toISOString(),8*this.taskStatus.dl_rate]}),this.chartData.shift(),this.updatedChartOptions={series:[{data:this.chartData}]},this.changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-network-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},features:[t.TTD],decls:15,vars:12,consts:[["nzTitle","\u7f51\u7edc\u8be6\u60c5",3,"nzLoading"],[1,"statistics"],[1,"stream-host",3,"nzTitle","nzValueTemplate"],["streamHost",""],[3,"nzTitle","nzValueTemplate"],["realStreamFormat",""],["downloadRate",""],["downloadTotal",""],["echarts","",1,"dl-rate-chart",3,"loading","options","merge"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.YNc(3,so,1,1,"ng-template",null,3,t.W1O),t._UZ(5,"nz-statistic",4),t.YNc(6,ao,1,1,"ng-template",null,5,t.W1O),t._UZ(8,"nz-statistic",4),t.YNc(9,lo,2,5,"ng-template",null,6,t.W1O),t._UZ(11,"nz-statistic",4),t.YNc(12,uo,2,5,"ng-template",null,7,t.W1O),t.qZA(),t._UZ(14,"div",8),t.qZA()),2&e){const s=t.MAs(4),a=t.MAs(7),c=t.MAs(10),p=t.MAs(13);t.Q6J("nzLoading",i.loading),t.xp6(2),t.Q6J("nzTitle","\u6d41\u4e3b\u673a")("nzValueTemplate",s),t.xp6(3),t.Q6J("nzTitle","\u6d41\u683c\u5f0f")("nzValueTemplate",a),t.xp6(3),t.Q6J("nzTitle","\u4e0b\u8f7d\u901f\u5ea6")("nzValueTemplate",c),t.xp6(3),t.Q6J("nzTitle","\u4e0b\u8f7d\u603b\u8ba1")("nzValueTemplate",p),t.xp6(3),t.Q6J("loading",i.loading)("options",i.initialChartOptions)("merge",i.updatedChartOptions)}},directives:[D.bd,ae,de],pipes:[At,Dt],styles:[".statistics[_ngcontent-%COMP%]{--grid-width: 200px;display:grid;grid-template-columns:repeat(auto-fill,var(--grid-width));grid-gap:1em;gap:1em;justify-content:center;margin:0 auto}@media screen and (max-width: 1024px){.statistics[_ngcontent-%COMP%]{--grid-width: 180px}}@media screen and (max-width: 720px){.statistics[_ngcontent-%COMP%]{--grid-width: 160px}}@media screen and (max-width: 680px){.statistics[_ngcontent-%COMP%]{--grid-width: 140px}}@media screen and (max-width: 480px){.statistics[_ngcontent-%COMP%]{--grid-width: 120px}}.stream-host[_ngcontent-%COMP%]{grid-column:1/3;grid-row:1}.dl-rate-chart[_ngcontent-%COMP%]{width:100%;height:300px;margin:0}"],changeDetection:0}),n})(),Ut=(()=>{class n{transform(e){var i,s;return e?e.startsWith("/")?null!==(i=e.split("/").pop())&&void 0!==i?i:"":null!==(s=e.split("\\").pop())&&void 0!==s?s:"":""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filename",type:n,pure:!0}),n})(),_e=(()=>{class n{transform(e){return e&&0!==e.total?Math.round(e.count/e.total*100):0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"progress",type:n,pure:!0}),n})(),go=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}get title(){switch(this.taskStatus.postprocessor_status){case ut.INJECTING:return"\u66f4\u65b0 FLV \u5143\u6570\u636e";case ut.REMUXING:return"\u8f6c\u6362 FLV \u4e3a MP4";default:return"\u6587\u4ef6\u5904\u7406"}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-postprocessing-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},decls:6,vars:9,consts:[[3,"nzTitle","nzLoading"],[3,"title"],["nzStatus","active",3,"nzPercent"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"p",1),t._uU(2),t.ALo(3,"filename"),t.qZA(),t._UZ(4,"nz-progress",2),t.ALo(5,"progress"),t.qZA()),2&e){let s;t.Q6J("nzTitle",i.title)("nzLoading",i.loading),t.xp6(1),t.Q6J("title",i.taskStatus.postprocessing_path),t.xp6(1),t.hij(" ",t.lcZ(3,5,null!==(s=i.taskStatus.postprocessing_path)&&void 0!==s?s:"")," "),t.xp6(2),t.Q6J("nzPercent",null===i.taskStatus.postprocessing_progress?0:t.lcZ(5,7,i.taskStatus.postprocessing_progress))}},directives:[D.bd,oe],pipes:[Ut,_e],styles:["p[_ngcontent-%COMP%]{margin:0}"],changeDetection:0}),n})();const mo=new Map([[x.RECORDING,"\u5f55\u5236\u4e2d"],[x.INJECTING,"\u5904\u7406\u4e2d"],[x.REMUXING,"\u5904\u7406\u4e2d"],[x.COMPLETED,"\u5df2\u5b8c\u6210"],[x.MISSING,"\u4e0d\u5b58\u5728"],[x.BROKEN,"\u5f55\u5236\u4e2d\u65ad"]]);let _o=(()=>{class n{transform(e){var i;return null!==(i=mo.get(e))&&void 0!==i?i:"\uff1f\uff1f\uff1f"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filestatus",type:n,pure:!0}),n})();function ho(n,o){if(1&n&&(t.TgZ(0,"th",5),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("nzSortOrder",e.sortOrder)("nzSortFn",e.sortFn)("nzSortDirections",e.sortDirections)("nzFilters",e.listOfFilter)("nzFilterFn",e.filterFn)("nzFilterMultiple",e.filterMultiple)("nzShowFilter",e.listOfFilter.length>0),t.xp6(1),t.hij(" ",e.name," ")}}function fo(n,o){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td",6),t._uU(2),t.ALo(3,"filename"),t.qZA(),t.TgZ(4,"td",6),t.ALo(5,"number"),t._uU(6),t.ALo(7,"filesize"),t.qZA(),t.TgZ(8,"td",6),t._uU(9),t.ALo(10,"filestatus"),t.qZA(),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.s9C("title",e.path),t.xp6(1),t.Oqu(t.lcZ(3,9,e.path)),t.xp6(2),t.s9C("title",t.lcZ(5,11,e.size)),t.xp6(2),t.Oqu(t.lcZ(7,13,e.size)),t.xp6(2),t.Gre("status ",e.status,""),t.s9C("title",e.status),t.xp6(1),t.hij(" ",t.lcZ(10,15,e.status)," ")}}const he=[x.RECORDING,x.INJECTING,x.REMUXING,x.COMPLETED,x.MISSING];let zo=(()=>{class n{constructor(){this.loading=!0,this.videoFileDetails=[],this.danmakuFileDetails=[],this.VideoFileStatus=x,this.fileDetails=[],this.columns=[{name:"\u6587\u4ef6",sortOrder:"ascend",sortFn:(e,i)=>e.path.localeCompare(i.path),sortDirections:["ascend","descend"],filterMultiple:!1,listOfFilter:[{text:"\u89c6\u9891",value:"video"},{text:"\u5f39\u5e55",value:"danmaku"}],filterFn:(e,i)=>{switch(e){case"video":return i.path.endsWith(".flv")||i.path.endsWith(".mp4");case"danmaku":return i.path.endsWith(".xml");default:return!1}}},{name:"\u5927\u5c0f",sortOrder:null,sortFn:(e,i)=>e.size-i.size,sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[],filterFn:null},{name:"\u72b6\u6001",sortOrder:null,sortFn:(e,i)=>he.indexOf(e.status)-he.indexOf(i.status),sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[{text:"\u5f55\u5236\u4e2d",value:[x.RECORDING]},{text:"\u5904\u7406\u4e2d",value:[x.INJECTING,x.REMUXING]},{text:"\u5df2\u5b8c\u6210",value:[x.COMPLETED]},{text:"\u4e0d\u5b58\u5728",value:[x.MISSING]}],filterFn:(e,i)=>e.some(s=>s.some(a=>a===i.status))}]}ngOnChanges(){this.fileDetails=[...this.videoFileDetails,...this.danmakuFileDetails]}trackByPath(e,i){return i.path}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-file-detail"]],inputs:{loading:"loading",videoFileDetails:"videoFileDetails",danmakuFileDetails:"danmakuFileDetails"},features:[t.TTD],decls:8,vars:8,consts:[["nzTitle","\u6587\u4ef6\u8be6\u60c5",3,"nzLoading"],[3,"nzLoading","nzData","nzPageSize","nzHideOnSinglePage"],["fileDetailsTable",""],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter"],[3,"title"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-table",1,2),t.TgZ(3,"thead"),t.TgZ(4,"tr"),t.YNc(5,ho,2,8,"th",3),t.qZA(),t.qZA(),t.TgZ(6,"tbody"),t.YNc(7,fo,11,17,"tr",4),t.qZA(),t.qZA(),t.qZA()),2&e){const s=t.MAs(2);t.Q6J("nzLoading",i.loading),t.xp6(1),t.Q6J("nzLoading",i.loading)("nzData",i.fileDetails)("nzPageSize",8)("nzHideOnSinglePage",!0),t.xp6(4),t.Q6J("ngForOf",i.columns),t.xp6(2),t.Q6J("ngForOf",s.data)("ngForTrackBy",i.trackByPath)}},directives:[D.bd,J.N8,J.Om,J.$Z,u.sg,J.Uo,J._C,J.qD,J.p0],pipes:[Ut,u.JJ,Dt,_o],styles:[".status.recording[_ngcontent-%COMP%]{color:red}.status.injecting[_ngcontent-%COMP%], .status.remuxing[_ngcontent-%COMP%]{color:#00f}.status.completed[_ngcontent-%COMP%]{color:green}.status.missing[_ngcontent-%COMP%]{color:gray}.status.broken[_ngcontent-%COMP%]{color:orange}"],changeDetection:0}),n})();function Co(n,o){if(1&n&&t._UZ(0,"app-task-user-info-detail",6),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("userInfo",e.taskData.user_info)}}function To(n,o){if(1&n&&t._UZ(0,"app-task-room-info-detail",7),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("roomInfo",e.taskData.room_info)}}function xo(n,o){if(1&n&&t._UZ(0,"app-task-recording-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function ko(n,o){if(1&n&&t._UZ(0,"app-task-network-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function vo(n,o){if(1&n&&t._UZ(0,"app-task-postprocessing-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function yo(n,o){if(1&n&&(t.YNc(0,Co,1,2,"app-task-user-info-detail",2),t.YNc(1,To,1,2,"app-task-room-info-detail",3),t.YNc(2,xo,1,2,"app-task-recording-detail",4),t.YNc(3,ko,1,2,"app-task-network-detail",4),t.YNc(4,vo,1,2,"app-task-postprocessing-detail",4),t._UZ(5,"app-task-file-detail",5)),2&n){const e=t.oxw();t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",null==e.taskData||null==e.taskData.task_status?null:e.taskData.task_status.postprocessing_path),t.xp6(1),t.Q6J("loading",e.loading)("videoFileDetails",e.videoFileDetails)("danmakuFileDetails",e.danmakuFileDetails)}}const bo=function(){return{"max-width":"unset"}},So=function(){return{"row-gap":"1em"}};let Ao=(()=>{class n{constructor(e,i,s,a,c){this.route=e,this.router=i,this.changeDetector=s,this.notification=a,this.taskService=c,this.videoFileDetails=[],this.danmakuFileDetails=[],this.loading=!0}ngOnInit(){this.route.paramMap.subscribe(e=>{this.roomId=parseInt(e.get("id")),this.syncData()})}ngOnDestroy(){this.desyncData()}syncData(){this.dataSubscription=(0,A.of)((0,A.of)(0),vt(1e3)).pipe((0,Bt.u)(),(0,nt.w)(()=>It(this.taskService.getTaskData(this.roomId),this.taskService.getVideoFileDetails(this.roomId),this.taskService.getDanmakuFileDetails(this.roomId))),(0,it.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,bt.X)(10,3e3)).subscribe(([e,i,s])=>{this.loading=!1,this.taskData=e,this.videoFileDetails=i,this.danmakuFileDetails=s,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ct.gz),t.Y36(ct.F0),t.Y36(t.sBO),t.Y36(Jt.zb),t.Y36(St))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-detail"]],decls:2,vars:5,consts:[["pageTitle","\u4efb\u52a1\u8be6\u60c5",3,"loading","pageStyles","contentStyles"],["appSubPageContent",""],[3,"loading","userInfo",4,"ngIf"],[3,"loading","roomInfo",4,"ngIf"],[3,"loading","taskStatus",4,"ngIf"],[3,"loading","videoFileDetails","danmakuFileDetails"],[3,"loading","userInfo"],[3,"loading","roomInfo"],[3,"loading","taskStatus"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,yo,6,8,"ng-template",1),t.qZA()),2&e&&t.Q6J("loading",i.loading)("pageStyles",t.DdM(3,bo))("contentStyles",t.DdM(4,So))},directives:[Qi.q,Ui.Y,u.O5,qi,Hi,oo,po,go,zo],styles:[""],changeDetection:0}),n})();var fe=l(2323),Do=l(13),Mo=l(5778),H=l(4850);const pt=["(max-width: 534.98px)","(min-width: 535px) and (max-width: 1199.98px)","(min-width: 1200px)"];var qt=l(9727);let Rt=(()=>{class n{constructor(e,i){this.message=e,this.taskService=i}getAllTaskRoomIds(){return this.taskService.getAllTaskData().pipe((0,H.U)(e=>e.map(i=>i.room_info.room_id)))}updateTaskInfo(e){return this.taskService.updateTaskInfo(e).pipe((0,k.b)(()=>{this.message.success(`[${e}] \u6210\u529f\u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e`)},i=>{this.message.error(`[${e}] \u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e\u51fa\u9519: ${i.message}`)}))}updateAllTaskInfos(){return this.taskService.updateAllTaskInfos().pipe((0,k.b)(()=>{this.message.success("\u6210\u529f\u5237\u65b0\u5168\u90e8\u4efb\u52a1\u7684\u6570\u636e")},e=>{this.message.error(`\u5237\u65b0\u5168\u90e8\u4efb\u52a1\u7684\u6570\u636e\u51fa\u9519: ${e.message}`)}))}addTask(e){return this.taskService.addTask(e).pipe((0,H.U)(i=>({type:"success",message:"\u6210\u529f\u6dfb\u52a0\u4efb\u52a1"})),(0,it.K)(i=>{let s;return s=409==i.status?{type:"error",message:"\u4efb\u52a1\u5df2\u5b58\u5728\uff0c\u4e0d\u80fd\u91cd\u590d\u6dfb\u52a0\u3002"}:403==i.status?{type:"warning",message:"\u4efb\u52a1\u6570\u91cf\u8d85\u8fc7\u9650\u5236\uff0c\u4e0d\u80fd\u6dfb\u52a0\u4efb\u52a1\u3002"}:404==i.status?{type:"error",message:"\u76f4\u64ad\u95f4\u4e0d\u5b58\u5728"}:{type:"error",message:`\u6dfb\u52a0\u4efb\u52a1\u51fa\u9519: ${i.message}`},(0,A.of)(s)}),(0,H.U)(i=>(i.message=`${e}: ${i.message}`,i)),(0,k.b)(i=>{this.message[i.type](i.message)}))}removeTask(e){return this.taskService.removeTask(e).pipe((0,k.b)(()=>{this.message.success(`[${e}] \u4efb\u52a1\u5df2\u5220\u9664`)},i=>{this.message.error(`[${e}] \u5220\u9664\u4efb\u52a1\u51fa\u9519: ${i.message}`)}))}removeAllTasks(){const e=this.message.loading("\u6b63\u5728\u5220\u9664\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.removeAllTasks().pipe((0,k.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5220\u9664\u5168\u90e8\u4efb\u52a1")},i=>{this.message.remove(e),this.message.error(`\u5220\u9664\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${i.message}`)}))}startTask(e){const i=this.message.loading(`[${e}] \u6b63\u5728\u8fd0\u884c\u4efb\u52a1...`,{nzDuration:0}).messageId;return this.taskService.startTask(e).pipe((0,k.b)(()=>{this.message.remove(i),this.message.success(`[${e}] \u6210\u529f\u8fd0\u884c\u4efb\u52a1`)},s=>{this.message.remove(i),this.message.error(`[${e}] \u8fd0\u884c\u4efb\u52a1\u51fa\u9519: ${s.message}`)}))}startAllTasks(){const e=this.message.loading("\u6b63\u5728\u8fd0\u884c\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.startAllTasks().pipe((0,k.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u8fd0\u884c\u5168\u90e8\u4efb\u52a1")},i=>{this.message.remove(e),this.message.error(`\u8fd0\u884c\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${i.message}`)}))}stopTask(e,i=!1){const s=this.message.loading(`[${e}] \u6b63\u5728\u505c\u6b62\u4efb\u52a1...`,{nzDuration:0}).messageId;return this.taskService.stopTask(e,i).pipe((0,k.b)(()=>{this.message.remove(s),this.message.success(`[${e}] \u6210\u529f\u505c\u6b62\u4efb\u52a1`)},a=>{this.message.remove(s),this.message.error(`[${e}] \u505c\u6b62\u4efb\u52a1\u51fa\u9519: ${a.message}`)}))}stopAllTasks(e=!1){const i=this.message.loading("\u6b63\u5728\u505c\u6b62\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.stopAllTasks(e).pipe((0,k.b)(()=>{this.message.remove(i),this.message.success("\u6210\u529f\u505c\u6b62\u5168\u90e8\u4efb\u52a1")},s=>{this.message.remove(i),this.message.error(`\u505c\u6b62\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${s.message}`)}))}enableRecorder(e){const i=this.message.loading(`[${e}] \u6b63\u5728\u5f00\u542f\u5f55\u5236...`,{nzDuration:0}).messageId;return this.taskService.enableTaskRecorder(e).pipe((0,k.b)(()=>{this.message.remove(i),this.message.success(`[${e}] \u6210\u529f\u5f00\u542f\u5f55\u5236`)},s=>{this.message.remove(i),this.message.error(`[${e}] \u5f00\u542f\u5f55\u5236\u51fa\u9519: ${s.message}`)}))}enableAllRecorders(){const e=this.message.loading("\u6b63\u5728\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.enableAllRecorders().pipe((0,k.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},i=>{this.message.remove(e),this.message.error(`\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${i.message}`)}))}disableRecorder(e,i=!1){const s=this.message.loading(`[${e}] \u6b63\u5728\u5173\u95ed\u5f55\u5236...`,{nzDuration:0}).messageId;return this.taskService.disableTaskRecorder(e,i).pipe((0,k.b)(()=>{this.message.remove(s),this.message.success(`[${e}] \u6210\u529f\u5173\u95ed\u5f55\u5236`)},a=>{this.message.remove(s),this.message.error(`[${e}] \u5173\u95ed\u5f55\u5236\u51fa\u9519: ${a.message}`)}))}disableAllRecorders(e=!1){const i=this.message.loading("\u6b63\u5728\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.disableAllRecorders(e).pipe((0,k.b)(()=>{this.message.remove(i),this.message.success("\u6210\u529f\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},s=>{this.message.remove(i),this.message.error(`\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${s.message}`)}))}cutStream(e){return this.taskService.cutStream(e).pipe((0,k.b)(()=>{this.message.success(`[${e}] \u6587\u4ef6\u5207\u5272\u5df2\u89e6\u53d1`)},i=>{403==i.status?this.message.warning(`[${e}] \u65f6\u957f\u592a\u77ed\u4e0d\u80fd\u5207\u5272\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002`):this.message.error(`[${e}] \u5207\u5272\u6587\u4ef6\u51fa\u9519: ${i.message}`)}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(qt.dD),t.LFG(St))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Lt=l(2683),gt=l(4219);function Zo(n,o){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(5),i=t.MAs(9),s=t.MAs(11),a=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",i),t.xp6(2),t.Q6J("ngTemplateOutlet",s),t.xp6(2),t.Q6J("ngTemplateOutlet",a)}}function Oo(n,o){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(7),i=t.MAs(9),s=t.MAs(11),a=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",i),t.xp6(2),t.Q6J("ngTemplateOutlet",s),t.xp6(2),t.Q6J("ngTemplateOutlet",a)}}function wo(n,o){if(1&n&&(t.ynx(0),t.GkF(1,8),t.GkF(2,8),t.BQk()),2&n){t.oxw();const e=t.MAs(9),i=t.MAs(20);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(1),t.Q6J("ngTemplateOutlet",i)}}function Fo(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"label",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("nzValue",e.value),t.xp6(1),t.Oqu(e.label)}}function No(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-radio-group",14),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().selection=s})("ngModelChange",function(s){return t.CHM(e),t.oxw().selectionChange.emit(s)}),t.YNc(1,Fo,3,2,"ng-container",15),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("ngModel",e.selection),t.xp6(1),t.Q6J("ngForOf",e.selections)}}function Po(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-select",17),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().selection=s})("ngModelChange",function(s){return t.CHM(e),t.oxw().selectionChange.emit(s)}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzOptions",e.selections)("ngModel",e.selection)}}function Eo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"i",23),t.NdJ("click",function(){t.CHM(e),t.oxw(2);const s=t.MAs(2),a=t.oxw();return s.value="",a.onFilterInput("")}),t.qZA()}}function Io(n,o){if(1&n&&t.YNc(0,Eo,1,0,"i",22),2&n){t.oxw();const e=t.MAs(2);t.Q6J("ngIf",e.value)}}function Bo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-input-group",18),t.TgZ(1,"input",19,20),t.NdJ("input",function(){t.CHM(e);const s=t.MAs(2);return t.oxw().onFilterInput(s.value)}),t.qZA(),t.qZA(),t.YNc(3,Io,1,1,"ng-template",null,21,t.W1O)}if(2&n){const e=t.MAs(4);t.Q6J("nzSuffix",e)}}function Jo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleReverse()}),t.TgZ(1,"span"),t._uU(2),t.qZA(),t._UZ(3,"i",25),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.reverse?"\u5012\u5e8f":"\u6b63\u5e8f"),t.xp6(1),t.Q6J("nzType",e.reverse?"swap-left":"swap-right")("nzRotate",90)}}function Qo(n,o){if(1&n&&(t.TgZ(0,"button",26),t._UZ(1,"i",27),t.qZA()),2&n){t.oxw();const e=t.MAs(15);t.Q6J("nzDropdownMenu",e)}}function Uo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"ul",28),t.TgZ(1,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().startAllTasks()}),t._uU(2,"\u5168\u90e8\u8fd0\u884c"),t.qZA(),t.TgZ(3,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks()}),t._uU(4,"\u5168\u90e8\u505c\u6b62"),t.qZA(),t.TgZ(5,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks(!0)}),t._uU(6,"\u5168\u90e8\u5f3a\u5236\u505c\u6b62"),t.qZA(),t._UZ(7,"li",30),t.TgZ(8,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!1)}),t._uU(9,"\u5168\u90e8\u5173\u95ed\u5f55\u5236"),t.qZA(),t.TgZ(10,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!0)}),t._uU(11,"\u5168\u90e8\u5f3a\u5236\u5173\u95ed\u5f55\u5236"),t.qZA(),t._UZ(12,"li",30),t.TgZ(13,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeAllTasks()}),t._uU(14,"\u5168\u90e8\u5220\u9664"),t.qZA(),t.TgZ(15,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateAllTaskInfos()}),t._uU(16,"\u5168\u90e8\u5237\u65b0\u6570\u636e"),t.qZA(),t.TgZ(17,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().copyAllTaskRoomIds()}),t._uU(18,"\u590d\u5236\u5168\u90e8\u623f\u95f4\u53f7"),t.qZA(),t.qZA()}}function qo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().drawerVisible=!0}),t._UZ(1,"i",27),t.qZA()}}function Ro(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"div",35),t._UZ(2,"nz-divider",36),t.GkF(3,8),t._UZ(4,"nz-divider",37),t.TgZ(5,"div",38),t.GkF(6,8),t.qZA(),t.qZA(),t.BQk()),2&n){t.oxw(2);const e=t.MAs(5),i=t.MAs(11);t.xp6(3),t.Q6J("ngTemplateOutlet",e),t.xp6(3),t.Q6J("ngTemplateOutlet",i)}}function Lo(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",39),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!1}),t.GkF(2,8),t.qZA(),t.BQk()}if(2&n){t.oxw(2);const e=t.MAs(18);t.xp6(2),t.Q6J("ngTemplateOutlet",e)}}const Yo=function(){return{padding:"0"}};function Go(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",32),t.NdJ("nzVisibleChange",function(s){return t.CHM(e),t.oxw().drawerVisible=s})("nzOnClose",function(){return t.CHM(e),t.oxw().drawerVisible=!1}),t.YNc(1,Ro,7,2,"ng-container",33),t.TgZ(2,"nz-drawer",34),t.NdJ("nzVisibleChange",function(s){return t.CHM(e),t.oxw().menuDrawerVisible=s})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(3,Lo,3,1,"ng-container",33),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(),i=t.MAs(23);t.Q6J("nzTitle",i)("nzClosable",!1)("nzVisible",e.drawerVisible),t.xp6(2),t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(6,Yo))("nzVisible",e.menuDrawerVisible)}}function $o(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",40),t.TgZ(1,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!0}),t._UZ(2,"i",27),t.qZA(),t.qZA()}}let Vo=(()=>{class n{constructor(e,i,s,a,c,p){this.message=s,this.modal=a,this.clipboard=c,this.taskManager=p,this.selectionChange=new t.vpe,this.reverseChange=new t.vpe,this.filterChange=new t.vpe,this.destroyed=new v.xQ,this.useDrawer=!1,this.useSelector=!1,this.useRadioGroup=!0,this.drawerVisible=!1,this.menuDrawerVisible=!1,this.filterTerms=new v.xQ,this.selections=[{label:"\u5168\u90e8",value:Z.ALL},{label:"\u5f55\u5236\u4e2d",value:Z.RECORDING},{label:"\u5f55\u5236\u5f00",value:Z.RECORDER_ENABLED},{label:"\u5f55\u5236\u5173",value:Z.RECORDER_DISABLED},{label:"\u8fd0\u884c",value:Z.MONITOR_ENABLED},{label:"\u505c\u6b62",value:Z.MONITOR_DISABLED},{label:"\u76f4\u64ad",value:Z.LIVING},{label:"\u8f6e\u64ad",value:Z.ROUNDING},{label:"\u95f2\u7f6e",value:Z.PREPARING}],i.observe(pt).pipe((0,y.R)(this.destroyed)).subscribe(d=>{this.useDrawer=d.breakpoints[pt[0]],this.useSelector=d.breakpoints[pt[1]],this.useRadioGroup=d.breakpoints[pt[2]],e.markForCheck()})}ngOnInit(){this.filterTerms.pipe((0,Do.b)(300),(0,Mo.x)()).subscribe(e=>{this.filterChange.emit(e)})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}onFilterInput(e){this.filterTerms.next(e)}toggleReverse(){this.reverse=!this.reverse,this.reverseChange.emit(this.reverse)}removeAllTasks(){this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5220\u9664\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u4efb\u52a1\u5c06\u88ab\u5f3a\u5236\u505c\u6b62\uff01\u4efb\u52a1\u5220\u9664\u540e\u5c06\u4e0d\u53ef\u6062\u590d\uff01",nzOnOk:()=>new Promise((e,i)=>{this.taskManager.removeAllTasks().subscribe(e,i)})})}startAllTasks(){this.taskManager.startAllTasks().subscribe()}stopAllTasks(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((i,s)=>{this.taskManager.stopAllTasks(e).subscribe(i,s)})}):this.taskManager.stopAllTasks().subscribe()}disableAllRecorders(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((i,s)=>{this.taskManager.disableAllRecorders(e).subscribe(i,s)})}):this.taskManager.disableAllRecorders().subscribe()}updateAllTaskInfos(){this.taskManager.updateAllTaskInfos().subscribe()}copyAllTaskRoomIds(){this.taskManager.getAllTaskRoomIds().pipe((0,H.U)(e=>e.join(" ")),(0,k.b)(e=>{if(!this.clipboard.copy(e))throw Error("Failed to copy text to the clipboard")})).subscribe(()=>{this.message.success("\u5168\u90e8\u623f\u95f4\u53f7\u5df2\u590d\u5236\u5230\u526a\u5207\u677f")},e=>{this.message.error("\u590d\u5236\u5168\u90e8\u623f\u95f4\u53f7\u5230\u526a\u5207\u677f\u51fa\u9519",e)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(U.Yg),t.Y36(qt.dD),t.Y36(V.Sf),t.Y36(q),t.Y36(Rt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-toolbar"]],inputs:{selection:"selection",reverse:"reverse"},outputs:{selectionChange:"selectionChange",reverseChange:"reverseChange",filterChange:"filterChange"},decls:24,vars:7,consts:[[1,"controls-wrapper"],[4,"ngIf"],["radioGroup",""],["selector",""],["filter",""],["reorderButton",""],["menuButton",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["drawerButton",""],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],["drawerHeader",""],["nzType","vertical"],["nzButtonStyle","solid",1,"radio-group",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["nz-radio-button","",3,"nzValue"],[1,"selector",3,"nzOptions","ngModel","ngModelChange"],[1,"filter",3,"nzSuffix"],["nz-input","","type","text","maxlength","18","placeholder","\u7528\u6807\u9898\u3001\u5206\u533a\u3001\u4e3b\u64ad\u540d\u3001\u623f\u95f4\u53f7\u7b5b\u9009",3,"input"],["filterInput",""],["inputClearTpl",""],["nz-icon","","class","filter-clear","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"filter-clear",3,"click"],["nz-button","","nzType","text","nzSize","default",1,"reverse-button",3,"click"],["nz-icon","",3,"nzType","nzRotate"],["nz-button","","nzType","text","nzSize","default","nz-dropdown","","nzPlacement","bottomRight",1,"more-actions-button",3,"nzDropdownMenu"],["nz-icon","","nzType","more"],["nz-menu","",1,"menu"],["nz-menu-item","",3,"click"],["nz-menu-divider",""],["nz-button","","nzType","text","nzSize","default",1,"more-actions-button",3,"click"],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose"],[4,"nzDrawerContent"],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose"],[1,"drawer-content"],["nzText","\u7b5b\u9009"],["nzText","\u6392\u5e8f"],[1,"reorder-button-wrapper"],[1,"drawer-content",3,"click"],[1,"drawer-header"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0),t.YNc(1,Zo,8,4,"ng-container",1),t.YNc(2,Oo,8,4,"ng-container",1),t.YNc(3,wo,3,2,"ng-container",1),t.qZA(),t.YNc(4,No,2,2,"ng-template",null,2,t.W1O),t.YNc(6,Po,1,2,"ng-template",null,3,t.W1O),t.YNc(8,Bo,5,1,"ng-template",null,4,t.W1O),t.YNc(10,Jo,4,3,"ng-template",null,5,t.W1O),t.YNc(12,Qo,2,1,"ng-template",null,6,t.W1O),t.TgZ(14,"nz-dropdown-menu",null,7),t.GkF(16,8),t.YNc(17,Uo,19,0,"ng-template",null,9,t.W1O),t.qZA(),t.YNc(19,qo,2,0,"ng-template",null,10,t.W1O),t.YNc(21,Go,4,7,"nz-drawer",11),t.YNc(22,$o,3,0,"ng-template",null,12,t.W1O)),2&e){const s=t.MAs(18);t.ekj("use-drawer",i.useDrawer),t.xp6(1),t.Q6J("ngIf",i.useRadioGroup),t.xp6(1),t.Q6J("ngIf",i.useSelector),t.xp6(1),t.Q6J("ngIf",i.useDrawer),t.xp6(13),t.Q6J("ngTemplateOutlet",s),t.xp6(5),t.Q6J("ngIf",i.useDrawer)}},directives:[u.O5,u.tP,Xt.g,Tt.Dg,m.JJ,m.On,u.sg,Tt.Of,Tt.Bq,wt.Vq,Lt.w,et.gB,et.ke,et.Zp,M.Ls,Ct.ix,tt.wA,tt.cm,tt.RR,gt.wO,gt.r9,gt.YV,lt.Vz,lt.SQ],styles:[".drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{box-shadow:none;padding:.5em 0}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] *[nz-menu-item][_ngcontent-%COMP%]{margin:0;padding:.5em 2em}.controls-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:.2em;width:100%;padding:.2em;background:#f9f9f9;border-left:none;border-right:none}.controls-wrapper[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]{height:1.8em;top:0}.controls-wrapper[_ngcontent-%COMP%]:not(.use-drawer) .filter[_ngcontent-%COMP%]{max-width:18em}.controls-wrapper.use-drawer[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%]{max-width:unset;width:unset;flex:auto}.controls-wrapper[_ngcontent-%COMP%] .selector[_ngcontent-%COMP%]{min-width:6em}.reverse-button[_ngcontent-%COMP%]{padding:0 .5em}.reverse-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0}.more-actions-button[_ngcontent-%COMP%]{margin-left:auto;border:none;background:inherit}.more-actions-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px}.menu[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]{margin:0}.drawer-header[_ngcontent-%COMP%]{display:flex}.drawer-content[_ngcontent-%COMP%] .reorder-button-wrapper[_ngcontent-%COMP%], .drawer-content[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:2vw;gap:2vw}.drawer-content[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]:first-of-type{margin-top:0}.drawer-content[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{text-align:center;padding:0}"],changeDetection:0}),n})();var jo=l(5136);let Ho=(()=>{class n{constructor(e){this.storage=e}getSettings(e){var i;const s=this.storage.getData(this.getStorageKey(e));return s&&null!==(i=JSON.parse(s))&&void 0!==i?i:{}}updateSettings(e,i){i=Object.assign(this.getSettings(e),i);const s=JSON.stringify(i);this.storage.setData(this.getStorageKey(e),s)}getStorageKey(e){return`app-tasks-${e}`}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(fe.V))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Wo=(()=>{class n{constructor(e){this.changeDetector=e,this.value=0,this.width=200,this.height=16,this.stroke="white",this.data=[],this.points=[];for(let i=0;i<=this.width;i+=2)this.data.push(0),this.points.push({x:i,y:this.height})}get polylinePoints(){return this.points.map(e=>`${e.x},${e.y}`).join(" ")}ngOnInit(){this.subscription=vt(1e3).subscribe(()=>{this.data.push(this.value||0),this.data.shift();let e=Math.max(...this.data);this.points=this.data.map((i,s)=>({x:Math.min(2*s,this.width),y:(1-i/(e||1))*this.height})),this.changeDetector.markForCheck()})}ngOnDestroy(){var e;null===(e=this.subscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-wave-graph"]],inputs:{value:"value",width:"width",height:"height",stroke:"stroke"},decls:2,vars:4,consts:[["fill","none"]],template:function(e,i){1&e&&(t.O4$(),t.TgZ(0,"svg"),t._UZ(1,"polyline",0),t.qZA()),2&e&&(t.uIk("width",i.width)("height",i.height),t.xp6(1),t.uIk("stroke",i.stroke)("points",i.polylinePoints))},styles:["[_nghost-%COMP%]{position:relative;top:2px}"],changeDetection:0}),n})();function Xo(n,o){1&n&&(t.ynx(0),t._uU(1,", bluray"),t.BQk())}function Ko(n,o){if(1&n&&(t.TgZ(0,"li",4),t.TgZ(1,"span",5),t._uU(2,"\u6d41\u7f16\u7801\u5668"),t.qZA(),t.TgZ(3,"span",6),t._uU(4),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(4),t.Oqu(null==e.profile.streams[0]||null==e.profile.streams[0].tags?null:e.profile.streams[0].tags.encoder)}}const Yt=function(){return{bitrate:!0}};function ts(n,o){if(1&n&&(t.TgZ(0,"ul",3),t.TgZ(1,"li",4),t.TgZ(2,"span",5),t._uU(3,"\u89c6\u9891\u4fe1\u606f"),t.qZA(),t.TgZ(4,"span",6),t.TgZ(5,"span"),t._uU(6),t.qZA(),t.TgZ(7,"span"),t._uU(8),t.qZA(),t.TgZ(9,"span"),t._uU(10),t.qZA(),t.TgZ(11,"span"),t._uU(12),t.ALo(13,"datarate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(14,"li",4),t.TgZ(15,"span",5),t._uU(16,"\u97f3\u9891\u4fe1\u606f"),t.qZA(),t.TgZ(17,"span",6),t.TgZ(18,"span"),t._uU(19),t.qZA(),t.TgZ(20,"span"),t._uU(21),t.qZA(),t.TgZ(22,"span"),t._uU(23),t.qZA(),t.TgZ(24,"span"),t._uU(25),t.ALo(26,"datarate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(27,"li",4),t.TgZ(28,"span",5),t._uU(29,"\u683c\u5f0f\u753b\u8d28"),t.qZA(),t.TgZ(30,"span",6),t.TgZ(31,"span"),t._uU(32),t.qZA(),t.TgZ(33,"span"),t._uU(34),t.ALo(35,"quality"),t.YNc(36,Xo,2,0,"ng-container",7),t._uU(37,") "),t.qZA(),t.qZA(),t.qZA(),t.YNc(38,Ko,5,1,"li",8),t.TgZ(39,"li",4),t.TgZ(40,"span",5),t._uU(41,"\u6d41\u4e3b\u673a\u540d"),t.qZA(),t.TgZ(42,"span",6),t._uU(43),t.qZA(),t.qZA(),t.TgZ(44,"li",4),t.TgZ(45,"span",5),t._uU(46,"\u4e0b\u8f7d\u901f\u5ea6"),t.qZA(),t._UZ(47,"app-wave-graph",9),t.TgZ(48,"span",6),t._uU(49),t.ALo(50,"datarate"),t.qZA(),t.qZA(),t.TgZ(51,"li",4),t.TgZ(52,"span",5),t._uU(53,"\u5f55\u5236\u901f\u5ea6"),t.qZA(),t._UZ(54,"app-wave-graph",9),t.TgZ(55,"span",6),t._uU(56),t.ALo(57,"datarate"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();let i;t.xp6(6),t.hij(" ",null==e.profile.streams[0]?null:e.profile.streams[0].codec_name," "),t.xp6(2),t.AsE(" ",null==e.profile.streams[0]?null:e.profile.streams[0].width,"x",null==e.profile.streams[0]?null:e.profile.streams[0].height," "),t.xp6(2),t.hij(" ",(null==e.profile.streams[0]?null:e.profile.streams[0].r_frame_rate).split("/")[0]," fps"),t.xp6(2),t.hij(" ",t.xi3(13,19,1e3*e.metadata.videodatarate,t.DdM(32,Yt))," "),t.xp6(7),t.hij(" ",null==e.profile.streams[1]?null:e.profile.streams[1].codec_name," "),t.xp6(2),t.hij(" ",null==e.profile.streams[1]?null:e.profile.streams[1].sample_rate," HZ"),t.xp6(2),t.hij(" ",null==e.profile.streams[1]?null:e.profile.streams[1].channel_layout," "),t.xp6(2),t.hij(" ",t.xi3(26,22,1e3*e.metadata.audiodatarate,t.DdM(33,Yt))," "),t.xp6(7),t.hij(" ",e.data.task_status.real_stream_format?e.data.task_status.real_stream_format:"N/A"," "),t.xp6(2),t.AsE(" ",e.data.task_status.real_quality_number?t.lcZ(35,25,e.data.task_status.real_quality_number):"N/A"," (",null!==(i=e.data.task_status.real_quality_number)&&void 0!==i?i:"N/A",""),t.xp6(2),t.Q6J("ngIf",e.isBlurayStreamQuality()),t.xp6(2),t.Q6J("ngIf",null==e.profile.streams[0]||null==e.profile.streams[0].tags?null:e.profile.streams[0].tags.encoder),t.xp6(5),t.hij(" ",e.data.task_status.stream_host," "),t.xp6(4),t.Q6J("value",e.data.task_status.dl_rate),t.xp6(2),t.hij(" ",t.xi3(50,27,8*e.data.task_status.dl_rate,t.DdM(34,Yt))," "),t.xp6(5),t.Q6J("value",e.data.task_status.rec_rate),t.xp6(2),t.hij(" ",t.lcZ(57,30,e.data.task_status.rec_rate)," ")}}let es=(()=>{class n{constructor(e,i,s){this.changeDetector=e,this.notification=i,this.taskService=s,this.metadata=null,this.close=new t.vpe,this.RunningStatus=O}ngOnInit(){this.syncData()}ngOnDestroy(){this.desyncData()}isBlurayStreamQuality(){return/_bluray/.test(this.data.task_status.stream_url)}closePanel(e){e.preventDefault(),e.stopPropagation(),this.close.emit()}syncData(){this.dataSubscription=(0,A.of)((0,A.of)(0),vt(1e3)).pipe((0,Bt.u)(),(0,nt.w)(()=>It(this.taskService.getStreamProfile(this.data.room_info.room_id),this.taskService.getMetadata(this.data.room_info.room_id))),(0,it.K)(e=>{throw this.notification.error("\u83b7\u53d6\u6570\u636e\u51fa\u9519",e.message),e}),(0,bt.X)(3,1e3)).subscribe(([e,i])=>{this.profile=e,this.metadata=i,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(Jt.zb),t.Y36(St))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-info-panel"]],inputs:{data:"data",profile:"profile",metadata:"metadata"},outputs:{close:"close"},decls:4,vars:1,consts:[[1,"info-panel"],["title","\u5173\u95ed",1,"close-panel",3,"click"],["class","info-list",4,"ngIf"],[1,"info-list"],[1,"info-item"],[1,"label"],[1,"value"],[4,"ngIf"],["class","info-item",4,"ngIf"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"button",1),t.NdJ("click",function(a){return i.closePanel(a)}),t._uU(2," [x] "),t.qZA(),t.YNc(3,ts,58,35,"ul",2),t.qZA()),2&e&&(t.xp6(3),t.Q6J("ngIf",i.data.task_status.running_status===i.RunningStatus.RECORDING&&i.profile&&i.profile.streams&&i.profile.format&&i.metadata))},directives:[u.O5,Wo],pipes:[At,Qt],styles:['@charset "UTF-8";.info-panel[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.info-panel[_ngcontent-%COMP%]{position:absolute;top:2.55rem;bottom:2rem;left:0rem;right:0rem;width:100%;font-size:1rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;overflow:auto}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar{background-color:transparent;width:4px}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#eee;border-radius:2px}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#fff}.info-panel[_ngcontent-%COMP%] .close-panel[_ngcontent-%COMP%]{position:absolute;top:0rem;right:0rem;width:2rem;height:2rem;padding:0;color:#fff;background:transparent;border:none;font-size:1rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none;width:100%;height:100%}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:inline-block;margin:0;width:5rem;text-align:right}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:after{content:"\\ff1a"}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{display:inline-block;margin:0;text-align:left}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:not(:first-child):before{content:", "}app-wave-graph[_ngcontent-%COMP%]{margin-right:1rem}'],changeDetection:0}),n})();const ze=function(){return{spacer:""}};function ns(n,o){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",3),t.TgZ(2,"span",4),t._UZ(3,"i"),t.qZA(),t.TgZ(4,"span",5),t._uU(5),t.ALo(6,"duration"),t.qZA(),t.TgZ(7,"span",6),t._uU(8),t.ALo(9,"datarate"),t.qZA(),t.TgZ(10,"span",7),t._uU(11),t.ALo(12,"filesize"),t.qZA(),t.TgZ(13,"span",8),t.ALo(14,"number"),t._uU(15),t.ALo(16,"number"),t.qZA(),t.TgZ(17,"span",9),t._uU(18),t.ALo(19,"quality"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(5),t.hij(" ",t.lcZ(6,6,e.status.rec_elapsed)," "),t.xp6(3),t.hij(" ",t.xi3(9,8,e.status.rec_rate,t.DdM(22,ze))," "),t.xp6(3),t.hij(" ",t.xi3(12,11,e.status.rec_total,t.DdM(23,ze))," "),t.xp6(2),t.MGl("nzTooltipTitle","\u5f39\u5e55\u603b\u8ba1\uff1a",t.xi3(14,14,e.status.danmu_total,"1.0-0"),""),t.xp6(2),t.hij(" ",t.xi3(16,17,e.status.danmu_total,"1.0-0")," "),t.xp6(3),t.hij(" ",e.status.real_quality_number?t.lcZ(19,20,e.status.real_quality_number):""," ")}}function is(n,o){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",10),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let i,s;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u6dfb\u52a0\u5143\u6570\u636e\uff1a",t.lcZ(2,7,null!==(i=e.status.postprocessing_path)&&void 0!==i?i:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(s=e.status.postprocessing_path)&&void 0!==s?s:"")," "),t.xp6(2),t.Q6J("nzType","line")("nzShowInfo",!1)("nzStrokeLinecap","square")("nzStrokeWidth",2)("nzPercent",null===e.status.postprocessing_progress?0:t.lcZ(6,11,e.status.postprocessing_progress))}}function os(n,o){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",12),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let i,s;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u8f6c\u5c01\u88c5\uff1a",t.lcZ(2,7,null!==(i=e.status.postprocessing_path)&&void 0!==i?i:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(s=e.status.postprocessing_path)&&void 0!==s?s:"")," "),t.xp6(2),t.Q6J("nzType","line")("nzShowInfo",!1)("nzStrokeLinecap","square")("nzStrokeWidth",2)("nzPercent",null===e.status.postprocessing_progress?0:t.lcZ(6,11,e.status.postprocessing_progress))}}let ss=(()=>{class n{constructor(){this.RunningStatus=O}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-status-display"]],inputs:{status:"status"},decls:4,vars:4,consts:[[3,"ngSwitch"],["class","status-display",4,"ngSwitchCase"],[1,"status-display"],[1,"status-bar","recording"],["nz-tooltip","","nzTooltipTitle","\u6b63\u5728\u5f55\u5236","nzTooltipPlacement","top",1,"status-indicator"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u7528\u65f6","nzTooltipPlacement","top",1,"time-elapsed"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u901f\u5ea6","nzTooltipPlacement","top",1,"data-rate"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u603b\u8ba1","nzTooltipPlacement","top",1,"data-count"],["nz-tooltip","","nzTooltipPlacement","top",1,"danmu-count",3,"nzTooltipTitle"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u753b\u8d28","nzTooltipPlacement","leftTop",1,"quality"],["nz-tooltip","","nzTooltipPlacement","top",1,"status-bar","injecting",3,"nzTooltipTitle"],[3,"nzType","nzShowInfo","nzStrokeLinecap","nzStrokeWidth","nzPercent"],["nz-tooltip","","nzTooltipPlacement","top",1,"status-bar","remuxing",3,"nzTooltipTitle"]],template:function(e,i){1&e&&(t.ynx(0,0),t.YNc(1,ns,20,24,"div",1),t.YNc(2,is,7,13,"div",1),t.YNc(3,os,7,13,"div",1),t.BQk()),2&e&&(t.Q6J("ngSwitch",i.status.running_status),t.xp6(1),t.Q6J("ngSwitchCase",i.RunningStatus.RECORDING),t.xp6(1),t.Q6J("ngSwitchCase",i.RunningStatus.INJECTING),t.xp6(1),t.Q6J("ngSwitchCase",i.RunningStatus.REMUXING))},directives:[u.RF,u.n9,rt.SY,oe],pipes:[me,At,Dt,u.JJ,Qt,Ut,_e],styles:[".status-bar[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.status-display[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.status-bar[_ngcontent-%COMP%]{display:flex;gap:1rem;font-size:1rem;line-height:1.8}.status-bar.recording[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.status-bar.recording[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:1rem;height:1rem;border-radius:.5rem;color:red;background:red;animation:blinker 1s cubic-bezier(1,0,0,1) infinite}@keyframes blinker{0%{opacity:0}to{opacity:1}}.status-bar.injecting[_ngcontent-%COMP%], .status-bar.remuxing[_ngcontent-%COMP%], .status-bar[_ngcontent-%COMP%] .danmu-count[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.status-bar[_ngcontent-%COMP%] .quality[_ngcontent-%COMP%]{flex:none;margin-left:auto}nz-progress[_ngcontent-%COMP%]{display:flex}nz-progress[_ngcontent-%COMP%] .ant-progress-outer{display:flex}"],changeDetection:0}),n})();var F=l(3523),w=l(8737);function as(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u8def\u5f84\u6a21\u677f "),t.BQk())}function rs(n,o){1&n&&(t.ynx(0),t._uU(1," \u8def\u5f84\u6a21\u677f\u6709\u9519\u8bef "),t.BQk())}function ls(n,o){if(1&n&&(t.YNc(0,as,2,0,"ng-container",66),t.YNc(1,rs,2,0,"ng-container",66)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function cs(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u9009\u62e9\u8981\u5f55\u5236\u7684\u76f4\u64ad\u6d41\u683c\u5f0f "),t._UZ(2,"br"),t._uU(3," FLV: \u7f51\u7edc\u4e0d\u7a33\u5b9a\u5bb9\u6613\u4e2d\u65ad\u4e22\u5931\u6570\u636e\u6216\u5f55\u5236\u5230\u4e8c\u538b\u753b\u8d28 "),t._UZ(4,"br"),t._uU(5," HLS (fmp4): \u57fa\u672c\u4e0d\u53d7\u7f51\u7edc\u6ce2\u52a8\u5f71\u54cd\uff0c\u4f46\u53ea\u6709\u90e8\u5206\u76f4\u64ad\u95f4\u652f\u6301\u3002 "),t._UZ(6,"br"),t._uU(7," P.S. "),t._UZ(8,"br"),t._uU(9," \u5f55\u5236 HLS \u6d41\u9700\u8981 ffmpeg "),t._UZ(10,"br"),t._uU(11," \u5728\u8bbe\u5b9a\u65f6\u95f4\u5185\u6ca1\u6709 fmp4 \u6d41\u4f1a\u81ea\u52a8\u5207\u6362\u5f55\u5236 flv \u6d41 "),t._UZ(12,"br"),t._uU(13," WEB \u7aef\u76f4\u64ad\u64ad\u653e\u5668\u662f Hls7Player \u7684\u76f4\u64ad\u95f4\u652f\u6301\u5f55\u5236 fmp4 \u6d41, fMp4Player \u5219\u4e0d\u652f\u6301\u3002 "),t.qZA())}function us(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u5982\u679c\u8d85\u8fc7\u6240\u8bbe\u7f6e\u7684\u7b49\u5f85\u65f6\u95f4 fmp4 \u6d41\u8fd8\u6ca1\u6709\u5c31\u5207\u6362\u4e3a\u5f55\u5236 flv \u6d41 "),t._UZ(2,"br"),t._uU(3," fmp4 \u6d41\u5728\u521a\u63a8\u6d41\u662f\u6ca1\u6709\u7684\uff0c\u8981\u8fc7\u4e00\u4f1a\u624d\u6709\u3002 "),t._UZ(4,"br"),t._uU(5," fmp4 \u6d41\u51fa\u73b0\u7684\u65f6\u95f4\u548c\u76f4\u64ad\u5ef6\u8fdf\u6709\u5173\uff0c\u4e00\u822c\u90fd\u5728 10 \u79d2\u5185\uff0c\u4f46\u4e5f\u6709\u5ef6\u8fdf\u6bd4\u8f83\u5927\u8d85\u8fc7 1 \u5206\u949f\u7684\u3002 "),t._UZ(6,"br"),t._uU(7," \u63a8\u8350\u5168\u5c40\u8bbe\u7f6e\u4e3a 10 \u79d2\uff0c\u4e2a\u522b\u5ef6\u8fdf\u6bd4\u8f83\u5927\u7684\u76f4\u64ad\u95f4\u5355\u72ec\u8bbe\u7f6e\u3002 "),t.qZA())}function ps(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u9ed8\u8ba4: \u6bcf\u4e2a\u5206\u5272\u7684\u5f55\u64ad\u6587\u4ef6\u5bf9\u5e94\u4fdd\u5b58\u4e00\u4e2a\u5c01\u9762\u6587\u4ef6\uff0c\u4e0d\u7ba1\u5c01\u9762\u662f\u5426\u76f8\u540c\u3002"),t._UZ(2,"br"),t._uU(3," \u53bb\u91cd: \u76f8\u540c\u7684\u5c01\u9762\u53ea\u4fdd\u5b58\u4e00\u6b21"),t._UZ(4,"br"),t._uU(5," P.S. "),t._UZ(6,"br"),t._uU(7," \u5224\u65ad\u662f\u5426\u76f8\u540c\u662f\u4f9d\u636e\u5c01\u9762\u6570\u636e\u7684 sha1\uff0c\u53ea\u5728\u5355\u6b21\u5f55\u5236\u5185\u6709\u6548\u3002 "),t.qZA())}function gs(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8: \u6ca1\u51fa\u9519\u5c31\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(2,"br"),t._uU(3," \u8c28\u614e: \u6ca1\u51fa\u9519\u4e14\u6ca1\u8b66\u544a\u624d\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(4,"br"),t._uU(5," \u4ece\u4e0d: \u603b\u662f\u4fdd\u7559\u6e90\u6587\u4ef6"),t._UZ(6,"br"),t.qZA())}function ds(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 User Agent "),t.BQk())}function ms(n,o){1&n&&t.YNc(0,ds,2,0,"ng-container",66),2&n&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function _s(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"div",3),t.TgZ(3,"h2"),t._uU(4,"\u6587\u4ef6"),t.qZA(),t.TgZ(5,"nz-form-item",4),t.TgZ(6,"nz-form-label",5),t._uU(7,"\u8def\u5f84\u6a21\u677f"),t.qZA(),t.TgZ(8,"nz-form-control",6),t.TgZ(9,"input",7),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.output.pathTemplate=s}),t.qZA(),t.YNc(10,ls,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(12,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.output.pathTemplate=s?a.globalSettings.output.pathTemplate:null}),t._uU(13,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(14,"nz-form-item",10),t.TgZ(15,"nz-form-label",11),t._uU(16,"\u5927\u5c0f\u9650\u5236"),t.qZA(),t.TgZ(17,"nz-form-control",12),t.TgZ(18,"nz-select",13),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.output.filesizeLimit=s}),t.qZA(),t.qZA(),t.TgZ(19,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.output.filesizeLimit=s?a.globalSettings.output.filesizeLimit:null}),t._uU(20,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(21,"nz-form-item",10),t.TgZ(22,"nz-form-label",11),t._uU(23,"\u65f6\u957f\u9650\u5236"),t.qZA(),t.TgZ(24,"nz-form-control",12),t.TgZ(25,"nz-select",14),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.output.durationLimit=s}),t.qZA(),t.qZA(),t.TgZ(26,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.output.durationLimit=s?a.globalSettings.output.durationLimit:null}),t._uU(27,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(28,"div",15),t.TgZ(29,"h2"),t._uU(30,"\u5f55\u5236"),t.qZA(),t.TgZ(31,"nz-form-item",10),t.TgZ(32,"nz-form-label",11),t._uU(33,"\u76f4\u64ad\u6d41\u683c\u5f0f"),t.qZA(),t.YNc(34,cs,14,0,"ng-template",null,16,t.W1O),t.TgZ(36,"nz-form-control",12),t.TgZ(37,"nz-select",17),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.streamFormat=s}),t.qZA(),t.qZA(),t.TgZ(38,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.streamFormat=s?a.globalSettings.recorder.streamFormat:null}),t._uU(39,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(40,"nz-form-item",10),t.TgZ(41,"nz-form-label",11),t._uU(42,"fmp4 \u6d41\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.YNc(43,us,8,0,"ng-template",null,18,t.W1O),t.TgZ(45,"nz-form-control",12),t.TgZ(46,"nz-select",19,20),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.fmp4StreamTimeout=s}),t.qZA(),t.qZA(),t.TgZ(48,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.fmp4StreamTimeout=s?a.globalSettings.recorder.fmp4StreamTimeout:null}),t._uU(49,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(50,"nz-form-item",10),t.TgZ(51,"nz-form-label",21),t._uU(52,"\u753b\u8d28"),t.qZA(),t.TgZ(53,"nz-form-control",12),t.TgZ(54,"nz-select",22),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.qualityNumber=s}),t.qZA(),t.qZA(),t.TgZ(55,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.qualityNumber=s?a.globalSettings.recorder.qualityNumber:null}),t._uU(56,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(57,"nz-form-item",10),t.TgZ(58,"nz-form-label",23),t._uU(59,"\u4fdd\u5b58\u5c01\u9762"),t.qZA(),t.TgZ(60,"nz-form-control",24),t.TgZ(61,"nz-switch",25),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.saveCover=s}),t.qZA(),t.qZA(),t.TgZ(62,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.saveCover=s?a.globalSettings.recorder.saveCover:null}),t._uU(63,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(64,"nz-form-item",10),t.TgZ(65,"nz-form-label",11),t._uU(66,"\u5c01\u9762\u4fdd\u5b58\u7b56\u7565"),t.qZA(),t.YNc(67,ps,8,0,"ng-template",null,26,t.W1O),t.TgZ(69,"nz-form-control",12),t.TgZ(70,"nz-select",27),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.coverSaveStrategy=s}),t.qZA(),t.qZA(),t.TgZ(71,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.coverSaveStrategy=s?a.globalSettings.recorder.coverSaveStrategy:null}),t._uU(72,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(73,"nz-form-item",10),t.TgZ(74,"nz-form-label",28),t._uU(75,"\u6570\u636e\u8bfb\u53d6\u8d85\u65f6"),t.qZA(),t.TgZ(76,"nz-form-control",29),t.TgZ(77,"nz-select",30,31),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.readTimeout=s}),t.qZA(),t.qZA(),t.TgZ(79,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.readTimeout=s?a.globalSettings.recorder.readTimeout:null}),t._uU(80,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(81,"nz-form-item",10),t.TgZ(82,"nz-form-label",32),t._uU(83,"\u65ad\u7f51\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.TgZ(84,"nz-form-control",12),t.TgZ(85,"nz-select",33),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.disconnectionTimeout=s}),t.qZA(),t.qZA(),t.TgZ(86,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.bufferSize=s?a.globalSettings.recorder.bufferSize:null}),t._uU(87,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(88,"nz-form-item",10),t.TgZ(89,"nz-form-label",34),t._uU(90,"\u786c\u76d8\u5199\u5165\u7f13\u51b2"),t.qZA(),t.TgZ(91,"nz-form-control",12),t.TgZ(92,"nz-select",35),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.bufferSize=s}),t.qZA(),t.qZA(),t.TgZ(93,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.bufferSize=s?a.globalSettings.recorder.bufferSize:null}),t._uU(94,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(95,"div",36),t.TgZ(96,"h2"),t._uU(97,"\u5f39\u5e55"),t.qZA(),t.TgZ(98,"nz-form-item",10),t.TgZ(99,"nz-form-label",37),t._uU(100,"\u8bb0\u5f55\u793c\u7269"),t.qZA(),t.TgZ(101,"nz-form-control",24),t.TgZ(102,"nz-switch",38),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordGiftSend=s}),t.qZA(),t.qZA(),t.TgZ(103,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.recordGiftSend=s?a.globalSettings.danmaku.recordGiftSend:null}),t._uU(104,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(105,"nz-form-item",10),t.TgZ(106,"nz-form-label",39),t._uU(107,"\u8bb0\u5f55\u514d\u8d39\u793c\u7269"),t.qZA(),t.TgZ(108,"nz-form-control",24),t.TgZ(109,"nz-switch",40),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordFreeGifts=s}),t.qZA(),t.qZA(),t.TgZ(110,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.recordFreeGifts=s?a.globalSettings.danmaku.recordFreeGifts:null}),t._uU(111,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(112,"nz-form-item",10),t.TgZ(113,"nz-form-label",41),t._uU(114,"\u8bb0\u5f55\u4e0a\u8230"),t.qZA(),t.TgZ(115,"nz-form-control",24),t.TgZ(116,"nz-switch",42),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordGuardBuy=s}),t.qZA(),t.qZA(),t.TgZ(117,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.recordGuardBuy=s?a.globalSettings.danmaku.recordGuardBuy:null}),t._uU(118,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(119,"nz-form-item",10),t.TgZ(120,"nz-form-label",43),t._uU(121,"\u8bb0\u5f55 Super Chat"),t.qZA(),t.TgZ(122,"nz-form-control",24),t.TgZ(123,"nz-switch",44),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordSuperChat=s}),t.qZA(),t.qZA(),t.TgZ(124,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.recordSuperChat=s?a.globalSettings.danmaku.recordSuperChat:null}),t._uU(125,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(126,"nz-form-item",10),t.TgZ(127,"nz-form-label",45),t._uU(128,"\u5f39\u5e55\u524d\u52a0\u7528\u6237\u540d"),t.qZA(),t.TgZ(129,"nz-form-control",24),t.TgZ(130,"nz-switch",46),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.danmuUname=s}),t.qZA(),t.qZA(),t.TgZ(131,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.danmuUname=s?a.globalSettings.danmaku.danmuUname:null}),t._uU(132,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(133,"nz-form-item",10),t.TgZ(134,"nz-form-label",47),t._uU(135,"\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55"),t.qZA(),t.TgZ(136,"nz-form-control",24),t.TgZ(137,"nz-switch",48),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.saveRawDanmaku=s}),t.qZA(),t.qZA(),t.TgZ(138,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.saveRawDanmaku=s?a.globalSettings.danmaku.saveRawDanmaku:null}),t._uU(139,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(140,"div",49),t.TgZ(141,"h2"),t._uU(142,"\u6587\u4ef6\u5904\u7406"),t.qZA(),t.TgZ(143,"nz-form-item",10),t.TgZ(144,"nz-form-label",50),t._uU(145,"flv \u6dfb\u52a0\u5143\u6570\u636e"),t.qZA(),t.TgZ(146,"nz-form-control",24),t.TgZ(147,"nz-switch",51),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.postprocessing.injectExtraMetadata=s}),t.qZA(),t.qZA(),t.TgZ(148,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.postprocessing.injectExtraMetadata=s?a.globalSettings.postprocessing.injectExtraMetadata:null}),t._uU(149,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(150,"nz-form-item",10),t.TgZ(151,"nz-form-label",52),t._uU(152,"flv \u8f6c\u5c01\u88c5\u4e3a mp4"),t.qZA(),t.TgZ(153,"nz-form-control",24),t.TgZ(154,"nz-switch",53),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.postprocessing.remuxToMp4=s}),t.qZA(),t.qZA(),t.TgZ(155,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.postprocessing.remuxToMp4=s?a.globalSettings.postprocessing.remuxToMp4:null}),t._uU(156,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(157,"nz-form-item",10),t.TgZ(158,"nz-form-label",11),t._uU(159,"\u6e90\u6587\u4ef6\u5220\u9664\u7b56\u7565"),t.qZA(),t.YNc(160,gs,7,0,"ng-template",null,54,t.W1O),t.TgZ(162,"nz-form-control",12),t.TgZ(163,"nz-select",55),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.postprocessing.deleteSource=s}),t.qZA(),t.qZA(),t.TgZ(164,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.postprocessing.deleteSource=s?a.globalSettings.postprocessing.deleteSource:null}),t._uU(165,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(166,"div",56),t.TgZ(167,"h2"),t._uU(168,"\u7f51\u7edc\u8bf7\u6c42"),t.qZA(),t.TgZ(169,"nz-form-item",57),t.TgZ(170,"nz-form-label",58),t._uU(171,"User Agent"),t.qZA(),t.TgZ(172,"nz-form-control",59),t.TgZ(173,"textarea",60,61),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.header.userAgent=s}),t.qZA(),t.qZA(),t.YNc(175,ms,1,1,"ng-template",null,8,t.W1O),t.TgZ(177,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.header.userAgent=s?a.globalSettings.header.userAgent:null}),t._uU(178,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(179,"nz-form-item",57),t.TgZ(180,"nz-form-label",62),t._uU(181,"Cookie"),t.qZA(),t.TgZ(182,"nz-form-control",63),t.TgZ(183,"textarea",64,65),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.header.cookie=s}),t.qZA(),t.qZA(),t.TgZ(185,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.header.cookie=s?a.globalSettings.header.cookie:null}),t._uU(186,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&n){const e=t.MAs(11),i=t.MAs(35),s=t.MAs(44),a=t.MAs(68),c=t.MAs(78),p=t.MAs(161),d=t.MAs(174),f=t.MAs(184),r=t.oxw();t.xp6(8),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",r.pathTemplatePattern)("ngModel",r.model.output.pathTemplate)("disabled",null===r.options.output.pathTemplate),t.xp6(3),t.Q6J("nzChecked",null!==r.options.output.pathTemplate),t.xp6(3),t.Q6J("nzTooltipTitle",r.splitFileTip),t.xp6(3),t.Q6J("ngModel",r.model.output.filesizeLimit)("disabled",null===r.options.output.filesizeLimit)("nzOptions",r.filesizeLimitOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.output.filesizeLimit),t.xp6(3),t.Q6J("nzTooltipTitle",r.splitFileTip),t.xp6(3),t.Q6J("ngModel",r.model.output.durationLimit)("disabled",null===r.options.output.durationLimit)("nzOptions",r.durationLimitOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.output.durationLimit),t.xp6(6),t.Q6J("nzTooltipTitle",i),t.xp6(5),t.Q6J("ngModel",r.model.recorder.streamFormat)("disabled",null===r.options.recorder.streamFormat)("nzOptions",r.streamFormatOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.streamFormat),t.xp6(3),t.Q6J("nzTooltipTitle",s),t.xp6(5),t.Q6J("ngModel",r.model.recorder.fmp4StreamTimeout)("disabled",null===r.options.recorder.fmp4StreamTimeout)("nzOptions",r.fmp4StreamTimeoutOptions),t.xp6(2),t.Q6J("nzChecked",null!==r.options.recorder.fmp4StreamTimeout),t.xp6(6),t.Q6J("ngModel",r.model.recorder.qualityNumber)("disabled",null===r.options.recorder.qualityNumber)("nzOptions",r.qualityOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.qualityNumber),t.xp6(6),t.Q6J("ngModel",r.model.recorder.saveCover)("disabled",null===r.options.recorder.saveCover),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.saveCover),t.xp6(3),t.Q6J("nzTooltipTitle",a),t.xp6(5),t.Q6J("ngModel",r.model.recorder.coverSaveStrategy)("disabled",null===r.options.recorder.coverSaveStrategy||!r.options.recorder.saveCover)("nzOptions",r.coverSaveStrategies),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.coverSaveStrategy),t.xp6(5),t.Q6J("nzValidateStatus",c.value>3?"warning":c),t.xp6(1),t.Q6J("ngModel",r.model.recorder.readTimeout)("disabled",null===r.options.recorder.readTimeout)("nzOptions",r.readTimeoutOptions),t.xp6(2),t.Q6J("nzChecked",null!==r.options.recorder.readTimeout),t.xp6(6),t.Q6J("ngModel",r.model.recorder.disconnectionTimeout)("disabled",null===r.options.recorder.disconnectionTimeout)("nzOptions",r.disconnectionTimeoutOptions)("nzOptionOverflowSize",6),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.bufferSize),t.xp6(6),t.Q6J("ngModel",r.model.recorder.bufferSize)("disabled",null===r.options.recorder.bufferSize)("nzOptions",r.bufferOptions)("nzOptionOverflowSize",6),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.bufferSize),t.xp6(9),t.Q6J("ngModel",r.model.danmaku.recordGiftSend)("disabled",null===r.options.danmaku.recordGiftSend),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.recordGiftSend),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.recordFreeGifts)("disabled",null===r.options.danmaku.recordFreeGifts),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.recordFreeGifts),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.recordGuardBuy)("disabled",null===r.options.danmaku.recordGuardBuy),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.recordGuardBuy),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.recordSuperChat)("disabled",null===r.options.danmaku.recordSuperChat),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.recordSuperChat),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.danmuUname)("disabled",null===r.options.danmaku.danmuUname),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.danmuUname),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.saveRawDanmaku)("disabled",null===r.options.danmaku.saveRawDanmaku),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.saveRawDanmaku),t.xp6(9),t.Q6J("ngModel",r.model.postprocessing.injectExtraMetadata)("disabled",null===r.options.postprocessing.injectExtraMetadata||!!r.options.postprocessing.remuxToMp4),t.xp6(1),t.Q6J("nzChecked",null!==r.options.postprocessing.injectExtraMetadata),t.xp6(6),t.Q6J("ngModel",r.model.postprocessing.remuxToMp4)("disabled",null===r.options.postprocessing.remuxToMp4),t.xp6(1),t.Q6J("nzChecked",null!==r.options.postprocessing.remuxToMp4),t.xp6(3),t.Q6J("nzTooltipTitle",p),t.xp6(5),t.Q6J("ngModel",r.model.postprocessing.deleteSource)("disabled",null===r.options.postprocessing.deleteSource||!r.options.postprocessing.remuxToMp4)("nzOptions",r.deleteStrategies),t.xp6(1),t.Q6J("nzChecked",null!==r.options.postprocessing.deleteSource),t.xp6(8),t.Q6J("nzWarningTip",r.warningTip)("nzValidateStatus",d.valid&&r.options.header.userAgent!==r.taskOptions.header.userAgent&&r.options.header.userAgent!==r.globalSettings.header.userAgent?"warning":d)("nzErrorTip",e),t.xp6(1),t.Q6J("rows",3)("ngModel",r.model.header.userAgent)("disabled",null===r.options.header.userAgent),t.xp6(4),t.Q6J("nzChecked",null!==r.options.header.userAgent),t.xp6(5),t.Q6J("nzWarningTip",r.warningTip)("nzValidateStatus",f.valid&&r.options.header.cookie!==r.taskOptions.header.cookie&&r.options.header.cookie!==r.globalSettings.header.cookie?"warning":f),t.xp6(1),t.Q6J("rows",3)("ngModel",r.model.header.cookie)("disabled",null===r.options.header.cookie),t.xp6(2),t.Q6J("nzChecked",null!==r.options.header.cookie)}}let hs=(()=>{class n{constructor(e){this.changeDetector=e,this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.afterOpen=new t.vpe,this.afterClose=new t.vpe,this.warningTip="\u9700\u8981\u91cd\u542f\u5f39\u5e55\u5ba2\u6237\u7aef\u624d\u80fd\u751f\u6548\uff0c\u5982\u679c\u4efb\u52a1\u6b63\u5728\u5f55\u5236\u53ef\u80fd\u4f1a\u4e22\u5931\u5f39\u5e55\uff01",this.splitFileTip=w.Uk,this.pathTemplatePattern=w._m,this.filesizeLimitOptions=(0,F.Z)(w.Pu),this.durationLimitOptions=(0,F.Z)(w.Fg),this.streamFormatOptions=(0,F.Z)(w.tp),this.fmp4StreamTimeoutOptions=(0,F.Z)(w.D4),this.qualityOptions=(0,F.Z)(w.O6),this.readTimeoutOptions=(0,F.Z)(w.D4),this.disconnectionTimeoutOptions=(0,F.Z)(w.$w),this.bufferOptions=(0,F.Z)(w.Rc),this.deleteStrategies=(0,F.Z)(w.rc),this.coverSaveStrategies=(0,F.Z)(w.J_)}ngOnChanges(){this.options=(0,F.Z)(this.taskOptions),this.setupModel(),this.changeDetector.markForCheck()}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit((0,j.e5)(this.options,this.taskOptions)),this.close()}setupModel(){const e={};for(const i of Object.keys(this.options)){const c=this.globalSettings[i];Reflect.set(e,i,new Proxy(this.options[i],{get:(p,d)=>{var f;return null!==(f=Reflect.get(p,d))&&void 0!==f?f:Reflect.get(c,d)},set:(p,d,f)=>Reflect.set(p,d,f)}))}this.model=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-settings-dialog"]],viewQuery:function(e,i){if(1&e&&t.Gf(m.F,5),2&e){let s;t.iGM(s=t.CRH())&&(i.ngForm=s.first)}},inputs:{taskOptions:"taskOptions",globalSettings:"globalSettings",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm",afterOpen:"afterOpen",afterClose:"afterClose"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4efb\u52a1\u8bbe\u7f6e","nzCentered","",3,"nzVisible","nzOkDisabled","nzOnOk","nzOnCancel","nzAfterOpen","nzAfterClose"],[4,"nzModalContent"],["nz-form","","ngForm",""],["ngModelGroup","output",1,"form-group","output"],[1,"setting-item","input"],["nzNoColon","","nzTooltipTitle","\u53d8\u91cf\u8bf4\u660e\u8bf7\u67e5\u770b\u5bf9\u5e94\u5168\u5c40\u8bbe\u7f6e",1,"setting-label"],[1,"setting-control","input",3,"nzErrorTip"],["type","text","required","","nz-input","","name","pathTemplate",3,"pattern","ngModel","disabled","ngModelChange"],["errorTip",""],["nz-checkbox","",3,"nzChecked","nzCheckedChange"],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],[1,"setting-control","select"],["name","filesizeLimit",3,"ngModel","disabled","nzOptions","ngModelChange"],["name","durationLimit",3,"ngModel","disabled","nzOptions","ngModelChange"],["ngModelGroup","recorder",1,"form-group","recorder"],["streamFormatTip",""],["name","streamFormat",3,"ngModel","disabled","nzOptions","ngModelChange"],["fmp4StreamTimeoutTip",""],["name","fmp4StreamTimeout",3,"ngModel","disabled","nzOptions","ngModelChange"],["fmp4StreamTimeout","ngModel"],["nzNoColon","","nzTooltipTitle","\u6240\u9009\u753b\u8d28\u4e0d\u5b58\u5728\u5c06\u4ee5\u539f\u753b\u4ee3\u66ff",1,"setting-label"],["name","qualityNumber",3,"ngModel","disabled","nzOptions","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u5f55\u64ad\u6587\u4ef6\u5b8c\u6210\u65f6\u4fdd\u5b58\u5f53\u524d\u76f4\u64ad\u95f4\u7684\u5c01\u9762",1,"setting-label"],[1,"setting-control","switch"],["name","saveCover",3,"ngModel","disabled","ngModelChange"],["coverSaveStrategyTip",""],["name","coverSaveStrategy",3,"ngModel","disabled","nzOptions","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u8d85\u65f6\u65f6\u95f4\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u957f\u76f8\u5bf9\u4e0d\u5bb9\u6613\u56e0\u7f51\u7edc\u4e0d\u7a33\u5b9a\u800c\u51fa\u73b0\u6d41\u4e2d\u65ad\uff0c\u4f46\u662f\u4e00\u65e6\u51fa\u73b0\u4e2d\u65ad\u5c31\u65e0\u6cd5\u5b9e\u73b0\u65e0\u7f1d\u62fc\u63a5\u4e14\u6f0f\u5f55\u8f83\u591a\u3002",1,"setting-label"],["nzWarningTip","\u65e0\u7f1d\u62fc\u63a5\u4f1a\u5931\u6548\uff01",1,"setting-control","select",3,"nzValidateStatus"],["name","readTimeout",3,"ngModel","disabled","nzOptions","ngModelChange"],["readTimeout","ngModel"],["nzNoColon","","nzTooltipTitle","\u65ad\u7f51\u8d85\u8fc7\u7b49\u5f85\u65f6\u95f4\u5c31\u7ed3\u675f\u5f55\u5236\uff0c\u5982\u679c\u7f51\u7edc\u6062\u590d\u540e\u4ecd\u672a\u4e0b\u64ad\u4f1a\u81ea\u52a8\u91cd\u65b0\u5f00\u59cb\u5f55\u5236\u3002",1,"setting-label"],["name","disconnectionTimeout",3,"ngModel","disabled","nzOptions","nzOptionOverflowSize","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u786c\u76d8\u5199\u5165\u7f13\u51b2\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u5927\u53ef\u4ee5\u51cf\u5c11\u5bf9\u786c\u76d8\u7684\u5199\u5165\uff0c\u4f46\u9700\u8981\u5360\u7528\u66f4\u591a\u7684\u5185\u5b58\u3002",1,"setting-label"],["name","bufferSize",3,"ngModel","disabled","nzOptions","nzOptionOverflowSize","ngModelChange"],["ngModelGroup","danmaku",1,"form-group","danmaku"],["nzFor","recordGiftSend","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordGiftSend","name","recordGiftSend",3,"ngModel","disabled","ngModelChange"],["nzFor","recordFreeGifts","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u514d\u8d39\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordFreeGifts","name","recordFreeGifts",3,"ngModel","disabled","ngModelChange"],["nzFor","recordGuardBuy","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u4e0a\u8230\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordGuardBuy","name","recordGuardBuy",3,"ngModel","disabled","ngModelChange"],["nzFor","recordSuperChat","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55 Super Chat \u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordSuperChat","name","recordSuperChat",3,"ngModel","disabled","ngModelChange"],["nzFor","danmuUname","nzNoColon","","nzTooltipTitle","\u53d1\u9001\u8005: \u5f39\u5e55\u5185\u5bb9",1,"setting-label"],["id","danmuUname","name","danmuUname",3,"ngModel","disabled","ngModelChange"],["nzFor","saveRawDanmaku","nzNoColon","","nzTooltipTitle","\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55\u5230 JSON lines \u6587\u4ef6\uff0c\u4e3b\u8981\u7528\u4e8e\u5206\u6790\u8c03\u8bd5\u3002",1,"setting-label"],["id","saveRawDanmaku","name","saveRawDanmaku",3,"ngModel","disabled","ngModelChange"],["ngModelGroup","postprocessing",1,"form-group","postprocessing"],["nzNoColon","","nzTooltipTitle","\u6dfb\u52a0\u5173\u952e\u5e27\u7b49\u5143\u6570\u636e\u4f7f\u5b9a\u4f4d\u64ad\u653e\u548c\u62d6\u8fdb\u5ea6\u6761\u4e0d\u4f1a\u5361\u987f",1,"setting-label"],["name","injectExtraMetadata",3,"ngModel","disabled","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u8c03\u7528 ffmpeg \u8fdb\u884c\u8f6c\u6362\uff0c\u9700\u8981\u5b89\u88c5 ffmpeg \u3002",1,"setting-label"],["name","remuxToMp4",3,"ngModel","disabled","ngModelChange"],["deleteSourceTip",""],["name","deleteSource",3,"ngModel","disabled","nzOptions","ngModelChange"],["ngModelGroup","header",1,"form-group","header"],[1,"setting-item","textarea"],["nzFor","userAgent","nzNoColon","",1,"setting-label"],[1,"setting-control","textarea",3,"nzWarningTip","nzValidateStatus","nzErrorTip"],["nz-input","","required","","id","userAgent","name","userAgent",3,"rows","ngModel","disabled","ngModelChange"],["userAgent","ngModel"],["nzFor","cookie","nzNoColon","",1,"setting-label"],[1,"setting-control","textarea",3,"nzWarningTip","nzValidateStatus"],["nz-input","","id","cookie","name","cookie",3,"rows","ngModel","disabled","ngModelChange"],["cookie","ngModel"],[4,"ngIf"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()})("nzAfterOpen",function(){return i.afterOpen.emit()})("nzAfterClose",function(){return i.afterClose.emit()}),t.YNc(1,_s,187,94,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",null==i.ngForm||null==i.ngForm.form?null:i.ngForm.form.invalid)},directives:[V.du,V.Hf,m._Y,m.JL,m.F,B.Lr,m.Mq,P.SK,B.Nx,P.t3,B.iK,B.Fd,et.Zp,m.Fj,m.Q7,m.c5,m.JJ,m.On,u.O5,Wt.Ie,wt.Vq,Ot.i],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}nz-divider[_ngcontent-%COMP%]{margin:0!important}.form-group[_ngcontent-%COMP%]:last-child .setting-item[_ngcontent-%COMP%]:last-child{padding-bottom:0}.setting-item[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);align-items:center;padding:1em 0;grid-gap:1em;gap:1em;border:none}.setting-item[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:0!important}.setting-item[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{justify-self:start}.setting-item[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%]{justify-self:center}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{justify-self:end}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%] span:last-of-type{padding-right:0}.setting-item.input[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.setting-item.input[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{grid-row:1/2;grid-column:1/2;justify-self:center}.setting-item.input[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%]{grid-row:2/3;grid-column:1/-1;justify-self:stretch}.setting-item.input[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{grid-row:1/2;grid-column:2/3;justify-self:center}@media screen and (max-width: 450px){.setting-item[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.setting-item[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{grid-column:1/-1;justify-self:center}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{justify-self:end}}"],changeDetection:0}),n})();function Ce(n,o,e,i,s,a,c){try{var p=n[a](c),d=p.value}catch(f){return void e(f)}p.done?o(d):Promise.resolve(d).then(i,s)}var Gt=l(5254),zs=l(3753),Cs=l(2313);const $t=new Map,Vt=new Map;let Ts=(()=>{class n{constructor(e){this.domSanitizer=e}transform(e,i="object"){return"object"===i?Vt.has(e)?(0,A.of)(Vt.get(e)):(0,Gt.D)(this.fetchImage(e)).pipe((0,H.U)(s=>URL.createObjectURL(s)),(0,H.U)(s=>this.domSanitizer.bypassSecurityTrustUrl(s)),(0,k.b)(s=>Vt.set(e,s)),(0,it.K)(()=>(0,A.of)(this.domSanitizer.bypassSecurityTrustUrl("")))):$t.has(e)?(0,A.of)($t.get(e)):(0,Gt.D)(this.fetchImage(e)).pipe((0,nt.w)(s=>this.createDataURL(s)),(0,k.b)(s=>$t.set(e,s)),(0,it.K)(()=>(0,A.of)(this.domSanitizer.bypassSecurityTrustUrl(""))))}fetchImage(e){return function fs(n){return function(){var o=this,e=arguments;return new Promise(function(i,s){var a=n.apply(o,e);function c(d){Ce(a,i,s,c,p,"next",d)}function p(d){Ce(a,i,s,c,p,"throw",d)}c(void 0)})}}(function*(){return yield(yield fetch(e,{referrer:""})).blob()})()}createDataURL(e){const i=new FileReader,s=(0,zs.R)(i,"load").pipe((0,H.U)(()=>this.domSanitizer.bypassSecurityTrustUrl(i.result)));return i.readAsDataURL(e),s}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Cs.H7,16))},n.\u0275pipe=t.Yjl({name:"dataurl",type:n,pure:!0}),n})();function xs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"app-info-panel",21),t.NdJ("close",function(){return t.CHM(e),t.oxw(2).showInfoPanel=!1}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("data",e.data)}}const ks=function(n){return[n,"detail"]};function vs(n,o){if(1&n&&(t.TgZ(0,"a",15),t.TgZ(1,"div",16),t._UZ(2,"img",17),t.ALo(3,"async"),t.ALo(4,"dataurl"),t.TgZ(5,"h2",18),t._uU(6),t.qZA(),t.YNc(7,xs,1,1,"app-info-panel",19),t._UZ(8,"app-status-display",20),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.Q6J("routerLink",t.VKq(10,ks,e.data.room_info.room_id)),t.xp6(2),t.Q6J("src",t.lcZ(3,6,t.lcZ(4,8,e.data.room_info.cover)),t.LSH),t.xp6(3),t.Q6J("nzTooltipTitle","\u76f4\u64ad\u95f4\u6807\u9898\uff1a"+e.data.room_info.title),t.xp6(1),t.hij(" ",e.data.room_info.title," "),t.xp6(1),t.Q6J("ngIf",e.showInfoPanel),t.xp6(1),t.Q6J("status",e.data.task_status)}}function ys(n,o){if(1&n&&(t._UZ(0,"nz-avatar",22),t.ALo(1,"async"),t.ALo(2,"dataurl")),2&n){const e=t.oxw();t.Q6J("nzShape","square")("nzSize",54)("nzSrc",t.lcZ(1,3,t.lcZ(2,5,e.data.user_info.face)))}}function bs(n,o){1&n&&(t.TgZ(0,"nz-tag",31),t._UZ(1,"i",32),t.TgZ(2,"span"),t._uU(3,"\u672a\u5f00\u64ad"),t.qZA(),t.qZA())}function Ss(n,o){1&n&&(t.TgZ(0,"nz-tag",33),t._UZ(1,"i",34),t.TgZ(2,"span"),t._uU(3,"\u76f4\u64ad\u4e2d"),t.qZA(),t.qZA())}function As(n,o){1&n&&(t.TgZ(0,"nz-tag",35),t._UZ(1,"i",36),t.TgZ(2,"span"),t._uU(3,"\u8f6e\u64ad\u4e2d"),t.qZA(),t.qZA())}function Ds(n,o){if(1&n&&(t.TgZ(0,"p",23),t.TgZ(1,"span",24),t.TgZ(2,"a",25),t._uU(3),t.qZA(),t.qZA(),t.TgZ(4,"span",26),t.ynx(5,27),t.YNc(6,bs,4,0,"nz-tag",28),t.YNc(7,Ss,4,0,"nz-tag",29),t.YNc(8,As,4,0,"nz-tag",30),t.BQk(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.MGl("href","https://space.bilibili.com/",e.data.user_info.uid,"",t.LSH),t.xp6(1),t.hij(" ",e.data.user_info.name," "),t.xp6(2),t.Q6J("ngSwitch",e.data.room_info.live_status),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1),t.xp6(1),t.Q6J("ngSwitchCase",2)}}function Ms(n,o){if(1&n&&(t.TgZ(0,"span",44),t.TgZ(1,"a",25),t._uU(2),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.MGl("href","https://live.bilibili.com/",e.data.room_info.short_room_id,"",t.LSH),t.xp6(1),t.hij(" ",e.data.room_info.short_room_id,"")}}function Zs(n,o){if(1&n&&(t.TgZ(0,"p",37),t.TgZ(1,"span",38),t.TgZ(2,"span",39),t._uU(3,"\u623f\u95f4\u53f7\uff1a"),t.qZA(),t.YNc(4,Ms,3,2,"span",40),t.TgZ(5,"span",41),t.TgZ(6,"a",25),t._uU(7),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"span",42),t.TgZ(9,"a",25),t.TgZ(10,"nz-tag",43),t._uU(11),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(4),t.Q6J("ngIf",e.data.room_info.short_room_id),t.xp6(2),t.MGl("href","https://live.bilibili.com/",e.data.room_info.room_id,"",t.LSH),t.xp6(1),t.Oqu(e.data.room_info.room_id),t.xp6(2),t.hYB("href","https://live.bilibili.com/p/eden/area-tags?parentAreaId=",e.data.room_info.parent_area_id,"&areaId=",e.data.room_info.area_id,"",t.LSH),t.xp6(1),t.Q6J("nzColor","#23ade5"),t.xp6(1),t.hij(" ",e.data.room_info.area_name," ")}}function Os(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-switch",45),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleRecorder()}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzDisabled",e.toggleRecorderForbidden)("ngModel",e.data.task_status.recorder_enabled)("nzControl",!0)("nzLoading",e.switchPending)}}function ws(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",46),t.NdJ("click",function(){return t.CHM(e),t.oxw().cutStream()}),t._UZ(1,"i",47),t.qZA()}if(2&n){const e=t.oxw();t.ekj("not-allowed",e.data.task_status.running_status!==e.RunningStatus.RECORDING)}}function Fs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-task-settings-dialog",51),t.NdJ("visibleChange",function(s){return t.CHM(e),t.oxw(2).settingsDialogVisible=s})("confirm",function(s){return t.CHM(e),t.oxw(2).changeTaskOptions(s)})("afterClose",function(){return t.CHM(e),t.oxw(2).cleanSettingsData()}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("taskOptions",e.taskOptions)("globalSettings",e.globalSettings)("visible",e.settingsDialogVisible)}}function Ns(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",48),t.NdJ("click",function(){return t.CHM(e),t.oxw().openSettingsDialog()}),t._UZ(1,"i",49),t.qZA(),t.YNc(2,Fs,2,3,"ng-container",50)}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.taskOptions&&e.globalSettings)}}function Ps(n,o){if(1&n&&(t.TgZ(0,"div",54),t._UZ(1,"i",55),t.qZA()),2&n){t.oxw(2);const e=t.MAs(20);t.Q6J("nzDropdownMenu",e)}}function Es(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",56),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!0}),t._UZ(1,"i",55),t.qZA()}}function Is(n,o){if(1&n&&(t.YNc(0,Ps,2,1,"div",52),t.YNc(1,Es,2,0,"div",53)),2&n){const e=t.oxw();t.Q6J("ngIf",!e.useDrawer),t.xp6(1),t.Q6J("ngIf",e.useDrawer)}}function Bs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"ul",57),t.TgZ(1,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().startTask()}),t._uU(2,"\u8fd0\u884c\u4efb\u52a1"),t.qZA(),t.TgZ(3,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopTask()}),t._uU(4,"\u505c\u6b62\u4efb\u52a1"),t.qZA(),t.TgZ(5,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeTask()}),t._uU(6,"\u5220\u9664\u4efb\u52a1"),t.qZA(),t.TgZ(7,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopTask(!0)}),t._uU(8,"\u5f3a\u5236\u505c\u6b62\u4efb\u52a1"),t.qZA(),t.TgZ(9,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableRecorder(!0)}),t._uU(10,"\u5f3a\u5236\u5173\u95ed\u5f55\u5236"),t.qZA(),t.TgZ(11,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateTaskInfo()}),t._uU(12,"\u5237\u65b0\u6570\u636e"),t.qZA(),t.TgZ(13,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().showInfoPanel=!0}),t._uU(14,"\u663e\u793a\u5f55\u5236\u4fe1\u606f"),t.qZA(),t.qZA()}}function Js(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",61),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!1}),t.GkF(2,12),t.qZA(),t.BQk()}if(2&n){t.oxw(2);const e=t.MAs(23);t.xp6(2),t.Q6J("ngTemplateOutlet",e)}}const Qs=function(){return{padding:"0"}};function Us(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",59),t.NdJ("nzVisibleChange",function(s){return t.CHM(e),t.oxw().menuDrawerVisible=s})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(1,Js,3,1,"ng-container",60),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(3,Qs))("nzVisible",e.menuDrawerVisible)}}const qs=function(n,o,e,i){return[n,o,e,i]},Rs=function(){return{padding:"0.5rem"}},Ls=function(){return{size:"large"}};let Ys=(()=>{class n{constructor(e,i,s,a,c,p,d){this.changeDetector=i,this.message=s,this.modal=a,this.settingService=c,this.taskManager=p,this.appTaskSettings=d,this.stopped=!1,this.destroyed=new v.xQ,this.useDrawer=!1,this.menuDrawerVisible=!1,this.switchPending=!1,this.settingsDialogVisible=!1,this.RunningStatus=O,e.observe(pt[0]).pipe((0,y.R)(this.destroyed)).subscribe(f=>{this.useDrawer=f.matches,i.markForCheck()})}get roomId(){return this.data.room_info.room_id}get toggleRecorderForbidden(){return!this.data.task_status.monitor_enabled}get showInfoPanel(){return Boolean(this.appTaskSettings.getSettings(this.roomId).showInfoPanel)}set showInfoPanel(e){this.appTaskSettings.updateSettings(this.roomId,{showInfoPanel:e})}ngOnChanges(e){console.debug("[ngOnChanges]",this.roomId,e),this.stopped=this.data.task_status.running_status===O.STOPPED}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}updateTaskInfo(){this.taskManager.updateTaskInfo(this.roomId).subscribe()}toggleRecorder(){this.toggleRecorderForbidden||this.switchPending||(this.switchPending=!0,this.data.task_status.recorder_enabled?this.taskManager.disableRecorder(this.roomId).subscribe(()=>this.switchPending=!1):this.taskManager.enableRecorder(this.roomId).subscribe(()=>this.switchPending=!1))}removeTask(){this.taskManager.removeTask(this.roomId).subscribe()}startTask(){this.data.task_status.running_status===O.STOPPED?this.taskManager.startTask(this.roomId).subscribe():this.message.warning("\u4efb\u52a1\u8fd0\u884c\u4e2d\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}stopTask(e=!1){this.data.task_status.running_status!==O.STOPPED?e&&this.data.task_status.running_status==O.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((i,s)=>{this.taskManager.stopTask(this.roomId,e).subscribe(i,s)})}):this.taskManager.stopTask(this.roomId).subscribe():this.message.warning("\u4efb\u52a1\u5904\u4e8e\u505c\u6b62\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}disableRecorder(e=!1){this.data.task_status.recorder_enabled?e&&this.data.task_status.running_status==O.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((i,s)=>{this.taskManager.disableRecorder(this.roomId,e).subscribe(i,s)})}):this.taskManager.disableRecorder(this.roomId).subscribe():this.message.warning("\u5f55\u5236\u5904\u4e8e\u5173\u95ed\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}openSettingsDialog(){It(this.settingService.getTaskOptions(this.roomId),this.settingService.getSettings(["output","header","danmaku","recorder","postprocessing"])).subscribe(([e,i])=>{this.taskOptions=e,this.globalSettings=i,this.settingsDialogVisible=!0,this.changeDetector.markForCheck()},e=>{this.message.error(`\u83b7\u53d6\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${e.message}`)})}cleanSettingsData(){delete this.taskOptions,delete this.globalSettings,this.changeDetector.markForCheck()}changeTaskOptions(e){this.settingService.changeTaskOptions(this.roomId,e).pipe((0,bt.X)(3,300)).subscribe(i=>{this.message.success("\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u6210\u529f")},i=>{this.message.error(`\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${i.message}`)})}cutStream(){this.data.task_status.running_status===O.RECORDING&&this.taskManager.cutStream(this.roomId).subscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.Yg),t.Y36(t.sBO),t.Y36(qt.dD),t.Y36(V.Sf),t.Y36(jo.R),t.Y36(Rt),t.Y36(Ho))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-item"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("stopped",i.stopped)},inputs:{data:"data"},features:[t.TTD],decls:25,vars:19,consts:[[3,"nzCover","nzHoverable","nzActions","nzBodyStyle"],[3,"nzActive","nzLoading","nzAvatar"],[3,"nzAvatar","nzTitle","nzDescription"],["coverTemplate",""],["avatarTemplate",""],["titleTemplate",""],["descTemplate",""],["actionSwitch",""],["actionDelete",""],["actionSetting",""],["actionMore",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],[3,"routerLink"],[1,"cover-wrapper"],["alt","\u76f4\u64ad\u95f4\u5c01\u9762",1,"cover",3,"src"],["nz-tooltip","","nzTooltipPlacement","bottomLeft",1,"title",3,"nzTooltipTitle"],[3,"data","close",4,"ngIf"],[3,"status"],[3,"data","close"],[3,"nzShape","nzSize","nzSrc"],[1,"meta-title"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u4e3b\u64ad\u4e2a\u4eba\u7a7a\u95f4\u9875\u9762","nzTooltipPlacement","right",1,"user-name"],["target","_blank",3,"href"],[1,"live-status"],[3,"ngSwitch"],["nzColor","default",4,"ngSwitchCase"],["nzColor","red",4,"ngSwitchCase"],["nzColor","green",4,"ngSwitchCase"],["nzColor","default"],["nz-icon","","nzType","frown"],["nzColor","red"],["nz-icon","","nzType","fire"],["nzColor","green"],["nz-icon","","nzType","sync","nzSpin",""],[1,"meta-desc"],[1,"room-id-wrapper"],[1,"room-id-label"],["class","short-room-id","nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",4,"ngIf"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",1,"real-room-id"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u5206\u533a\u9875\u9762","nzTooltipPlacement","leftTop",1,"area-name"],[3,"nzColor"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",1,"short-room-id"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u5f00\u5173",3,"nzDisabled","ngModel","nzControl","nzLoading","click"],["nz-tooltip","","nzTooltipTitle","\u5207\u5272\u6587\u4ef6",3,"click"],["nz-icon","","nzType","scissor",1,"action-icon"],["nz-tooltip","","nzTooltipTitle","\u4efb\u52a1\u8bbe\u7f6e",3,"click"],["nz-icon","","nzType","setting",1,"action-icon"],[4,"ngIf"],[3,"taskOptions","globalSettings","visible","visibleChange","confirm","afterClose"],["nz-dropdown","","nzPlacement","topRight",3,"nzDropdownMenu",4,"ngIf"],[3,"click",4,"ngIf"],["nz-dropdown","","nzPlacement","topRight",3,"nzDropdownMenu"],["nz-icon","","nzType","more",1,"action-icon"],[3,"click"],["nz-menu","",1,"menu"],["nz-menu-item","",3,"click"],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose"],[4,"nzDrawerContent"],[1,"drawer-content",3,"click"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-skeleton",1),t._UZ(2,"nz-card-meta",2),t.qZA(),t.qZA(),t.YNc(3,vs,9,12,"ng-template",null,3,t.W1O),t.YNc(5,ys,3,7,"ng-template",null,4,t.W1O),t.YNc(7,Ds,9,6,"ng-template",null,5,t.W1O),t.YNc(9,Zs,12,7,"ng-template",null,6,t.W1O),t.YNc(11,Os,1,4,"ng-template",null,7,t.W1O),t.YNc(13,ws,2,2,"ng-template",null,8,t.W1O),t.YNc(15,Ns,3,1,"ng-template",null,9,t.W1O),t.YNc(17,Is,2,2,"ng-template",null,10,t.W1O),t.TgZ(19,"nz-dropdown-menu",null,11),t.GkF(21,12),t.YNc(22,Bs,15,0,"ng-template",null,13,t.W1O),t.qZA(),t.YNc(24,Us,2,4,"nz-drawer",14)),2&e){const s=t.MAs(4),a=t.MAs(6),c=t.MAs(8),p=t.MAs(10),d=t.MAs(12),f=t.MAs(14),r=t.MAs(16),N=t.MAs(18),I=t.MAs(23);t.Q6J("nzCover",s)("nzHoverable",!0)("nzActions",t.l5B(12,qs,f,r,d,N))("nzBodyStyle",t.DdM(17,Rs)),t.xp6(1),t.Q6J("nzActive",!0)("nzLoading",!i.data)("nzAvatar",t.DdM(18,Ls)),t.xp6(1),t.Q6J("nzAvatar",a)("nzTitle",c)("nzDescription",p),t.xp6(19),t.Q6J("ngTemplateOutlet",I),t.xp6(3),t.Q6J("ngIf",i.useDrawer)}},directives:[D.bd,ye,D.l7,ct.yS,rt.SY,u.O5,es,ss,at.Dz,u.RF,u.n9,st,M.Ls,Lt.w,Ot.i,m.JJ,m.On,hs,tt.cm,tt.RR,u.tP,gt.wO,gt.r9,lt.Vz,lt.SQ],pipes:[u.Ov,Ts],styles:['.cover-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{box-shadow:none;padding:.5em 0}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] *[nz-menu-item][_ngcontent-%COMP%]{margin:0;padding:.5em 2em}.stopped[_nghost-%COMP%]{filter:grayscale(100%)}a[_ngcontent-%COMP%]{color:inherit}a[_ngcontent-%COMP%]:hover{color:#1890ff}a[_ngcontent-%COMP%]:focus-visible{outline:-webkit-focus-ring-color auto 1px}.cover-wrapper[_ngcontent-%COMP%]{--cover-ratio: 264 / 470;--cover-height: calc(var(--card-width) * var(--cover-ratio));position:relative;width:var(--card-width);height:var(--cover-height)}.cover-wrapper[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%]{width:100%;max-height:var(--cover-height);object-fit:cover}.cover-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{position:absolute;top:.5rem;left:.5rem;font-size:1.2rem;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 1em);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}nz-card-meta[_ngcontent-%COMP%]{margin:0}.meta-title[_ngcontent-%COMP%]{margin:0;display:flex;column-gap:1em}.meta-title[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{color:#fb7299;font-size:1rem;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.meta-title[_ngcontent-%COMP%] .live-status[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;position:relative;bottom:1px}.meta-desc[_ngcontent-%COMP%]{margin:0;display:flex}.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%] .short-room-id[_ngcontent-%COMP%]:after{display:inline-block;width:1em;content:","}@media screen and (max-width: 320px){.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%] .room-id-label[_ngcontent-%COMP%]{display:none}}.meta-desc[_ngcontent-%COMP%] .area-name[_ngcontent-%COMP%]{margin-left:auto}.meta-desc[_ngcontent-%COMP%] .area-name[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;border-radius:30px;padding:0 1em}.action-icon[_ngcontent-%COMP%]{font-size:16px}.not-allowed[_ngcontent-%COMP%]{cursor:not-allowed}'],changeDetection:0}),n})();function Gs(n,o){1&n&&(t.TgZ(0,"div",2),t._UZ(1,"nz-empty"),t.qZA())}function $s(n,o){1&n&&t._UZ(0,"app-task-item",6),2&n&&t.Q6J("data",o.$implicit)}function Vs(n,o){if(1&n&&(t.TgZ(0,"div",3,4),t.YNc(2,$s,1,1,"app-task-item",5),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.dataList)("ngForTrackBy",e.trackByRoomId)}}let js=(()=>{class n{constructor(){this.dataList=[]}trackByRoomId(e,i){return i.room_info.room_id}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-list"]],inputs:{dataList:"dataList"},decls:3,vars:2,consts:[["class","empty-container",4,"ngIf","ngIfElse"],["elseBlock",""],[1,"empty-container"],[1,"tasks-container"],["tasks",""],[3,"data",4,"ngFor","ngForOf","ngForTrackBy"],[3,"data"]],template:function(e,i){if(1&e&&(t.YNc(0,Gs,2,0,"div",0),t.YNc(1,Vs,3,2,"ng-template",null,1,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",0===i.dataList.length)("ngIfElse",s)}},directives:[u.O5,Kt.p9,u.sg,Ys],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}[_nghost-%COMP%]{--card-width: 400px;--grid-gutter: 12px;padding:var(--grid-gutter)}@media screen and (max-width: 400px){[_nghost-%COMP%]{--card-width: 100%;padding:var(--grid-gutter) 0}}.tasks-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,var(--card-width));grid-gap:var(--grid-gutter);gap:var(--grid-gutter);justify-content:center;max-width:100%;margin:0 auto}.empty-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;align-items:center;justify-content:center}"],changeDetection:0}),n})();var Hs=l(2643),Ws=l(1406);function Xs(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u76f4\u64ad\u95f4\u53f7\u6216 URL "),t.BQk())}function Ks(n,o){1&n&&(t.ynx(0),t._uU(1," \u8f93\u5165\u6709\u9519\u8bef "),t.BQk())}function ta(n,o){if(1&n&&(t.YNc(0,Xs,2,0,"ng-container",8),t.YNc(1,Ks,2,0,"ng-container",8)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function ea(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"nz-alert",9),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("nzType",e.type)("nzMessage",e.message)}}function na(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"input",4),t.YNc(5,ta,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t.YNc(8,ea,2,2,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.formGroup),t.xp6(2),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",i.pattern),t.xp6(4),t.Q6J("ngForOf",i.resultMessages)}}const ia=/^https?:\/\/live\.bilibili\.com\/(\d+).*$/,oa=/^\s*(?:\d+(?:[ ]+\d+)*|https?:\/\/live\.bilibili\.com\/\d+.*)\s*$/;let sa=(()=>{class n{constructor(e,i,s){this.changeDetector=i,this.taskManager=s,this.visible=!1,this.visibleChange=new t.vpe,this.pending=!1,this.resultMessages=[],this.pattern=oa,this.formGroup=e.group({input:["",[m.kI.required,m.kI.pattern(this.pattern)]]})}get inputControl(){return this.formGroup.get("input")}open(){this.setVisible(!0)}close(){this.resultMessages=[],this.reset(),this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}reset(){this.pending=!1,this.formGroup.reset(),this.changeDetector.markForCheck()}handleCancel(){this.close()}handleConfirm(){this.pending=!0;const e=this.inputControl.value.trim();let i;i=e.startsWith("http")?[parseInt(ia.exec(e)[1])]:new Set(e.split(/\s+/).map(s=>parseInt(s))),(0,Gt.D)(i).pipe((0,Ws.b)(s=>this.taskManager.addTask(s)),(0,k.b)(s=>{this.resultMessages.push(s),this.changeDetector.markForCheck()})).subscribe({complete:()=>{this.resultMessages.every(s=>"success"===s.type)?this.close():this.reset()}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(m.qu),t.Y36(t.sBO),t.Y36(Rt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-task-dialog"]],inputs:{visible:"visible"},outputs:{visibleChange:"visibleChange"},decls:2,vars:6,consts:[["nzTitle","\u6dfb\u52a0\u4efb\u52a1","nzCentered","","nzOkText","\u6dfb\u52a0",3,"nzVisible","nzOkLoading","nzOkDisabled","nzCancelDisabled","nzClosable","nzMaskClosable","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","",3,"nzErrorTip"],["nz-input","","required","","placeholder","\u76f4\u64ad\u95f4 URL \u6216\u623f\u95f4\u53f7\uff08\u652f\u6301\u591a\u4e2a\u623f\u95f4\u53f7\u7528\u7a7a\u683c\u9694\u5f00\uff09","formControlName","input",3,"pattern"],["errorTip",""],[1,"result-messages-container"],[4,"ngFor","ngForOf"],[4,"ngIf"],["nzShowIcon","",3,"nzType","nzMessage"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,na,9,4,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkLoading",i.pending)("nzOkDisabled",i.formGroup.invalid)("nzCancelDisabled",i.pending)("nzClosable",!i.pending)("nzMaskClosable",!i.pending)},directives:[V.du,V.Hf,m._Y,m.JL,B.Lr,m.sg,P.SK,B.Nx,P.t3,B.Fd,et.Zp,m.Fj,m.Q7,m.JJ,m.u,m.c5,u.O5,u.sg,He],styles:[".result-messages-container[_ngcontent-%COMP%]{width:100%;max-height:200px;overflow-y:auto}"],changeDetection:0}),n})(),ra=(()=>{class n{transform(e,i=""){return console.debug("filter tasks by '%s'",i),[...this.filterByTerm(e,i)]}filterByTerm(e,i){return function*aa(n,o){for(const e of n)o(e)&&(yield e)}(e,s=>""===(i=i.trim())||s.user_info.name.includes(i)||s.room_info.title.toString().includes(i)||s.room_info.area_name.toString().includes(i)||s.room_info.room_id.toString().includes(i)||s.room_info.short_room_id.toString().includes(i))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filterTasks",type:n,pure:!0}),n})();function la(n,o){if(1&n&&t._UZ(0,"nz-spin",6),2&n){const e=t.oxw();t.Q6J("nzSize","large")("nzSpinning",e.loading)}}function ca(n,o){if(1&n&&(t._UZ(0,"app-task-list",7),t.ALo(1,"filterTasks")),2&n){const e=t.oxw();t.Q6J("dataList",t.xi3(1,1,e.dataList,e.filterTerm))}}const Te="app-tasks-selection",xe="app-tasks-reverse",ua=[{path:":id/detail",component:Ao},{path:"",component:(()=>{class n{constructor(e,i,s,a){this.changeDetector=e,this.notification=i,this.storage=s,this.taskService=a,this.loading=!0,this.dataList=[],this.filterTerm="",this.selection=this.retrieveSelection(),this.reverse=this.retrieveReverse()}ngOnInit(){this.syncTaskData()}ngOnDestroy(){this.desyncTaskData()}onSelectionChanged(e){this.selection=e,this.storeSelection(e),this.desyncTaskData(),this.syncTaskData()}onReverseChanged(e){this.reverse=e,this.storeReverse(e),e&&(this.dataList=[...this.dataList.reverse()],this.changeDetector.markForCheck())}retrieveSelection(){const e=this.storage.getData(Te);return null!==e?e:Z.ALL}retrieveReverse(){return"true"===this.storage.getData(xe)}storeSelection(e){this.storage.setData(Te,e)}storeReverse(e){this.storage.setData(xe,e.toString())}syncTaskData(){this.dataSubscription=(0,A.of)((0,A.of)(0),vt(1e3)).pipe((0,Bt.u)(),(0,nt.w)(()=>this.taskService.getAllTaskData(this.selection)),(0,it.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,bt.X)(10,3e3)).subscribe(e=>{this.loading=!1,this.dataList=this.reverse?e.reverse():e,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncTaskData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(Jt.zb),t.Y36(fe.V),t.Y36(St))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-tasks"]],decls:8,vars:4,consts:[[3,"selection","reverse","selectionChange","reverseChange","filterChange"],["class","spinner",3,"nzSize","nzSpinning",4,"ngIf","ngIfElse"],["elseBlock",""],["nz-button","","nzType","primary","nzSize","large","nzShape","circle","nz-tooltip","","nzTooltipTitle","\u6dfb\u52a0\u4efb\u52a1",1,"add-task-button",3,"click"],["nz-icon","","nzType","plus"],["addTaskDialog",""],[1,"spinner",3,"nzSize","nzSpinning"],[3,"dataList"]],template:function(e,i){if(1&e){const s=t.EpF();t.TgZ(0,"app-toolbar",0),t.NdJ("selectionChange",function(c){return i.onSelectionChanged(c)})("reverseChange",function(c){return i.onReverseChanged(c)})("filterChange",function(c){return i.filterTerm=c}),t.qZA(),t.YNc(1,la,1,2,"nz-spin",1),t.YNc(2,ca,2,4,"ng-template",null,2,t.W1O),t.TgZ(4,"button",3),t.NdJ("click",function(){return t.CHM(s),t.MAs(7).open()}),t._UZ(5,"i",4),t.qZA(),t._UZ(6,"app-add-task-dialog",null,5)}if(2&e){const s=t.MAs(3);t.Q6J("selection",i.selection)("reverse",i.reverse),t.xp6(1),t.Q6J("ngIf",i.loading)("ngIfElse",s)}},directives:[Vo,u.O5,te.W,js,Ct.ix,Hs.dQ,Lt.w,rt.SY,M.Ls,sa],pipes:[ra],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0;overflow:hidden}.add-task-button[_ngcontent-%COMP%]{position:fixed;bottom:5vh;right:5vw}"],changeDetection:0}),n})()}];let pa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ct.Bz.forChild(ua)],ct.Bz]}),n})(),ga=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[u.ez,m.u5,m.UX,U.xu,dt,P.Jb,D.vh,Ht,at.Rt,M.PV,Ht,rt.cg,G,Ot.m,tt.b1,Ct.sL,V.Qp,B.U5,et.o7,Wt.Wr,Ie,Tt.aF,Xt.S,Kt.Xo,te.j,We,lt.BL,wt.LV,bn,J.HQ,Bn,Ti,Ai.forRoot({echarts:()=>l.e(45).then(l.bind(l,8045))}),pa,Di.m]]}),n})()},855:function(jt){jt.exports=function(){"use strict";var ot=/^(b|B)$/,l={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},u={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]},m={floor:Math.floor,ceil:Math.ceil};function U(t){var h,q,R,W,dt,P,D,M,_,v,y,L,T,b,Y,X,st,G,at,Mt,$,z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},g=[],K=0;if(isNaN(t))throw new TypeError("Invalid number");if(R=!0===z.bits,Y=!0===z.unix,L=!0===z.pad,T=void 0!==z.round?z.round:Y?1:2,D=void 0!==z.locale?z.locale:"",M=z.localeOptions||{},X=void 0!==z.separator?z.separator:"",st=void 0!==z.spacer?z.spacer:Y?"":" ",at=z.symbols||{},G=2===(q=z.base||2)&&z.standard||"jedec",y=z.output||"string",dt=!0===z.fullform,P=z.fullforms instanceof Array?z.fullforms:[],h=void 0!==z.exponent?z.exponent:-1,Mt=m[z.roundingMethod]||Math.round,_=(v=Number(t))<0,W=q>2?1e3:1024,$=!1===isNaN(z.precision)?parseInt(z.precision,10):0,_&&(v=-v),(-1===h||isNaN(h))&&(h=Math.floor(Math.log(v)/Math.log(W)))<0&&(h=0),h>8&&($>0&&($+=8-h),h=8),"exponent"===y)return h;if(0===v)g[0]=0,b=g[1]=Y?"":l[G][R?"bits":"bytes"][h];else{K=v/(2===q?Math.pow(2,10*h):Math.pow(1e3,h)),R&&(K*=8)>=W&&h<8&&(K/=W,h++);var mt=Math.pow(10,h>0?T:0);g[0]=Mt(K*mt)/mt,g[0]===W&&h<8&&void 0===z.exponent&&(g[0]=1,h++),b=g[1]=10===q&&1===h?R?"kb":"kB":l[G][R?"bits":"bytes"][h],Y&&(g[1]="jedec"===G?g[1].charAt(0):h>0?g[1].replace(/B$/,""):g[1],ot.test(g[1])&&(g[0]=Math.floor(g[0]),g[1]=""))}if(_&&(g[0]=-g[0]),$>0&&(g[0]=g[0].toPrecision($)),g[1]=at[g[1]]||g[1],!0===D?g[0]=g[0].toLocaleString():D.length>0?g[0]=g[0].toLocaleString(D,M):X.length>0&&(g[0]=g[0].toString().replace(".",X)),L&&!1===Number.isInteger(g[0])&&T>0){var _t=X||".",ht=g[0].toString().split(_t),ft=ht[1]||"",zt=ft.length,Zt=T-zt;g[0]="".concat(ht[0]).concat(_t).concat(ft.padEnd(zt+Zt,"0"))}return dt&&(g[1]=P[h]?P[h]:u[G][h]+(R?"bit":"byte")+(1===g[0]?"":"s")),"array"===y?g:"object"===y?{value:g[0],symbol:g[1],exponent:h,unit:b}:g.join(st)}return U.partial=function(t){return function(h){return U(h,t)}},U}()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/index.html b/src/blrec/data/webapp/index.html index c2a2645..4b28fbe 100644 --- a/src/blrec/data/webapp/index.html +++ b/src/blrec/data/webapp/index.html @@ -10,6 +10,6 @@ - + \ No newline at end of file diff --git a/src/blrec/data/webapp/main.b9234f0840c7101a.js b/src/blrec/data/webapp/main.411b4a979eb179f8.js similarity index 99% rename from src/blrec/data/webapp/main.b9234f0840c7101a.js rename to src/blrec/data/webapp/main.411b4a979eb179f8.js index b3efa1c..85e4be5 100644 --- a/src/blrec/data/webapp/main.b9234f0840c7101a.js +++ b/src/blrec/data/webapp/main.411b4a979eb179f8.js @@ -1 +1 @@ -"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[179],{4704:(yt,be,p)=>{p.d(be,{g:()=>a});var a=(()=>{return(s=a||(a={})).KEEP_POSITION="KEEP_POSITION",s.GO_TO_TOP="GO_TO_TOP",a;var s})()},2323:(yt,be,p)=>{p.d(be,{V:()=>s});var a=p(5e3);let s=(()=>{class G{constructor(){this.impl=localStorage}hasData(q){return null!==this.getData(q)}getData(q){return this.impl.getItem(q)}setData(q,_){this.impl.setItem(q,_)}removeData(q){this.impl.removeItem(q)}clearData(){this.impl.clear()}}return G.\u0275fac=function(q){return new(q||G)},G.\u0275prov=a.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"}),G})()},2340:(yt,be,p)=>{p.d(be,{N:()=>s});const s={production:!0,apiUrl:"",webSocketUrl:"",ngxLoggerLevel:p(2306)._z.DEBUG,traceRouterScrolling:!1}},434:(yt,be,p)=>{var a=p(2313),s=p(5e3),G=p(4182),oe=p(520),q=p(5113),_=p(6360),W=p(9808);const I=void 0,H=["zh",[["\u4e0a\u5348","\u4e0b\u5348"],I,I],I,[["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"]],I,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],["\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"]],I,[["\u516c\u5143\u524d","\u516c\u5143"],I,I],0,[6,0],["y/M/d","y\u5e74M\u6708d\u65e5",I,"y\u5e74M\u6708d\u65e5EEEE"],["ah:mm","ah:mm:ss","z ah:mm:ss","zzzz ah:mm:ss"],["{1} {0}",I,I,I],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"CNY","\xa5","\u4eba\u6c11\u5e01",{AUD:["AU$","$"],CNY:["\xa5"],ILR:["ILS"],JPY:["JP\xa5","\xa5"],KRW:["\uffe6","\u20a9"],PHP:[I,"\u20b1"],TWD:["NT$"],USD:["US$","$"],XXX:[]},"ltr",function R(Te){return 5}];var B=p(8514),ee=p(1737),ye=p(3753),Ye=p(1086),Fe=p(1961),ze=p(8929),_e=p(6498),vt=p(7876);const Je=new _e.y(vt.Z);var ut=p(6787),Ie=p(4850),$e=p(2198),et=p(7545),Se=p(2536),J=p(2986),fe=p(2994),he=p(8583);const te="Service workers are disabled or not supported by this browser";class ie{constructor(Ze){if(this.serviceWorker=Ze,Ze){const rt=(0,ye.R)(Ze,"controllerchange").pipe((0,Ie.U)(()=>Ze.controller)),Wt=(0,B.P)(()=>(0,Ye.of)(Ze.controller)),on=(0,Fe.z)(Wt,rt);this.worker=on.pipe((0,$e.h)(Rn=>!!Rn)),this.registration=this.worker.pipe((0,et.w)(()=>Ze.getRegistration()));const Nn=(0,ye.R)(Ze,"message").pipe((0,Ie.U)(Rn=>Rn.data)).pipe((0,$e.h)(Rn=>Rn&&Rn.type)).pipe(function Xe(Te){return Te?(0,Se.O)(()=>new ze.xQ,Te):(0,Se.O)(new ze.xQ)}());Nn.connect(),this.events=Nn}else this.worker=this.events=this.registration=function le(Te){return(0,B.P)(()=>(0,ee._)(new Error(Te)))}(te)}postMessage(Ze,De){return this.worker.pipe((0,J.q)(1),(0,fe.b)(rt=>{rt.postMessage(Object.assign({action:Ze},De))})).toPromise().then(()=>{})}postMessageWithOperation(Ze,De,rt){const Wt=this.waitForOperationCompleted(rt),on=this.postMessage(Ze,De);return Promise.all([on,Wt]).then(([,Lt])=>Lt)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(Ze){let De;return De="string"==typeof Ze?rt=>rt.type===Ze:rt=>Ze.includes(rt.type),this.events.pipe((0,$e.h)(De))}nextEventOfType(Ze){return this.eventsOfType(Ze).pipe((0,J.q)(1))}waitForOperationCompleted(Ze){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,$e.h)(De=>De.nonce===Ze),(0,J.q)(1),(0,Ie.U)(De=>{if(void 0!==De.result)return De.result;throw new Error(De.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let Ue=(()=>{class Te{constructor(De){if(this.sw=De,this.subscriptionChanges=new ze.xQ,!De.isEnabled)return this.messages=Je,this.notificationClicks=Je,void(this.subscription=Je);this.messages=this.sw.eventsOfType("PUSH").pipe((0,Ie.U)(Wt=>Wt.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,Ie.U)(Wt=>Wt.data)),this.pushManager=this.sw.registration.pipe((0,Ie.U)(Wt=>Wt.pushManager));const rt=this.pushManager.pipe((0,et.w)(Wt=>Wt.getSubscription()));this.subscription=(0,ut.T)(rt,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(De){if(!this.sw.isEnabled)return Promise.reject(new Error(te));const rt={userVisibleOnly:!0};let Wt=this.decodeBase64(De.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),on=new Uint8Array(new ArrayBuffer(Wt.length));for(let Lt=0;LtLt.subscribe(rt)),(0,J.q)(1)).toPromise().then(Lt=>(this.subscriptionChanges.next(Lt),Lt))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,J.q)(1),(0,et.w)(rt=>{if(null===rt)throw new Error("Not subscribed to push notifications.");return rt.unsubscribe().then(Wt=>{if(!Wt)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(te))}decodeBase64(De){return atob(De)}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(ie))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),je=(()=>{class Te{constructor(De){if(this.sw=De,!De.isEnabled)return this.versionUpdates=Je,this.available=Je,this.activated=Je,void(this.unrecoverable=Je);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY"]),this.available=this.versionUpdates.pipe((0,$e.h)(rt=>"VERSION_READY"===rt.type),(0,Ie.U)(rt=>({type:"UPDATE_AVAILABLE",current:rt.currentVersion,available:rt.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(te));const De=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:De},De)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(te));const De=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:De},De)}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(ie))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class tt{}const ke=new s.OlP("NGSW_REGISTER_SCRIPT");function ve(Te,Ze,De,rt){return()=>{if(!(0,W.NF)(rt)||!("serviceWorker"in navigator)||!1===De.enabled)return;let on;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof De.registrationStrategy)on=De.registrationStrategy();else{const[Un,...$n]=(De.registrationStrategy||"registerWhenStable:30000").split(":");switch(Un){case"registerImmediately":on=(0,Ye.of)(null);break;case"registerWithDelay":on=mt(+$n[0]||0);break;case"registerWhenStable":on=$n[0]?(0,ut.T)(Qe(Te),mt(+$n[0])):Qe(Te);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${De.registrationStrategy}`)}}Te.get(s.R0b).runOutsideAngular(()=>on.pipe((0,J.q)(1)).subscribe(()=>navigator.serviceWorker.register(Ze,{scope:De.scope}).catch(Un=>console.error("Service worker registration failed with:",Un))))}}function mt(Te){return(0,Ye.of)(null).pipe((0,he.g)(Te))}function Qe(Te){return Te.get(s.z2F).isStable.pipe((0,$e.h)(De=>De))}function dt(Te,Ze){return new ie((0,W.NF)(Ze)&&!1!==Te.enabled?navigator.serviceWorker:void 0)}let _t=(()=>{class Te{static register(De,rt={}){return{ngModule:Te,providers:[{provide:ke,useValue:De},{provide:tt,useValue:rt},{provide:ie,useFactory:dt,deps:[tt,s.Lbi]},{provide:s.ip1,useFactory:ve,deps:[s.zs3,ke,tt,s.Lbi],multi:!0}]}}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({providers:[Ue,je]}),Te})();var it=p(2306),St=p(4170),ot=p(7625),Et=p(655),Zt=p(4090),mn=p(1721),gn=p(4219),Ut=p(925),un=p(647),_n=p(226);const Cn=["*"],Dt=["nz-sider-trigger",""];function Sn(Te,Ze){}function cn(Te,Ze){if(1&Te&&(s.ynx(0),s.YNc(1,Sn,0,0,"ng-template",3),s.BQk()),2&Te){const De=s.oxw(),rt=s.MAs(5);s.xp6(1),s.Q6J("ngTemplateOutlet",De.nzZeroTrigger||rt)}}function Mn(Te,Ze){}function qe(Te,Ze){if(1&Te&&(s.ynx(0),s.YNc(1,Mn,0,0,"ng-template",3),s.BQk()),2&Te){const De=s.oxw(),rt=s.MAs(3);s.xp6(1),s.Q6J("ngTemplateOutlet",De.nzTrigger||rt)}}function x(Te,Ze){if(1&Te&&s._UZ(0,"i",5),2&Te){const De=s.oxw(2);s.Q6J("nzType",De.nzCollapsed?"right":"left")}}function z(Te,Ze){if(1&Te&&s._UZ(0,"i",5),2&Te){const De=s.oxw(2);s.Q6J("nzType",De.nzCollapsed?"left":"right")}}function P(Te,Ze){if(1&Te&&(s.YNc(0,x,1,1,"i",4),s.YNc(1,z,1,1,"i",4)),2&Te){const De=s.oxw();s.Q6J("ngIf",!De.nzReverseArrow),s.xp6(1),s.Q6J("ngIf",De.nzReverseArrow)}}function pe(Te,Ze){1&Te&&s._UZ(0,"i",6)}function j(Te,Ze){if(1&Te){const De=s.EpF();s.TgZ(0,"div",2),s.NdJ("click",function(){s.CHM(De);const Wt=s.oxw();return Wt.setCollapsed(!Wt.nzCollapsed)}),s.qZA()}if(2&Te){const De=s.oxw();s.Q6J("matchBreakPoint",De.matchBreakPoint)("nzCollapsedWidth",De.nzCollapsedWidth)("nzCollapsed",De.nzCollapsed)("nzBreakpoint",De.nzBreakpoint)("nzReverseArrow",De.nzReverseArrow)("nzTrigger",De.nzTrigger)("nzZeroTrigger",De.nzZeroTrigger)("siderWidth",De.widthSetting)}}let me=(()=>{class Te{constructor(De,rt){this.elementRef=De,this.renderer=rt,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(s.SBq),s.Y36(s.Qsj))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-content"]],exportAs:["nzContent"],ngContentSelectors:Cn,decls:1,vars:0,template:function(De,rt){1&De&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Ge=(()=>{class Te{constructor(De,rt){this.elementRef=De,this.renderer=rt,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(s.SBq),s.Y36(s.Qsj))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-header"]],exportAs:["nzHeader"],ngContentSelectors:Cn,decls:1,vars:0,template:function(De,rt){1&De&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Le=(()=>{class Te{constructor(){this.nzCollapsed=!1,this.nzReverseArrow=!1,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.matchBreakPoint=!1,this.nzCollapsedWidth=null,this.siderWidth=null,this.nzBreakpoint=null,this.isZeroTrigger=!1,this.isNormalTrigger=!1}updateTriggerType(){this.isZeroTrigger=0===this.nzCollapsedWidth&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=0!==this.nzCollapsedWidth}ngOnInit(){this.updateTriggerType()}ngOnChanges(){this.updateTriggerType()}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(De,rt){2&De&&(s.Udp("width",rt.isNormalTrigger?rt.siderWidth:null),s.ekj("ant-layout-sider-trigger",rt.isNormalTrigger)("ant-layout-sider-zero-width-trigger",rt.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",rt.isZeroTrigger&&rt.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",rt.isZeroTrigger&&!rt.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[s.TTD],attrs:Dt,decls:6,vars:2,consts:[[4,"ngIf"],["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","bars"]],template:function(De,rt){1&De&&(s.YNc(0,cn,2,1,"ng-container",0),s.YNc(1,qe,2,1,"ng-container",0),s.YNc(2,P,2,2,"ng-template",null,1,s.W1O),s.YNc(4,pe,1,0,"ng-template",null,2,s.W1O)),2&De&&(s.Q6J("ngIf",rt.isZeroTrigger),s.xp6(1),s.Q6J("ngIf",rt.isNormalTrigger))},directives:[W.O5,W.tP,un.Ls],encapsulation:2,changeDetection:0}),Te})(),Me=(()=>{class Te{constructor(De,rt,Wt){this.platform=De,this.cdr=rt,this.breakpointService=Wt,this.destroy$=new ze.xQ,this.nzMenuDirective=null,this.nzCollapsedChange=new s.vpe,this.nzWidth=200,this.nzTheme="dark",this.nzCollapsedWidth=80,this.nzBreakpoint=null,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.nzReverseArrow=!1,this.nzCollapsible=!1,this.nzCollapsed=!1,this.matchBreakPoint=!1,this.flexSetting=null,this.widthSetting=null}updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:(0,mn.WX)(this.nzWidth),this.flexSetting=`0 0 ${this.widthSetting}`,this.cdr.markForCheck()}updateMenuInlineCollapsed(){this.nzMenuDirective&&"inline"===this.nzMenuDirective.nzMode&&0!==this.nzCollapsedWidth&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)}setCollapsed(De){De!==this.nzCollapsed&&(this.nzCollapsed=De,this.nzCollapsedChange.emit(De),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(Zt.ow,!0).pipe((0,ot.R)(this.destroy$)).subscribe(De=>{const rt=this.nzBreakpoint;rt&&(0,mn.ov)().subscribe(()=>{this.matchBreakPoint=!De[rt],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(De){const{nzCollapsed:rt,nzCollapsedWidth:Wt,nzWidth:on}=De;(rt||Wt||on)&&this.updateStyleMap(),rt&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(Ut.t4),s.Y36(s.sBO),s.Y36(Zt.r3))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-sider"]],contentQueries:function(De,rt,Wt){if(1&De&&s.Suo(Wt,gn.wO,5),2&De){let on;s.iGM(on=s.CRH())&&(rt.nzMenuDirective=on.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(De,rt){2&De&&(s.Udp("flex",rt.flexSetting)("max-width",rt.widthSetting)("min-width",rt.widthSetting)("width",rt.widthSetting),s.ekj("ant-layout-sider-zero-width",rt.nzCollapsed&&0===rt.nzCollapsedWidth)("ant-layout-sider-light","light"===rt.nzTheme)("ant-layout-sider-dark","dark"===rt.nzTheme)("ant-layout-sider-collapsed",rt.nzCollapsed)("ant-layout-sider-has-trigger",rt.nzCollapsible&&null!==rt.nzTrigger))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:"nzReverseArrow",nzCollapsible:"nzCollapsible",nzCollapsed:"nzCollapsed"},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],features:[s.TTD],ngContentSelectors:Cn,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click",4,"ngIf"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click"]],template:function(De,rt){1&De&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA(),s.YNc(2,j,1,8,"div",1)),2&De&&(s.xp6(2),s.Q6J("ngIf",rt.nzCollapsible&&null!==rt.nzTrigger))},directives:[Le,W.O5],encapsulation:2,changeDetection:0}),(0,Et.gn)([(0,mn.yF)()],Te.prototype,"nzReverseArrow",void 0),(0,Et.gn)([(0,mn.yF)()],Te.prototype,"nzCollapsible",void 0),(0,Et.gn)([(0,mn.yF)()],Te.prototype,"nzCollapsed",void 0),Te})(),V=(()=>{class Te{constructor(De){this.directionality=De,this.dir="ltr",this.destroy$=new ze.xQ}ngOnInit(){var De;this.dir=this.directionality.value,null===(De=this.directionality.change)||void 0===De||De.pipe((0,ot.R)(this.destroy$)).subscribe(rt=>{this.dir=rt})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(_n.Is,8))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-layout"]],contentQueries:function(De,rt,Wt){if(1&De&&s.Suo(Wt,Me,4),2&De){let on;s.iGM(on=s.CRH())&&(rt.listOfNzSiderComponent=on)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(De,rt){2&De&&s.ekj("ant-layout-rtl","rtl"===rt.dir)("ant-layout-has-sider",rt.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:Cn,decls:1,vars:0,template:function(De,rt){1&De&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Be=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[_n.vT,W.ez,un.PV,q.xu,Ut.ud]]}),Te})();var nt=p(4147),ce=p(404);let Ae=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[_n.vT,W.ez,Ut.ud,un.PV]]}),Te})();var wt=p(7525),At=p(9727),Qt=p(5278),vn=p(2302);let Vn=(()=>{class Te{constructor(){}ngOnInit(){}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["app-page-not-found"]],decls:5,vars:0,consts:[[1,"content"],["src","assets/images/bili-404.png","all","\u80a5\u80a0\u62b1\u6b49\uff0c\u4f60\u8981\u627e\u7684\u9875\u9762\u4e0d\u89c1\u4e86"],[1,"btn-wrapper"],["href","/",1,"goback-btn"]],template:function(De,rt){1&De&&(s.TgZ(0,"div",0),s._UZ(1,"img",1),s.TgZ(2,"div",2),s.TgZ(3,"a",3),s._uU(4,"\u8fd4\u56de\u9996\u9875"),s.qZA(),s.qZA(),s.qZA())},styles:[".content[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:980px}.content[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.content[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] .goback-btn[_ngcontent-%COMP%]{display:inline-block;padding:0 20px;border-radius:4px;font-size:16px;line-height:40px;text-align:center;vertical-align:middle;color:#fff;background:#00a1d6;transition:.3s;cursor:pointer}.content[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] .goback-btn[_ngcontent-%COMP%]:hover{background:#00b5e5}"],changeDetection:0}),Te})();const ri=[{path:"tasks",loadChildren:()=>Promise.all([p.e(146),p.e(66),p.e(869)]).then(p.bind(p,5869)).then(Te=>Te.TasksModule)},{path:"settings",loadChildren:()=>Promise.all([p.e(146),p.e(66),p.e(592),p.e(474)]).then(p.bind(p,4474)).then(Te=>Te.SettingsModule),data:{scrollBehavior:p(4704).g.KEEP_POSITION}},{path:"about",loadChildren:()=>Promise.all([p.e(146),p.e(592),p.e(103)]).then(p.bind(p,5103)).then(Te=>Te.AboutModule)},{path:"",pathMatch:"full",redirectTo:"/tasks"},{path:"**",component:Vn}];let jn=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[vn.Bz.forRoot(ri,{preloadingStrategy:vn.wm})],vn.Bz]}),Te})();function qt(Te,Ze){if(1&Te&&s.GkF(0,11),2&Te){s.oxw();const De=s.MAs(3);s.Q6J("ngTemplateOutlet",De)}}function Re(Te,Ze){if(1&Te){const De=s.EpF();s.TgZ(0,"nz-sider",12),s.NdJ("nzCollapsedChange",function(Wt){return s.CHM(De),s.oxw().collapsed=Wt}),s.TgZ(1,"a",13),s.TgZ(2,"div",14),s.TgZ(3,"div",15),s._UZ(4,"img",16),s.qZA(),s.TgZ(5,"h1",17),s._uU(6),s.qZA(),s.qZA(),s.qZA(),s.TgZ(7,"nav",18),s.TgZ(8,"ul",19),s.TgZ(9,"li",20),s._UZ(10,"i",21),s.TgZ(11,"span"),s.TgZ(12,"a",22),s._uU(13,"\u4efb\u52a1"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(14,"li",20),s._UZ(15,"i",23),s.TgZ(16,"span"),s.TgZ(17,"a",24),s._uU(18,"\u8bbe\u7f6e"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(19,"li",20),s._UZ(20,"i",25),s.TgZ(21,"span"),s.TgZ(22,"a",26),s._uU(23,"\u5173\u4e8e"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&Te){const De=s.oxw();s.Q6J("nzTheme",De.theme)("nzTrigger",null)("nzCollapsedWidth",57)("nzCollapsed",De.collapsed),s.xp6(2),s.ekj("collapsed",De.collapsed),s.xp6(4),s.Oqu(De.title),s.xp6(2),s.Q6J("nzTheme",De.theme)("nzInlineCollapsed",De.collapsed),s.xp6(1),s.Q6J("nzTooltipTitle",De.collapsed?"\u4efb\u52a1":""),s.xp6(5),s.Q6J("nzTooltipTitle",De.collapsed?"\u8bbe\u7f6e":""),s.xp6(5),s.Q6J("nzTooltipTitle",De.collapsed?"\u5173\u4e8e":"")}}function we(Te,Ze){if(1&Te&&s._UZ(0,"nz-spin",27),2&Te){const De=s.oxw();s.Q6J("nzSize","large")("nzSpinning",De.loading)}}function ae(Te,Ze){if(1&Te&&(s.ynx(0),s.TgZ(1,"nz-layout"),s.GkF(2,11),s.qZA(),s.BQk()),2&Te){s.oxw(2);const De=s.MAs(3);s.xp6(2),s.Q6J("ngTemplateOutlet",De)}}const Ve=function(){return{padding:"0",overflow:"hidden"}};function ht(Te,Ze){if(1&Te){const De=s.EpF();s.TgZ(0,"nz-drawer",28),s.NdJ("nzOnClose",function(){return s.CHM(De),s.oxw().collapsed=!0}),s.YNc(1,ae,3,1,"ng-container",29),s.qZA()}if(2&Te){const De=s.oxw();s.Q6J("nzBodyStyle",s.DdM(3,Ve))("nzClosable",!1)("nzVisible",!De.collapsed)}}let It=(()=>{class Te{constructor(De,rt,Wt){this.title="B \u7ad9\u76f4\u64ad\u5f55\u5236",this.theme="light",this.loading=!1,this.collapsed=!1,this.useDrawer=!1,this.destroyed=new ze.xQ,De.events.subscribe(on=>{on instanceof vn.OD?(this.loading=!0,this.useDrawer&&(this.collapsed=!0)):on instanceof vn.m2&&(this.loading=!1)}),Wt.observe(q.u3.XSmall).pipe((0,ot.R)(this.destroyed)).subscribe(on=>{this.useDrawer=on.matches,this.useDrawer&&(this.collapsed=!0),rt.markForCheck()}),Wt.observe("(max-width: 1036px)").pipe((0,ot.R)(this.destroyed)).subscribe(on=>{this.collapsed=on.matches,rt.markForCheck()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(vn.F0),s.Y36(s.sBO),s.Y36(q.Yg))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["app-root"]],decls:15,vars:4,consts:[[3,"ngTemplateOutlet",4,"ngIf"],["sider",""],[1,"app-header"],[1,"sidebar-trigger"],["nz-icon","",3,"nzType","click"],[1,"icon-actions"],["href","https://github.com/acgnhiki/blrec","title","GitHub","target","_blank",1,"external-link"],["nz-icon","","nzType","github"],[1,"main-content"],["class","spinner",3,"nzSize","nzSpinning",4,"ngIf"],["nzWidth","200px","nzPlacement","left",3,"nzBodyStyle","nzClosable","nzVisible","nzOnClose",4,"ngIf"],[3,"ngTemplateOutlet"],["nzCollapsible","",1,"sidebar",3,"nzTheme","nzTrigger","nzCollapsedWidth","nzCollapsed","nzCollapsedChange"],["href","/","title","Home","alt","Home"],[1,"sidebar-header"],[1,"app-logo-container"],["alt","Logo","src","assets/images/logo.png",1,"app-logo"],[1,"app-title"],[1,"sidebar-menu"],["nz-menu","","nzMode","inline",3,"nzTheme","nzInlineCollapsed"],["nz-menu-item","","nzMatchRouter","true","nz-tooltip","","nzTooltipPlacement","right",3,"nzTooltipTitle"],["nz-icon","","nzType","unordered-list","nzTheme","outline"],["routerLink","/tasks"],["nz-icon","","nzType","setting","nzTheme","outline"],["routerLink","/settings"],["nz-icon","","nzType","info-circle","nzTheme","outline"],["routerLink","/about"],[1,"spinner",3,"nzSize","nzSpinning"],["nzWidth","200px","nzPlacement","left",3,"nzBodyStyle","nzClosable","nzVisible","nzOnClose"],[4,"nzDrawerContent"]],template:function(De,rt){1&De&&(s.TgZ(0,"nz-layout"),s.YNc(1,qt,1,1,"ng-container",0),s.YNc(2,Re,24,12,"ng-template",null,1,s.W1O),s.TgZ(4,"nz-layout"),s.TgZ(5,"nz-header",2),s.TgZ(6,"div",3),s.TgZ(7,"i",4),s.NdJ("click",function(){return rt.collapsed=!rt.collapsed}),s.qZA(),s.qZA(),s.TgZ(8,"div",5),s.TgZ(9,"a",6),s._UZ(10,"i",7),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"nz-content",8),s.YNc(12,we,1,2,"nz-spin",9),s._UZ(13,"router-outlet"),s.qZA(),s.qZA(),s.qZA(),s.YNc(14,ht,2,4,"nz-drawer",10)),2&De&&(s.xp6(1),s.Q6J("ngIf",!rt.useDrawer),s.xp6(6),s.Q6J("nzType",rt.collapsed?"menu-unfold":"menu-fold"),s.xp6(5),s.Q6J("ngIf",rt.loading),s.xp6(2),s.Q6J("ngIf",rt.useDrawer))},directives:[V,W.O5,W.tP,Me,gn.wO,gn.r9,ce.SY,un.Ls,vn.yS,Ge,me,wt.W,vn.lC,nt.Vz,nt.SQ],styles:[".spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{--app-header-height: 56px;--app-logo-size: 32px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[_nghost-%COMP%] > nz-layout[_ngcontent-%COMP%]{height:100%;width:100%}.sidebar[_ngcontent-%COMP%]{--app-header-height: 56px;--app-logo-size: 32px;position:relative;z-index:10;min-height:100vh;border-right:1px solid #f0f0f0}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%]{display:flex;align-items:center;height:var(--app-header-height);overflow:hidden}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .app-logo-container[_ngcontent-%COMP%]{flex:none;width:var(--app-header-height);height:var(--app-header-height);display:flex;align-items:center;justify-content:center}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .app-logo-container[_ngcontent-%COMP%] .app-logo[_ngcontent-%COMP%]{width:var(--app-logo-size);height:var(--app-logo-size)}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .app-title[_ngcontent-%COMP%]{font-family:Avenir,Helvetica Neue,Arial,Helvetica,sans-serif;font-size:1rem;font-weight:600;margin:0;overflow:hidden;white-space:nowrap;text-overflow:clip;opacity:1;transition-property:width,opacity;transition-duration:.3s;transition-timing-function:cubic-bezier(.645,.045,.355,1)}.sidebar[_ngcontent-%COMP%] .sidebar-header.collapsed[_ngcontent-%COMP%] .app-title[_ngcontent-%COMP%]{opacity:0}.sidebar[_ngcontent-%COMP%] .sidebar-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{width:100%}.app-header[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;width:100%;height:var(--app-header-height);margin:0;padding:0;z-index:2;background:#fff;box-shadow:0 1px 4px #00152914}.app-header[_ngcontent-%COMP%] .sidebar-trigger[_ngcontent-%COMP%]{--icon-size: 20px;display:flex;align-items:center;justify-content:center;height:100%;width:var(--app-header-height);cursor:pointer;transition:all .3s,padding 0s}.app-header[_ngcontent-%COMP%] .sidebar-trigger[_ngcontent-%COMP%]:hover{color:#1890ff}.app-header[_ngcontent-%COMP%] .sidebar-trigger[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:var(--icon-size)}.app-header[_ngcontent-%COMP%] .icon-actions[_ngcontent-%COMP%]{--icon-size: 24px;display:flex;align-items:center;justify-content:center;height:100%;margin-left:auto;margin-right:calc((var(--app-header-height) - var(--icon-size)) / 2)}.app-header[_ngcontent-%COMP%] .icon-actions[_ngcontent-%COMP%] .external-link[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;color:#000}.app-header[_ngcontent-%COMP%] .icon-actions[_ngcontent-%COMP%] .external-link[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:var(--icon-size)}.main-content[_ngcontent-%COMP%]{overflow:hidden}"],changeDetection:0}),Te})(),jt=(()=>{class Te{constructor(De){if(De)throw new Error("You should import core module only in the root module")}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(Te,12))},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[W.ez]]}),Te})();var fn=p(9193);const Pn=[fn.LBP,fn._ry,fn.Ej7,fn.WH2];let si=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({providers:[{provide:un.sV,useValue:Pn}],imports:[[un.PV],un.PV]}),Te})();var Zn=p(2340),ii=p(7221),En=p(9973),ei=p(2323);const Ln="app-api-key";let Tt=(()=>{class Te{constructor(De){this.storage=De}hasApiKey(){return this.storage.hasData(Ln)}getApiKey(){var De;return null!==(De=this.storage.getData(Ln))&&void 0!==De?De:""}setApiKey(De){this.storage.setData(Ln,De)}removeApiKey(){this.storage.removeData(Ln)}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(ei.V))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})();const bn=[{provide:oe.TP,useClass:(()=>{class Te{constructor(De){this.auth=De}intercept(De,rt){return rt.handle(De.clone({setHeaders:{"X-API-KEY":this.auth.getApiKey()}})).pipe((0,ii.K)(Wt=>{var on;if(401===Wt.status){this.auth.hasApiKey()&&this.auth.removeApiKey();const Lt=null!==(on=window.prompt("API Key:"))&&void 0!==on?on:"";this.auth.setApiKey(Lt)}throw Wt}),(0,En.X)(3))}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(Tt))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),multi:!0}];(0,W.qS)(H);let Qn=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te,bootstrap:[It]}),Te.\u0275inj=s.cJS({providers:[{provide:St.u7,useValue:St.bF},bn],imports:[[a.b2,jn,G.u5,oe.JF,q.xu,_.PW,_t.register("ngsw-worker.js",{enabled:Zn.N.production,registrationStrategy:"registerWhenStable:30000"}),Be,nt.BL,gn.ip,ce.cg,Ae,wt.j,At.gR,Qt.L8,si,it.f9.forRoot({level:Zn.N.ngxLoggerLevel}),jt]]}),Te})();Zn.N.production&&(0,s.G48)(),a.q6().bootstrapModule(Qn).catch(Te=>console.error(Te))},2306:(yt,be,p)=>{p.d(be,{f9:()=>_e,Kf:()=>Xe,_z:()=>Je});var a=p(9808),s=p(5e3),G=p(520),oe=p(2198),q=p(4850),_=p(9973),W=p(5154),I=p(7221),R=p(7545),H={},B={};function ee(te){for(var le=[],ie=0,Ue=0,je=0;je>>=1,le.push(ve?0===Ue?-2147483648:-Ue:Ue),Ue=ie=0}}return le}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(te,le){H[te]=le,B[le]=te});var Fe=p(1086);class ze{}let _e=(()=>{class te{static forRoot(ie){return{ngModule:te,providers:[{provide:ze,useValue:ie||{}}]}}static forChild(){return{ngModule:te}}}return te.\u0275fac=function(ie){return new(ie||te)},te.\u0275mod=s.oAB({type:te}),te.\u0275inj=s.cJS({providers:[a.uU],imports:[[a.ez]]}),te})(),vt=(()=>{class te{constructor(ie){this.httpBackend=ie}logOnServer(ie,Ue,je){const tt=new G.aW("POST",ie,Ue,je||{});return this.httpBackend.handle(tt).pipe((0,oe.h)(ke=>ke instanceof G.Zn),(0,q.U)(ke=>ke.body))}}return te.\u0275fac=function(ie){return new(ie||te)(s.LFG(G.jN))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(G.jN))},token:te,providedIn:"root"}),te})();var Je=(()=>{return(te=Je||(Je={}))[te.TRACE=0]="TRACE",te[te.DEBUG=1]="DEBUG",te[te.INFO=2]="INFO",te[te.LOG=3]="LOG",te[te.WARN=4]="WARN",te[te.ERROR=5]="ERROR",te[te.FATAL=6]="FATAL",te[te.OFF=7]="OFF",Je;var te})();class zt{constructor(le){this.config=le,this._config=le}get level(){return this._config.level}get serverLogLevel(){return this._config.serverLogLevel}updateConfig(le){this._config=this._clone(le)}getConfig(){return this._clone(this._config)}_clone(le){const ie=new ze;return Object.keys(le).forEach(Ue=>{ie[Ue]=le[Ue]}),ie}}const ut=["purple","teal","gray","gray","red","red","red"];class Ie{static prepareMetaString(le,ie,Ue,je){return`${le} ${ie}${Ue?` [${Ue}:${je}]`:""}`}static getColor(le,ie){switch(le){case Je.TRACE:return this.getColorFromConfig(Je.TRACE,ie);case Je.DEBUG:return this.getColorFromConfig(Je.DEBUG,ie);case Je.INFO:return this.getColorFromConfig(Je.INFO,ie);case Je.LOG:return this.getColorFromConfig(Je.LOG,ie);case Je.WARN:return this.getColorFromConfig(Je.WARN,ie);case Je.ERROR:return this.getColorFromConfig(Je.ERROR,ie);case Je.FATAL:return this.getColorFromConfig(Je.FATAL,ie);default:return}}static getColorFromConfig(le,ie){return ie?ie[le]:ut[le]}static prepareMessage(le){try{"string"!=typeof le&&!(le instanceof Error)&&(le=JSON.stringify(le,null,2))}catch(ie){le='The provided "message" value could not be parsed with JSON.stringify().'}return le}static prepareAdditionalParameters(le){return null==le?null:le.map((ie,Ue)=>{try{return"object"==typeof ie&&JSON.stringify(ie),ie}catch(je){return`The additional[${Ue}] value could not be parsed using JSON.stringify().`}})}}class $e{constructor(le,ie,Ue){this.fileName=le,this.lineNumber=ie,this.columnNumber=Ue}toString(){return this.fileName+":"+this.lineNumber+":"+this.columnNumber}}let et=(()=>{class te{constructor(ie){this.httpBackend=ie,this.sourceMapCache=new Map,this.logPositionCache=new Map}static getStackLine(ie){const Ue=new Error;try{throw Ue}catch(je){try{let tt=4;return Ue.stack.split("\n")[0].includes(".js:")||(tt+=1),Ue.stack.split("\n")[tt+(ie||0)]}catch(tt){return null}}}static getPosition(ie){const Ue=ie.lastIndexOf("/");let je=ie.indexOf(")");je<0&&(je=void 0);const ke=ie.substring(Ue+1,je).split(":");return 3===ke.length?new $e(ke[0],+ke[1],+ke[2]):new $e("unknown",0,0)}static getTranspileLocation(ie){let Ue=ie.indexOf("(");Ue<0&&(Ue=ie.lastIndexOf("@"),Ue<0&&(Ue=ie.lastIndexOf(" ")));let je=ie.indexOf(")");return je<0&&(je=void 0),ie.substring(Ue+1,je)}static getMapFilePath(ie){const Ue=te.getTranspileLocation(ie),je=Ue.substring(0,Ue.lastIndexOf(":"));return je.substring(0,je.lastIndexOf(":"))+".map"}static getMapping(ie,Ue){let je=0,tt=0,ke=0;const ve=ie.mappings.split(";");for(let mt=0;mt=4&&(Qe+=it[0],je+=it[1],tt+=it[2],ke+=it[3]),mt===Ue.lineNumber){if(Qe===Ue.columnNumber)return new $e(ie.sources[je],tt,ke);if(_t+1===dt.length)return new $e(ie.sources[je],tt,0)}}}return new $e("unknown",0,0)}_getSourceMap(ie,Ue){const je=new G.aW("GET",ie),tt=Ue.toString();if(this.logPositionCache.has(tt))return this.logPositionCache.get(tt);this.sourceMapCache.has(ie)||this.sourceMapCache.set(ie,this.httpBackend.handle(je).pipe((0,oe.h)(ve=>ve instanceof G.Zn),(0,q.U)(ve=>ve.body),(0,_.X)(3),(0,W.d)(1)));const ke=this.sourceMapCache.get(ie).pipe((0,q.U)(ve=>te.getMapping(ve,Ue)),(0,I.K)(()=>(0,Fe.of)(Ue)),(0,W.d)(1));return this.logPositionCache.set(tt,ke),ke}getCallerDetails(ie,Ue){const je=te.getStackLine(Ue);return je?(0,Fe.of)([te.getPosition(je),te.getMapFilePath(je)]).pipe((0,R.w)(([tt,ke])=>ie?this._getSourceMap(ke,tt):(0,Fe.of)(tt))):(0,Fe.of)(new $e("",0,0))}}return te.\u0275fac=function(ie){return new(ie||te)(s.LFG(G.jN))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(G.jN))},token:te,providedIn:"root"}),te})();const Se=["TRACE","DEBUG","INFO","LOG","WARN","ERROR","FATAL","OFF"];let Xe=(()=>{class te{constructor(ie,Ue,je,tt,ke){this.mapperService=ie,this.httpService=Ue,this.platformId=tt,this.datePipe=ke,this._withCredentials=!1,this._isIE=(0,a.NF)(tt)&&navigator&&navigator.userAgent&&!(-1===navigator.userAgent.indexOf("MSIE")&&!navigator.userAgent.match(/Trident\//)&&!navigator.userAgent.match(/Edge\//)),this.config=new zt(je),this._logFunc=this._isIE?this._logIE.bind(this):this._logModern.bind(this)}get level(){return this.config.level}get serverLogLevel(){return this.config.serverLogLevel}trace(ie,...Ue){this._log(Je.TRACE,ie,Ue)}debug(ie,...Ue){this._log(Je.DEBUG,ie,Ue)}info(ie,...Ue){this._log(Je.INFO,ie,Ue)}log(ie,...Ue){this._log(Je.LOG,ie,Ue)}warn(ie,...Ue){this._log(Je.WARN,ie,Ue)}error(ie,...Ue){this._log(Je.ERROR,ie,Ue)}fatal(ie,...Ue){this._log(Je.FATAL,ie,Ue)}setCustomHttpHeaders(ie){this._customHttpHeaders=ie}setCustomParams(ie){this._customParams=ie}setWithCredentialsOptionValue(ie){this._withCredentials=ie}registerMonitor(ie){this._loggerMonitor=ie}updateConfig(ie){this.config.updateConfig(ie)}getConfigSnapshot(){return this.config.getConfig()}_logIE(ie,Ue,je,tt){switch(tt=tt||[],ie){case Je.WARN:console.warn(`${Ue} `,je,...tt);break;case Je.ERROR:case Je.FATAL:console.error(`${Ue} `,je,...tt);break;case Je.INFO:console.info(`${Ue} `,je,...tt);break;default:console.log(`${Ue} `,je,...tt)}}_logModern(ie,Ue,je,tt){const ke=this.getConfigSnapshot().colorScheme,ve=Ie.getColor(ie,ke);switch(tt=tt||[],ie){case Je.WARN:console.warn(`%c${Ue}`,`color:${ve}`,je,...tt);break;case Je.ERROR:case Je.FATAL:console.error(`%c${Ue}`,`color:${ve}`,je,...tt);break;case Je.INFO:console.info(`%c${Ue}`,`color:${ve}`,je,...tt);break;case Je.DEBUG:console.debug(`%c${Ue}`,`color:${ve}`,je,...tt);break;default:console.log(`%c${Ue}`,`color:${ve}`,je,...tt)}}_log(ie,Ue,je=[],tt=!0){const ke=this.config.getConfig(),ve=tt&&ke.serverLoggingUrl&&ie>=ke.serverLogLevel,mt=ie>=ke.level;if(!Ue||!ve&&!mt)return;const Qe=Se[ie];Ue="function"==typeof Ue?Ue():Ue;const dt=Ie.prepareAdditionalParameters(je),_t=ke.timestampFormat?this.datePipe.transform(new Date,ke.timestampFormat):(new Date).toISOString();this.mapperService.getCallerDetails(ke.enableSourceMaps,ke.proxiedSteps).subscribe(it=>{const St={message:Ie.prepareMessage(Ue),additional:dt,level:ie,timestamp:_t,fileName:it.fileName,lineNumber:it.lineNumber.toString()};if(this._loggerMonitor&&mt&&this._loggerMonitor.onLog(St),ve){St.message=Ue instanceof Error?Ue.stack:Ue,St.message=Ie.prepareMessage(St.message);const ot=this._customHttpHeaders||new G.WM;ot.set("Content-Type","application/json");const Et={headers:ot,params:this._customParams||new G.LE,responseType:ke.httpResponseType||"json",withCredentials:this._withCredentials};this.httpService.logOnServer(ke.serverLoggingUrl,St,Et).subscribe(Zt=>{},Zt=>{this._log(Je.ERROR,`FAILED TO LOG ON SERVER: ${Ue}`,[Zt],!1)})}if(mt&&!ke.disableConsoleLogging){const ot=Ie.prepareMetaString(_t,Qe,ke.disableFileDetails?null:it.fileName,it.lineNumber.toString());return this._logFunc(ie,ot,Ue,je)}})}}return te.\u0275fac=function(ie){return new(ie||te)(s.LFG(et),s.LFG(vt),s.LFG(ze),s.LFG(s.Lbi),s.LFG(a.uU))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(et),(0,s.LFG)(vt),(0,s.LFG)(ze),(0,s.LFG)(s.Lbi),(0,s.LFG)(a.uU))},token:te,providedIn:"root"}),te})()},591:(yt,be,p)=>{p.d(be,{X:()=>G});var a=p(8929),s=p(5279);class G extends a.xQ{constructor(q){super(),this._value=q}get value(){return this.getValue()}_subscribe(q){const _=super._subscribe(q);return _&&!_.closed&&q.next(this._value),_}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(q){super.next(this._value=q)}}},9312:(yt,be,p)=>{p.d(be,{P:()=>q});var a=p(8896),s=p(1086),G=p(1737);class q{constructor(W,I,R){this.kind=W,this.value=I,this.error=R,this.hasValue="N"===W}observe(W){switch(this.kind){case"N":return W.next&&W.next(this.value);case"E":return W.error&&W.error(this.error);case"C":return W.complete&&W.complete()}}do(W,I,R){switch(this.kind){case"N":return W&&W(this.value);case"E":return I&&I(this.error);case"C":return R&&R()}}accept(W,I,R){return W&&"function"==typeof W.next?this.observe(W):this.do(W,I,R)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,G._)(this.error);case"C":return(0,a.c)()}throw new Error("unexpected notification kind value")}static createNext(W){return void 0!==W?new q("N",W):q.undefinedValueNotification}static createError(W){return new q("E",void 0,W)}static createComplete(){return q.completeNotification}}q.completeNotification=new q("C"),q.undefinedValueNotification=new q("N",void 0)},6498:(yt,be,p)=>{p.d(be,{y:()=>R});var a=p(3489),G=p(7668),oe=p(3292),_=p(3821),W=p(4843),I=p(2830);let R=(()=>{class B{constructor(ye){this._isScalar=!1,ye&&(this._subscribe=ye)}lift(ye){const Ye=new B;return Ye.source=this,Ye.operator=ye,Ye}subscribe(ye,Ye,Fe){const{operator:ze}=this,_e=function q(B,ee,ye){if(B){if(B instanceof a.L)return B;if(B[G.b])return B[G.b]()}return B||ee||ye?new a.L(B,ee,ye):new a.L(oe.c)}(ye,Ye,Fe);if(_e.add(ze?ze.call(_e,this.source):this.source||I.v.useDeprecatedSynchronousErrorHandling&&!_e.syncErrorThrowable?this._subscribe(_e):this._trySubscribe(_e)),I.v.useDeprecatedSynchronousErrorHandling&&_e.syncErrorThrowable&&(_e.syncErrorThrowable=!1,_e.syncErrorThrown))throw _e.syncErrorValue;return _e}_trySubscribe(ye){try{return this._subscribe(ye)}catch(Ye){I.v.useDeprecatedSynchronousErrorHandling&&(ye.syncErrorThrown=!0,ye.syncErrorValue=Ye),function s(B){for(;B;){const{closed:ee,destination:ye,isStopped:Ye}=B;if(ee||Ye)return!1;B=ye&&ye instanceof a.L?ye:null}return!0}(ye)?ye.error(Ye):console.warn(Ye)}}forEach(ye,Ye){return new(Ye=H(Ye))((Fe,ze)=>{let _e;_e=this.subscribe(vt=>{try{ye(vt)}catch(Je){ze(Je),_e&&_e.unsubscribe()}},ze,Fe)})}_subscribe(ye){const{source:Ye}=this;return Ye&&Ye.subscribe(ye)}[_.L](){return this}pipe(...ye){return 0===ye.length?this:(0,W.U)(ye)(this)}toPromise(ye){return new(ye=H(ye))((Ye,Fe)=>{let ze;this.subscribe(_e=>ze=_e,_e=>Fe(_e),()=>Ye(ze))})}}return B.create=ee=>new B(ee),B})();function H(B){if(B||(B=I.v.Promise||Promise),!B)throw new Error("no Promise impl found");return B}},3292:(yt,be,p)=>{p.d(be,{c:()=>G});var a=p(2830),s=p(2782);const G={closed:!0,next(oe){},error(oe){if(a.v.useDeprecatedSynchronousErrorHandling)throw oe;(0,s.z)(oe)},complete(){}}},826:(yt,be,p)=>{p.d(be,{L:()=>s});var a=p(3489);class s extends a.L{notifyNext(oe,q,_,W,I){this.destination.next(q)}notifyError(oe,q){this.destination.error(oe)}notifyComplete(oe){this.destination.complete()}}},5647:(yt,be,p)=>{p.d(be,{t:()=>ee});var a=p(8929),s=p(6686),oe=p(2268);const W=new class q extends oe.v{}(class G extends s.o{constructor(Fe,ze){super(Fe,ze),this.scheduler=Fe,this.work=ze}schedule(Fe,ze=0){return ze>0?super.schedule(Fe,ze):(this.delay=ze,this.state=Fe,this.scheduler.flush(this),this)}execute(Fe,ze){return ze>0||this.closed?super.execute(Fe,ze):this._execute(Fe,ze)}requestAsyncId(Fe,ze,_e=0){return null!==_e&&_e>0||null===_e&&this.delay>0?super.requestAsyncId(Fe,ze,_e):Fe.flush(this)}});var I=p(2654),R=p(7770),H=p(5279),B=p(5283);class ee extends a.xQ{constructor(Fe=Number.POSITIVE_INFINITY,ze=Number.POSITIVE_INFINITY,_e){super(),this.scheduler=_e,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=Fe<1?1:Fe,this._windowTime=ze<1?1:ze,ze===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(Fe){if(!this.isStopped){const ze=this._events;ze.push(Fe),ze.length>this._bufferSize&&ze.shift()}super.next(Fe)}nextTimeWindow(Fe){this.isStopped||(this._events.push(new ye(this._getNow(),Fe)),this._trimBufferThenGetEvents()),super.next(Fe)}_subscribe(Fe){const ze=this._infiniteTimeWindow,_e=ze?this._events:this._trimBufferThenGetEvents(),vt=this.scheduler,Je=_e.length;let zt;if(this.closed)throw new H.N;if(this.isStopped||this.hasError?zt=I.w.EMPTY:(this.observers.push(Fe),zt=new B.W(this,Fe)),vt&&Fe.add(Fe=new R.ht(Fe,vt)),ze)for(let ut=0;utze&&(zt=Math.max(zt,Je-ze)),zt>0&&vt.splice(0,zt),vt}}class ye{constructor(Fe,ze){this.time=Fe,this.value=ze}}},8929:(yt,be,p)=>{p.d(be,{Yc:()=>W,xQ:()=>I});var a=p(6498),s=p(3489),G=p(2654),oe=p(5279),q=p(5283),_=p(7668);class W extends s.L{constructor(B){super(B),this.destination=B}}let I=(()=>{class H extends a.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[_.b](){return new W(this)}lift(ee){const ye=new R(this,this);return ye.operator=ee,ye}next(ee){if(this.closed)throw new oe.N;if(!this.isStopped){const{observers:ye}=this,Ye=ye.length,Fe=ye.slice();for(let ze=0;zenew R(B,ee),H})();class R extends I{constructor(B,ee){super(),this.destination=B,this.source=ee}next(B){const{destination:ee}=this;ee&&ee.next&&ee.next(B)}error(B){const{destination:ee}=this;ee&&ee.error&&this.destination.error(B)}complete(){const{destination:B}=this;B&&B.complete&&this.destination.complete()}_subscribe(B){const{source:ee}=this;return ee?this.source.subscribe(B):G.w.EMPTY}}},5283:(yt,be,p)=>{p.d(be,{W:()=>s});var a=p(2654);class s extends a.w{constructor(oe,q){super(),this.subject=oe,this.subscriber=q,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const oe=this.subject,q=oe.observers;if(this.subject=null,!q||0===q.length||oe.isStopped||oe.closed)return;const _=q.indexOf(this.subscriber);-1!==_&&q.splice(_,1)}}},3489:(yt,be,p)=>{p.d(be,{L:()=>W});var a=p(7043),s=p(3292),G=p(2654),oe=p(7668),q=p(2830),_=p(2782);class W extends G.w{constructor(H,B,ee){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(!H){this.destination=s.c;break}if("object"==typeof H){H instanceof W?(this.syncErrorThrowable=H.syncErrorThrowable,this.destination=H,H.add(this)):(this.syncErrorThrowable=!0,this.destination=new I(this,H));break}default:this.syncErrorThrowable=!0,this.destination=new I(this,H,B,ee)}}[oe.b](){return this}static create(H,B,ee){const ye=new W(H,B,ee);return ye.syncErrorThrowable=!1,ye}next(H){this.isStopped||this._next(H)}error(H){this.isStopped||(this.isStopped=!0,this._error(H))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(H){this.destination.next(H)}_error(H){this.destination.error(H),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:H}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=H,this}}class I extends W{constructor(H,B,ee,ye){super(),this._parentSubscriber=H;let Ye,Fe=this;(0,a.m)(B)?Ye=B:B&&(Ye=B.next,ee=B.error,ye=B.complete,B!==s.c&&(Fe=Object.create(B),(0,a.m)(Fe.unsubscribe)&&this.add(Fe.unsubscribe.bind(Fe)),Fe.unsubscribe=this.unsubscribe.bind(this))),this._context=Fe,this._next=Ye,this._error=ee,this._complete=ye}next(H){if(!this.isStopped&&this._next){const{_parentSubscriber:B}=this;q.v.useDeprecatedSynchronousErrorHandling&&B.syncErrorThrowable?this.__tryOrSetError(B,this._next,H)&&this.unsubscribe():this.__tryOrUnsub(this._next,H)}}error(H){if(!this.isStopped){const{_parentSubscriber:B}=this,{useDeprecatedSynchronousErrorHandling:ee}=q.v;if(this._error)ee&&B.syncErrorThrowable?(this.__tryOrSetError(B,this._error,H),this.unsubscribe()):(this.__tryOrUnsub(this._error,H),this.unsubscribe());else if(B.syncErrorThrowable)ee?(B.syncErrorValue=H,B.syncErrorThrown=!0):(0,_.z)(H),this.unsubscribe();else{if(this.unsubscribe(),ee)throw H;(0,_.z)(H)}}}complete(){if(!this.isStopped){const{_parentSubscriber:H}=this;if(this._complete){const B=()=>this._complete.call(this._context);q.v.useDeprecatedSynchronousErrorHandling&&H.syncErrorThrowable?(this.__tryOrSetError(H,B),this.unsubscribe()):(this.__tryOrUnsub(B),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(H,B){try{H.call(this._context,B)}catch(ee){if(this.unsubscribe(),q.v.useDeprecatedSynchronousErrorHandling)throw ee;(0,_.z)(ee)}}__tryOrSetError(H,B,ee){if(!q.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{B.call(this._context,ee)}catch(ye){return q.v.useDeprecatedSynchronousErrorHandling?(H.syncErrorValue=ye,H.syncErrorThrown=!0,!0):((0,_.z)(ye),!0)}return!1}_unsubscribe(){const{_parentSubscriber:H}=this;this._context=null,this._parentSubscriber=null,H.unsubscribe()}}},2654:(yt,be,p)=>{p.d(be,{w:()=>_});var a=p(6688),s=p(7830),G=p(7043);const q=(()=>{function I(R){return Error.call(this),this.message=R?`${R.length} errors occurred during unsubscription:\n${R.map((H,B)=>`${B+1}) ${H.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=R,this}return I.prototype=Object.create(Error.prototype),I})();class _{constructor(R){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,R&&(this._ctorUnsubscribe=!0,this._unsubscribe=R)}unsubscribe(){let R;if(this.closed)return;let{_parentOrParents:H,_ctorUnsubscribe:B,_unsubscribe:ee,_subscriptions:ye}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,H instanceof _)H.remove(this);else if(null!==H)for(let Ye=0;YeR.concat(H instanceof q?H.errors:H),[])}_.EMPTY=((I=new _).closed=!0,I)},2830:(yt,be,p)=>{p.d(be,{v:()=>s});let a=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(G){if(G){const oe=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+oe.stack)}else a&&console.log("RxJS: Back to a better error behavior. Thank you. <3");a=G},get useDeprecatedSynchronousErrorHandling(){return a}}},1177:(yt,be,p)=>{p.d(be,{IY:()=>oe,Ds:()=>_,ft:()=>I});var a=p(3489),s=p(6498),G=p(9249);class oe extends a.L{constructor(H){super(),this.parent=H}_next(H){this.parent.notifyNext(H)}_error(H){this.parent.notifyError(H),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class _ extends a.L{notifyNext(H){this.destination.next(H)}notifyError(H){this.destination.error(H)}notifyComplete(){this.destination.complete()}}function I(R,H){if(H.closed)return;if(R instanceof s.y)return R.subscribe(H);let B;try{B=(0,G.s)(R)(H)}catch(ee){H.error(ee)}return B}},1762:(yt,be,p)=>{p.d(be,{c:()=>q,N:()=>_});var a=p(8929),s=p(6498),G=p(2654),oe=p(4327);class q extends s.y{constructor(B,ee){super(),this.source=B,this.subjectFactory=ee,this._refCount=0,this._isComplete=!1}_subscribe(B){return this.getSubject().subscribe(B)}getSubject(){const B=this._subject;return(!B||B.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let B=this._connection;return B||(this._isComplete=!1,B=this._connection=new G.w,B.add(this.source.subscribe(new W(this.getSubject(),this))),B.closed&&(this._connection=null,B=G.w.EMPTY)),B}refCount(){return(0,oe.x)()(this)}}const _=(()=>{const H=q.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:H._subscribe},_isComplete:{value:H._isComplete,writable:!0},getSubject:{value:H.getSubject},connect:{value:H.connect},refCount:{value:H.refCount}}})();class W extends a.Yc{constructor(B,ee){super(B),this.connectable=ee}_error(B){this._unsubscribe(),super._error(B)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const B=this.connectable;if(B){this.connectable=null;const ee=B._connection;B._refCount=0,B._subject=null,B._connection=null,ee&&ee.unsubscribe()}}}},6053:(yt,be,p)=>{p.d(be,{aj:()=>W});var a=p(2866),s=p(6688),G=p(826),oe=p(448),q=p(3009);const _={};function W(...H){let B,ee;return(0,a.K)(H[H.length-1])&&(ee=H.pop()),"function"==typeof H[H.length-1]&&(B=H.pop()),1===H.length&&(0,s.k)(H[0])&&(H=H[0]),(0,q.n)(H,ee).lift(new I(B))}class I{constructor(B){this.resultSelector=B}call(B,ee){return ee.subscribe(new R(B,this.resultSelector))}}class R extends G.L{constructor(B,ee){super(B),this.resultSelector=ee,this.active=0,this.values=[],this.observables=[]}_next(B){this.values.push(_),this.observables.push(B)}_complete(){const B=this.observables,ee=B.length;if(0===ee)this.destination.complete();else{this.active=ee,this.toRespond=ee;for(let ye=0;ye{p.d(be,{z:()=>G});var a=p(1086),s=p(534);function G(...oe){return(0,s.u)()((0,a.of)(...oe))}},8514:(yt,be,p)=>{p.d(be,{P:()=>oe});var a=p(6498),s=p(5254),G=p(8896);function oe(q){return new a.y(_=>{let W;try{W=q()}catch(R){return void _.error(R)}return(W?(0,s.D)(W):(0,G.c)()).subscribe(_)})}},8896:(yt,be,p)=>{p.d(be,{E:()=>s,c:()=>G});var a=p(6498);const s=new a.y(q=>q.complete());function G(q){return q?function oe(q){return new a.y(_=>q.schedule(()=>_.complete()))}(q):s}},5254:(yt,be,p)=>{p.d(be,{D:()=>Fe});var a=p(6498),s=p(9249),G=p(2654),oe=p(3821),W=p(6454),I=p(5430),B=p(8955),ee=p(8515);function Fe(ze,_e){return _e?function Ye(ze,_e){if(null!=ze){if(function H(ze){return ze&&"function"==typeof ze[oe.L]}(ze))return function q(ze,_e){return new a.y(vt=>{const Je=new G.w;return Je.add(_e.schedule(()=>{const zt=ze[oe.L]();Je.add(zt.subscribe({next(ut){Je.add(_e.schedule(()=>vt.next(ut)))},error(ut){Je.add(_e.schedule(()=>vt.error(ut)))},complete(){Je.add(_e.schedule(()=>vt.complete()))}}))})),Je})}(ze,_e);if((0,B.t)(ze))return function _(ze,_e){return new a.y(vt=>{const Je=new G.w;return Je.add(_e.schedule(()=>ze.then(zt=>{Je.add(_e.schedule(()=>{vt.next(zt),Je.add(_e.schedule(()=>vt.complete()))}))},zt=>{Je.add(_e.schedule(()=>vt.error(zt)))}))),Je})}(ze,_e);if((0,ee.z)(ze))return(0,W.r)(ze,_e);if(function ye(ze){return ze&&"function"==typeof ze[I.hZ]}(ze)||"string"==typeof ze)return function R(ze,_e){if(!ze)throw new Error("Iterable cannot be null");return new a.y(vt=>{const Je=new G.w;let zt;return Je.add(()=>{zt&&"function"==typeof zt.return&&zt.return()}),Je.add(_e.schedule(()=>{zt=ze[I.hZ](),Je.add(_e.schedule(function(){if(vt.closed)return;let ut,Ie;try{const $e=zt.next();ut=$e.value,Ie=$e.done}catch($e){return void vt.error($e)}Ie?vt.complete():(vt.next(ut),this.schedule())}))})),Je})}(ze,_e)}throw new TypeError((null!==ze&&typeof ze||ze)+" is not observable")}(ze,_e):ze instanceof a.y?ze:new a.y((0,s.s)(ze))}},3009:(yt,be,p)=>{p.d(be,{n:()=>oe});var a=p(6498),s=p(3650),G=p(6454);function oe(q,_){return _?(0,G.r)(q,_):new a.y((0,s.V)(q))}},3753:(yt,be,p)=>{p.d(be,{R:()=>_});var a=p(6498),s=p(6688),G=p(7043),oe=p(4850);function _(B,ee,ye,Ye){return(0,G.m)(ye)&&(Ye=ye,ye=void 0),Ye?_(B,ee,ye).pipe((0,oe.U)(Fe=>(0,s.k)(Fe)?Ye(...Fe):Ye(Fe))):new a.y(Fe=>{W(B,ee,function ze(_e){Fe.next(arguments.length>1?Array.prototype.slice.call(arguments):_e)},Fe,ye)})}function W(B,ee,ye,Ye,Fe){let ze;if(function H(B){return B&&"function"==typeof B.addEventListener&&"function"==typeof B.removeEventListener}(B)){const _e=B;B.addEventListener(ee,ye,Fe),ze=()=>_e.removeEventListener(ee,ye,Fe)}else if(function R(B){return B&&"function"==typeof B.on&&"function"==typeof B.off}(B)){const _e=B;B.on(ee,ye),ze=()=>_e.off(ee,ye)}else if(function I(B){return B&&"function"==typeof B.addListener&&"function"==typeof B.removeListener}(B)){const _e=B;B.addListener(ee,ye),ze=()=>_e.removeListener(ee,ye)}else{if(!B||!B.length)throw new TypeError("Invalid event target");for(let _e=0,vt=B.length;_e{p.d(be,{T:()=>q});var a=p(6498),s=p(2866),G=p(9146),oe=p(3009);function q(..._){let W=Number.POSITIVE_INFINITY,I=null,R=_[_.length-1];return(0,s.K)(R)?(I=_.pop(),_.length>1&&"number"==typeof _[_.length-1]&&(W=_.pop())):"number"==typeof R&&(W=_.pop()),null===I&&1===_.length&&_[0]instanceof a.y?_[0]:(0,G.J)(W)((0,oe.n)(_,I))}},1086:(yt,be,p)=>{p.d(be,{of:()=>oe});var a=p(2866),s=p(3009),G=p(6454);function oe(...q){let _=q[q.length-1];return(0,a.K)(_)?(q.pop(),(0,G.r)(q,_)):(0,s.n)(q)}},1737:(yt,be,p)=>{p.d(be,{_:()=>s});var a=p(6498);function s(oe,q){return new a.y(q?_=>q.schedule(G,0,{error:oe,subscriber:_}):_=>_.error(oe))}function G({error:oe,subscriber:q}){q.error(oe)}},8723:(yt,be,p)=>{p.d(be,{H:()=>q});var a=p(6498),s=p(353),G=p(4241),oe=p(2866);function q(W=0,I,R){let H=-1;return(0,G.k)(I)?H=Number(I)<1?1:Number(I):(0,oe.K)(I)&&(R=I),(0,oe.K)(R)||(R=s.P),new a.y(B=>{const ee=(0,G.k)(W)?W:+W-R.now();return R.schedule(_,ee,{index:0,period:H,subscriber:B})})}function _(W){const{index:I,period:R,subscriber:H}=W;if(H.next(I),!H.closed){if(-1===R)return H.complete();W.index=I+1,this.schedule(W,R)}}},7138:(yt,be,p)=>{p.d(be,{e:()=>W});var a=p(353),s=p(1177);class oe{constructor(R){this.durationSelector=R}call(R,H){return H.subscribe(new q(R,this.durationSelector))}}class q extends s.Ds{constructor(R,H){super(R),this.durationSelector=H,this.hasValue=!1}_next(R){if(this.value=R,this.hasValue=!0,!this.throttled){let H;try{const{durationSelector:ee}=this;H=ee(R)}catch(ee){return this.destination.error(ee)}const B=(0,s.ft)(H,new s.IY(this));!B||B.closed?this.clearThrottle():this.add(this.throttled=B)}}clearThrottle(){const{value:R,hasValue:H,throttled:B}=this;B&&(this.remove(B),this.throttled=void 0,B.unsubscribe()),H&&(this.value=void 0,this.hasValue=!1,this.destination.next(R))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var _=p(8723);function W(I,R=a.P){return function G(I){return function(H){return H.lift(new oe(I))}}(()=>(0,_.H)(I,R))}},7221:(yt,be,p)=>{p.d(be,{K:()=>s});var a=p(1177);function s(q){return function(W){const I=new G(q),R=W.lift(I);return I.caught=R}}class G{constructor(_){this.selector=_}call(_,W){return W.subscribe(new oe(_,this.selector,this.caught))}}class oe extends a.Ds{constructor(_,W,I){super(_),this.selector=W,this.caught=I}error(_){if(!this.isStopped){let W;try{W=this.selector(_,this.caught)}catch(H){return void super.error(H)}this._unsubscribeAndRecycle();const I=new a.IY(this);this.add(I);const R=(0,a.ft)(W,I);R!==I&&this.add(R)}}}},534:(yt,be,p)=>{p.d(be,{u:()=>s});var a=p(9146);function s(){return(0,a.J)(1)}},1406:(yt,be,p)=>{p.d(be,{b:()=>s});var a=p(1709);function s(G,oe){return(0,a.zg)(G,oe,1)}},13:(yt,be,p)=>{p.d(be,{b:()=>G});var a=p(3489),s=p(353);function G(W,I=s.P){return R=>R.lift(new oe(W,I))}class oe{constructor(I,R){this.dueTime=I,this.scheduler=R}call(I,R){return R.subscribe(new q(I,this.dueTime,this.scheduler))}}class q extends a.L{constructor(I,R,H){super(I),this.dueTime=R,this.scheduler=H,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(I){this.clearDebounce(),this.lastValue=I,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(_,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:I}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(I)}}clearDebounce(){const I=this.debouncedSubscription;null!==I&&(this.remove(I),I.unsubscribe(),this.debouncedSubscription=null)}}function _(W){W.debouncedNext()}},8583:(yt,be,p)=>{p.d(be,{g:()=>q});var a=p(353),G=p(3489),oe=p(9312);function q(R,H=a.P){const ee=function s(R){return R instanceof Date&&!isNaN(+R)}(R)?+R-H.now():Math.abs(R);return ye=>ye.lift(new _(ee,H))}class _{constructor(H,B){this.delay=H,this.scheduler=B}call(H,B){return B.subscribe(new W(H,this.delay,this.scheduler))}}class W extends G.L{constructor(H,B,ee){super(H),this.delay=B,this.scheduler=ee,this.queue=[],this.active=!1,this.errored=!1}static dispatch(H){const B=H.source,ee=B.queue,ye=H.scheduler,Ye=H.destination;for(;ee.length>0&&ee[0].time-ye.now()<=0;)ee.shift().notification.observe(Ye);if(ee.length>0){const Fe=Math.max(0,ee[0].time-ye.now());this.schedule(H,Fe)}else this.unsubscribe(),B.active=!1}_schedule(H){this.active=!0,this.destination.add(H.schedule(W.dispatch,this.delay,{source:this,destination:this.destination,scheduler:H}))}scheduleNotification(H){if(!0===this.errored)return;const B=this.scheduler,ee=new I(B.now()+this.delay,H);this.queue.push(ee),!1===this.active&&this._schedule(B)}_next(H){this.scheduleNotification(oe.P.createNext(H))}_error(H){this.errored=!0,this.queue=[],this.destination.error(H),this.unsubscribe()}_complete(){this.scheduleNotification(oe.P.createComplete()),this.unsubscribe()}}class I{constructor(H,B){this.time=H,this.notification=B}}},5778:(yt,be,p)=>{p.d(be,{x:()=>s});var a=p(3489);function s(q,_){return W=>W.lift(new G(q,_))}class G{constructor(_,W){this.compare=_,this.keySelector=W}call(_,W){return W.subscribe(new oe(_,this.compare,this.keySelector))}}class oe extends a.L{constructor(_,W,I){super(_),this.keySelector=I,this.hasKey=!1,"function"==typeof W&&(this.compare=W)}compare(_,W){return _===W}_next(_){let W;try{const{keySelector:R}=this;W=R?R(_):_}catch(R){return this.destination.error(R)}let I=!1;if(this.hasKey)try{const{compare:R}=this;I=R(this.key,W)}catch(R){return this.destination.error(R)}else this.hasKey=!0;I||(this.key=W,this.destination.next(_))}}},2198:(yt,be,p)=>{p.d(be,{h:()=>s});var a=p(3489);function s(q,_){return function(I){return I.lift(new G(q,_))}}class G{constructor(_,W){this.predicate=_,this.thisArg=W}call(_,W){return W.subscribe(new oe(_,this.predicate,this.thisArg))}}class oe extends a.L{constructor(_,W,I){super(_),this.predicate=W,this.thisArg=I,this.count=0}_next(_){let W;try{W=this.predicate.call(this.thisArg,_,this.count++)}catch(I){return void this.destination.error(I)}W&&this.destination.next(_)}}},537:(yt,be,p)=>{p.d(be,{x:()=>G});var a=p(3489),s=p(2654);function G(_){return W=>W.lift(new oe(_))}class oe{constructor(W){this.callback=W}call(W,I){return I.subscribe(new q(W,this.callback))}}class q extends a.L{constructor(W,I){super(W),this.add(new s.w(I))}}},4850:(yt,be,p)=>{p.d(be,{U:()=>s});var a=p(3489);function s(q,_){return function(I){if("function"!=typeof q)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return I.lift(new G(q,_))}}class G{constructor(_,W){this.project=_,this.thisArg=W}call(_,W){return W.subscribe(new oe(_,this.project,this.thisArg))}}class oe extends a.L{constructor(_,W,I){super(_),this.project=W,this.count=0,this.thisArg=I||this}_next(_){let W;try{W=this.project.call(this.thisArg,_,this.count++)}catch(I){return void this.destination.error(I)}this.destination.next(W)}}},7604:(yt,be,p)=>{p.d(be,{h:()=>s});var a=p(3489);function s(q){return _=>_.lift(new G(q))}class G{constructor(_){this.value=_}call(_,W){return W.subscribe(new oe(_,this.value))}}class oe extends a.L{constructor(_,W){super(_),this.value=W}_next(_){this.destination.next(this.value)}}},9146:(yt,be,p)=>{p.d(be,{J:()=>G});var a=p(1709),s=p(5379);function G(oe=Number.POSITIVE_INFINITY){return(0,a.zg)(s.y,oe)}},1709:(yt,be,p)=>{p.d(be,{zg:()=>oe});var a=p(4850),s=p(5254),G=p(1177);function oe(I,R,H=Number.POSITIVE_INFINITY){return"function"==typeof R?B=>B.pipe(oe((ee,ye)=>(0,s.D)(I(ee,ye)).pipe((0,a.U)((Ye,Fe)=>R(ee,Ye,ye,Fe))),H)):("number"==typeof R&&(H=R),B=>B.lift(new q(I,H)))}class q{constructor(R,H=Number.POSITIVE_INFINITY){this.project=R,this.concurrent=H}call(R,H){return H.subscribe(new _(R,this.project,this.concurrent))}}class _ extends G.Ds{constructor(R,H,B=Number.POSITIVE_INFINITY){super(R),this.project=H,this.concurrent=B,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(R){this.active0?this._next(R.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},2536:(yt,be,p)=>{p.d(be,{O:()=>s});var a=p(1762);function s(oe,q){return function(W){let I;if(I="function"==typeof oe?oe:function(){return oe},"function"==typeof q)return W.lift(new G(I,q));const R=Object.create(W,a.N);return R.source=W,R.subjectFactory=I,R}}class G{constructor(q,_){this.subjectFactory=q,this.selector=_}call(q,_){const{selector:W}=this,I=this.subjectFactory(),R=W(I).subscribe(q);return R.add(_.subscribe(I)),R}}},7770:(yt,be,p)=>{p.d(be,{QV:()=>G,ht:()=>q});var a=p(3489),s=p(9312);function G(W,I=0){return function(H){return H.lift(new oe(W,I))}}class oe{constructor(I,R=0){this.scheduler=I,this.delay=R}call(I,R){return R.subscribe(new q(I,this.scheduler,this.delay))}}class q extends a.L{constructor(I,R,H=0){super(I),this.scheduler=R,this.delay=H}static dispatch(I){const{notification:R,destination:H}=I;R.observe(H),this.unsubscribe()}scheduleMessage(I){this.destination.add(this.scheduler.schedule(q.dispatch,this.delay,new _(I,this.destination)))}_next(I){this.scheduleMessage(s.P.createNext(I))}_error(I){this.scheduleMessage(s.P.createError(I)),this.unsubscribe()}_complete(){this.scheduleMessage(s.P.createComplete()),this.unsubscribe()}}class _{constructor(I,R){this.notification=I,this.destination=R}}},4327:(yt,be,p)=>{p.d(be,{x:()=>s});var a=p(3489);function s(){return function(_){return _.lift(new G(_))}}class G{constructor(_){this.connectable=_}call(_,W){const{connectable:I}=this;I._refCount++;const R=new oe(_,I),H=W.subscribe(R);return R.closed||(R.connection=I.connect()),H}}class oe extends a.L{constructor(_,W){super(_),this.connectable=W}_unsubscribe(){const{connectable:_}=this;if(!_)return void(this.connection=null);this.connectable=null;const W=_._refCount;if(W<=0)return void(this.connection=null);if(_._refCount=W-1,W>1)return void(this.connection=null);const{connection:I}=this,R=_._connection;this.connection=null,R&&(!I||R===I)&&R.unsubscribe()}}},9973:(yt,be,p)=>{p.d(be,{X:()=>s});var a=p(3489);function s(q=-1){return _=>_.lift(new G(q,_))}class G{constructor(_,W){this.count=_,this.source=W}call(_,W){return W.subscribe(new oe(_,this.count,this.source))}}class oe extends a.L{constructor(_,W,I){super(_),this.count=W,this.source=I}error(_){if(!this.isStopped){const{source:W,count:I}=this;if(0===I)return super.error(_);I>-1&&(this.count=I-1),W.subscribe(this._unsubscribeAndRecycle())}}}},2014:(yt,be,p)=>{p.d(be,{R:()=>s});var a=p(3489);function s(q,_){let W=!1;return arguments.length>=2&&(W=!0),function(R){return R.lift(new G(q,_,W))}}class G{constructor(_,W,I=!1){this.accumulator=_,this.seed=W,this.hasSeed=I}call(_,W){return W.subscribe(new oe(_,this.accumulator,this.seed,this.hasSeed))}}class oe extends a.L{constructor(_,W,I,R){super(_),this.accumulator=W,this._seed=I,this.hasSeed=R,this.index=0}get seed(){return this._seed}set seed(_){this.hasSeed=!0,this._seed=_}_next(_){if(this.hasSeed)return this._tryNext(_);this.seed=_,this.destination.next(_)}_tryNext(_){const W=this.index++;let I;try{I=this.accumulator(this.seed,_,W)}catch(R){this.destination.error(R)}this.seed=I,this.destination.next(I)}}},8117:(yt,be,p)=>{p.d(be,{B:()=>q});var a=p(2536),s=p(4327),G=p(8929);function oe(){return new G.xQ}function q(){return _=>(0,s.x)()((0,a.O)(oe)(_))}},5154:(yt,be,p)=>{p.d(be,{d:()=>s});var a=p(5647);function s(oe,q,_){let W;return W=oe&&"object"==typeof oe?oe:{bufferSize:oe,windowTime:q,refCount:!1,scheduler:_},I=>I.lift(function G({bufferSize:oe=Number.POSITIVE_INFINITY,windowTime:q=Number.POSITIVE_INFINITY,refCount:_,scheduler:W}){let I,H,R=0,B=!1,ee=!1;return function(Ye){let Fe;R++,!I||B?(B=!1,I=new a.t(oe,q,W),Fe=I.subscribe(this),H=Ye.subscribe({next(ze){I.next(ze)},error(ze){B=!0,I.error(ze)},complete(){ee=!0,H=void 0,I.complete()}}),ee&&(H=void 0)):Fe=I.subscribe(this),this.add(()=>{R--,Fe.unsubscribe(),Fe=void 0,H&&!ee&&_&&0===R&&(H.unsubscribe(),H=void 0,I=void 0)})}}(W))}},1307:(yt,be,p)=>{p.d(be,{T:()=>s});var a=p(3489);function s(q){return _=>_.lift(new G(q))}class G{constructor(_){this.total=_}call(_,W){return W.subscribe(new oe(_,this.total))}}class oe extends a.L{constructor(_,W){super(_),this.total=W,this.count=0}_next(_){++this.count>this.total&&this.destination.next(_)}}},1059:(yt,be,p)=>{p.d(be,{O:()=>G});var a=p(1961),s=p(2866);function G(...oe){const q=oe[oe.length-1];return(0,s.K)(q)?(oe.pop(),_=>(0,a.z)(oe,_,q)):_=>(0,a.z)(oe,_)}},7545:(yt,be,p)=>{p.d(be,{w:()=>oe});var a=p(4850),s=p(5254),G=p(1177);function oe(W,I){return"function"==typeof I?R=>R.pipe(oe((H,B)=>(0,s.D)(W(H,B)).pipe((0,a.U)((ee,ye)=>I(H,ee,B,ye))))):R=>R.lift(new q(W))}class q{constructor(I){this.project=I}call(I,R){return R.subscribe(new _(I,this.project))}}class _ extends G.Ds{constructor(I,R){super(I),this.project=R,this.index=0}_next(I){let R;const H=this.index++;try{R=this.project(I,H)}catch(B){return void this.destination.error(B)}this._innerSub(R)}_innerSub(I){const R=this.innerSubscription;R&&R.unsubscribe();const H=new G.IY(this),B=this.destination;B.add(H),this.innerSubscription=(0,G.ft)(I,H),this.innerSubscription!==H&&B.add(this.innerSubscription)}_complete(){const{innerSubscription:I}=this;(!I||I.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(I){this.destination.next(I)}}},2986:(yt,be,p)=>{p.d(be,{q:()=>oe});var a=p(3489),s=p(4231),G=p(8896);function oe(W){return I=>0===W?(0,G.c)():I.lift(new q(W))}class q{constructor(I){if(this.total=I,this.total<0)throw new s.W}call(I,R){return R.subscribe(new _(I,this.total))}}class _ extends a.L{constructor(I,R){super(I),this.total=R,this.count=0}_next(I){const R=this.total,H=++this.count;H<=R&&(this.destination.next(I),H===R&&(this.destination.complete(),this.unsubscribe()))}}},7625:(yt,be,p)=>{p.d(be,{R:()=>s});var a=p(1177);function s(q){return _=>_.lift(new G(q))}class G{constructor(_){this.notifier=_}call(_,W){const I=new oe(_),R=(0,a.ft)(this.notifier,new a.IY(I));return R&&!I.seenValue?(I.add(R),W.subscribe(I)):I}}class oe extends a.Ds{constructor(_){super(_),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},2994:(yt,be,p)=>{p.d(be,{b:()=>oe});var a=p(3489),s=p(7876),G=p(7043);function oe(W,I,R){return function(B){return B.lift(new q(W,I,R))}}class q{constructor(I,R,H){this.nextOrObserver=I,this.error=R,this.complete=H}call(I,R){return R.subscribe(new _(I,this.nextOrObserver,this.error,this.complete))}}class _ extends a.L{constructor(I,R,H,B){super(I),this._tapNext=s.Z,this._tapError=s.Z,this._tapComplete=s.Z,this._tapError=H||s.Z,this._tapComplete=B||s.Z,(0,G.m)(R)?(this._context=this,this._tapNext=R):R&&(this._context=R,this._tapNext=R.next||s.Z,this._tapError=R.error||s.Z,this._tapComplete=R.complete||s.Z)}_next(I){try{this._tapNext.call(this._context,I)}catch(R){return void this.destination.error(R)}this.destination.next(I)}_error(I){try{this._tapError.call(this._context,I)}catch(R){return void this.destination.error(R)}this.destination.error(I)}_complete(){try{this._tapComplete.call(this._context)}catch(I){return void this.destination.error(I)}return this.destination.complete()}}},6454:(yt,be,p)=>{p.d(be,{r:()=>G});var a=p(6498),s=p(2654);function G(oe,q){return new a.y(_=>{const W=new s.w;let I=0;return W.add(q.schedule(function(){I!==oe.length?(_.next(oe[I++]),_.closed||W.add(this.schedule())):_.complete()})),W})}},6686:(yt,be,p)=>{p.d(be,{o:()=>G});var a=p(2654);class s extends a.w{constructor(q,_){super()}schedule(q,_=0){return this}}class G extends s{constructor(q,_){super(q,_),this.scheduler=q,this.work=_,this.pending=!1}schedule(q,_=0){if(this.closed)return this;this.state=q;const W=this.id,I=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(I,W,_)),this.pending=!0,this.delay=_,this.id=this.id||this.requestAsyncId(I,this.id,_),this}requestAsyncId(q,_,W=0){return setInterval(q.flush.bind(q,this),W)}recycleAsyncId(q,_,W=0){if(null!==W&&this.delay===W&&!1===this.pending)return _;clearInterval(_)}execute(q,_){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const W=this._execute(q,_);if(W)return W;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(q,_){let I,W=!1;try{this.work(q)}catch(R){W=!0,I=!!R&&R||new Error(R)}if(W)return this.unsubscribe(),I}_unsubscribe(){const q=this.id,_=this.scheduler,W=_.actions,I=W.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==I&&W.splice(I,1),null!=q&&(this.id=this.recycleAsyncId(_,q,null)),this.delay=null}}},2268:(yt,be,p)=>{p.d(be,{v:()=>s});let a=(()=>{class G{constructor(q,_=G.now){this.SchedulerAction=q,this.now=_}schedule(q,_=0,W){return new this.SchedulerAction(this,q).schedule(W,_)}}return G.now=()=>Date.now(),G})();class s extends a{constructor(oe,q=a.now){super(oe,()=>s.delegate&&s.delegate!==this?s.delegate.now():q()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(oe,q=0,_){return s.delegate&&s.delegate!==this?s.delegate.schedule(oe,q,_):super.schedule(oe,q,_)}flush(oe){const{actions:q}=this;if(this.active)return void q.push(oe);let _;this.active=!0;do{if(_=oe.execute(oe.state,oe.delay))break}while(oe=q.shift());if(this.active=!1,_){for(;oe=q.shift();)oe.unsubscribe();throw _}}}},353:(yt,be,p)=>{p.d(be,{z:()=>G,P:()=>oe});var a=p(6686);const G=new(p(2268).v)(a.o),oe=G},5430:(yt,be,p)=>{p.d(be,{hZ:()=>s});const s=function a(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(yt,be,p)=>{p.d(be,{L:()=>a});const a="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(yt,be,p)=>{p.d(be,{b:()=>a});const a="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(yt,be,p)=>{p.d(be,{W:()=>s});const s=(()=>{function G(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return G.prototype=Object.create(Error.prototype),G})()},5279:(yt,be,p)=>{p.d(be,{N:()=>s});const s=(()=>{function G(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return G.prototype=Object.create(Error.prototype),G})()},2782:(yt,be,p)=>{function a(s){setTimeout(()=>{throw s},0)}p.d(be,{z:()=>a})},5379:(yt,be,p)=>{function a(s){return s}p.d(be,{y:()=>a})},6688:(yt,be,p)=>{p.d(be,{k:()=>a});const a=Array.isArray||(s=>s&&"number"==typeof s.length)},8515:(yt,be,p)=>{p.d(be,{z:()=>a});const a=s=>s&&"number"==typeof s.length&&"function"!=typeof s},7043:(yt,be,p)=>{function a(s){return"function"==typeof s}p.d(be,{m:()=>a})},4241:(yt,be,p)=>{p.d(be,{k:()=>s});var a=p(6688);function s(G){return!(0,a.k)(G)&&G-parseFloat(G)+1>=0}},7830:(yt,be,p)=>{function a(s){return null!==s&&"object"==typeof s}p.d(be,{K:()=>a})},8955:(yt,be,p)=>{function a(s){return!!s&&"function"!=typeof s.subscribe&&"function"==typeof s.then}p.d(be,{t:()=>a})},2866:(yt,be,p)=>{function a(s){return s&&"function"==typeof s.schedule}p.d(be,{K:()=>a})},7876:(yt,be,p)=>{function a(){}p.d(be,{Z:()=>a})},4843:(yt,be,p)=>{p.d(be,{z:()=>s,U:()=>G});var a=p(5379);function s(...oe){return G(oe)}function G(oe){return 0===oe.length?a.y:1===oe.length?oe[0]:function(_){return oe.reduce((W,I)=>I(W),_)}}},9249:(yt,be,p)=>{p.d(be,{s:()=>B});var a=p(3650),s=p(2782),oe=p(5430),_=p(3821),I=p(8515),R=p(8955),H=p(7830);const B=ee=>{if(ee&&"function"==typeof ee[_.L])return(ee=>ye=>{const Ye=ee[_.L]();if("function"!=typeof Ye.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return Ye.subscribe(ye)})(ee);if((0,I.z)(ee))return(0,a.V)(ee);if((0,R.t)(ee))return(ee=>ye=>(ee.then(Ye=>{ye.closed||(ye.next(Ye),ye.complete())},Ye=>ye.error(Ye)).then(null,s.z),ye))(ee);if(ee&&"function"==typeof ee[oe.hZ])return(ee=>ye=>{const Ye=ee[oe.hZ]();for(;;){let Fe;try{Fe=Ye.next()}catch(ze){return ye.error(ze),ye}if(Fe.done){ye.complete();break}if(ye.next(Fe.value),ye.closed)break}return"function"==typeof Ye.return&&ye.add(()=>{Ye.return&&Ye.return()}),ye})(ee);{const Ye=`You provided ${(0,H.K)(ee)?"an invalid object":`'${ee}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(Ye)}}},3650:(yt,be,p)=>{p.d(be,{V:()=>a});const a=s=>G=>{for(let oe=0,q=s.length;oe{p.d(be,{D:()=>q});var a=p(3489);class s extends a.L{constructor(W,I,R){super(),this.parent=W,this.outerValue=I,this.outerIndex=R,this.index=0}_next(W){this.parent.notifyNext(this.outerValue,W,this.outerIndex,this.index++,this)}_error(W){this.parent.notifyError(W,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var G=p(9249),oe=p(6498);function q(_,W,I,R,H=new s(_,I,R)){if(!H.closed)return W instanceof oe.y?W.subscribe(H):(0,G.s)(W)(H)}},655:(yt,be,p)=>{function oe(J,fe){var he={};for(var te in J)Object.prototype.hasOwnProperty.call(J,te)&&fe.indexOf(te)<0&&(he[te]=J[te]);if(null!=J&&"function"==typeof Object.getOwnPropertySymbols){var le=0;for(te=Object.getOwnPropertySymbols(J);le=0;je--)(Ue=J[je])&&(ie=(le<3?Ue(ie):le>3?Ue(fe,he,ie):Ue(fe,he))||ie);return le>3&&ie&&Object.defineProperty(fe,he,ie),ie}function I(J,fe,he,te){return new(he||(he=Promise))(function(ie,Ue){function je(ve){try{ke(te.next(ve))}catch(mt){Ue(mt)}}function tt(ve){try{ke(te.throw(ve))}catch(mt){Ue(mt)}}function ke(ve){ve.done?ie(ve.value):function le(ie){return ie instanceof he?ie:new he(function(Ue){Ue(ie)})}(ve.value).then(je,tt)}ke((te=te.apply(J,fe||[])).next())})}p.d(be,{_T:()=>oe,gn:()=>q,mG:()=>I})},1777:(yt,be,p)=>{p.d(be,{l3:()=>G,_j:()=>a,LC:()=>s,ZN:()=>vt,jt:()=>q,IO:()=>Fe,vP:()=>W,EY:()=>ze,SB:()=>R,oB:()=>I,eR:()=>B,X$:()=>oe,ZE:()=>Je,k1:()=>zt});class a{}class s{}const G="*";function oe(ut,Ie){return{type:7,name:ut,definitions:Ie,options:{}}}function q(ut,Ie=null){return{type:4,styles:Ie,timings:ut}}function W(ut,Ie=null){return{type:2,steps:ut,options:Ie}}function I(ut){return{type:6,styles:ut,offset:null}}function R(ut,Ie,$e){return{type:0,name:ut,styles:Ie,options:$e}}function B(ut,Ie,$e=null){return{type:1,expr:ut,animation:Ie,options:$e}}function Fe(ut,Ie,$e=null){return{type:11,selector:ut,animation:Ie,options:$e}}function ze(ut,Ie){return{type:12,timings:ut,animation:Ie}}function _e(ut){Promise.resolve(null).then(ut)}class vt{constructor(Ie=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=Ie+$e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ie=>Ie()),this._onDoneFns=[])}onStart(Ie){this._onStartFns.push(Ie)}onDone(Ie){this._onDoneFns.push(Ie)}onDestroy(Ie){this._onDestroyFns.push(Ie)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){_e(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Ie=>Ie()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Ie=>Ie()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(Ie){this._position=this.totalTime?Ie*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Ie){const $e="start"==Ie?this._onStartFns:this._onDoneFns;$e.forEach(et=>et()),$e.length=0}}class Je{constructor(Ie){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Ie;let $e=0,et=0,Se=0;const Xe=this.players.length;0==Xe?_e(()=>this._onFinish()):this.players.forEach(J=>{J.onDone(()=>{++$e==Xe&&this._onFinish()}),J.onDestroy(()=>{++et==Xe&&this._onDestroy()}),J.onStart(()=>{++Se==Xe&&this._onStart()})}),this.totalTime=this.players.reduce((J,fe)=>Math.max(J,fe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ie=>Ie()),this._onDoneFns=[])}init(){this.players.forEach(Ie=>Ie.init())}onStart(Ie){this._onStartFns.push(Ie)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Ie=>Ie()),this._onStartFns=[])}onDone(Ie){this._onDoneFns.push(Ie)}onDestroy(Ie){this._onDestroyFns.push(Ie)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Ie=>Ie.play())}pause(){this.players.forEach(Ie=>Ie.pause())}restart(){this.players.forEach(Ie=>Ie.restart())}finish(){this._onFinish(),this.players.forEach(Ie=>Ie.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Ie=>Ie.destroy()),this._onDestroyFns.forEach(Ie=>Ie()),this._onDestroyFns=[])}reset(){this.players.forEach(Ie=>Ie.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Ie){const $e=Ie*this.totalTime;this.players.forEach(et=>{const Se=et.totalTime?Math.min(1,$e/et.totalTime):1;et.setPosition(Se)})}getPosition(){const Ie=this.players.reduce(($e,et)=>null===$e||et.totalTime>$e.totalTime?et:$e,null);return null!=Ie?Ie.getPosition():0}beforeDestroy(){this.players.forEach(Ie=>{Ie.beforeDestroy&&Ie.beforeDestroy()})}triggerCallback(Ie){const $e="start"==Ie?this._onStartFns:this._onDoneFns;$e.forEach(et=>et()),$e.length=0}}const zt="!"},5664:(yt,be,p)=>{p.d(be,{rt:()=>Ne,tE:()=>Le,qV:()=>Et});var a=p(9808),s=p(5e3),G=p(591),oe=p(8929),q=p(1086),_=p(1159),W=p(2986),I=p(1307),R=p(5778),H=p(7625),B=p(3191),ee=p(925),ye=p(7144);let le=(()=>{class L{constructor($){this._platform=$}isDisabled($){return $.hasAttribute("disabled")}isVisible($){return function Ue(L){return!!(L.offsetWidth||L.offsetHeight||"function"==typeof L.getClientRects&&L.getClientRects().length)}($)&&"visible"===getComputedStyle($).visibility}isTabbable($){if(!this._platform.isBrowser)return!1;const ue=function ie(L){try{return L.frameElement}catch(E){return null}}(function St(L){return L.ownerDocument&&L.ownerDocument.defaultView||window}($));if(ue&&(-1===dt(ue)||!this.isVisible(ue)))return!1;let Ae=$.nodeName.toLowerCase(),wt=dt($);return $.hasAttribute("contenteditable")?-1!==wt:!("iframe"===Ae||"object"===Ae||this._platform.WEBKIT&&this._platform.IOS&&!function _t(L){let E=L.nodeName.toLowerCase(),$="input"===E&&L.type;return"text"===$||"password"===$||"select"===E||"textarea"===E}($))&&("audio"===Ae?!!$.hasAttribute("controls")&&-1!==wt:"video"===Ae?-1!==wt&&(null!==wt||this._platform.FIREFOX||$.hasAttribute("controls")):$.tabIndex>=0)}isFocusable($,ue){return function it(L){return!function tt(L){return function ve(L){return"input"==L.nodeName.toLowerCase()}(L)&&"hidden"==L.type}(L)&&(function je(L){let E=L.nodeName.toLowerCase();return"input"===E||"select"===E||"button"===E||"textarea"===E}(L)||function ke(L){return function mt(L){return"a"==L.nodeName.toLowerCase()}(L)&&L.hasAttribute("href")}(L)||L.hasAttribute("contenteditable")||Qe(L))}($)&&!this.isDisabled($)&&((null==ue?void 0:ue.ignoreVisibility)||this.isVisible($))}}return L.\u0275fac=function($){return new($||L)(s.LFG(ee.t4))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();function Qe(L){if(!L.hasAttribute("tabindex")||void 0===L.tabIndex)return!1;let E=L.getAttribute("tabindex");return!(!E||isNaN(parseInt(E,10)))}function dt(L){if(!Qe(L))return null;const E=parseInt(L.getAttribute("tabindex")||"",10);return isNaN(E)?-1:E}class ot{constructor(E,$,ue,Ae,wt=!1){this._element=E,this._checker=$,this._ngZone=ue,this._document=Ae,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,wt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(E){this._enabled=E,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(E,this._startAnchor),this._toggleAnchorTabIndex(E,this._endAnchor))}destroy(){const E=this._startAnchor,$=this._endAnchor;E&&(E.removeEventListener("focus",this.startAnchorListener),E.remove()),$&&($.removeEventListener("focus",this.endAnchorListener),$.remove()),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(E){return new Promise($=>{this._executeOnStable(()=>$(this.focusInitialElement(E)))})}focusFirstTabbableElementWhenReady(E){return new Promise($=>{this._executeOnStable(()=>$(this.focusFirstTabbableElement(E)))})}focusLastTabbableElementWhenReady(E){return new Promise($=>{this._executeOnStable(()=>$(this.focusLastTabbableElement(E)))})}_getRegionBoundary(E){const $=this._element.querySelectorAll(`[cdk-focus-region-${E}], [cdkFocusRegion${E}], [cdk-focus-${E}]`);return"start"==E?$.length?$[0]:this._getFirstTabbableElement(this._element):$.length?$[$.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(E){const $=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if($){if(!this._checker.isFocusable($)){const ue=this._getFirstTabbableElement($);return null==ue||ue.focus(E),!!ue}return $.focus(E),!0}return this.focusFirstTabbableElement(E)}focusFirstTabbableElement(E){const $=this._getRegionBoundary("start");return $&&$.focus(E),!!$}focusLastTabbableElement(E){const $=this._getRegionBoundary("end");return $&&$.focus(E),!!$}hasAttached(){return this._hasAttached}_getFirstTabbableElement(E){if(this._checker.isFocusable(E)&&this._checker.isTabbable(E))return E;const $=E.children;for(let ue=0;ue<$.length;ue++){const Ae=$[ue].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement($[ue]):null;if(Ae)return Ae}return null}_getLastTabbableElement(E){if(this._checker.isFocusable(E)&&this._checker.isTabbable(E))return E;const $=E.children;for(let ue=$.length-1;ue>=0;ue--){const Ae=$[ue].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement($[ue]):null;if(Ae)return Ae}return null}_createAnchor(){const 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}_toggleAnchorTabIndex(E,$){E?$.setAttribute("tabindex","0"):$.removeAttribute("tabindex")}toggleAnchors(E){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(E,this._startAnchor),this._toggleAnchorTabIndex(E,this._endAnchor))}_executeOnStable(E){this._ngZone.isStable?E():this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(E)}}let Et=(()=>{class L{constructor($,ue,Ae){this._checker=$,this._ngZone=ue,this._document=Ae}create($,ue=!1){return new ot($,this._checker,this._ngZone,this._document,ue)}}return L.\u0275fac=function($){return new($||L)(s.LFG(le),s.LFG(s.R0b),s.LFG(a.K0))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const Sn=new s.OlP("cdk-input-modality-detector-options"),cn={ignoreKeys:[_.zL,_.jx,_.b2,_.MW,_.JU]},qe=(0,ee.i$)({passive:!0,capture:!0});let x=(()=>{class L{constructor($,ue,Ae,wt){this._platform=$,this._mostRecentTarget=null,this._modality=new G.X(null),this._lastTouchMs=0,this._onKeydown=At=>{var Qt,vn;(null===(vn=null===(Qt=this._options)||void 0===Qt?void 0:Qt.ignoreKeys)||void 0===vn?void 0:vn.some(Vn=>Vn===At.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,ee.sA)(At))},this._onMousedown=At=>{Date.now()-this._lastTouchMs<650||(this._modality.next(function Cn(L){return 0===L.buttons||0===L.offsetX&&0===L.offsetY}(At)?"keyboard":"mouse"),this._mostRecentTarget=(0,ee.sA)(At))},this._onTouchstart=At=>{!function Dt(L){const E=L.touches&&L.touches[0]||L.changedTouches&&L.changedTouches[0];return!(!E||-1!==E.identifier||null!=E.radiusX&&1!==E.radiusX||null!=E.radiusY&&1!==E.radiusY)}(At)?(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,ee.sA)(At)):this._modality.next("keyboard")},this._options=Object.assign(Object.assign({},cn),wt),this.modalityDetected=this._modality.pipe((0,I.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,R.x)()),$.isBrowser&&ue.runOutsideAngular(()=>{Ae.addEventListener("keydown",this._onKeydown,qe),Ae.addEventListener("mousedown",this._onMousedown,qe),Ae.addEventListener("touchstart",this._onTouchstart,qe)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,qe),document.removeEventListener("mousedown",this._onMousedown,qe),document.removeEventListener("touchstart",this._onTouchstart,qe))}}return L.\u0275fac=function($){return new($||L)(s.LFG(ee.t4),s.LFG(s.R0b),s.LFG(a.K0),s.LFG(Sn,8))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const He=new s.OlP("cdk-focus-monitor-default-options"),Ge=(0,ee.i$)({passive:!0,capture:!0});let Le=(()=>{class L{constructor($,ue,Ae,wt,At){this._ngZone=$,this._platform=ue,this._inputModalityDetector=Ae,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=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new oe.xQ,this._rootNodeFocusAndBlurListener=Qt=>{const vn=(0,ee.sA)(Qt),Vn="focus"===Qt.type?this._onFocus:this._onBlur;for(let An=vn;An;An=An.parentElement)Vn.call(this,Qt,An)},this._document=wt,this._detectionMode=(null==At?void 0:At.detectionMode)||0}monitor($,ue=!1){const Ae=(0,B.fI)($);if(!this._platform.isBrowser||1!==Ae.nodeType)return(0,q.of)(null);const wt=(0,ee.kV)(Ae)||this._getDocument(),At=this._elementInfo.get(Ae);if(At)return ue&&(At.checkChildren=!0),At.subject;const Qt={checkChildren:ue,subject:new oe.xQ,rootNode:wt};return this._elementInfo.set(Ae,Qt),this._registerGlobalListeners(Qt),Qt.subject}stopMonitoring($){const ue=(0,B.fI)($),Ae=this._elementInfo.get(ue);Ae&&(Ae.subject.complete(),this._setClasses(ue),this._elementInfo.delete(ue),this._removeGlobalListeners(Ae))}focusVia($,ue,Ae){const wt=(0,B.fI)($);wt===this._getDocument().activeElement?this._getClosestElementsInfo(wt).forEach(([Qt,vn])=>this._originChanged(Qt,ue,vn)):(this._setOrigin(ue),"function"==typeof wt.focus&&wt.focus(Ae))}ngOnDestroy(){this._elementInfo.forEach(($,ue)=>this.stopMonitoring(ue))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin($){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch($)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch($){return 1===this._detectionMode||!!(null==$?void 0:$.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses($,ue){$.classList.toggle("cdk-focused",!!ue),$.classList.toggle("cdk-touch-focused","touch"===ue),$.classList.toggle("cdk-keyboard-focused","keyboard"===ue),$.classList.toggle("cdk-mouse-focused","mouse"===ue),$.classList.toggle("cdk-program-focused","program"===ue)}_setOrigin($,ue=!1){this._ngZone.runOutsideAngular(()=>{this._origin=$,this._originFromTouchInteraction="touch"===$&&ue,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus($,ue){const Ae=this._elementInfo.get(ue),wt=(0,ee.sA)($);!Ae||!Ae.checkChildren&&ue!==wt||this._originChanged(ue,this._getFocusOrigin(wt),Ae)}_onBlur($,ue){const Ae=this._elementInfo.get(ue);!Ae||Ae.checkChildren&&$.relatedTarget instanceof Node&&ue.contains($.relatedTarget)||(this._setClasses(ue),this._emitOrigin(Ae.subject,null))}_emitOrigin($,ue){this._ngZone.run(()=>$.next(ue))}_registerGlobalListeners($){if(!this._platform.isBrowser)return;const ue=$.rootNode,Ae=this._rootNodeFocusListenerCount.get(ue)||0;Ae||this._ngZone.runOutsideAngular(()=>{ue.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ge),ue.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ge)}),this._rootNodeFocusListenerCount.set(ue,Ae+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,H.R)(this._stopInputModalityDetector)).subscribe(wt=>{this._setOrigin(wt,!0)}))}_removeGlobalListeners($){const ue=$.rootNode;if(this._rootNodeFocusListenerCount.has(ue)){const Ae=this._rootNodeFocusListenerCount.get(ue);Ae>1?this._rootNodeFocusListenerCount.set(ue,Ae-1):(ue.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ge),ue.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ge),this._rootNodeFocusListenerCount.delete(ue))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged($,ue,Ae){this._setClasses($,ue),this._emitOrigin(Ae.subject,ue),this._lastFocusOrigin=ue}_getClosestElementsInfo($){const ue=[];return this._elementInfo.forEach((Ae,wt)=>{(wt===$||Ae.checkChildren&&wt.contains($))&&ue.push([wt,Ae])}),ue}}return L.\u0275fac=function($){return new($||L)(s.LFG(s.R0b),s.LFG(ee.t4),s.LFG(x),s.LFG(a.K0,8),s.LFG(He,8))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const V="cdk-high-contrast-black-on-white",Be="cdk-high-contrast-white-on-black",nt="cdk-high-contrast-active";let ce=(()=>{class L{constructor($,ue){this._platform=$,this._document=ue}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const $=this._document.createElement("div");$.style.backgroundColor="rgb(1,2,3)",$.style.position="absolute",this._document.body.appendChild($);const ue=this._document.defaultView||window,Ae=ue&&ue.getComputedStyle?ue.getComputedStyle($):null,wt=(Ae&&Ae.backgroundColor||"").replace(/ /g,"");switch($.remove(),wt){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 $=this._document.body.classList;$.remove(nt),$.remove(V),$.remove(Be),this._hasCheckedHighContrastMode=!0;const ue=this.getHighContrastMode();1===ue?($.add(nt),$.add(V)):2===ue&&($.add(nt),$.add(Be))}}}return L.\u0275fac=function($){return new($||L)(s.LFG(ee.t4),s.LFG(a.K0))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),Ne=(()=>{class L{constructor($){$._applyBodyHighContrastModeCssClasses()}}return L.\u0275fac=function($){return new($||L)(s.LFG(ce))},L.\u0275mod=s.oAB({type:L}),L.\u0275inj=s.cJS({imports:[[ee.ud,ye.Q8]]}),L})()},226:(yt,be,p)=>{p.d(be,{vT:()=>R,Is:()=>W});var a=p(5e3),s=p(9808);const G=new a.OlP("cdk-dir-doc",{providedIn:"root",factory:function oe(){return(0,a.f3M)(s.K0)}}),q=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let W=(()=>{class H{constructor(ee){if(this.value="ltr",this.change=new a.vpe,ee){const Ye=ee.documentElement?ee.documentElement.dir:null;this.value=function _(H){const B=(null==H?void 0:H.toLowerCase())||"";return"auto"===B&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?q.test(navigator.language)?"rtl":"ltr":"rtl"===B?"rtl":"ltr"}((ee.body?ee.body.dir:null)||Ye||"ltr")}}ngOnDestroy(){this.change.complete()}}return H.\u0275fac=function(ee){return new(ee||H)(a.LFG(G,8))},H.\u0275prov=a.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),R=(()=>{class H{}return H.\u0275fac=function(ee){return new(ee||H)},H.\u0275mod=a.oAB({type:H}),H.\u0275inj=a.cJS({}),H})()},3191:(yt,be,p)=>{p.d(be,{t6:()=>oe,Eq:()=>q,Ig:()=>s,HM:()=>_,fI:()=>W,su:()=>G});var a=p(5e3);function s(R){return null!=R&&"false"!=`${R}`}function G(R,H=0){return oe(R)?Number(R):H}function oe(R){return!isNaN(parseFloat(R))&&!isNaN(Number(R))}function q(R){return Array.isArray(R)?R:[R]}function _(R){return null==R?"":"string"==typeof R?R:`${R}px`}function W(R){return R instanceof a.SBq?R.nativeElement:R}},1159:(yt,be,p)=>{p.d(be,{zL:()=>I,ZH:()=>s,jx:()=>W,JH:()=>zt,K5:()=>q,hY:()=>B,oh:()=>_e,b2:()=>se,MW:()=>Ge,SV:()=>Je,JU:()=>_,L_:()=>ee,Mf:()=>G,LH:()=>vt,Vb:()=>k});const s=8,G=9,q=13,_=16,W=17,I=18,B=27,ee=32,_e=37,vt=38,Je=39,zt=40,Ge=91,se=224;function k(Ee,...st){return st.length?st.some(Ct=>Ee[Ct]):Ee.altKey||Ee.shiftKey||Ee.ctrlKey||Ee.metaKey}},5113:(yt,be,p)=>{p.d(be,{Yg:()=>zt,u3:()=>Ie,xu:()=>Ye,vx:()=>_e});var a=p(5e3),s=p(3191),G=p(8929),oe=p(6053),q=p(1961),_=p(6498),W=p(2986),I=p(1307),R=p(13),H=p(4850),B=p(1059),ee=p(7625),ye=p(925);let Ye=(()=>{class $e{}return $e.\u0275fac=function(Se){return new(Se||$e)},$e.\u0275mod=a.oAB({type:$e}),$e.\u0275inj=a.cJS({}),$e})();const Fe=new Set;let ze,_e=(()=>{class $e{constructor(Se){this._platform=Se,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Je}matchMedia(Se){return(this._platform.WEBKIT||this._platform.BLINK)&&function vt($e){if(!Fe.has($e))try{ze||(ze=document.createElement("style"),ze.setAttribute("type","text/css"),document.head.appendChild(ze)),ze.sheet&&(ze.sheet.insertRule(`@media ${$e} {body{ }}`,0),Fe.add($e))}catch(et){console.error(et)}}(Se),this._matchMedia(Se)}}return $e.\u0275fac=function(Se){return new(Se||$e)(a.LFG(ye.t4))},$e.\u0275prov=a.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})();function Je($e){return{matches:"all"===$e||""===$e,media:$e,addListener:()=>{},removeListener:()=>{}}}let zt=(()=>{class $e{constructor(Se,Xe){this._mediaMatcher=Se,this._zone=Xe,this._queries=new Map,this._destroySubject=new G.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Se){return ut((0,s.Eq)(Se)).some(J=>this._registerQuery(J).mql.matches)}observe(Se){const J=ut((0,s.Eq)(Se)).map(he=>this._registerQuery(he).observable);let fe=(0,oe.aj)(J);return fe=(0,q.z)(fe.pipe((0,W.q)(1)),fe.pipe((0,I.T)(1),(0,R.b)(0))),fe.pipe((0,H.U)(he=>{const te={matches:!1,breakpoints:{}};return he.forEach(({matches:le,query:ie})=>{te.matches=te.matches||le,te.breakpoints[ie]=le}),te}))}_registerQuery(Se){if(this._queries.has(Se))return this._queries.get(Se);const Xe=this._mediaMatcher.matchMedia(Se),fe={observable:new _.y(he=>{const te=le=>this._zone.run(()=>he.next(le));return Xe.addListener(te),()=>{Xe.removeListener(te)}}).pipe((0,B.O)(Xe),(0,H.U)(({matches:he})=>({query:Se,matches:he})),(0,ee.R)(this._destroySubject)),mql:Xe};return this._queries.set(Se,fe),fe}}return $e.\u0275fac=function(Se){return new(Se||$e)(a.LFG(_e),a.LFG(a.R0b))},$e.\u0275prov=a.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})();function ut($e){return $e.map(et=>et.split(",")).reduce((et,Se)=>et.concat(Se)).map(et=>et.trim())}const Ie={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:(yt,be,p)=>{p.d(be,{Q8:()=>q});var a=p(5e3);let s=(()=>{class _{create(I){return"undefined"==typeof MutationObserver?null:new MutationObserver(I)}}return _.\u0275fac=function(I){return new(I||_)},_.\u0275prov=a.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})(),q=(()=>{class _{}return _.\u0275fac=function(I){return new(I||_)},_.\u0275mod=a.oAB({type:_}),_.\u0275inj=a.cJS({providers:[s]}),_})()},2845:(yt,be,p)=>{p.d(be,{pI:()=>Cn,xu:()=>_n,tR:()=>fe,aV:()=>gn,X_:()=>J,Vs:()=>Et,U8:()=>cn,Iu:()=>Ue});var a=p(3393),s=p(9808),G=p(5e3),oe=p(3191),q=p(925),_=p(226),W=p(7429),I=p(8929),R=p(2654),H=p(6787),B=p(3489);class ye{constructor(x,z){this.predicate=x,this.inclusive=z}call(x,z){return z.subscribe(new Ye(x,this.predicate,this.inclusive))}}class Ye extends B.L{constructor(x,z,P){super(x),this.predicate=z,this.inclusive=P,this.index=0}_next(x){const z=this.destination;let P;try{P=this.predicate(x,this.index++)}catch(pe){return void z.error(pe)}this.nextOrComplete(x,P)}nextOrComplete(x,z){const P=this.destination;Boolean(z)?P.next(x):(this.inclusive&&P.next(x),P.complete())}}var Fe=p(2986),ze=p(7625),_e=p(1159);const vt=(0,q.Mq)();class Je{constructor(x,z){this._viewportRuler=x,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=z}attach(){}enable(){if(this._canBeEnabled()){const x=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=x.style.left||"",this._previousHTMLStyles.top=x.style.top||"",x.style.left=(0,oe.HM)(-this._previousScrollPosition.left),x.style.top=(0,oe.HM)(-this._previousScrollPosition.top),x.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const x=this._document.documentElement,P=x.style,pe=this._document.body.style,j=P.scrollBehavior||"",me=pe.scrollBehavior||"";this._isEnabled=!1,P.left=this._previousHTMLStyles.left,P.top=this._previousHTMLStyles.top,x.classList.remove("cdk-global-scrollblock"),vt&&(P.scrollBehavior=pe.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),vt&&(P.scrollBehavior=j,pe.scrollBehavior=me)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const z=this._document.body,P=this._viewportRuler.getViewportSize();return z.scrollHeight>P.height||z.scrollWidth>P.width}}class ut{constructor(x,z,P,pe){this._scrollDispatcher=x,this._ngZone=z,this._viewportRuler=P,this._config=pe,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(x){this._overlayRef=x}enable(){if(this._scrollSubscription)return;const x=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=x.subscribe(()=>{const z=this._viewportRuler.getViewportScrollPosition().top;Math.abs(z-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=x.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Ie{enable(){}disable(){}attach(){}}function $e(qe,x){return x.some(z=>qe.bottomz.bottom||qe.rightz.right)}function et(qe,x){return x.some(z=>qe.topz.bottom||qe.leftz.right)}class Se{constructor(x,z,P,pe){this._scrollDispatcher=x,this._viewportRuler=z,this._ngZone=P,this._config=pe,this._scrollSubscription=null}attach(x){this._overlayRef=x}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 z=this._overlayRef.overlayElement.getBoundingClientRect(),{width:P,height:pe}=this._viewportRuler.getViewportSize();$e(z,[{width:P,height:pe,bottom:pe,right:P,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 Xe=(()=>{class qe{constructor(z,P,pe,j){this._scrollDispatcher=z,this._viewportRuler=P,this._ngZone=pe,this.noop=()=>new Ie,this.close=me=>new ut(this._scrollDispatcher,this._ngZone,this._viewportRuler,me),this.block=()=>new Je(this._viewportRuler,this._document),this.reposition=me=>new Se(this._scrollDispatcher,this._viewportRuler,this._ngZone,me),this._document=j}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(a.mF),G.LFG(a.rL),G.LFG(G.R0b),G.LFG(s.K0))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})();class J{constructor(x){if(this.scrollStrategy=new Ie,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,x){const z=Object.keys(x);for(const P of z)void 0!==x[P]&&(this[P]=x[P])}}}class fe{constructor(x,z,P,pe,j){this.offsetX=P,this.offsetY=pe,this.panelClass=j,this.originX=x.originX,this.originY=x.originY,this.overlayX=z.overlayX,this.overlayY=z.overlayY}}class te{constructor(x,z){this.connectionPair=x,this.scrollableViewProperties=z}}class Ue{constructor(x,z,P,pe,j,me,He,Ge,Le){this._portalOutlet=x,this._host=z,this._pane=P,this._config=pe,this._ngZone=j,this._keyboardDispatcher=me,this._document=He,this._location=Ge,this._outsideClickDispatcher=Le,this._backdropElement=null,this._backdropClick=new I.xQ,this._attachments=new I.xQ,this._detachments=new I.xQ,this._locationChanges=R.w.EMPTY,this._backdropClickHandler=Me=>this._backdropClick.next(Me),this._keydownEvents=new I.xQ,this._outsidePointerEvents=new I.xQ,pe.scrollStrategy&&(this._scrollStrategy=pe.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=pe.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(x){let z=this._portalOutlet.attach(x);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,Fe.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),z}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const x=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),x}dispose(){var x;const z=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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),null===(x=this._host)||void 0===x||x.remove(),this._previousHostParent=this._pane=this._host=null,z&&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(x){x!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=x,this.hasAttached()&&(x.attach(this),this.updatePosition()))}updateSize(x){this._config=Object.assign(Object.assign({},this._config),x),this._updateElementSize()}setDirection(x){this._config=Object.assign(Object.assign({},this._config),{direction:x}),this._updateElementDirection()}addPanelClass(x){this._pane&&this._toggleClasses(this._pane,x,!0)}removePanelClass(x){this._pane&&this._toggleClasses(this._pane,x,!1)}getDirection(){const x=this._config.direction;return x?"string"==typeof x?x:x.value:"ltr"}updateScrollStrategy(x){x!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=x,this.hasAttached()&&(x.attach(this),x.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const x=this._pane.style;x.width=(0,oe.HM)(this._config.width),x.height=(0,oe.HM)(this._config.height),x.minWidth=(0,oe.HM)(this._config.minWidth),x.minHeight=(0,oe.HM)(this._config.minHeight),x.maxWidth=(0,oe.HM)(this._config.maxWidth),x.maxHeight=(0,oe.HM)(this._config.maxHeight)}_togglePointerEvents(x){this._pane.style.pointerEvents=x?"":"none"}_attachBackdrop(){const x="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(x)})}):this._backdropElement.classList.add(x)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const x=this._backdropElement;if(!x)return;let z;const P=()=>{x&&(x.removeEventListener("click",this._backdropClickHandler),x.removeEventListener("transitionend",P),this._disposeBackdrop(x)),this._config.backdropClass&&this._toggleClasses(x,this._config.backdropClass,!1),clearTimeout(z)};x.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{x.addEventListener("transitionend",P)}),x.style.pointerEvents="none",z=this._ngZone.runOutsideAngular(()=>setTimeout(P,500))}_toggleClasses(x,z,P){const pe=(0,oe.Eq)(z||[]).filter(j=>!!j);pe.length&&(P?x.classList.add(...pe):x.classList.remove(...pe))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const x=this._ngZone.onStable.pipe((0,ze.R)((0,H.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._host.remove()),x.unsubscribe())})})}_disposeScrollStrategy(){const x=this._scrollStrategy;x&&(x.disable(),x.detach&&x.detach())}_disposeBackdrop(x){x&&(x.remove(),this._backdropElement===x&&(this._backdropElement=null))}}let je=(()=>{class qe{constructor(z,P){this._platform=P,this._document=z}ngOnDestroy(){var z;null===(z=this._containerElement)||void 0===z||z.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const z="cdk-overlay-container";if(this._platform.isBrowser||(0,q.Oy)()){const pe=this._document.querySelectorAll(`.${z}[platform="server"], .${z}[platform="test"]`);for(let j=0;j{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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const x=this._originRect,z=this._overlayRect,P=this._viewportRect,pe=this._containerRect,j=[];let me;for(let He of this._preferredPositions){let Ge=this._getOriginPoint(x,pe,He),Le=this._getOverlayPoint(Ge,z,He),Me=this._getOverlayFit(Le,z,P,He);if(Me.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(He,Ge);this._canFitWithFlexibleDimensions(Me,Le,P)?j.push({position:He,origin:Ge,overlayRect:z,boundingBoxRect:this._calculateBoundingBoxRect(Ge,He)}):(!me||me.overlayFit.visibleAreaGe&&(Ge=Me,He=Le)}return this._isPushed=!1,void this._applyPosition(He.position,He.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(me.position,me.originPoint);this._applyPosition(me.position,me.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&mt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(tt),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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const x=this._lastPosition||this._preferredPositions[0],z=this._getOriginPoint(this._originRect,this._containerRect,x);this._applyPosition(x,z)}}withScrollableContainers(x){return this._scrollables=x,this}withPositions(x){return this._preferredPositions=x,-1===x.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(x){return this._viewportMargin=x,this}withFlexibleDimensions(x=!0){return this._hasFlexibleDimensions=x,this}withGrowAfterOpen(x=!0){return this._growAfterOpen=x,this}withPush(x=!0){return this._canPush=x,this}withLockedPosition(x=!0){return this._positionLocked=x,this}setOrigin(x){return this._origin=x,this}withDefaultOffsetX(x){return this._offsetX=x,this}withDefaultOffsetY(x){return this._offsetY=x,this}withTransformOriginOn(x){return this._transformOriginSelector=x,this}_getOriginPoint(x,z,P){let pe,j;if("center"==P.originX)pe=x.left+x.width/2;else{const me=this._isRtl()?x.right:x.left,He=this._isRtl()?x.left:x.right;pe="start"==P.originX?me:He}return z.left<0&&(pe-=z.left),j="center"==P.originY?x.top+x.height/2:"top"==P.originY?x.top:x.bottom,z.top<0&&(j-=z.top),{x:pe,y:j}}_getOverlayPoint(x,z,P){let pe,j;return pe="center"==P.overlayX?-z.width/2:"start"===P.overlayX?this._isRtl()?-z.width:0:this._isRtl()?0:-z.width,j="center"==P.overlayY?-z.height/2:"top"==P.overlayY?0:-z.height,{x:x.x+pe,y:x.y+j}}_getOverlayFit(x,z,P,pe){const j=dt(z);let{x:me,y:He}=x,Ge=this._getOffset(pe,"x"),Le=this._getOffset(pe,"y");Ge&&(me+=Ge),Le&&(He+=Le);let Be=0-He,nt=He+j.height-P.height,ce=this._subtractOverflows(j.width,0-me,me+j.width-P.width),Ne=this._subtractOverflows(j.height,Be,nt),L=ce*Ne;return{visibleArea:L,isCompletelyWithinViewport:j.width*j.height===L,fitsInViewportVertically:Ne===j.height,fitsInViewportHorizontally:ce==j.width}}_canFitWithFlexibleDimensions(x,z,P){if(this._hasFlexibleDimensions){const pe=P.bottom-z.y,j=P.right-z.x,me=Qe(this._overlayRef.getConfig().minHeight),He=Qe(this._overlayRef.getConfig().minWidth),Le=x.fitsInViewportHorizontally||null!=He&&He<=j;return(x.fitsInViewportVertically||null!=me&&me<=pe)&&Le}return!1}_pushOverlayOnScreen(x,z,P){if(this._previousPushAmount&&this._positionLocked)return{x:x.x+this._previousPushAmount.x,y:x.y+this._previousPushAmount.y};const pe=dt(z),j=this._viewportRect,me=Math.max(x.x+pe.width-j.width,0),He=Math.max(x.y+pe.height-j.height,0),Ge=Math.max(j.top-P.top-x.y,0),Le=Math.max(j.left-P.left-x.x,0);let Me=0,V=0;return Me=pe.width<=j.width?Le||-me:x.xce&&!this._isInitialRender&&!this._growAfterOpen&&(me=x.y-ce/2)}if("end"===z.overlayX&&!pe||"start"===z.overlayX&&pe)Be=P.width-x.x+this._viewportMargin,Me=x.x-this._viewportMargin;else if("start"===z.overlayX&&!pe||"end"===z.overlayX&&pe)V=x.x,Me=P.right-x.x;else{const nt=Math.min(P.right-x.x+P.left,x.x),ce=this._lastBoundingBoxSize.width;Me=2*nt,V=x.x-nt,Me>ce&&!this._isInitialRender&&!this._growAfterOpen&&(V=x.x-ce/2)}return{top:me,left:V,bottom:He,right:Be,width:Me,height:j}}_setBoundingBoxStyles(x,z){const P=this._calculateBoundingBoxRect(x,z);!this._isInitialRender&&!this._growAfterOpen&&(P.height=Math.min(P.height,this._lastBoundingBoxSize.height),P.width=Math.min(P.width,this._lastBoundingBoxSize.width));const pe={};if(this._hasExactPosition())pe.top=pe.left="0",pe.bottom=pe.right=pe.maxHeight=pe.maxWidth="",pe.width=pe.height="100%";else{const j=this._overlayRef.getConfig().maxHeight,me=this._overlayRef.getConfig().maxWidth;pe.height=(0,oe.HM)(P.height),pe.top=(0,oe.HM)(P.top),pe.bottom=(0,oe.HM)(P.bottom),pe.width=(0,oe.HM)(P.width),pe.left=(0,oe.HM)(P.left),pe.right=(0,oe.HM)(P.right),pe.alignItems="center"===z.overlayX?"center":"end"===z.overlayX?"flex-end":"flex-start",pe.justifyContent="center"===z.overlayY?"center":"bottom"===z.overlayY?"flex-end":"flex-start",j&&(pe.maxHeight=(0,oe.HM)(j)),me&&(pe.maxWidth=(0,oe.HM)(me))}this._lastBoundingBoxSize=P,mt(this._boundingBox.style,pe)}_resetBoundingBoxStyles(){mt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){mt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(x,z){const P={},pe=this._hasExactPosition(),j=this._hasFlexibleDimensions,me=this._overlayRef.getConfig();if(pe){const Me=this._viewportRuler.getViewportScrollPosition();mt(P,this._getExactOverlayY(z,x,Me)),mt(P,this._getExactOverlayX(z,x,Me))}else P.position="static";let He="",Ge=this._getOffset(z,"x"),Le=this._getOffset(z,"y");Ge&&(He+=`translateX(${Ge}px) `),Le&&(He+=`translateY(${Le}px)`),P.transform=He.trim(),me.maxHeight&&(pe?P.maxHeight=(0,oe.HM)(me.maxHeight):j&&(P.maxHeight="")),me.maxWidth&&(pe?P.maxWidth=(0,oe.HM)(me.maxWidth):j&&(P.maxWidth="")),mt(this._pane.style,P)}_getExactOverlayY(x,z,P){let pe={top:"",bottom:""},j=this._getOverlayPoint(z,this._overlayRect,x);return this._isPushed&&(j=this._pushOverlayOnScreen(j,this._overlayRect,P)),"bottom"===x.overlayY?pe.bottom=this._document.documentElement.clientHeight-(j.y+this._overlayRect.height)+"px":pe.top=(0,oe.HM)(j.y),pe}_getExactOverlayX(x,z,P){let me,pe={left:"",right:""},j=this._getOverlayPoint(z,this._overlayRect,x);return this._isPushed&&(j=this._pushOverlayOnScreen(j,this._overlayRect,P)),me=this._isRtl()?"end"===x.overlayX?"left":"right":"end"===x.overlayX?"right":"left","right"===me?pe.right=this._document.documentElement.clientWidth-(j.x+this._overlayRect.width)+"px":pe.left=(0,oe.HM)(j.x),pe}_getScrollVisibility(){const x=this._getOriginRect(),z=this._pane.getBoundingClientRect(),P=this._scrollables.map(pe=>pe.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:et(x,P),isOriginOutsideView:$e(x,P),isOverlayClipped:et(z,P),isOverlayOutsideView:$e(z,P)}}_subtractOverflows(x,...z){return z.reduce((P,pe)=>P-Math.max(pe,0),x)}_getNarrowedViewportRect(){const x=this._document.documentElement.clientWidth,z=this._document.documentElement.clientHeight,P=this._viewportRuler.getViewportScrollPosition();return{top:P.top+this._viewportMargin,left:P.left+this._viewportMargin,right:P.left+x-this._viewportMargin,bottom:P.top+z-this._viewportMargin,width:x-2*this._viewportMargin,height:z-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(x,z){return"x"===z?null==x.offsetX?this._offsetX:x.offsetX:null==x.offsetY?this._offsetY:x.offsetY}_validatePositions(){}_addPanelClasses(x){this._pane&&(0,oe.Eq)(x).forEach(z=>{""!==z&&-1===this._appliedPanelClasses.indexOf(z)&&(this._appliedPanelClasses.push(z),this._pane.classList.add(z))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(x=>{this._pane.classList.remove(x)}),this._appliedPanelClasses=[])}_getOriginRect(){const x=this._origin;if(x instanceof G.SBq)return x.nativeElement.getBoundingClientRect();if(x instanceof Element)return x.getBoundingClientRect();const z=x.width||0,P=x.height||0;return{top:x.y,bottom:x.y+P,left:x.x,right:x.x+z,height:P,width:z}}}function mt(qe,x){for(let z in x)x.hasOwnProperty(z)&&(qe[z]=x[z]);return qe}function Qe(qe){if("number"!=typeof qe&&null!=qe){const[x,z]=qe.split(ke);return z&&"px"!==z?null:parseFloat(x)}return qe||null}function dt(qe){return{top:Math.floor(qe.top),right:Math.floor(qe.right),bottom:Math.floor(qe.bottom),left:Math.floor(qe.left),width:Math.floor(qe.width),height:Math.floor(qe.height)}}const _t="cdk-global-overlay-wrapper";class it{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(x){const z=x.getConfig();this._overlayRef=x,this._width&&!z.width&&x.updateSize({width:this._width}),this._height&&!z.height&&x.updateSize({height:this._height}),x.hostElement.classList.add(_t),this._isDisposed=!1}top(x=""){return this._bottomOffset="",this._topOffset=x,this._alignItems="flex-start",this}left(x=""){return this._rightOffset="",this._leftOffset=x,this._justifyContent="flex-start",this}bottom(x=""){return this._topOffset="",this._bottomOffset=x,this._alignItems="flex-end",this}right(x=""){return this._leftOffset="",this._rightOffset=x,this._justifyContent="flex-end",this}width(x=""){return this._overlayRef?this._overlayRef.updateSize({width:x}):this._width=x,this}height(x=""){return this._overlayRef?this._overlayRef.updateSize({height:x}):this._height=x,this}centerHorizontally(x=""){return this.left(x),this._justifyContent="center",this}centerVertically(x=""){return this.top(x),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const x=this._overlayRef.overlayElement.style,z=this._overlayRef.hostElement.style,P=this._overlayRef.getConfig(),{width:pe,height:j,maxWidth:me,maxHeight:He}=P,Ge=!("100%"!==pe&&"100vw"!==pe||me&&"100%"!==me&&"100vw"!==me),Le=!("100%"!==j&&"100vh"!==j||He&&"100%"!==He&&"100vh"!==He);x.position=this._cssPosition,x.marginLeft=Ge?"0":this._leftOffset,x.marginTop=Le?"0":this._topOffset,x.marginBottom=this._bottomOffset,x.marginRight=this._rightOffset,Ge?z.justifyContent="flex-start":"center"===this._justifyContent?z.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?z.justifyContent="flex-end":"flex-end"===this._justifyContent&&(z.justifyContent="flex-start"):z.justifyContent=this._justifyContent,z.alignItems=Le?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const x=this._overlayRef.overlayElement.style,z=this._overlayRef.hostElement,P=z.style;z.classList.remove(_t),P.justifyContent=P.alignItems=x.marginTop=x.marginBottom=x.marginLeft=x.marginRight=x.position="",this._overlayRef=null,this._isDisposed=!0}}let St=(()=>{class qe{constructor(z,P,pe,j){this._viewportRuler=z,this._document=P,this._platform=pe,this._overlayContainer=j}global(){return new it}flexibleConnectedTo(z){return new ve(z,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(a.rL),G.LFG(s.K0),G.LFG(q.t4),G.LFG(je))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),ot=(()=>{class qe{constructor(z){this._attachedOverlays=[],this._document=z}ngOnDestroy(){this.detach()}add(z){this.remove(z),this._attachedOverlays.push(z)}remove(z){const P=this._attachedOverlays.indexOf(z);P>-1&&this._attachedOverlays.splice(P,1),0===this._attachedOverlays.length&&this.detach()}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(s.K0))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),Et=(()=>{class qe extends ot{constructor(z){super(z),this._keydownListener=P=>{const pe=this._attachedOverlays;for(let j=pe.length-1;j>-1;j--)if(pe[j]._keydownEvents.observers.length>0){pe[j]._keydownEvents.next(P);break}}}add(z){super.add(z),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 qe.\u0275fac=function(z){return new(z||qe)(G.LFG(s.K0))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),Zt=(()=>{class qe extends ot{constructor(z,P){super(z),this._platform=P,this._cursorStyleIsSet=!1,this._pointerDownListener=pe=>{this._pointerDownEventTarget=(0,q.sA)(pe)},this._clickListener=pe=>{const j=(0,q.sA)(pe),me="click"===pe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:j;this._pointerDownEventTarget=null;const He=this._attachedOverlays.slice();for(let Ge=He.length-1;Ge>-1;Ge--){const Le=He[Ge];if(!(Le._outsidePointerEvents.observers.length<1)&&Le.hasAttached()){if(Le.overlayElement.contains(j)||Le.overlayElement.contains(me))break;Le._outsidePointerEvents.next(pe)}}}}add(z){if(super.add(z),!this._isAttached){const P=this._document.body;P.addEventListener("pointerdown",this._pointerDownListener,!0),P.addEventListener("click",this._clickListener,!0),P.addEventListener("auxclick",this._clickListener,!0),P.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=P.style.cursor,P.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const z=this._document.body;z.removeEventListener("pointerdown",this._pointerDownListener,!0),z.removeEventListener("click",this._clickListener,!0),z.removeEventListener("auxclick",this._clickListener,!0),z.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(z.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(s.K0),G.LFG(q.t4))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),mn=0,gn=(()=>{class qe{constructor(z,P,pe,j,me,He,Ge,Le,Me,V,Be){this.scrollStrategies=z,this._overlayContainer=P,this._componentFactoryResolver=pe,this._positionBuilder=j,this._keyboardDispatcher=me,this._injector=He,this._ngZone=Ge,this._document=Le,this._directionality=Me,this._location=V,this._outsideClickDispatcher=Be}create(z){const P=this._createHostElement(),pe=this._createPaneElement(P),j=this._createPortalOutlet(pe),me=new J(z);return me.direction=me.direction||this._directionality.value,new Ue(j,P,pe,me,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(z){const P=this._document.createElement("div");return P.id="cdk-overlay-"+mn++,P.classList.add("cdk-overlay-pane"),z.appendChild(P),P}_createHostElement(){const z=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(z),z}_createPortalOutlet(z){return this._appRef||(this._appRef=this._injector.get(G.z2F)),new W.u0(z,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(Xe),G.LFG(je),G.LFG(G._Vd),G.LFG(St),G.LFG(Et),G.LFG(G.zs3),G.LFG(G.R0b),G.LFG(s.K0),G.LFG(_.Is),G.LFG(s.Ye),G.LFG(Zt))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const Ut=[{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"}],un=new G.OlP("cdk-connected-overlay-scroll-strategy");let _n=(()=>{class qe{constructor(z){this.elementRef=z}}return qe.\u0275fac=function(z){return new(z||qe)(G.Y36(G.SBq))},qe.\u0275dir=G.lG2({type:qe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),qe})(),Cn=(()=>{class qe{constructor(z,P,pe,j,me){this._overlay=z,this._dir=me,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=R.w.EMPTY,this._attachSubscription=R.w.EMPTY,this._detachSubscription=R.w.EMPTY,this._positionSubscription=R.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new G.vpe,this.positionChange=new G.vpe,this.attach=new G.vpe,this.detach=new G.vpe,this.overlayKeydown=new G.vpe,this.overlayOutsideClick=new G.vpe,this._templatePortal=new W.UE(P,pe),this._scrollStrategyFactory=j,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(z){this._offsetX=z,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(z){this._offsetY=z,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(z){this._hasBackdrop=(0,oe.Ig)(z)}get lockPosition(){return this._lockPosition}set lockPosition(z){this._lockPosition=(0,oe.Ig)(z)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(z){this._flexibleDimensions=(0,oe.Ig)(z)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(z){this._growAfterOpen=(0,oe.Ig)(z)}get push(){return this._push}set push(z){this._push=(0,oe.Ig)(z)}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(z){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),z.origin&&this.open&&this._position.apply()),z.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ut);const z=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=z.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=z.detachments().subscribe(()=>this.detach.emit()),z.keydownEvents().subscribe(P=>{this.overlayKeydown.next(P),P.keyCode===_e.hY&&!this.disableClose&&!(0,_e.Vb)(P)&&(P.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(P=>{this.overlayOutsideClick.next(P)})}_buildConfig(){const z=this._position=this.positionStrategy||this._createPositionStrategy(),P=new J({direction:this._dir,positionStrategy:z,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(P.width=this.width),(this.height||0===this.height)&&(P.height=this.height),(this.minWidth||0===this.minWidth)&&(P.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(P.minHeight=this.minHeight),this.backdropClass&&(P.backdropClass=this.backdropClass),this.panelClass&&(P.panelClass=this.panelClass),P}_updatePositionStrategy(z){const P=this.positions.map(pe=>({originX:pe.originX,originY:pe.originY,overlayX:pe.overlayX,overlayY:pe.overlayY,offsetX:pe.offsetX||this.offsetX,offsetY:pe.offsetY||this.offsetY,panelClass:pe.panelClass||void 0}));return z.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(P).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const z=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(z),z}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof _n?this.origin.elementRef:this.origin}_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(z=>{this.backdropClick.emit(z)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function ee(qe,x=!1){return z=>z.lift(new ye(qe,x))}(()=>this.positionChange.observers.length>0)).subscribe(z=>{this.positionChange.emit(z),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return qe.\u0275fac=function(z){return new(z||qe)(G.Y36(gn),G.Y36(G.Rgc),G.Y36(G.s_b),G.Y36(un),G.Y36(_.Is,8))},qe.\u0275dir=G.lG2({type:qe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[G.TTD]}),qe})();const Sn={provide:un,deps:[gn],useFactory:function Dt(qe){return()=>qe.scrollStrategies.reposition()}};let cn=(()=>{class qe{}return qe.\u0275fac=function(z){return new(z||qe)},qe.\u0275mod=G.oAB({type:qe}),qe.\u0275inj=G.cJS({providers:[gn,Sn],imports:[[_.vT,W.eL,a.Cl],a.Cl]}),qe})()},925:(yt,be,p)=>{p.d(be,{t4:()=>oe,ud:()=>q,sA:()=>zt,kV:()=>vt,Oy:()=>ut,_i:()=>Fe,i$:()=>B,Mq:()=>Ye});var a=p(5e3),s=p(9808);let G;try{G="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Ie){G=!1}let R,ee,ye,ze,oe=(()=>{class Ie{constructor(et){this._platformId=et,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&&!G)&&"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 Ie.\u0275fac=function(et){return new(et||Ie)(a.LFG(a.Lbi))},Ie.\u0275prov=a.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})(),q=(()=>{class Ie{}return Ie.\u0275fac=function(et){return new(et||Ie)},Ie.\u0275mod=a.oAB({type:Ie}),Ie.\u0275inj=a.cJS({}),Ie})();function B(Ie){return function H(){if(null==R&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>R=!0}))}finally{R=R||!1}return R}()?Ie:!!Ie.capture}function Ye(){if(null==ye){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ye=!1,ye;if("scrollBehavior"in document.documentElement.style)ye=!0;else{const Ie=Element.prototype.scrollTo;ye=!!Ie&&!/\{\s*\[native code\]\s*\}/.test(Ie.toString())}}return ye}function Fe(){if("object"!=typeof document||!document)return 0;if(null==ee){const Ie=document.createElement("div"),$e=Ie.style;Ie.dir="rtl",$e.width="1px",$e.overflow="auto",$e.visibility="hidden",$e.pointerEvents="none",$e.position="absolute";const et=document.createElement("div"),Se=et.style;Se.width="2px",Se.height="1px",Ie.appendChild(et),document.body.appendChild(Ie),ee=0,0===Ie.scrollLeft&&(Ie.scrollLeft=1,ee=0===Ie.scrollLeft?1:2),Ie.remove()}return ee}function vt(Ie){if(function _e(){if(null==ze){const Ie="undefined"!=typeof document?document.head:null;ze=!(!Ie||!Ie.createShadowRoot&&!Ie.attachShadow)}return ze}()){const $e=Ie.getRootNode?Ie.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&$e instanceof ShadowRoot)return $e}return null}function zt(Ie){return Ie.composedPath?Ie.composedPath()[0]:Ie.target}function ut(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(yt,be,p)=>{p.d(be,{en:()=>ye,Pl:()=>Je,C5:()=>H,u0:()=>Fe,eL:()=>ut,UE:()=>B});var a=p(5e3),s=p(9808);class R{attach(et){return this._attachedHost=et,et.attach(this)}detach(){let et=this._attachedHost;null!=et&&(this._attachedHost=null,et.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(et){this._attachedHost=et}}class H extends R{constructor(et,Se,Xe,J){super(),this.component=et,this.viewContainerRef=Se,this.injector=Xe,this.componentFactoryResolver=J}}class B extends R{constructor(et,Se,Xe){super(),this.templateRef=et,this.viewContainerRef=Se,this.context=Xe}get origin(){return this.templateRef.elementRef}attach(et,Se=this.context){return this.context=Se,super.attach(et)}detach(){return this.context=void 0,super.detach()}}class ee extends R{constructor(et){super(),this.element=et instanceof a.SBq?et.nativeElement:et}}class ye{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(et){return et instanceof H?(this._attachedPortal=et,this.attachComponentPortal(et)):et instanceof B?(this._attachedPortal=et,this.attachTemplatePortal(et)):this.attachDomPortal&&et instanceof ee?(this._attachedPortal=et,this.attachDomPortal(et)):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(et){this._disposeFn=et}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Fe extends ye{constructor(et,Se,Xe,J,fe){super(),this.outletElement=et,this._componentFactoryResolver=Se,this._appRef=Xe,this._defaultInjector=J,this.attachDomPortal=he=>{const te=he.element,le=this._document.createComment("dom-portal");te.parentNode.insertBefore(le,te),this.outletElement.appendChild(te),this._attachedPortal=he,super.setDisposeFn(()=>{le.parentNode&&le.parentNode.replaceChild(te,le)})},this._document=fe}attachComponentPortal(et){const Xe=(et.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(et.component);let J;return et.viewContainerRef?(J=et.viewContainerRef.createComponent(Xe,et.viewContainerRef.length,et.injector||et.viewContainerRef.injector),this.setDisposeFn(()=>J.destroy())):(J=Xe.create(et.injector||this._defaultInjector),this._appRef.attachView(J.hostView),this.setDisposeFn(()=>{this._appRef.detachView(J.hostView),J.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(J)),this._attachedPortal=et,J}attachTemplatePortal(et){let Se=et.viewContainerRef,Xe=Se.createEmbeddedView(et.templateRef,et.context);return Xe.rootNodes.forEach(J=>this.outletElement.appendChild(J)),Xe.detectChanges(),this.setDisposeFn(()=>{let J=Se.indexOf(Xe);-1!==J&&Se.remove(J)}),this._attachedPortal=et,Xe}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(et){return et.hostView.rootNodes[0]}}let Je=(()=>{class $e extends ye{constructor(Se,Xe,J){super(),this._componentFactoryResolver=Se,this._viewContainerRef=Xe,this._isInitialized=!1,this.attached=new a.vpe,this.attachDomPortal=fe=>{const he=fe.element,te=this._document.createComment("dom-portal");fe.setAttachedHost(this),he.parentNode.insertBefore(te,he),this._getRootNode().appendChild(he),this._attachedPortal=fe,super.setDisposeFn(()=>{te.parentNode&&te.parentNode.replaceChild(he,te)})},this._document=J}get portal(){return this._attachedPortal}set portal(Se){this.hasAttached()&&!Se&&!this._isInitialized||(this.hasAttached()&&super.detach(),Se&&super.attach(Se),this._attachedPortal=Se||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Se){Se.setAttachedHost(this);const Xe=null!=Se.viewContainerRef?Se.viewContainerRef:this._viewContainerRef,fe=(Se.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Se.component),he=Xe.createComponent(fe,Xe.length,Se.injector||Xe.injector);return Xe!==this._viewContainerRef&&this._getRootNode().appendChild(he.hostView.rootNodes[0]),super.setDisposeFn(()=>he.destroy()),this._attachedPortal=Se,this._attachedRef=he,this.attached.emit(he),he}attachTemplatePortal(Se){Se.setAttachedHost(this);const Xe=this._viewContainerRef.createEmbeddedView(Se.templateRef,Se.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Se,this._attachedRef=Xe,this.attached.emit(Xe),Xe}_getRootNode(){const Se=this._viewContainerRef.element.nativeElement;return Se.nodeType===Se.ELEMENT_NODE?Se:Se.parentNode}}return $e.\u0275fac=function(Se){return new(Se||$e)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36(s.K0))},$e.\u0275dir=a.lG2({type:$e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.qOj]}),$e})(),ut=(()=>{class $e{}return $e.\u0275fac=function(Se){return new(Se||$e)},$e.\u0275mod=a.oAB({type:$e}),$e.\u0275inj=a.cJS({}),$e})()},3393:(yt,be,p)=>{p.d(be,{xd:()=>Dt,x0:()=>me,N7:()=>pe,mF:()=>cn,Cl:()=>Ge,rL:()=>x});var a=p(3191),s=p(5e3),G=p(6686),q=p(2268);const W=new class _ extends q.v{flush(Me){this.active=!0,this.scheduled=void 0;const{actions:V}=this;let Be,nt=-1,ce=V.length;Me=Me||V.shift();do{if(Be=Me.execute(Me.state,Me.delay))break}while(++nt0?super.requestAsyncId(Me,V,Be):(Me.actions.push(this),Me.scheduled||(Me.scheduled=requestAnimationFrame(()=>Me.flush(null))))}recycleAsyncId(Me,V,Be=0){if(null!==Be&&Be>0||null===Be&&this.delay>0)return super.recycleAsyncId(Me,V,Be);0===Me.actions.length&&(cancelAnimationFrame(V),Me.scheduled=void 0)}});let R=1;const H=Promise.resolve(),B={};function ee(Le){return Le in B&&(delete B[Le],!0)}const ye={setImmediate(Le){const Me=R++;return B[Me]=!0,H.then(()=>ee(Me)&&Le()),Me},clearImmediate(Le){ee(Le)}},_e=new class ze extends q.v{flush(Me){this.active=!0,this.scheduled=void 0;const{actions:V}=this;let Be,nt=-1,ce=V.length;Me=Me||V.shift();do{if(Be=Me.execute(Me.state,Me.delay))break}while(++nt0?super.requestAsyncId(Me,V,Be):(Me.actions.push(this),Me.scheduled||(Me.scheduled=ye.setImmediate(Me.flush.bind(Me,null))))}recycleAsyncId(Me,V,Be=0){if(null!==Be&&Be>0||null===Be&&this.delay>0)return super.recycleAsyncId(Me,V,Be);0===Me.actions.length&&(ye.clearImmediate(V),Me.scheduled=void 0)}});var Je=p(6498);function zt(Le){return!!Le&&(Le instanceof Je.y||"function"==typeof Le.lift&&"function"==typeof Le.subscribe)}var ut=p(8929),Ie=p(1086),$e=p(3753),et=p(2654),Se=p(3489);class J{call(Me,V){return V.subscribe(new fe(Me))}}class fe extends Se.L{constructor(Me){super(Me),this.hasPrev=!1}_next(Me){let V;this.hasPrev?V=[this.prev,Me]:this.hasPrev=!0,this.prev=Me,V&&this.destination.next(V)}}var he=p(5778),te=p(7138),le=p(2198),ie=p(7625),Ue=p(1059),je=p(7545),tt=p(5154),ke=p(9808),ve=p(925),mt=p(226);class _t extends class Qe{}{constructor(Me){super(),this._data=Me}connect(){return zt(this._data)?this._data:(0,Ie.of)(this._data)}disconnect(){}}class St{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(Me,V,Be,nt,ce){Me.forEachOperation((Ne,L,E)=>{let $,ue;null==Ne.previousIndex?($=this._insertView(()=>Be(Ne,L,E),E,V,nt(Ne)),ue=$?1:0):null==E?(this._detachAndCacheView(L,V),ue=3):($=this._moveView(L,E,V,nt(Ne)),ue=2),ce&&ce({context:null==$?void 0:$.context,operation:ue,record:Ne})})}detach(){for(const Me of this._viewCache)Me.destroy();this._viewCache=[]}_insertView(Me,V,Be,nt){const ce=this._insertViewFromCache(V,Be);if(ce)return void(ce.context.$implicit=nt);const Ne=Me();return Be.createEmbeddedView(Ne.templateRef,Ne.context,Ne.index)}_detachAndCacheView(Me,V){const Be=V.detach(Me);this._maybeCacheView(Be,V)}_moveView(Me,V,Be,nt){const ce=Be.get(Me);return Be.move(ce,V),ce.context.$implicit=nt,ce}_maybeCacheView(Me,V){if(this._viewCache.length0?ce/this._itemSize:0;if(V.end>nt){const E=Math.ceil(Be/this._itemSize),$=Math.max(0,Math.min(Ne,nt-E));Ne!=$&&(Ne=$,ce=$*this._itemSize,V.start=Math.floor(Ne)),V.end=Math.max(0,Math.min(nt,V.start+E))}const L=ce-V.start*this._itemSize;if(L0&&(V.end=Math.min(nt,V.end+$),V.start=Math.max(0,Math.floor(Ne-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(V),this._viewport.setRenderedContentOffset(this._itemSize*V.start),this._scrolledIndexChange.next(Math.floor(Ne))}}function Cn(Le){return Le._scrollStrategy}let Dt=(()=>{class Le{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new _n(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(V){this._itemSize=(0,a.su)(V)}get minBufferPx(){return this._minBufferPx}set minBufferPx(V){this._minBufferPx=(0,a.su)(V)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(V){this._maxBufferPx=(0,a.su)(V)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275dir=s.lG2({type:Le,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[s._Bn([{provide:un,useFactory:Cn,deps:[(0,s.Gpc)(()=>Le)]}]),s.TTD]}),Le})(),cn=(()=>{class Le{constructor(V,Be,nt){this._ngZone=V,this._platform=Be,this._scrolled=new ut.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=nt}register(V){this.scrollContainers.has(V)||this.scrollContainers.set(V,V.elementScrolled().subscribe(()=>this._scrolled.next(V)))}deregister(V){const Be=this.scrollContainers.get(V);Be&&(Be.unsubscribe(),this.scrollContainers.delete(V))}scrolled(V=20){return this._platform.isBrowser?new Je.y(Be=>{this._globalSubscription||this._addGlobalListener();const nt=V>0?this._scrolled.pipe((0,te.e)(V)).subscribe(Be):this._scrolled.subscribe(Be);return this._scrolledCount++,()=>{nt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ie.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((V,Be)=>this.deregister(Be)),this._scrolled.complete()}ancestorScrolled(V,Be){const nt=this.getAncestorScrollContainers(V);return this.scrolled(Be).pipe((0,le.h)(ce=>!ce||nt.indexOf(ce)>-1))}getAncestorScrollContainers(V){const Be=[];return this.scrollContainers.forEach((nt,ce)=>{this._scrollableContainsElement(ce,V)&&Be.push(ce)}),Be}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(V,Be){let nt=(0,a.fI)(Be),ce=V.getElementRef().nativeElement;do{if(nt==ce)return!0}while(nt=nt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const V=this._getWindow();return(0,$e.R)(V.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Le.\u0275fac=function(V){return new(V||Le)(s.LFG(s.R0b),s.LFG(ve.t4),s.LFG(ke.K0,8))},Le.\u0275prov=s.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})(),Mn=(()=>{class Le{constructor(V,Be,nt,ce){this.elementRef=V,this.scrollDispatcher=Be,this.ngZone=nt,this.dir=ce,this._destroyed=new ut.xQ,this._elementScrolled=new Je.y(Ne=>this.ngZone.runOutsideAngular(()=>(0,$e.R)(this.elementRef.nativeElement,"scroll").pipe((0,ie.R)(this._destroyed)).subscribe(Ne)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(V){const Be=this.elementRef.nativeElement,nt=this.dir&&"rtl"==this.dir.value;null==V.left&&(V.left=nt?V.end:V.start),null==V.right&&(V.right=nt?V.start:V.end),null!=V.bottom&&(V.top=Be.scrollHeight-Be.clientHeight-V.bottom),nt&&0!=(0,ve._i)()?(null!=V.left&&(V.right=Be.scrollWidth-Be.clientWidth-V.left),2==(0,ve._i)()?V.left=V.right:1==(0,ve._i)()&&(V.left=V.right?-V.right:V.right)):null!=V.right&&(V.left=Be.scrollWidth-Be.clientWidth-V.right),this._applyScrollToOptions(V)}_applyScrollToOptions(V){const Be=this.elementRef.nativeElement;(0,ve.Mq)()?Be.scrollTo(V):(null!=V.top&&(Be.scrollTop=V.top),null!=V.left&&(Be.scrollLeft=V.left))}measureScrollOffset(V){const Be="left",ce=this.elementRef.nativeElement;if("top"==V)return ce.scrollTop;if("bottom"==V)return ce.scrollHeight-ce.clientHeight-ce.scrollTop;const Ne=this.dir&&"rtl"==this.dir.value;return"start"==V?V=Ne?"right":Be:"end"==V&&(V=Ne?Be:"right"),Ne&&2==(0,ve._i)()?V==Be?ce.scrollWidth-ce.clientWidth-ce.scrollLeft:ce.scrollLeft:Ne&&1==(0,ve._i)()?V==Be?ce.scrollLeft+ce.scrollWidth-ce.clientWidth:-ce.scrollLeft:V==Be?ce.scrollLeft:ce.scrollWidth-ce.clientWidth-ce.scrollLeft}}return Le.\u0275fac=function(V){return new(V||Le)(s.Y36(s.SBq),s.Y36(cn),s.Y36(s.R0b),s.Y36(mt.Is,8))},Le.\u0275dir=s.lG2({type:Le,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Le})(),x=(()=>{class Le{constructor(V,Be,nt){this._platform=V,this._change=new ut.xQ,this._changeListener=ce=>{this._change.next(ce)},this._document=nt,Be.runOutsideAngular(()=>{if(V.isBrowser){const ce=this._getWindow();ce.addEventListener("resize",this._changeListener),ce.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const V=this._getWindow();V.removeEventListener("resize",this._changeListener),V.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const V={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),V}getViewportRect(){const V=this.getViewportScrollPosition(),{width:Be,height:nt}=this.getViewportSize();return{top:V.top,left:V.left,bottom:V.top+nt,right:V.left+Be,height:nt,width:Be}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const V=this._document,Be=this._getWindow(),nt=V.documentElement,ce=nt.getBoundingClientRect();return{top:-ce.top||V.body.scrollTop||Be.scrollY||nt.scrollTop||0,left:-ce.left||V.body.scrollLeft||Be.scrollX||nt.scrollLeft||0}}change(V=20){return V>0?this._change.pipe((0,te.e)(V)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const V=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:V.innerWidth,height:V.innerHeight}:{width:0,height:0}}}return Le.\u0275fac=function(V){return new(V||Le)(s.LFG(ve.t4),s.LFG(s.R0b),s.LFG(ke.K0,8))},Le.\u0275prov=s.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})();const P="undefined"!=typeof requestAnimationFrame?W:_e;let pe=(()=>{class Le extends Mn{constructor(V,Be,nt,ce,Ne,L,E){super(V,L,nt,Ne),this.elementRef=V,this._changeDetectorRef=Be,this._scrollStrategy=ce,this._detachedSubject=new ut.xQ,this._renderedRangeSubject=new ut.xQ,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new Je.y($=>this._scrollStrategy.scrolledIndexChange.subscribe(ue=>Promise.resolve().then(()=>this.ngZone.run(()=>$.next(ue))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=et.w.EMPTY,this._viewportChanges=E.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(V){this._orientation!==V&&(this._orientation=V,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(V){this._appendOnly=(0,a.Ig)(V)}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe((0,Ue.O)(null),(0,te.e)(0,P)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(V){this.ngZone.runOutsideAngular(()=>{this._forOf=V,this._forOf.dataStream.pipe((0,ie.R)(this._detachedSubject)).subscribe(Be=>{const nt=Be.length;nt!==this._dataLength&&(this._dataLength=nt,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(V){this._totalContentSize!==V&&(this._totalContentSize=V,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(V){(function z(Le,Me){return Le.start==Me.start&&Le.end==Me.end})(this._renderedRange,V)||(this.appendOnly&&(V={start:0,end:Math.max(this._renderedRange.end,V.end)}),this._renderedRangeSubject.next(this._renderedRange=V),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(V,Be="to-start"){const ce="horizontal"==this.orientation,Ne=ce?"X":"Y";let E=`translate${Ne}(${Number((ce&&this.dir&&"rtl"==this.dir.value?-1:1)*V)}px)`;this._renderedContentOffset=V,"to-end"===Be&&(E+=` translate${Ne}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=E&&(this._renderedContentTransform=E,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(V,Be="auto"){const nt={behavior:Be};"horizontal"===this.orientation?nt.start=V:nt.top=V,this.scrollTo(nt)}scrollToIndex(V,Be="auto"){this._scrollStrategy.scrollToIndex(V,Be)}measureScrollOffset(V){return super.measureScrollOffset(V||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const V=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?V.offsetWidth:V.offsetHeight}measureRangeSize(V){return this._forOf?this._forOf.measureRangeSize(V,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const V=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?V.clientWidth:V.clientHeight}_markChangeDetectionNeeded(V){V&&this._runAfterChangeDetection.push(V),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const V=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const Be of V)Be()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Le.\u0275fac=function(V){return new(V||Le)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(un,8),s.Y36(mt.Is,8),s.Y36(cn),s.Y36(x))},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(V,Be){if(1&V&&s.Gf(gn,7),2&V){let nt;s.iGM(nt=s.CRH())&&(Be._contentWrapper=nt.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(V,Be){2&V&&s.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===Be.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Be.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[s._Bn([{provide:Mn,useExisting:Le}]),s.qOj],ngContentSelectors:Ut,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(V,Be){1&V&&(s.F$t(),s.TgZ(0,"div",0,1),s.Hsn(2),s.qZA(),s._UZ(3,"div",2)),2&V&&(s.xp6(3),s.Udp("width",Be._totalContentWidth)("height",Be._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),Le})();function j(Le,Me,V){if(!V.getBoundingClientRect)return 0;const nt=V.getBoundingClientRect();return"horizontal"===Le?"start"===Me?nt.left:nt.right:"start"===Me?nt.top:nt.bottom}let me=(()=>{class Le{constructor(V,Be,nt,ce,Ne,L){this._viewContainerRef=V,this._template=Be,this._differs=nt,this._viewRepeater=ce,this._viewport=Ne,this.viewChange=new ut.xQ,this._dataSourceChanges=new ut.xQ,this.dataStream=this._dataSourceChanges.pipe((0,Ue.O)(null),function Xe(){return Le=>Le.lift(new J)}(),(0,je.w)(([E,$])=>this._changeDataSource(E,$)),(0,tt.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new ut.xQ,this.dataStream.subscribe(E=>{this._data=E,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,ie.R)(this._destroyed)).subscribe(E=>{this._renderedRange=E,L.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(V){this._cdkVirtualForOf=V,function dt(Le){return Le&&"function"==typeof Le.connect}(V)?this._dataSourceChanges.next(V):this._dataSourceChanges.next(new _t(zt(V)?V:Array.from(V||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(V){this._needsUpdate=!0,this._cdkVirtualForTrackBy=V?(Be,nt)=>V(Be+(this._renderedRange?this._renderedRange.start:0),nt):void 0}set cdkVirtualForTemplate(V){V&&(this._needsUpdate=!0,this._template=V)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(V){this._viewRepeater.viewCacheSize=(0,a.su)(V)}measureRangeSize(V,Be){if(V.start>=V.end)return 0;const nt=V.start-this._renderedRange.start,ce=V.end-V.start;let Ne,L;for(let E=0;E-1;E--){const $=this._viewContainerRef.get(E+nt);if($&&$.rootNodes.length){L=$.rootNodes[$.rootNodes.length-1];break}}return Ne&&L?j(Be,"end",L)-j(Be,"start",Ne):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const V=this._differ.diff(this._renderedItems);V?this._applyChanges(V):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((V,Be)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(V,Be):Be)),this._needsUpdate=!0)}_changeDataSource(V,Be){return V&&V.disconnect(this),this._needsUpdate=!0,Be?Be.connect(this):(0,Ie.of)()}_updateContext(){const V=this._data.length;let Be=this._viewContainerRef.length;for(;Be--;){const nt=this._viewContainerRef.get(Be);nt.context.index=this._renderedRange.start+Be,nt.context.count=V,this._updateComputedContextProperties(nt.context),nt.detectChanges()}}_applyChanges(V){this._viewRepeater.applyChanges(V,this._viewContainerRef,(ce,Ne,L)=>this._getEmbeddedViewArgs(ce,L),ce=>ce.item),V.forEachIdentityChange(ce=>{this._viewContainerRef.get(ce.currentIndex).context.$implicit=ce.item});const Be=this._data.length;let nt=this._viewContainerRef.length;for(;nt--;){const ce=this._viewContainerRef.get(nt);ce.context.index=this._renderedRange.start+nt,ce.context.count=Be,this._updateComputedContextProperties(ce.context)}}_updateComputedContextProperties(V){V.first=0===V.index,V.last=V.index===V.count-1,V.even=V.index%2==0,V.odd=!V.even}_getEmbeddedViewArgs(V,Be){return{templateRef:this._template,context:{$implicit:V.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:Be}}}return Le.\u0275fac=function(V){return new(V||Le)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(mn),s.Y36(pe,4),s.Y36(s.R0b))},Le.\u0275dir=s.lG2({type:Le,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[s._Bn([{provide:mn,useClass:St}])]}),Le})(),He=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=s.oAB({type:Le}),Le.\u0275inj=s.cJS({}),Le})(),Ge=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=s.oAB({type:Le}),Le.\u0275inj=s.cJS({imports:[[mt.vT,ve.ud,He],mt.vT,He]}),Le})()},9808:(yt,be,p)=>{p.d(be,{mr:()=>Je,Ov:()=>vo,ez:()=>Vo,K0:()=>W,uU:()=>Ii,JJ:()=>qo,Do:()=>ut,V_:()=>H,Ye:()=>Ie,S$:()=>_e,mk:()=>$n,sg:()=>qn,O5:()=>k,PC:()=>bi,RF:()=>Ot,n9:()=>Vt,ED:()=>hn,tP:()=>io,wE:()=>ie,b0:()=>zt,lw:()=>I,EM:()=>Qi,JF:()=>Wn,dv:()=>ot,NF:()=>hi,qS:()=>Lt,w_:()=>_,bD:()=>Lo,q:()=>G,Mx:()=>Un,HT:()=>q});var a=p(5e3);let s=null;function G(){return s}function q(b){s||(s=b)}class _{}const W=new a.OlP("DocumentToken");let I=(()=>{class b{historyGo(w){throw new Error("Not implemented")}}return b.\u0275fac=function(w){return new(w||b)},b.\u0275prov=a.Yz7({token:b,factory:function(){return function R(){return(0,a.LFG)(B)}()},providedIn:"platform"}),b})();const H=new a.OlP("Location Initialized");let B=(()=>{class b extends I{constructor(w){super(),this._doc=w,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return G().getBaseHref(this._doc)}onPopState(w){const Q=G().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("popstate",w,!1),()=>Q.removeEventListener("popstate",w)}onHashChange(w){const Q=G().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("hashchange",w,!1),()=>Q.removeEventListener("hashchange",w)}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(w){this.location.pathname=w}pushState(w,Q,xe){ee()?this._history.pushState(w,Q,xe):this.location.hash=xe}replaceState(w,Q,xe){ee()?this._history.replaceState(w,Q,xe):this.location.hash=xe}forward(){this._history.forward()}back(){this._history.back()}historyGo(w=0){this._history.go(w)}getState(){return this._history.state}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(W))},b.\u0275prov=a.Yz7({token:b,factory:function(){return function ye(){return new B((0,a.LFG)(W))}()},providedIn:"platform"}),b})();function ee(){return!!window.history.pushState}function Ye(b,Y){if(0==b.length)return Y;if(0==Y.length)return b;let w=0;return b.endsWith("/")&&w++,Y.startsWith("/")&&w++,2==w?b+Y.substring(1):1==w?b+Y:b+"/"+Y}function Fe(b){const Y=b.match(/#|\?|$/),w=Y&&Y.index||b.length;return b.slice(0,w-("/"===b[w-1]?1:0))+b.slice(w)}function ze(b){return b&&"?"!==b[0]?"?"+b:b}let _e=(()=>{class b{historyGo(w){throw new Error("Not implemented")}}return b.\u0275fac=function(w){return new(w||b)},b.\u0275prov=a.Yz7({token:b,factory:function(){return function vt(b){const Y=(0,a.LFG)(W).location;return new zt((0,a.LFG)(I),Y&&Y.origin||"")}()},providedIn:"root"}),b})();const Je=new a.OlP("appBaseHref");let zt=(()=>{class b extends _e{constructor(w,Q){if(super(),this._platformLocation=w,this._removeListenerFns=[],null==Q&&(Q=this._platformLocation.getBaseHrefFromDOM()),null==Q)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=Q}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(w){this._removeListenerFns.push(this._platformLocation.onPopState(w),this._platformLocation.onHashChange(w))}getBaseHref(){return this._baseHref}prepareExternalUrl(w){return Ye(this._baseHref,w)}path(w=!1){const Q=this._platformLocation.pathname+ze(this._platformLocation.search),xe=this._platformLocation.hash;return xe&&w?`${Q}${xe}`:Q}pushState(w,Q,xe,ct){const Mt=this.prepareExternalUrl(xe+ze(ct));this._platformLocation.pushState(w,Q,Mt)}replaceState(w,Q,xe,ct){const Mt=this.prepareExternalUrl(xe+ze(ct));this._platformLocation.replaceState(w,Q,Mt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(w=0){var Q,xe;null===(xe=(Q=this._platformLocation).historyGo)||void 0===xe||xe.call(Q,w)}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(I),a.LFG(Je,8))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})(),ut=(()=>{class b extends _e{constructor(w,Q){super(),this._platformLocation=w,this._baseHref="",this._removeListenerFns=[],null!=Q&&(this._baseHref=Q)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(w){this._removeListenerFns.push(this._platformLocation.onPopState(w),this._platformLocation.onHashChange(w))}getBaseHref(){return this._baseHref}path(w=!1){let Q=this._platformLocation.hash;return null==Q&&(Q="#"),Q.length>0?Q.substring(1):Q}prepareExternalUrl(w){const Q=Ye(this._baseHref,w);return Q.length>0?"#"+Q:Q}pushState(w,Q,xe,ct){let Mt=this.prepareExternalUrl(xe+ze(ct));0==Mt.length&&(Mt=this._platformLocation.pathname),this._platformLocation.pushState(w,Q,Mt)}replaceState(w,Q,xe,ct){let Mt=this.prepareExternalUrl(xe+ze(ct));0==Mt.length&&(Mt=this._platformLocation.pathname),this._platformLocation.replaceState(w,Q,Mt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(w=0){var Q,xe;null===(xe=(Q=this._platformLocation).historyGo)||void 0===xe||xe.call(Q,w)}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(I),a.LFG(Je,8))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})(),Ie=(()=>{class b{constructor(w,Q){this._subject=new a.vpe,this._urlChangeListeners=[],this._platformStrategy=w;const xe=this._platformStrategy.getBaseHref();this._platformLocation=Q,this._baseHref=Fe(Se(xe)),this._platformStrategy.onPopState(ct=>{this._subject.emit({url:this.path(!0),pop:!0,state:ct.state,type:ct.type})})}path(w=!1){return this.normalize(this._platformStrategy.path(w))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(w,Q=""){return this.path()==this.normalize(w+ze(Q))}normalize(w){return b.stripTrailingSlash(function et(b,Y){return b&&Y.startsWith(b)?Y.substring(b.length):Y}(this._baseHref,Se(w)))}prepareExternalUrl(w){return w&&"/"!==w[0]&&(w="/"+w),this._platformStrategy.prepareExternalUrl(w)}go(w,Q="",xe=null){this._platformStrategy.pushState(xe,"",w,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(w+ze(Q)),xe)}replaceState(w,Q="",xe=null){this._platformStrategy.replaceState(xe,"",w,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(w+ze(Q)),xe)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(w=0){var Q,xe;null===(xe=(Q=this._platformStrategy).historyGo)||void 0===xe||xe.call(Q,w)}onUrlChange(w){this._urlChangeListeners.push(w),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Q=>{this._notifyUrlChangeListeners(Q.url,Q.state)}))}_notifyUrlChangeListeners(w="",Q){this._urlChangeListeners.forEach(xe=>xe(w,Q))}subscribe(w,Q,xe){return this._subject.subscribe({next:w,error:Q,complete:xe})}}return b.normalizeQueryParams=ze,b.joinWithSlash=Ye,b.stripTrailingSlash=Fe,b.\u0275fac=function(w){return new(w||b)(a.LFG(_e),a.LFG(I))},b.\u0275prov=a.Yz7({token:b,factory:function(){return function $e(){return new Ie((0,a.LFG)(_e),(0,a.LFG)(I))}()},providedIn:"root"}),b})();function Se(b){return b.replace(/\/index.html$/,"")}var J=(()=>((J=J||{})[J.Decimal=0]="Decimal",J[J.Percent=1]="Percent",J[J.Currency=2]="Currency",J[J.Scientific=3]="Scientific",J))(),fe=(()=>((fe=fe||{})[fe.Zero=0]="Zero",fe[fe.One=1]="One",fe[fe.Two=2]="Two",fe[fe.Few=3]="Few",fe[fe.Many=4]="Many",fe[fe.Other=5]="Other",fe))(),he=(()=>((he=he||{})[he.Format=0]="Format",he[he.Standalone=1]="Standalone",he))(),te=(()=>((te=te||{})[te.Narrow=0]="Narrow",te[te.Abbreviated=1]="Abbreviated",te[te.Wide=2]="Wide",te[te.Short=3]="Short",te))(),le=(()=>((le=le||{})[le.Short=0]="Short",le[le.Medium=1]="Medium",le[le.Long=2]="Long",le[le.Full=3]="Full",le))(),ie=(()=>((ie=ie||{})[ie.Decimal=0]="Decimal",ie[ie.Group=1]="Group",ie[ie.List=2]="List",ie[ie.PercentSign=3]="PercentSign",ie[ie.PlusSign=4]="PlusSign",ie[ie.MinusSign=5]="MinusSign",ie[ie.Exponential=6]="Exponential",ie[ie.SuperscriptingExponent=7]="SuperscriptingExponent",ie[ie.PerMille=8]="PerMille",ie[ie.Infinity=9]="Infinity",ie[ie.NaN=10]="NaN",ie[ie.TimeSeparator=11]="TimeSeparator",ie[ie.CurrencyDecimal=12]="CurrencyDecimal",ie[ie.CurrencyGroup=13]="CurrencyGroup",ie))();function _t(b,Y){return cn((0,a.cg1)(b)[a.wAp.DateFormat],Y)}function it(b,Y){return cn((0,a.cg1)(b)[a.wAp.TimeFormat],Y)}function St(b,Y){return cn((0,a.cg1)(b)[a.wAp.DateTimeFormat],Y)}function ot(b,Y){const w=(0,a.cg1)(b),Q=w[a.wAp.NumberSymbols][Y];if(void 0===Q){if(Y===ie.CurrencyDecimal)return w[a.wAp.NumberSymbols][ie.Decimal];if(Y===ie.CurrencyGroup)return w[a.wAp.NumberSymbols][ie.Group]}return Q}const un=a.kL8;function _n(b){if(!b[a.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${b[a.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function cn(b,Y){for(let w=Y;w>-1;w--)if(void 0!==b[w])return b[w];throw new Error("Locale data API: locale data undefined")}function Mn(b){const[Y,w]=b.split(":");return{hours:+Y,minutes:+w}}const P=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,pe={},j=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var me=(()=>((me=me||{})[me.Short=0]="Short",me[me.ShortGMT=1]="ShortGMT",me[me.Long=2]="Long",me[me.Extended=3]="Extended",me))(),He=(()=>((He=He||{})[He.FullYear=0]="FullYear",He[He.Month=1]="Month",He[He.Date=2]="Date",He[He.Hours=3]="Hours",He[He.Minutes=4]="Minutes",He[He.Seconds=5]="Seconds",He[He.FractionalSeconds=6]="FractionalSeconds",He[He.Day=7]="Day",He))(),Ge=(()=>((Ge=Ge||{})[Ge.DayPeriods=0]="DayPeriods",Ge[Ge.Days=1]="Days",Ge[Ge.Months=2]="Months",Ge[Ge.Eras=3]="Eras",Ge))();function Le(b,Y,w,Q){let xe=function we(b){if(Ve(b))return b;if("number"==typeof b&&!isNaN(b))return new Date(b);if("string"==typeof b){if(b=b.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(b)){const[xe,ct=1,Mt=1]=b.split("-").map(kt=>+kt);return Me(xe,ct-1,Mt)}const w=parseFloat(b);if(!isNaN(b-w))return new Date(w);let Q;if(Q=b.match(P))return function ae(b){const Y=new Date(0);let w=0,Q=0;const xe=b[8]?Y.setUTCFullYear:Y.setFullYear,ct=b[8]?Y.setUTCHours:Y.setHours;b[9]&&(w=Number(b[9]+b[10]),Q=Number(b[9]+b[11])),xe.call(Y,Number(b[1]),Number(b[2])-1,Number(b[3]));const Mt=Number(b[4]||0)-w,kt=Number(b[5]||0)-Q,Fn=Number(b[6]||0),Tn=Math.floor(1e3*parseFloat("0."+(b[7]||0)));return ct.call(Y,Mt,kt,Fn,Tn),Y}(Q)}const Y=new Date(b);if(!Ve(Y))throw new Error(`Unable to convert "${b}" into a date`);return Y}(b);Y=V(w,Y)||Y;let kt,Mt=[];for(;Y;){if(kt=j.exec(Y),!kt){Mt.push(Y);break}{Mt=Mt.concat(kt.slice(1));const Dn=Mt.pop();if(!Dn)break;Y=Dn}}let Fn=xe.getTimezoneOffset();Q&&(Fn=jn(Q,Fn),xe=function Re(b,Y,w){const Q=w?-1:1,xe=b.getTimezoneOffset();return function qt(b,Y){return(b=new Date(b.getTime())).setMinutes(b.getMinutes()+Y),b}(b,Q*(jn(Y,xe)-xe))}(xe,Q,!0));let Tn="";return Mt.forEach(Dn=>{const dn=function ri(b){if(An[b])return An[b];let Y;switch(b){case"G":case"GG":case"GGG":Y=E(Ge.Eras,te.Abbreviated);break;case"GGGG":Y=E(Ge.Eras,te.Wide);break;case"GGGGG":Y=E(Ge.Eras,te.Narrow);break;case"y":Y=Ne(He.FullYear,1,0,!1,!0);break;case"yy":Y=Ne(He.FullYear,2,0,!0,!0);break;case"yyy":Y=Ne(He.FullYear,3,0,!1,!0);break;case"yyyy":Y=Ne(He.FullYear,4,0,!1,!0);break;case"Y":Y=Vn(1);break;case"YY":Y=Vn(2,!0);break;case"YYY":Y=Vn(3);break;case"YYYY":Y=Vn(4);break;case"M":case"L":Y=Ne(He.Month,1,1);break;case"MM":case"LL":Y=Ne(He.Month,2,1);break;case"MMM":Y=E(Ge.Months,te.Abbreviated);break;case"MMMM":Y=E(Ge.Months,te.Wide);break;case"MMMMM":Y=E(Ge.Months,te.Narrow);break;case"LLL":Y=E(Ge.Months,te.Abbreviated,he.Standalone);break;case"LLLL":Y=E(Ge.Months,te.Wide,he.Standalone);break;case"LLLLL":Y=E(Ge.Months,te.Narrow,he.Standalone);break;case"w":Y=vn(1);break;case"ww":Y=vn(2);break;case"W":Y=vn(1,!0);break;case"d":Y=Ne(He.Date,1);break;case"dd":Y=Ne(He.Date,2);break;case"c":case"cc":Y=Ne(He.Day,1);break;case"ccc":Y=E(Ge.Days,te.Abbreviated,he.Standalone);break;case"cccc":Y=E(Ge.Days,te.Wide,he.Standalone);break;case"ccccc":Y=E(Ge.Days,te.Narrow,he.Standalone);break;case"cccccc":Y=E(Ge.Days,te.Short,he.Standalone);break;case"E":case"EE":case"EEE":Y=E(Ge.Days,te.Abbreviated);break;case"EEEE":Y=E(Ge.Days,te.Wide);break;case"EEEEE":Y=E(Ge.Days,te.Narrow);break;case"EEEEEE":Y=E(Ge.Days,te.Short);break;case"a":case"aa":case"aaa":Y=E(Ge.DayPeriods,te.Abbreviated);break;case"aaaa":Y=E(Ge.DayPeriods,te.Wide);break;case"aaaaa":Y=E(Ge.DayPeriods,te.Narrow);break;case"b":case"bb":case"bbb":Y=E(Ge.DayPeriods,te.Abbreviated,he.Standalone,!0);break;case"bbbb":Y=E(Ge.DayPeriods,te.Wide,he.Standalone,!0);break;case"bbbbb":Y=E(Ge.DayPeriods,te.Narrow,he.Standalone,!0);break;case"B":case"BB":case"BBB":Y=E(Ge.DayPeriods,te.Abbreviated,he.Format,!0);break;case"BBBB":Y=E(Ge.DayPeriods,te.Wide,he.Format,!0);break;case"BBBBB":Y=E(Ge.DayPeriods,te.Narrow,he.Format,!0);break;case"h":Y=Ne(He.Hours,1,-12);break;case"hh":Y=Ne(He.Hours,2,-12);break;case"H":Y=Ne(He.Hours,1);break;case"HH":Y=Ne(He.Hours,2);break;case"m":Y=Ne(He.Minutes,1);break;case"mm":Y=Ne(He.Minutes,2);break;case"s":Y=Ne(He.Seconds,1);break;case"ss":Y=Ne(He.Seconds,2);break;case"S":Y=Ne(He.FractionalSeconds,1);break;case"SS":Y=Ne(He.FractionalSeconds,2);break;case"SSS":Y=Ne(He.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Y=ue(me.Short);break;case"ZZZZZ":Y=ue(me.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Y=ue(me.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Y=ue(me.Long);break;default:return null}return An[b]=Y,Y}(Dn);Tn+=dn?dn(xe,w,Fn):"''"===Dn?"'":Dn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Tn}function Me(b,Y,w){const Q=new Date(0);return Q.setFullYear(b,Y,w),Q.setHours(0,0,0),Q}function V(b,Y){const w=function je(b){return(0,a.cg1)(b)[a.wAp.LocaleId]}(b);if(pe[w]=pe[w]||{},pe[w][Y])return pe[w][Y];let Q="";switch(Y){case"shortDate":Q=_t(b,le.Short);break;case"mediumDate":Q=_t(b,le.Medium);break;case"longDate":Q=_t(b,le.Long);break;case"fullDate":Q=_t(b,le.Full);break;case"shortTime":Q=it(b,le.Short);break;case"mediumTime":Q=it(b,le.Medium);break;case"longTime":Q=it(b,le.Long);break;case"fullTime":Q=it(b,le.Full);break;case"short":const xe=V(b,"shortTime"),ct=V(b,"shortDate");Q=Be(St(b,le.Short),[xe,ct]);break;case"medium":const Mt=V(b,"mediumTime"),kt=V(b,"mediumDate");Q=Be(St(b,le.Medium),[Mt,kt]);break;case"long":const Fn=V(b,"longTime"),Tn=V(b,"longDate");Q=Be(St(b,le.Long),[Fn,Tn]);break;case"full":const Dn=V(b,"fullTime"),dn=V(b,"fullDate");Q=Be(St(b,le.Full),[Dn,dn])}return Q&&(pe[w][Y]=Q),Q}function Be(b,Y){return Y&&(b=b.replace(/\{([^}]+)}/g,function(w,Q){return null!=Y&&Q in Y?Y[Q]:w})),b}function nt(b,Y,w="-",Q,xe){let ct="";(b<0||xe&&b<=0)&&(xe?b=1-b:(b=-b,ct=w));let Mt=String(b);for(;Mt.length0||kt>-w)&&(kt+=w),b===He.Hours)0===kt&&-12===w&&(kt=12);else if(b===He.FractionalSeconds)return function ce(b,Y){return nt(b,3).substr(0,Y)}(kt,Y);const Fn=ot(Mt,ie.MinusSign);return nt(kt,Y,Fn,Q,xe)}}function E(b,Y,w=he.Format,Q=!1){return function(xe,ct){return function $(b,Y,w,Q,xe,ct){switch(w){case Ge.Months:return function ve(b,Y,w){const Q=(0,a.cg1)(b),ct=cn([Q[a.wAp.MonthsFormat],Q[a.wAp.MonthsStandalone]],Y);return cn(ct,w)}(Y,xe,Q)[b.getMonth()];case Ge.Days:return function ke(b,Y,w){const Q=(0,a.cg1)(b),ct=cn([Q[a.wAp.DaysFormat],Q[a.wAp.DaysStandalone]],Y);return cn(ct,w)}(Y,xe,Q)[b.getDay()];case Ge.DayPeriods:const Mt=b.getHours(),kt=b.getMinutes();if(ct){const Tn=function Cn(b){const Y=(0,a.cg1)(b);return _n(Y),(Y[a.wAp.ExtraData][2]||[]).map(Q=>"string"==typeof Q?Mn(Q):[Mn(Q[0]),Mn(Q[1])])}(Y),Dn=function Dt(b,Y,w){const Q=(0,a.cg1)(b);_n(Q);const ct=cn([Q[a.wAp.ExtraData][0],Q[a.wAp.ExtraData][1]],Y)||[];return cn(ct,w)||[]}(Y,xe,Q),dn=Tn.findIndex(Yn=>{if(Array.isArray(Yn)){const[On,Yt]=Yn,Eo=Mt>=On.hours&&kt>=On.minutes,D=Mt0?Math.floor(xe/60):Math.ceil(xe/60);switch(b){case me.Short:return(xe>=0?"+":"")+nt(Mt,2,ct)+nt(Math.abs(xe%60),2,ct);case me.ShortGMT:return"GMT"+(xe>=0?"+":"")+nt(Mt,1,ct);case me.Long:return"GMT"+(xe>=0?"+":"")+nt(Mt,2,ct)+":"+nt(Math.abs(xe%60),2,ct);case me.Extended:return 0===Q?"Z":(xe>=0?"+":"")+nt(Mt,2,ct)+":"+nt(Math.abs(xe%60),2,ct);default:throw new Error(`Unknown zone width "${b}"`)}}}function Qt(b){return Me(b.getFullYear(),b.getMonth(),b.getDate()+(4-b.getDay()))}function vn(b,Y=!1){return function(w,Q){let xe;if(Y){const ct=new Date(w.getFullYear(),w.getMonth(),1).getDay()-1,Mt=w.getDate();xe=1+Math.floor((Mt+ct)/7)}else{const ct=Qt(w),Mt=function At(b){const Y=Me(b,0,1).getDay();return Me(b,0,1+(Y<=4?4:11)-Y)}(ct.getFullYear()),kt=ct.getTime()-Mt.getTime();xe=1+Math.round(kt/6048e5)}return nt(xe,b,ot(Q,ie.MinusSign))}}function Vn(b,Y=!1){return function(w,Q){return nt(Qt(w).getFullYear(),b,ot(Q,ie.MinusSign),Y)}}const An={};function jn(b,Y){b=b.replace(/:/g,"");const w=Date.parse("Jan 01, 1970 00:00:00 "+b)/6e4;return isNaN(w)?Y:w}function Ve(b){return b instanceof Date&&!isNaN(b.valueOf())}const ht=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function De(b){const Y=parseInt(b);if(isNaN(Y))throw new Error("Invalid integer literal when parsing "+b);return Y}class rt{}let on=(()=>{class b extends rt{constructor(w){super(),this.locale=w}getPluralCategory(w,Q){switch(un(Q||this.locale)(w)){case fe.Zero:return"zero";case fe.One:return"one";case fe.Two:return"two";case fe.Few:return"few";case fe.Many:return"many";default:return"other"}}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(a.soG))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})();function Lt(b,Y,w){return(0,a.dwT)(b,Y,w)}function Un(b,Y){Y=encodeURIComponent(Y);for(const w of b.split(";")){const Q=w.indexOf("="),[xe,ct]=-1==Q?[w,""]:[w.slice(0,Q),w.slice(Q+1)];if(xe.trim()===Y)return decodeURIComponent(ct)}return null}let $n=(()=>{class b{constructor(w,Q,xe,ct){this._iterableDiffers=w,this._keyValueDiffers=Q,this._ngEl=xe,this._renderer=ct,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(w){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof w?w.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(w){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof w?w.split(/\s+/):w,this._rawClass&&((0,a.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const w=this._iterableDiffer.diff(this._rawClass);w&&this._applyIterableChanges(w)}else if(this._keyValueDiffer){const w=this._keyValueDiffer.diff(this._rawClass);w&&this._applyKeyValueChanges(w)}}_applyKeyValueChanges(w){w.forEachAddedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),w.forEachChangedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),w.forEachRemovedItem(Q=>{Q.previousValue&&this._toggleClass(Q.key,!1)})}_applyIterableChanges(w){w.forEachAddedItem(Q=>{if("string"!=typeof Q.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,a.AaK)(Q.item)}`);this._toggleClass(Q.item,!0)}),w.forEachRemovedItem(Q=>this._toggleClass(Q.item,!1))}_applyClasses(w){w&&(Array.isArray(w)||w instanceof Set?w.forEach(Q=>this._toggleClass(Q,!0)):Object.keys(w).forEach(Q=>this._toggleClass(Q,!!w[Q])))}_removeClasses(w){w&&(Array.isArray(w)||w instanceof Set?w.forEach(Q=>this._toggleClass(Q,!1)):Object.keys(w).forEach(Q=>this._toggleClass(Q,!1)))}_toggleClass(w,Q){(w=w.trim())&&w.split(/\s+/g).forEach(xe=>{Q?this._renderer.addClass(this._ngEl.nativeElement,xe):this._renderer.removeClass(this._ngEl.nativeElement,xe)})}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.ZZ4),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Qsj))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),b})();class Rn{constructor(Y,w,Q,xe){this.$implicit=Y,this.ngForOf=w,this.index=Q,this.count=xe}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 qn=(()=>{class b{constructor(w,Q,xe){this._viewContainer=w,this._template=Q,this._differs=xe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(w){this._ngForOf=w,this._ngForOfDirty=!0}set ngForTrackBy(w){this._trackByFn=w}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(w){w&&(this._template=w)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const w=this._ngForOf;!this._differ&&w&&(this._differ=this._differs.find(w).create(this.ngForTrackBy))}if(this._differ){const w=this._differ.diff(this._ngForOf);w&&this._applyChanges(w)}}_applyChanges(w){const Q=this._viewContainer;w.forEachOperation((xe,ct,Mt)=>{if(null==xe.previousIndex)Q.createEmbeddedView(this._template,new Rn(xe.item,this._ngForOf,-1,-1),null===Mt?void 0:Mt);else if(null==Mt)Q.remove(null===ct?void 0:ct);else if(null!==ct){const kt=Q.get(ct);Q.move(kt,Mt),X(kt,xe)}});for(let xe=0,ct=Q.length;xe{X(Q.get(xe.currentIndex),xe)})}static ngTemplateContextGuard(w,Q){return!0}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(a.ZZ4))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),b})();function X(b,Y){b.context.$implicit=Y.item}let k=(()=>{class b{constructor(w,Q){this._viewContainer=w,this._context=new Ee,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Q}set ngIf(w){this._context.$implicit=this._context.ngIf=w,this._updateView()}set ngIfThen(w){st("ngIfThen",w),this._thenTemplateRef=w,this._thenViewRef=null,this._updateView()}set ngIfElse(w){st("ngIfElse",w),this._elseTemplateRef=w,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(w,Q){return!0}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),b})();class Ee{constructor(){this.$implicit=null,this.ngIf=null}}function st(b,Y){if(Y&&!Y.createEmbeddedView)throw new Error(`${b} must be a TemplateRef, but received '${(0,a.AaK)(Y)}'.`)}class Ct{constructor(Y,w){this._viewContainerRef=Y,this._templateRef=w,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Y){Y&&!this._created?this.create():!Y&&this._created&&this.destroy()}}let Ot=(()=>{class b{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(w){this._ngSwitch=w,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(w){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(w)}_matchCase(w){const Q=w==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Q,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Q}_updateDefaultCases(w){if(this._defaultViews&&w!==this._defaultUsed){this._defaultUsed=w;for(let Q=0;Q{class b{constructor(w,Q,xe){this.ngSwitch=xe,xe._addCase(),this._view=new Ct(w,Q)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(Ot,9))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),b})(),hn=(()=>{class b{constructor(w,Q,xe){xe._addDefault(new Ct(w,Q))}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(Ot,9))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngSwitchDefault",""]]}),b})(),bi=(()=>{class b{constructor(w,Q,xe){this._ngEl=w,this._differs=Q,this._renderer=xe,this._ngStyle=null,this._differ=null}set ngStyle(w){this._ngStyle=w,!this._differ&&w&&(this._differ=this._differs.find(w).create())}ngDoCheck(){if(this._differ){const w=this._differ.diff(this._ngStyle);w&&this._applyChanges(w)}}_setStyle(w,Q){const[xe,ct]=w.split(".");null!=(Q=null!=Q&&ct?`${Q}${ct}`:Q)?this._renderer.setStyle(this._ngEl.nativeElement,xe,Q):this._renderer.removeStyle(this._ngEl.nativeElement,xe)}_applyChanges(w){w.forEachRemovedItem(Q=>this._setStyle(Q.key,null)),w.forEachAddedItem(Q=>this._setStyle(Q.key,Q.currentValue)),w.forEachChangedItem(Q=>this._setStyle(Q.key,Q.currentValue))}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.SBq),a.Y36(a.aQg),a.Y36(a.Qsj))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),b})(),io=(()=>{class b{constructor(w){this._viewContainerRef=w,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(w){if(w.ngTemplateOutlet){const Q=this._viewContainerRef;this._viewRef&&Q.remove(Q.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?Q.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&w.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[a.TTD]}),b})();function vi(b,Y){return new a.vHH(2100,"")}class ui{createSubscription(Y,w){return Y.subscribe({next:w,error:Q=>{throw Q}})}dispose(Y){Y.unsubscribe()}onDestroy(Y){Y.unsubscribe()}}class wi{createSubscription(Y,w){return Y.then(w,Q=>{throw Q})}dispose(Y){}onDestroy(Y){}}const ko=new wi,Fo=new ui;let vo=(()=>{class b{constructor(w){this._ref=w,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(w){return this._obj?w!==this._obj?(this._dispose(),this.transform(w)):this._latestValue:(w&&this._subscribe(w),this._latestValue)}_subscribe(w){this._obj=w,this._strategy=this._selectStrategy(w),this._subscription=this._strategy.createSubscription(w,Q=>this._updateLatestValue(w,Q))}_selectStrategy(w){if((0,a.QGY)(w))return ko;if((0,a.F4k)(w))return Fo;throw vi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(w,Q){w===this._obj&&(this._latestValue=Q,this._ref.markForCheck())}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.sBO,16))},b.\u0275pipe=a.Yjl({name:"async",type:b,pure:!1}),b})();const sr=new a.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ii=(()=>{class b{constructor(w,Q){this.locale=w,this.defaultTimezone=Q}transform(w,Q="mediumDate",xe,ct){var Mt;if(null==w||""===w||w!=w)return null;try{return Le(w,Q,ct||this.locale,null!==(Mt=null!=xe?xe:this.defaultTimezone)&&void 0!==Mt?Mt:void 0)}catch(kt){throw vi()}}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.soG,16),a.Y36(sr,24))},b.\u0275pipe=a.Yjl({name:"date",type:b,pure:!0}),b})(),qo=(()=>{class b{constructor(w){this._locale=w}transform(w,Q,xe){if(!function oi(b){return!(null==b||""===b||b!=b)}(w))return null;xe=xe||this._locale;try{return function rn(b,Y,w){return function ei(b,Y,w,Q,xe,ct,Mt=!1){let kt="",Fn=!1;if(isFinite(b)){let Tn=function Te(b){let Q,xe,ct,Mt,kt,Y=Math.abs(b)+"",w=0;for((xe=Y.indexOf("."))>-1&&(Y=Y.replace(".","")),(ct=Y.search(/e/i))>0?(xe<0&&(xe=ct),xe+=+Y.slice(ct+1),Y=Y.substring(0,ct)):xe<0&&(xe=Y.length),ct=0;"0"===Y.charAt(ct);ct++);if(ct===(kt=Y.length))Q=[0],xe=1;else{for(kt--;"0"===Y.charAt(kt);)kt--;for(xe-=ct,Q=[],Mt=0;ct<=kt;ct++,Mt++)Q[Mt]=Number(Y.charAt(ct))}return xe>22&&(Q=Q.splice(0,21),w=xe-1,xe=1),{digits:Q,exponent:w,integerLen:xe}}(b);Mt&&(Tn=function Qn(b){if(0===b.digits[0])return b;const Y=b.digits.length-b.integerLen;return b.exponent?b.exponent+=2:(0===Y?b.digits.push(0,0):1===Y&&b.digits.push(0),b.integerLen+=2),b}(Tn));let Dn=Y.minInt,dn=Y.minFrac,Yn=Y.maxFrac;if(ct){const y=ct.match(ht);if(null===y)throw new Error(`${ct} is not a valid digit info`);const U=y[1],at=y[3],Nt=y[5];null!=U&&(Dn=De(U)),null!=at&&(dn=De(at)),null!=Nt?Yn=De(Nt):null!=at&&dn>Yn&&(Yn=dn)}!function Ze(b,Y,w){if(Y>w)throw new Error(`The minimum number of digits after fraction (${Y}) is higher than the maximum (${w}).`);let Q=b.digits,xe=Q.length-b.integerLen;const ct=Math.min(Math.max(Y,xe),w);let Mt=ct+b.integerLen,kt=Q[Mt];if(Mt>0){Q.splice(Math.max(b.integerLen,Mt));for(let dn=Mt;dn=5)if(Mt-1<0){for(let dn=0;dn>Mt;dn--)Q.unshift(0),b.integerLen++;Q.unshift(1),b.integerLen++}else Q[Mt-1]++;for(;xe=Tn?Yt.pop():Fn=!1),Yn>=10?1:0},0);Dn&&(Q.unshift(Dn),b.integerLen++)}(Tn,dn,Yn);let On=Tn.digits,Yt=Tn.integerLen;const Eo=Tn.exponent;let D=[];for(Fn=On.every(y=>!y);Yt0?D=On.splice(Yt,On.length):(D=On,On=[0]);const C=[];for(On.length>=Y.lgSize&&C.unshift(On.splice(-Y.lgSize,On.length).join(""));On.length>Y.gSize;)C.unshift(On.splice(-Y.gSize,On.length).join(""));On.length&&C.unshift(On.join("")),kt=C.join(ot(w,Q)),D.length&&(kt+=ot(w,xe)+D.join("")),Eo&&(kt+=ot(w,ie.Exponential)+"+"+Eo)}else kt=ot(w,ie.Infinity);return kt=b<0&&!Fn?Y.negPre+kt+Y.negSuf:Y.posPre+kt+Y.posSuf,kt}(b,function bn(b,Y="-"){const w={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Q=b.split(";"),xe=Q[0],ct=Q[1],Mt=-1!==xe.indexOf(".")?xe.split("."):[xe.substring(0,xe.lastIndexOf("0")+1),xe.substring(xe.lastIndexOf("0")+1)],kt=Mt[0],Fn=Mt[1]||"";w.posPre=kt.substr(0,kt.indexOf("#"));for(let Dn=0;Dn{class b{}return b.\u0275fac=function(w){return new(w||b)},b.\u0275mod=a.oAB({type:b}),b.\u0275inj=a.cJS({providers:[{provide:rt,useClass:on}]}),b})();const Lo="browser";function hi(b){return b===Lo}let Qi=(()=>{class b{}return b.\u0275prov=(0,a.Yz7)({token:b,providedIn:"root",factory:()=>new Xo((0,a.LFG)(W),window)}),b})();class Xo{constructor(Y,w){this.document=Y,this.window=w,this.offset=()=>[0,0]}setOffset(Y){this.offset=Array.isArray(Y)?()=>Y:Y}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Y){this.supportsScrolling()&&this.window.scrollTo(Y[0],Y[1])}scrollToAnchor(Y){if(!this.supportsScrolling())return;const w=function Pi(b,Y){const w=b.getElementById(Y)||b.getElementsByName(Y)[0];if(w)return w;if("function"==typeof b.createTreeWalker&&b.body&&(b.body.createShadowRoot||b.body.attachShadow)){const Q=b.createTreeWalker(b.body,NodeFilter.SHOW_ELEMENT);let xe=Q.currentNode;for(;xe;){const ct=xe.shadowRoot;if(ct){const Mt=ct.getElementById(Y)||ct.querySelector(`[name="${Y}"]`);if(Mt)return Mt}xe=Q.nextNode()}}return null}(this.document,Y);w&&(this.scrollToElement(w),this.attemptFocus(w))}setHistoryScrollRestoration(Y){if(this.supportScrollRestoration()){const w=this.window.history;w&&w.scrollRestoration&&(w.scrollRestoration=Y)}}scrollToElement(Y){const w=Y.getBoundingClientRect(),Q=w.left+this.window.pageXOffset,xe=w.top+this.window.pageYOffset,ct=this.offset();this.window.scrollTo(Q-ct[0],xe-ct[1])}attemptFocus(Y){return Y.focus(),this.document.activeElement===Y}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Y=Bn(this.window.history)||Bn(Object.getPrototypeOf(this.window.history));return!(!Y||!Y.writable&&!Y.set)}catch(Y){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Y){return!1}}}function Bn(b){return Object.getOwnPropertyDescriptor(b,"scrollRestoration")}class Wn{}},520:(yt,be,p)=>{p.d(be,{TP:()=>je,jN:()=>R,eN:()=>ie,JF:()=>cn,WM:()=>H,LE:()=>_e,aW:()=>Se,Zn:()=>he});var a=p(9808),s=p(5e3),G=p(1086),oe=p(6498),q=p(1406),_=p(2198),W=p(4850);class I{}class R{}class H{constructor(z){this.normalizedNames=new Map,this.lazyUpdate=null,z?this.lazyInit="string"==typeof z?()=>{this.headers=new Map,z.split("\n").forEach(P=>{const pe=P.indexOf(":");if(pe>0){const j=P.slice(0,pe),me=j.toLowerCase(),He=P.slice(pe+1).trim();this.maybeSetNormalizedName(j,me),this.headers.has(me)?this.headers.get(me).push(He):this.headers.set(me,[He])}})}:()=>{this.headers=new Map,Object.keys(z).forEach(P=>{let pe=z[P];const j=P.toLowerCase();"string"==typeof pe&&(pe=[pe]),pe.length>0&&(this.headers.set(j,pe),this.maybeSetNormalizedName(P,j))})}:this.headers=new Map}has(z){return this.init(),this.headers.has(z.toLowerCase())}get(z){this.init();const P=this.headers.get(z.toLowerCase());return P&&P.length>0?P[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(z){return this.init(),this.headers.get(z.toLowerCase())||null}append(z,P){return this.clone({name:z,value:P,op:"a"})}set(z,P){return this.clone({name:z,value:P,op:"s"})}delete(z,P){return this.clone({name:z,value:P,op:"d"})}maybeSetNormalizedName(z,P){this.normalizedNames.has(P)||this.normalizedNames.set(P,z)}init(){this.lazyInit&&(this.lazyInit instanceof H?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(z=>this.applyUpdate(z)),this.lazyUpdate=null))}copyFrom(z){z.init(),Array.from(z.headers.keys()).forEach(P=>{this.headers.set(P,z.headers.get(P)),this.normalizedNames.set(P,z.normalizedNames.get(P))})}clone(z){const P=new H;return P.lazyInit=this.lazyInit&&this.lazyInit instanceof H?this.lazyInit:this,P.lazyUpdate=(this.lazyUpdate||[]).concat([z]),P}applyUpdate(z){const P=z.name.toLowerCase();switch(z.op){case"a":case"s":let pe=z.value;if("string"==typeof pe&&(pe=[pe]),0===pe.length)return;this.maybeSetNormalizedName(z.name,P);const j=("a"===z.op?this.headers.get(P):void 0)||[];j.push(...pe),this.headers.set(P,j);break;case"d":const me=z.value;if(me){let He=this.headers.get(P);if(!He)return;He=He.filter(Ge=>-1===me.indexOf(Ge)),0===He.length?(this.headers.delete(P),this.normalizedNames.delete(P)):this.headers.set(P,He)}else this.headers.delete(P),this.normalizedNames.delete(P)}}forEach(z){this.init(),Array.from(this.normalizedNames.keys()).forEach(P=>z(this.normalizedNames.get(P),this.headers.get(P)))}}class B{encodeKey(z){return Fe(z)}encodeValue(z){return Fe(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}const ye=/%(\d[a-f0-9])/gi,Ye={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Fe(x){return encodeURIComponent(x).replace(ye,(z,P)=>{var pe;return null!==(pe=Ye[P])&&void 0!==pe?pe:z})}function ze(x){return`${x}`}class _e{constructor(z={}){if(this.updates=null,this.cloneFrom=null,this.encoder=z.encoder||new B,z.fromString){if(z.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ee(x,z){const P=new Map;return x.length>0&&x.replace(/^\?/,"").split("&").forEach(j=>{const me=j.indexOf("="),[He,Ge]=-1==me?[z.decodeKey(j),""]:[z.decodeKey(j.slice(0,me)),z.decodeValue(j.slice(me+1))],Le=P.get(He)||[];Le.push(Ge),P.set(He,Le)}),P}(z.fromString,this.encoder)}else z.fromObject?(this.map=new Map,Object.keys(z.fromObject).forEach(P=>{const pe=z.fromObject[P];this.map.set(P,Array.isArray(pe)?pe:[pe])})):this.map=null}has(z){return this.init(),this.map.has(z)}get(z){this.init();const P=this.map.get(z);return P?P[0]:null}getAll(z){return this.init(),this.map.get(z)||null}keys(){return this.init(),Array.from(this.map.keys())}append(z,P){return this.clone({param:z,value:P,op:"a"})}appendAll(z){const P=[];return Object.keys(z).forEach(pe=>{const j=z[pe];Array.isArray(j)?j.forEach(me=>{P.push({param:pe,value:me,op:"a"})}):P.push({param:pe,value:j,op:"a"})}),this.clone(P)}set(z,P){return this.clone({param:z,value:P,op:"s"})}delete(z,P){return this.clone({param:z,value:P,op:"d"})}toString(){return this.init(),this.keys().map(z=>{const P=this.encoder.encodeKey(z);return this.map.get(z).map(pe=>P+"="+this.encoder.encodeValue(pe)).join("&")}).filter(z=>""!==z).join("&")}clone(z){const P=new _e({encoder:this.encoder});return P.cloneFrom=this.cloneFrom||this,P.updates=(this.updates||[]).concat(z),P}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(z=>this.map.set(z,this.cloneFrom.map.get(z))),this.updates.forEach(z=>{switch(z.op){case"a":case"s":const P=("a"===z.op?this.map.get(z.param):void 0)||[];P.push(ze(z.value)),this.map.set(z.param,P);break;case"d":if(void 0===z.value){this.map.delete(z.param);break}{let pe=this.map.get(z.param)||[];const j=pe.indexOf(ze(z.value));-1!==j&&pe.splice(j,1),pe.length>0?this.map.set(z.param,pe):this.map.delete(z.param)}}}),this.cloneFrom=this.updates=null)}}class Je{constructor(){this.map=new Map}set(z,P){return this.map.set(z,P),this}get(z){return this.map.has(z)||this.map.set(z,z.defaultValue()),this.map.get(z)}delete(z){return this.map.delete(z),this}has(z){return this.map.has(z)}keys(){return this.map.keys()}}function ut(x){return"undefined"!=typeof ArrayBuffer&&x instanceof ArrayBuffer}function Ie(x){return"undefined"!=typeof Blob&&x instanceof Blob}function $e(x){return"undefined"!=typeof FormData&&x instanceof FormData}class Se{constructor(z,P,pe,j){let me;if(this.url=P,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=z.toUpperCase(),function zt(x){switch(x){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||j?(this.body=void 0!==pe?pe:null,me=j):me=pe,me&&(this.reportProgress=!!me.reportProgress,this.withCredentials=!!me.withCredentials,me.responseType&&(this.responseType=me.responseType),me.headers&&(this.headers=me.headers),me.context&&(this.context=me.context),me.params&&(this.params=me.params)),this.headers||(this.headers=new H),this.context||(this.context=new Je),this.params){const He=this.params.toString();if(0===He.length)this.urlWithParams=P;else{const Ge=P.indexOf("?");this.urlWithParams=P+(-1===Ge?"?":Gent.set(ce,z.setHeaders[ce]),Me)),z.setParams&&(V=Object.keys(z.setParams).reduce((nt,ce)=>nt.set(ce,z.setParams[ce]),V)),new Se(pe,j,He,{params:V,headers:Me,context:Be,reportProgress:Le,responseType:me,withCredentials:Ge})}}var Xe=(()=>((Xe=Xe||{})[Xe.Sent=0]="Sent",Xe[Xe.UploadProgress=1]="UploadProgress",Xe[Xe.ResponseHeader=2]="ResponseHeader",Xe[Xe.DownloadProgress=3]="DownloadProgress",Xe[Xe.Response=4]="Response",Xe[Xe.User=5]="User",Xe))();class J{constructor(z,P=200,pe="OK"){this.headers=z.headers||new H,this.status=void 0!==z.status?z.status:P,this.statusText=z.statusText||pe,this.url=z.url||null,this.ok=this.status>=200&&this.status<300}}class fe extends J{constructor(z={}){super(z),this.type=Xe.ResponseHeader}clone(z={}){return new fe({headers:z.headers||this.headers,status:void 0!==z.status?z.status:this.status,statusText:z.statusText||this.statusText,url:z.url||this.url||void 0})}}class he extends J{constructor(z={}){super(z),this.type=Xe.Response,this.body=void 0!==z.body?z.body:null}clone(z={}){return new he({body:void 0!==z.body?z.body:this.body,headers:z.headers||this.headers,status:void 0!==z.status?z.status:this.status,statusText:z.statusText||this.statusText,url:z.url||this.url||void 0})}}class te extends J{constructor(z){super(z,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${z.url||"(unknown url)"}`:`Http failure response for ${z.url||"(unknown url)"}: ${z.status} ${z.statusText}`,this.error=z.error||null}}function le(x,z){return{body:z,headers:x.headers,context:x.context,observe:x.observe,params:x.params,reportProgress:x.reportProgress,responseType:x.responseType,withCredentials:x.withCredentials}}let ie=(()=>{class x{constructor(P){this.handler=P}request(P,pe,j={}){let me;if(P instanceof Se)me=P;else{let Le,Me;Le=j.headers instanceof H?j.headers:new H(j.headers),j.params&&(Me=j.params instanceof _e?j.params:new _e({fromObject:j.params})),me=new Se(P,pe,void 0!==j.body?j.body:null,{headers:Le,context:j.context,params:Me,reportProgress:j.reportProgress,responseType:j.responseType||"json",withCredentials:j.withCredentials})}const He=(0,G.of)(me).pipe((0,q.b)(Le=>this.handler.handle(Le)));if(P instanceof Se||"events"===j.observe)return He;const Ge=He.pipe((0,_.h)(Le=>Le instanceof he));switch(j.observe||"body"){case"body":switch(me.responseType){case"arraybuffer":return Ge.pipe((0,W.U)(Le=>{if(null!==Le.body&&!(Le.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Le.body}));case"blob":return Ge.pipe((0,W.U)(Le=>{if(null!==Le.body&&!(Le.body instanceof Blob))throw new Error("Response is not a Blob.");return Le.body}));case"text":return Ge.pipe((0,W.U)(Le=>{if(null!==Le.body&&"string"!=typeof Le.body)throw new Error("Response is not a string.");return Le.body}));default:return Ge.pipe((0,W.U)(Le=>Le.body))}case"response":return Ge;default:throw new Error(`Unreachable: unhandled observe type ${j.observe}}`)}}delete(P,pe={}){return this.request("DELETE",P,pe)}get(P,pe={}){return this.request("GET",P,pe)}head(P,pe={}){return this.request("HEAD",P,pe)}jsonp(P,pe){return this.request("JSONP",P,{params:(new _e).append(pe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(P,pe={}){return this.request("OPTIONS",P,pe)}patch(P,pe,j={}){return this.request("PATCH",P,le(j,pe))}post(P,pe,j={}){return this.request("POST",P,le(j,pe))}put(P,pe,j={}){return this.request("PUT",P,le(j,pe))}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(I))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();class Ue{constructor(z,P){this.next=z,this.interceptor=P}handle(z){return this.interceptor.intercept(z,this.next)}}const je=new s.OlP("HTTP_INTERCEPTORS");let tt=(()=>{class x{intercept(P,pe){return pe.handle(P)}}return x.\u0275fac=function(P){return new(P||x)},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();const St=/^\)\]\}',?\n/;let Et=(()=>{class x{constructor(P){this.xhrFactory=P}handle(P){if("JSONP"===P.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new oe.y(pe=>{const j=this.xhrFactory.build();if(j.open(P.method,P.urlWithParams),P.withCredentials&&(j.withCredentials=!0),P.headers.forEach((ce,Ne)=>j.setRequestHeader(ce,Ne.join(","))),P.headers.has("Accept")||j.setRequestHeader("Accept","application/json, text/plain, */*"),!P.headers.has("Content-Type")){const ce=P.detectContentTypeHeader();null!==ce&&j.setRequestHeader("Content-Type",ce)}if(P.responseType){const ce=P.responseType.toLowerCase();j.responseType="json"!==ce?ce:"text"}const me=P.serializeBody();let He=null;const Ge=()=>{if(null!==He)return He;const ce=1223===j.status?204:j.status,Ne=j.statusText||"OK",L=new H(j.getAllResponseHeaders()),E=function ot(x){return"responseURL"in x&&x.responseURL?x.responseURL:/^X-Request-URL:/m.test(x.getAllResponseHeaders())?x.getResponseHeader("X-Request-URL"):null}(j)||P.url;return He=new fe({headers:L,status:ce,statusText:Ne,url:E}),He},Le=()=>{let{headers:ce,status:Ne,statusText:L,url:E}=Ge(),$=null;204!==Ne&&($=void 0===j.response?j.responseText:j.response),0===Ne&&(Ne=$?200:0);let ue=Ne>=200&&Ne<300;if("json"===P.responseType&&"string"==typeof $){const Ae=$;$=$.replace(St,"");try{$=""!==$?JSON.parse($):null}catch(wt){$=Ae,ue&&(ue=!1,$={error:wt,text:$})}}ue?(pe.next(new he({body:$,headers:ce,status:Ne,statusText:L,url:E||void 0})),pe.complete()):pe.error(new te({error:$,headers:ce,status:Ne,statusText:L,url:E||void 0}))},Me=ce=>{const{url:Ne}=Ge(),L=new te({error:ce,status:j.status||0,statusText:j.statusText||"Unknown Error",url:Ne||void 0});pe.error(L)};let V=!1;const Be=ce=>{V||(pe.next(Ge()),V=!0);let Ne={type:Xe.DownloadProgress,loaded:ce.loaded};ce.lengthComputable&&(Ne.total=ce.total),"text"===P.responseType&&!!j.responseText&&(Ne.partialText=j.responseText),pe.next(Ne)},nt=ce=>{let Ne={type:Xe.UploadProgress,loaded:ce.loaded};ce.lengthComputable&&(Ne.total=ce.total),pe.next(Ne)};return j.addEventListener("load",Le),j.addEventListener("error",Me),j.addEventListener("timeout",Me),j.addEventListener("abort",Me),P.reportProgress&&(j.addEventListener("progress",Be),null!==me&&j.upload&&j.upload.addEventListener("progress",nt)),j.send(me),pe.next({type:Xe.Sent}),()=>{j.removeEventListener("error",Me),j.removeEventListener("abort",Me),j.removeEventListener("load",Le),j.removeEventListener("timeout",Me),P.reportProgress&&(j.removeEventListener("progress",Be),null!==me&&j.upload&&j.upload.removeEventListener("progress",nt)),j.readyState!==j.DONE&&j.abort()}})}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(a.JF))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();const Zt=new s.OlP("XSRF_COOKIE_NAME"),mn=new s.OlP("XSRF_HEADER_NAME");class gn{}let Ut=(()=>{class x{constructor(P,pe,j){this.doc=P,this.platform=pe,this.cookieName=j,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const P=this.doc.cookie||"";return P!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,a.Mx)(P,this.cookieName),this.lastCookieString=P),this.lastToken}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(a.K0),s.LFG(s.Lbi),s.LFG(Zt))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),un=(()=>{class x{constructor(P,pe){this.tokenService=P,this.headerName=pe}intercept(P,pe){const j=P.url.toLowerCase();if("GET"===P.method||"HEAD"===P.method||j.startsWith("http://")||j.startsWith("https://"))return pe.handle(P);const me=this.tokenService.getToken();return null!==me&&!P.headers.has(this.headerName)&&(P=P.clone({headers:P.headers.set(this.headerName,me)})),pe.handle(P)}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(gn),s.LFG(mn))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),_n=(()=>{class x{constructor(P,pe){this.backend=P,this.injector=pe,this.chain=null}handle(P){if(null===this.chain){const pe=this.injector.get(je,[]);this.chain=pe.reduceRight((j,me)=>new Ue(j,me),this.backend)}return this.chain.handle(P)}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(R),s.LFG(s.zs3))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),Sn=(()=>{class x{static disable(){return{ngModule:x,providers:[{provide:un,useClass:tt}]}}static withOptions(P={}){return{ngModule:x,providers:[P.cookieName?{provide:Zt,useValue:P.cookieName}:[],P.headerName?{provide:mn,useValue:P.headerName}:[]]}}}return x.\u0275fac=function(P){return new(P||x)},x.\u0275mod=s.oAB({type:x}),x.\u0275inj=s.cJS({providers:[un,{provide:je,useExisting:un,multi:!0},{provide:gn,useClass:Ut},{provide:Zt,useValue:"XSRF-TOKEN"},{provide:mn,useValue:"X-XSRF-TOKEN"}]}),x})(),cn=(()=>{class x{}return x.\u0275fac=function(P){return new(P||x)},x.\u0275mod=s.oAB({type:x}),x.\u0275inj=s.cJS({providers:[ie,{provide:I,useClass:_n},Et,{provide:R,useExisting:Et}],imports:[[Sn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),x})()},5e3:(yt,be,p)=>{p.d(be,{deG:()=>b2,tb:()=>Mh,AFp:()=>yh,ip1:()=>X4,CZH:()=>ks,hGG:()=>tp,z2F:()=>Ma,sBO:()=>O9,Sil:()=>t2,_Vd:()=>pa,EJc:()=>wh,SBq:()=>ma,qLn:()=>gs,vpe:()=>rr,tBr:()=>hs,XFs:()=>Dt,OlP:()=>li,zs3:()=>fo,ZZ4:()=>J1,aQg:()=>X1,soG:()=>Q1,YKP:()=>zu,h0i:()=>Ps,PXZ:()=>w9,R0b:()=>mo,FiY:()=>_r,Lbi:()=>Ch,g9A:()=>_h,Qsj:()=>uf,FYo:()=>bu,JOm:()=>jo,q3G:()=>mi,tp0:()=>Ar,Rgc:()=>_a,dDg:()=>zh,DyG:()=>Ys,GfV:()=>wu,s_b:()=>W1,ifc:()=>me,eFA:()=>xh,G48:()=>P9,Gpc:()=>B,f3M:()=>V2,X6Q:()=>x9,_c5:()=>K9,VLi:()=>C9,c2e:()=>bh,zSh:()=>E1,wAp:()=>an,vHH:()=>Fe,EiD:()=>Ec,mCW:()=>fs,qzn:()=>Ir,JVY:()=>t3,pB0:()=>r3,eBb:()=>vc,L6k:()=>n3,LAX:()=>o3,cg1:()=>P4,kL8:()=>W0,yhl:()=>gc,dqk:()=>V,sIi:()=>bs,CqO:()=>X6,QGY:()=>y4,F4k:()=>J6,dwT:()=>i7,RDi:()=>Jo,AaK:()=>I,z3N:()=>er,qOj:()=>O1,TTD:()=>oi,_Bn:()=>_u,xp6:()=>ll,uIk:()=>F1,Tol:()=>C0,Gre:()=>I0,ekj:()=>E4,Suo:()=>Qu,Xpm:()=>Qt,lG2:()=>we,Yz7:()=>_t,cJS:()=>St,oAB:()=>jn,Yjl:()=>ae,Y36:()=>ca,_UZ:()=>Z6,GkF:()=>Q6,BQk:()=>v4,ynx:()=>g4,qZA:()=>m4,TgZ:()=>p4,EpF:()=>q6,n5z:()=>lo,LFG:()=>zi,$8M:()=>uo,$Z:()=>K6,NdJ:()=>_4,CRH:()=>qu,O4$:()=>pi,oxw:()=>n0,ALo:()=>Nu,lcZ:()=>Ru,xi3:()=>Bu,Dn7:()=>Yu,Hsn:()=>r0,F$t:()=>o0,Q6J:()=>d4,s9C:()=>b4,MGl:()=>V1,hYB:()=>w4,DdM:()=>Pu,VKq:()=>Ou,WLB:()=>Au,l5B:()=>ku,iGM:()=>Ku,MAs:()=>L6,CHM:()=>c,oJD:()=>zc,LSH:()=>Ha,kYT:()=>qt,Udp:()=>D4,WFA:()=>C4,d8E:()=>x4,YNc:()=>V6,W1O:()=>th,_uU:()=>S0,Oqu:()=>S4,hij:()=>H1,AsE:()=>T4,Gf:()=>Zu});var a=p(8929),s=p(2654),G=p(6498),oe=p(6787),q=p(8117);function _(e){for(let t in e)if(e[t]===_)return t;throw Error("Could not find renamed property on target object.")}function W(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function I(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(I).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function R(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const H=_({__forward_ref__:_});function B(e){return e.__forward_ref__=B,e.toString=function(){return I(this())},e}function ee(e){return ye(e)?e():e}function ye(e){return"function"==typeof e&&e.hasOwnProperty(H)&&e.__forward_ref__===B}class Fe extends Error{constructor(t,n){super(function ze(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function _e(e){return"string"==typeof e?e:null==e?"":String(e)}function vt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():_e(e)}function Ie(e,t){const n=t?` in ${t}`:"";throw new Fe(-201,`No provider for ${vt(e)} found${n}`)}function ke(e,t){null==e&&function ve(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function _t(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function St(e){return{providers:e.providers||[],imports:e.imports||[]}}function ot(e){return Et(e,Ut)||Et(e,_n)}function Et(e,t){return e.hasOwnProperty(t)?e[t]:null}function gn(e){return e&&(e.hasOwnProperty(un)||e.hasOwnProperty(Cn))?e[un]:null}const Ut=_({\u0275prov:_}),un=_({\u0275inj:_}),_n=_({ngInjectableDef:_}),Cn=_({ngInjectorDef:_});var Dt=(()=>((Dt=Dt||{})[Dt.Default=0]="Default",Dt[Dt.Host=1]="Host",Dt[Dt.Self=2]="Self",Dt[Dt.SkipSelf=4]="SkipSelf",Dt[Dt.Optional=8]="Optional",Dt))();let Sn;function Mn(e){const t=Sn;return Sn=e,t}function qe(e,t,n){const i=ot(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Dt.Optional?null:void 0!==t?t:void Ie(I(e),"Injector")}function z(e){return{toString:e}.toString()}var P=(()=>((P=P||{})[P.OnPush=0]="OnPush",P[P.Default=1]="Default",P))(),me=(()=>{return(e=me||(me={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",me;var e})();const He="undefined"!=typeof globalThis&&globalThis,Ge="undefined"!=typeof window&&window,Le="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,V=He||"undefined"!=typeof global&&global||Ge||Le,ce={},Ne=[],L=_({\u0275cmp:_}),E=_({\u0275dir:_}),$=_({\u0275pipe:_}),ue=_({\u0275mod:_}),Ae=_({\u0275fac:_}),wt=_({__NG_ELEMENT_ID__:_});let At=0;function Qt(e){return z(()=>{const n={},i={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:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===P.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ne,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||me.Emulated,id:"c",styles:e.styles||Ne,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,r=e.features,u=e.pipes;return i.id+=At++,i.inputs=Re(e.inputs,n),i.outputs=Re(e.outputs),r&&r.forEach(f=>f(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(Vn):null,i.pipeDefs=u?()=>("function"==typeof u?u():u).map(An):null,i})}function Vn(e){return Ve(e)||function ht(e){return e[E]||null}(e)}function An(e){return function It(e){return e[$]||null}(e)}const ri={};function jn(e){return z(()=>{const t={type:e.type,bootstrap:e.bootstrap||Ne,declarations:e.declarations||Ne,imports:e.imports||Ne,exports:e.exports||Ne,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ri[e.id]=e.type),t})}function qt(e,t){return z(()=>{const n=jt(e,!0);n.declarations=t.declarations||Ne,n.imports=t.imports||Ne,n.exports=t.exports||Ne})}function Re(e,t){if(null==e)return ce;const n={};for(const i in e)if(e.hasOwnProperty(i)){let o=e[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),n[o]=i,t&&(t[o]=r)}return n}const we=Qt;function ae(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ve(e){return e[L]||null}function jt(e,t){const n=e[ue]||null;if(!n&&!0===t)throw new Error(`Type ${I(e)} does not have '\u0275mod' property.`);return n}const k=19;function Ot(e){return Array.isArray(e)&&"object"==typeof e[1]}function Vt(e){return Array.isArray(e)&&!0===e[1]}function hn(e){return 0!=(8&e.flags)}function ni(e){return 2==(2&e.flags)}function ai(e){return 1==(1&e.flags)}function kn(e){return null!==e.template}function bi(e){return 0!=(512&e[2])}function Ti(e,t){return e.hasOwnProperty(Ae)?e[Ae]:null}class ro{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function oi(){return Zi}function Zi(e){return e.type.prototype.ngOnChanges&&(e.setInput=bo),Di}function Di(){const e=Lo(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===ce)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function bo(e,t,n,i){const o=Lo(e)||function wo(e,t){return e[Vo]=t}(e,{previous:ce,current:null}),r=o.current||(o.current={}),u=o.previous,f=this.declaredInputs[n],v=u[f];r[f]=new ro(v&&v.currentValue,t,u===ce),e[i]=t}oi.ngInherit=!0;const Vo="__ngSimpleChanges__";function Lo(e){return e[Vo]||null}const Ei="http://www.w3.org/2000/svg";let Do;function Jo(e){Do=e}function Qi(){return void 0!==Do?Do:"undefined"!=typeof document?document:void 0}function Bn(e){return!!e.listen}const Pi={createRenderer:(e,t)=>Qi()};function Wn(e){for(;Array.isArray(e);)e=e[0];return e}function w(e,t){return Wn(t[e])}function Q(e,t){return Wn(t[e.index])}function ct(e,t){return e.data[t]}function Mt(e,t){return e[t]}function kt(e,t){const n=t[e];return Ot(n)?n:n[0]}function Fn(e){return 4==(4&e[2])}function Tn(e){return 128==(128&e[2])}function dn(e,t){return null==t?null:e[t]}function Yn(e){e[18]=0}function On(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const Yt={lFrame:ao(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function U(){return Yt.bindingsEnabled}function lt(){return Yt.lFrame.lView}function O(){return Yt.lFrame.tView}function c(e){return Yt.lFrame.contextLView=e,e[8]}function l(){let e=g();for(;null!==e&&64===e.type;)e=e.parent;return e}function g(){return Yt.lFrame.currentTNode}function ne(e,t){const n=Yt.lFrame;n.currentTNode=e,n.isParent=t}function ge(){return Yt.lFrame.isParent}function Ce(){Yt.lFrame.isParent=!1}function Pt(){return Yt.isInCheckNoChangesMode}function Bt(e){Yt.isInCheckNoChangesMode=e}function Gt(){const e=Yt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Jt(){return Yt.lFrame.bindingIndex++}function pn(e){const t=Yt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function _i(e,t){const n=Yt.lFrame;n.bindingIndex=n.bindingRootIndex=e,qi(t)}function qi(e){Yt.lFrame.currentDirectiveIndex=e}function Oi(e){const t=Yt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function fi(){return Yt.lFrame.currentQueryIndex}function Bi(e){Yt.lFrame.currentQueryIndex=e}function Yi(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Li(e,t,n){if(n&Dt.SkipSelf){let o=t,r=e;for(;!(o=o.parent,null!==o||n&Dt.Host||(o=Yi(r),null===o||(r=r[15],10&o.type))););if(null===o)return!1;t=o,e=r}const i=Yt.lFrame=zo();return i.currentTNode=t,i.lView=e,!0}function Ho(e){const t=zo(),n=e[1];Yt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function zo(){const e=Yt.lFrame,t=null===e?null:e.child;return null===t?ao(e):t}function ao(e){const 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 fr(){const e=Yt.lFrame;return Yt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const pr=fr;function Rt(){const e=fr();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 sn(){return Yt.lFrame.selectedIndex}function Gn(e){Yt.lFrame.selectedIndex=e}function xn(){const e=Yt.lFrame;return ct(e.tView,e.selectedIndex)}function pi(){Yt.lFrame.currentNamespace=Ei}function Hi(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[v]<0&&(e[18]+=65536),(f>11>16&&(3&e[2])===t){e[2]+=2048;try{r.call(f)}finally{}}}else try{r.call(f)}finally{}}class No{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function is(e,t,n){const i=Bn(e);let o=0;for(;ot){u=r-1;break}}}for(;r>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let yr=!0;function Tr(e){const t=yr;return yr=e,t}let Ea=0;function ur(e,t){const n=Rs(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,os(i.data,e),os(t,null),os(i.blueprint,null));const o=m(e,t),r=e.injectorIndex;if(Hs(o)){const u=cr(o),f=lr(o,t),v=f[1].data;for(let T=0;T<8;T++)t[r+T]=f[u+T]|v[u+T]}return t[r+8]=o,r}function os(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Rs(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function m(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,o=t;for(;null!==o;){const r=o[1],u=r.type;if(i=2===u?r.declTNode:1===u?o[6]:null,null===i)return-1;if(n++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function d(e,t,n){!function za(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(wt)&&(i=n[wt]),null==i&&(i=n[wt]=Ea++);const o=255&i;t.data[e+(o>>5)]|=1<=0?255&t:Oe:t}(n);if("function"==typeof r){if(!Li(t,e,i))return i&Dt.Host?M(o,n,i):S(t,n,i,o);try{const u=r(i);if(null!=u||i&Dt.Optional)return u;Ie(n)}finally{pr()}}else if("number"==typeof r){let u=null,f=Rs(e,t),v=-1,T=i&Dt.Host?t[16][6]:null;for((-1===f||i&Dt.SkipSelf)&&(v=-1===f?m(e,t):t[f+8],-1!==v&&Hn(i,!1)?(u=t[1],f=cr(v),t=lr(v,t)):f=-1);-1!==f;){const N=t[1];if(In(r,f,N.data)){const re=pt(f,t,n,u,i,T);if(re!==de)return re}v=t[f+8],-1!==v&&Hn(i,t[1].data[f+8]===T)&&In(r,f,t)?(u=N,f=cr(v),t=lr(v,t)):f=-1}}}return S(t,n,i,o)}const de={};function Oe(){return new co(l(),lt())}function pt(e,t,n,i,o,r){const u=t[1],f=u.data[e+8],N=Ht(f,u,n,null==i?ni(f)&&yr:i!=u&&0!=(3&f.type),o&Dt.Host&&r===f);return null!==N?wn(t,u,N,f):de}function Ht(e,t,n,i,o){const r=e.providerIndexes,u=t.data,f=1048575&r,v=e.directiveStart,N=r>>20,Pe=o?f+N:e.directiveEnd;for(let We=i?f:f+N;We=v&>.type===n)return We}if(o){const We=u[v];if(We&&kn(We)&&We.type===n)return v}return null}function wn(e,t,n,i){let o=e[n];const r=t.data;if(function ar(e){return e instanceof No}(o)){const u=o;u.resolving&&function Je(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Fe(-200,`Circular dependency in DI detected for ${e}${n}`)}(vt(r[n]));const f=Tr(u.canSeeViewProviders);u.resolving=!0;const v=u.injectImpl?Mn(u.injectImpl):null;Li(e,i,Dt.Default);try{o=e[n]=u.factory(void 0,r,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Ci(e,t,n){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=t.type.prototype;if(i){const u=Zi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r))}(n,r[n],t)}finally{null!==v&&Mn(v),Tr(f),u.resolving=!1,pr()}}return o}function In(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[Ae]||Ui(t),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const r=o[Ae]||Ui(o);if(r&&r!==n)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Ui(e){return ye(e)?()=>{const t=Ui(ee(e));return t&&t()}:Ti(e)}function uo(e){return function h(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let o=0;for(;o{const i=function Sa(e){return function(...n){if(e){const i=e(...n);for(const o in i)this[o]=i[o]}}}(t);function o(...r){if(this instanceof o)return i.apply(this,r),this;const u=new o(...r);return f.annotation=u,f;function f(v,T,N){const re=v.hasOwnProperty(Ai)?v[Ai]:Object.defineProperty(v,Ai,{value:[]})[Ai];for(;re.length<=N;)re.push(null);return(re[N]=re[N]||[]).push(u),v}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class li{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=_t({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const b2=new li("AnalyzeForEntryComponents"),Ys=Function;function ho(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?To(n,t):t(n))}function tc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function js(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function as(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function E2(e,t,n,i){let o=e.length;if(o==t)e.push(n,i);else if(1===o)e.push(i,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Ta(e,t){const n=Or(e,t);if(n>=0)return e[1|n]}function Or(e,t){return function oc(e,t,n){let i=0,o=e.length>>n;for(;o!==i;){const r=i+(o-i>>1),u=e[r<t?o=r:i=r+1}return~(o<({token:e})),-1),_r=us(Pr("Optional"),8),Ar=us(Pr("SkipSelf"),4);let Ks,Zs;function Fr(e){var t;return(null===(t=function Aa(){if(void 0===Ks&&(Ks=null,V.trustedTypes))try{Ks=V.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Ks}())||void 0===t?void 0:t.createHTML(e))||e}function fc(e){var t;return(null===(t=function ka(){if(void 0===Zs&&(Zs=null,V.trustedTypes))try{Zs=V.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Zs}())||void 0===t?void 0:t.createHTML(e))||e}class Cr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Q2 extends Cr{getTypeName(){return"HTML"}}class q2 extends Cr{getTypeName(){return"Style"}}class J2 extends Cr{getTypeName(){return"Script"}}class X2 extends Cr{getTypeName(){return"URL"}}class e3 extends Cr{getTypeName(){return"ResourceURL"}}function er(e){return e instanceof Cr?e.changingThisBreaksApplicationSecurity:e}function Ir(e,t){const n=gc(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function gc(e){return e instanceof Cr&&e.getTypeName()||null}function t3(e){return new Q2(e)}function n3(e){return new q2(e)}function vc(e){return new J2(e)}function o3(e){return new X2(e)}function r3(e){return new e3(e)}class s3{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Fr(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class a3{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Fr(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=Fr(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let o=n.length-1;0fs(t.trim())).join(", ")),this.buf.push(" ",u,'="',Dc(v),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Fa.hasOwnProperty(n)&&!Cc.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Dc(t))}checkClobberedElement(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: ${t.outerHTML}`);return n}}const f3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p3=/([^\#-~ |!])/g;function Dc(e){return e.replace(/&/g,"&").replace(f3,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(p3,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Qs;function Ec(e,t){let n=null;try{Qs=Qs||function yc(e){const t=new a3(e);return function c3(){try{return!!(new window.DOMParser).parseFromString(Fr(""),"text/html")}catch(e){return!1}}()?new s3(t):t}(e);let i=t?String(t):"";n=Qs.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=n.innerHTML,n=Qs.getInertBodyElement(i)}while(i!==r);return Fr((new d3).sanitizeChildren(La(n)||n))}finally{if(n){const i=La(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function La(e){return"content"in e&&function m3(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var mi=(()=>((mi=mi||{})[mi.NONE=0]="NONE",mi[mi.HTML=1]="HTML",mi[mi.STYLE=2]="STYLE",mi[mi.SCRIPT=3]="SCRIPT",mi[mi.URL=4]="URL",mi[mi.RESOURCE_URL=5]="RESOURCE_URL",mi))();function zc(e){const t=ps();return t?fc(t.sanitize(mi.HTML,e)||""):Ir(e,"HTML")?fc(er(e)):Ec(Qi(),_e(e))}function Ha(e){const t=ps();return t?t.sanitize(mi.URL,e)||"":Ir(e,"URL")?er(e):fs(_e(e))}function ps(){const e=lt();return e&&e[12]}const Pc="__ngContext__";function ki(e,t){e[Pc]=t}function Ra(e){const t=function ms(e){return e[Pc]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function qs(e){return e.ngOriginalError}function T3(e,...t){e.error(...t)}class gs{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=function S3(e){return e&&e.ngErrorLogger||T3}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&qs(t);for(;n&&qs(n);)n=qs(n);return n||null}}const Lc=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(V))();function Yo(e){return e instanceof Function?e():e}var jo=(()=>((jo=jo||{})[jo.Important=1]="Important",jo[jo.DashCase=2]="DashCase",jo))();function ja(e,t){return undefined(e,t)}function vs(e){const t=e[3];return Vt(t)?t[3]:t}function Ua(e){return Yc(e[13])}function $a(e){return Yc(e[4])}function Yc(e){for(;null!==e&&!Vt(e);)e=e[4];return e}function Hr(e,t,n,i,o){if(null!=i){let r,u=!1;Vt(i)?r=i:Ot(i)&&(u=!0,i=i[0]);const f=Wn(i);0===e&&null!==n?null==o?Kc(t,n,f):Mr(t,n,f,o||null,!0):1===e&&null!==n?Mr(t,n,f,o||null,!0):2===e?function nl(e,t,n){const i=Js(e,t);i&&function q3(e,t,n,i){Bn(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,f,u):3===e&&t.destroyNode(f),null!=r&&function X3(e,t,n,i,o){const r=n[7];r!==Wn(n)&&Hr(t,e,i,r,o);for(let f=10;f0&&(e[n-1][4]=i[4]);const r=js(e,10+t);!function j3(e,t){ys(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const u=r[k];null!==u&&u.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function $c(e,t){if(!(256&t[2])){const n=t[11];Bn(n)&&n.destroyNode&&ys(e,t,n,3,null,null),function W3(e){let t=e[13];if(!t)return Za(e[1],e);for(;t;){let n=null;if(Ot(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Ot(t)&&Za(t[1],t),t=t[3];null===t&&(t=e),Ot(t)&&Za(t[1],t),n=t&&t[4]}t=n}}(t)}}function Za(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function Q3(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[o=T]():i[o=-T].unsubscribe(),r+=2}else{const u=i[o=n[r+1]];n[r].call(u)}if(null!==i){for(let r=o+1;rr?"":o[re+1].toLowerCase();const We=8&i?Pe:null;if(We&&-1!==rl(We,T,0)||2&i&&T!==Pe){if(xo(i))return!1;u=!0}}}}else{if(!u&&!xo(i)&&!xo(v))return!1;if(u&&xo(v))continue;u=!1,i=v|1&i}}return xo(i)||u}function xo(e){return 0==(1&e)}function o8(e,t,n,i){if(null===t)return-1;let o=0;if(i||!n){let r=!1;for(;o-1)for(n++;n0?'="'+f+'"':"")+"]"}else 8&i?o+="."+u:4&i&&(o+=" "+u);else""!==o&&!xo(u)&&(t+=e1(r,o),o=""),i=u,r=r||!xo(i);n++}return""!==o&&(t+=e1(r,o)),t}const yn={};function ll(e){ul(O(),lt(),sn()+e,Pt())}function ul(e,t,n,i){if(!i)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&Ni(t,r,n)}else{const r=e.preOrderHooks;null!==r&&ji(t,r,0,n)}Gn(n)}function ta(e,t){return e<<17|t<<2}function Po(e){return e>>17&32767}function t1(e){return 2|e}function tr(e){return(131068&e)>>2}function n1(e,t){return-131069&e|t<<2}function o1(e){return 1|e}function bl(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i20&&ul(e,t,20,Pt()),n(i,o)}finally{Gn(r)}}function Dl(e,t,n){if(hn(t)){const o=t.directiveEnd;for(let r=t.directiveStart;r0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(f)!=v&&f.push(v),f.push(i,o,u)}}function Al(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function v1(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function H8(e,t,n){if(n){if(t.exportAs)for(let i=0;i0&&_1(n)}}function _1(e){for(let i=Ua(e);null!==i;i=$a(i))for(let o=10;o0&&_1(r)}const n=e[1].components;if(null!==n)for(let i=0;i0&&_1(o)}}function U8(e,t){const n=kt(t,e),i=n[1];(function $8(e,t){for(let n=t.length;nPromise.resolve(null))();function Hl(e){return e[7]||(e[7]=[])}function Nl(e){return e.cleanup||(e.cleanup=[])}function Rl(e,t,n){return(null===e||kn(e))&&(n=function b(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Bl(e,t){const n=e[9],i=n?n.get(gs,null):null;i&&i.handleError(t)}function Yl(e,t,n,i,o){for(let r=0;rthis.processProvider(f,t,n)),To([t],f=>this.processInjectorType(f,[],r)),this.records.set(D1,jr(void 0,this));const u=this.records.get(E1);this.scope=null!=u?u.value:null,this.source=o||("object"==typeof t?null:I(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,n=cs,i=Dt.Default){this.assertNotDestroyed();const o=ac(this),r=Mn(void 0);try{if(!(i&Dt.SkipSelf)){let f=this.records.get(t);if(void 0===f){const v=function a6(e){return"function"==typeof e||"object"==typeof e&&e instanceof li}(t)&&ot(t);f=v&&this.injectableDefInScope(v)?jr(S1(t),Ms):null,this.records.set(t,f)}if(null!=f)return this.hydrate(t,f)}return(i&Dt.Self?Ul():this.parent).get(t,n=i&Dt.Optional&&n===cs?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[Ws]=u[Ws]||[]).unshift(I(t)),o)throw u;return function H2(e,t,n,i){const o=e[Ws];throw t[sc]&&o.unshift(t[sc]),e.message=function N2(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=I(t);if(Array.isArray(t))o=t.map(I).join(" -> ");else if("object"==typeof t){let r=[];for(let u in t)if(t.hasOwnProperty(u)){let f=t[u];r.push(u+":"+("string"==typeof f?JSON.stringify(f):I(f)))}o=`{${r.join(", ")}}`}return`${n}${i?"("+i+")":""}[${o}]: ${e.replace(A2,"\n ")}`}("\n"+e.message,o,n,i),e.ngTokenPath=o,e[Ws]=null,e}(u,t,"R3InjectorError",this.source)}throw u}finally{Mn(r),ac(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,o)=>t.push(I(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Fe(205,"")}processInjectorType(t,n,i){if(!(t=ee(t)))return!1;let o=gn(t);const r=null==o&&t.ngModule||void 0,u=void 0===r?t:r,f=-1!==i.indexOf(u);if(void 0!==r&&(o=gn(r)),null==o)return!1;if(null!=o.imports&&!f){let N;i.push(u);try{To(o.imports,re=>{this.processInjectorType(re,n,i)&&(void 0===N&&(N=[]),N.push(re))})}finally{}if(void 0!==N)for(let re=0;rethis.processProvider(gt,Pe,We||Ne))}}this.injectorDefTypes.add(u);const v=Ti(u)||(()=>new u);this.records.set(u,jr(v,Ms));const T=o.providers;if(null!=T&&!f){const N=t;To(T,re=>this.processProvider(re,N,T))}return void 0!==r&&void 0!==t.providers}processProvider(t,n,i){let o=Ur(t=ee(t))?t:ee(t&&t.provide);const r=function t6(e,t,n){return Kl(e)?jr(void 0,e.useValue):jr(Gl(e),Ms)}(t);if(Ur(t)||!0!==t.multi)this.records.get(o);else{let u=this.records.get(o);u||(u=jr(void 0,Ms,!0),u.factory=()=>Pa(u.multi),this.records.set(o,u)),o=t,u.multi.push(t)}this.records.set(o,r)}hydrate(t,n){return n.value===Ms&&(n.value=J8,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Zl(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=ee(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function S1(e){const t=ot(e),n=null!==t?t.factory:Ti(e);if(null!==n)return n;if(e instanceof li)throw new Fe(204,"");if(e instanceof Function)return function e6(e){const t=e.length;if(t>0)throw as(t,"?"),new Fe(204,"");const n=function Zt(e){const t=e&&(e[Ut]||e[_n]);if(t){const n=function mn(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);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.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Fe(204,"")}function Gl(e,t,n){let i;if(Ur(e)){const o=ee(e);return Ti(o)||S1(o)}if(Kl(e))i=()=>ee(e.useValue);else if(function o6(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Pa(e.deps||[]));else if(function n6(e){return!(!e||!e.useExisting)}(e))i=()=>zi(ee(e.useExisting));else{const o=ee(e&&(e.useClass||e.provide));if(!function s6(e){return!!e.deps}(e))return Ti(o)||S1(o);i=()=>new o(...Pa(e.deps))}return i}function jr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Kl(e){return null!==e&&"object"==typeof e&&F2 in e}function Ur(e){return"function"==typeof e}let fo=(()=>{class e{static create(n,i){var o;if(Array.isArray(n))return $l({name:""},i,n,"");{const r=null!==(o=n.name)&&void 0!==o?o:"";return $l({name:r},n.parent,n.providers,r)}}}return e.THROW_IF_NOT_FOUND=cs,e.NULL=new jl,e.\u0275prov=_t({token:e,providedIn:"any",factory:()=>zi(D1)}),e.__NG_ELEMENT_ID__=-1,e})();function g6(e,t){Hi(Ra(e)[1],l())}function O1(e){let t=function a4(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let o;if(kn(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Fe(903,"");o=t.\u0275dir}if(o){if(n){i.push(o);const u=e;u.inputs=A1(e.inputs),u.declaredInputs=A1(e.declaredInputs),u.outputs=A1(e.outputs);const f=o.hostBindings;f&&C6(e,f);const v=o.viewQuery,T=o.contentQueries;if(v&&y6(e,v),T&&_6(e,T),W(e.inputs,o.inputs),W(e.declaredInputs,o.declaredInputs),W(e.outputs,o.outputs),kn(o)&&o.data.animation){const N=e.data;N.animation=(N.animation||[]).concat(o.data.animation)}}const r=o.features;if(r)for(let u=0;u=0;i--){const o=e[i];o.hostVars=t+=o.hostVars,o.hostAttrs=Sr(o.hostAttrs,n=Sr(n,o.hostAttrs))}}(i)}function A1(e){return e===ce?{}:e===Ne?[]:e}function y6(e,t){const n=e.viewQuery;e.viewQuery=n?(i,o)=>{t(i,o),n(i,o)}:t}function _6(e,t){const n=e.contentQueries;e.contentQueries=n?(i,o,r)=>{t(i,o,r),n(i,o,r)}:t}function C6(e,t){const n=e.hostBindings;e.hostBindings=n?(i,o)=>{t(i,o),n(i,o)}:t}let sa=null;function $r(){if(!sa){const e=V.Symbol;if(e&&e.iterator)sa=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;nf(Wn(zn[i.index])):i.index;if(Bn(n)){let zn=null;if(!f&&v&&(zn=function _5(e,t,n,i){const o=e.cleanup;if(null!=o)for(let r=0;rv?f[v]:null}"string"==typeof u&&(r+=2)}return null}(e,t,o,i.index)),null!==zn)(zn.__ngLastListenerFn__||zn).__ngNextListenerFn__=r,zn.__ngLastListenerFn__=r,We=!1;else{r=M4(i,t,re,r,!1);const Kn=n.listen($t,o,r);Pe.push(r,Kn),N&&N.push(o,nn,bt,bt+1)}}else r=M4(i,t,re,r,!0),$t.addEventListener(o,r,u),Pe.push(r),N&&N.push(o,nn,bt,u)}else r=M4(i,t,re,r,!1);const gt=i.outputs;let xt;if(We&&null!==gt&&(xt=gt[o])){const Ft=xt.length;if(Ft)for(let $t=0;$t0;)t=t[15],e--;return t}(e,Yt.lFrame.contextLView))[8]}(e)}function C5(e,t){let n=null;const i=function r8(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let o=0;o=0}const Si={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function p0(e){return e.substring(Si.key,Si.keyEnd)}function m0(e,t){const n=Si.textEnd;return n===t?-1:(t=Si.keyEnd=function S5(e,t,n){for(;t32;)t++;return t}(e,Si.key=t,n),zs(e,t,n))}function zs(e,t,n){for(;t=0;n=m0(t,n))to(e,p0(t),!0)}function Wo(e,t,n,i){const o=lt(),r=O(),u=pn(2);r.firstUpdatePass&&b0(r,e,u,i),t!==yn&&Fi(o,u,t)&&D0(r,r.data[sn()],o,o[11],e,o[u+1]=function L5(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=I(er(e)))),e}(t,n),i,u)}function Go(e,t,n,i){const o=O(),r=pn(2);o.firstUpdatePass&&b0(o,null,r,i);const u=lt();if(n!==yn&&Fi(u,r,n)){const f=o.data[sn()];if(z0(f,i)&&!M0(o,r)){let v=i?f.classesWithoutHost:f.stylesWithoutHost;null!==v&&(n=R(v,n||"")),f4(o,f,u,n,i)}else!function V5(e,t,n,i,o,r,u,f){o===yn&&(o=Ne);let v=0,T=0,N=0=e.expandoStartIndex}function b0(e,t,n,i){const o=e.data;if(null===o[n+1]){const r=o[sn()],u=M0(e,n);z0(r,i)&&null===t&&!u&&(t=!1),t=function O5(e,t,n,i){const o=Oi(e);let r=i?t.residualClasses:t.residualStyles;if(null===o)0===(i?t.classBindings:t.styleBindings)&&(n=la(n=z4(null,e,t,n,i),t.attrs,i),r=null);else{const u=t.directiveStylingLast;if(-1===u||e[u]!==o)if(n=z4(o,e,t,n,i),null===r){let v=function A5(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==tr(i))return e[Po(i)]}(e,t,i);void 0!==v&&Array.isArray(v)&&(v=z4(null,e,t,v[1],i),v=la(v,t.attrs,i),function k5(e,t,n,i){e[Po(n?t.classBindings:t.styleBindings)]=i}(e,t,i,v))}else r=function F5(e,t,n){let i;const o=t.directiveEnd;for(let r=1+t.directiveStylingLast;r0)&&(T=!0)}else N=n;if(o)if(0!==v){const Pe=Po(e[f+1]);e[i+1]=ta(Pe,f),0!==Pe&&(e[Pe+1]=n1(e[Pe+1],i)),e[f+1]=function d8(e,t){return 131071&e|t<<17}(e[f+1],i)}else e[i+1]=ta(f,0),0!==f&&(e[f+1]=n1(e[f+1],i)),f=i;else e[i+1]=ta(v,0),0===f?f=i:e[v+1]=n1(e[v+1],i),v=i;T&&(e[i+1]=t1(e[i+1])),f0(e,N,i,!0),f0(e,N,i,!1),function b5(e,t,n,i,o){const r=o?e.residualClasses:e.residualStyles;null!=r&&"string"==typeof t&&Or(r,t)>=0&&(n[i+1]=o1(n[i+1]))}(t,N,e,i,r),u=ta(f,v),r?t.classBindings=u:t.styleBindings=u}(o,r,t,n,u,i)}}function z4(e,t,n,i,o){let r=null;const u=n.directiveEnd;let f=n.directiveStylingLast;for(-1===f?f=n.directiveStart:f++;f0;){const v=e[o],T=Array.isArray(v),N=T?v[1]:v,re=null===N;let Pe=n[o+1];Pe===yn&&(Pe=re?Ne:void 0);let We=re?Ta(Pe,i):N===i?Pe:void 0;if(T&&!L1(We)&&(We=Ta(v,i)),L1(We)&&(f=We,u))return f;const gt=e[o+1];o=u?Po(gt):tr(gt)}if(null!==t){let v=r?t.residualClasses:t.residualStyles;null!=v&&(f=Ta(v,i))}return f}function L1(e){return void 0!==e}function z0(e,t){return 0!=(e.flags&(t?16:32))}function S0(e,t=""){const n=lt(),i=O(),o=e+20,r=i.firstCreatePass?Rr(i,o,1,t,null):i.data[o],u=n[o]=function Wa(e,t){return Bn(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Xs(i,n,u,r),ne(r,!1)}function S4(e){return H1("",e,""),S4}function H1(e,t,n){const i=lt(),o=Wr(i,e,t,n);return o!==yn&&nr(i,sn(),o),H1}function T4(e,t,n,i,o){const r=lt(),u=Gr(r,e,t,n,i,o);return u!==yn&&nr(r,sn(),u),T4}function I0(e,t,n){Go(to,or,Wr(lt(),e,t,n),!0)}function x4(e,t,n){const i=lt();if(Fi(i,Jt(),t)){const r=O(),u=xn();no(r,u,i,e,t,Rl(Oi(r.data),u,i),n,!0)}return x4}const Jr=void 0;var n7=["en",[["a","p"],["AM","PM"],Jr],[["AM","PM"],Jr,Jr],[["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"]],Jr,[["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"]],Jr,[["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}",Jr,"{1} 'at' {0}",Jr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function t7(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let Ss={};function i7(e,t,n){"string"!=typeof t&&(n=t,t=e[an.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Ss[t]=e,n&&(Ss[t][an.ExtraData]=n)}function P4(e){const t=function o7(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=G0(t);if(n)return n;const i=t.split("-")[0];if(n=G0(i),n)return n;if("en"===i)return n7;throw new Error(`Missing locale data for the locale "${e}".`)}function W0(e){return P4(e)[an.PluralCase]}function G0(e){return e in Ss||(Ss[e]=V.ng&&V.ng.common&&V.ng.common.locales&&V.ng.common.locales[e]),Ss[e]}var an=(()=>((an=an||{})[an.LocaleId=0]="LocaleId",an[an.DayPeriodsFormat=1]="DayPeriodsFormat",an[an.DayPeriodsStandalone=2]="DayPeriodsStandalone",an[an.DaysFormat=3]="DaysFormat",an[an.DaysStandalone=4]="DaysStandalone",an[an.MonthsFormat=5]="MonthsFormat",an[an.MonthsStandalone=6]="MonthsStandalone",an[an.Eras=7]="Eras",an[an.FirstDayOfWeek=8]="FirstDayOfWeek",an[an.WeekendRange=9]="WeekendRange",an[an.DateFormat=10]="DateFormat",an[an.TimeFormat=11]="TimeFormat",an[an.DateTimeFormat=12]="DateTimeFormat",an[an.NumberSymbols=13]="NumberSymbols",an[an.NumberFormats=14]="NumberFormats",an[an.CurrencyCode=15]="CurrencyCode",an[an.CurrencySymbol=16]="CurrencySymbol",an[an.CurrencyName=17]="CurrencyName",an[an.Currencies=18]="Currencies",an[an.Directionality=19]="Directionality",an[an.PluralCase=20]="PluralCase",an[an.ExtraData=21]="ExtraData",an))();const N1="en-US";let K0=N1;function k4(e,t,n,i,o){if(e=ee(e),Array.isArray(e))for(let r=0;r>20;if(Ur(e)||!e.multi){const We=new No(v,o,ca),gt=I4(f,t,o?N:N+Pe,re);-1===gt?(d(ur(T,u),r,f),F4(r,e,t.length),t.push(f),T.directiveStart++,T.directiveEnd++,o&&(T.providerIndexes+=1048576),n.push(We),u.push(We)):(n[gt]=We,u[gt]=We)}else{const We=I4(f,t,N+Pe,re),gt=I4(f,t,N,N+Pe),xt=We>=0&&n[We],Ft=gt>=0&&n[gt];if(o&&!Ft||!o&&!xt){d(ur(T,u),r,f);const $t=function nf(e,t,n,i,o){const r=new No(e,n,ca);return r.multi=[],r.index=t,r.componentProviders=0,yu(r,o,i&&!n),r}(o?tf:ef,n.length,o,i,v);!o&&Ft&&(n[gt].providerFactory=$t),F4(r,e,t.length,0),t.push(f),T.directiveStart++,T.directiveEnd++,o&&(T.providerIndexes+=1048576),n.push($t),u.push($t)}else F4(r,e,We>-1?We:gt,yu(n[o?gt:We],v,!o&&i));!o&&i&&Ft&&n[gt].componentProviders++}}}function F4(e,t,n,i){const o=Ur(t),r=function r6(e){return!!e.useClass}(t);if(o||r){const v=(r?ee(t.useClass):t).prototype.ngOnDestroy;if(v){const T=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const N=T.indexOf(n);-1===N?T.push(n,[i,v]):T[N+1].push(i,v)}else T.push(n,v)}}}function yu(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function I4(e,t,n,i){for(let o=n;o{n.providersResolver=(i,o)=>function X7(e,t,n){const i=O();if(i.firstCreatePass){const o=kn(e);k4(n,i.data,i.blueprint,o,!0),k4(t,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,t)}}class Cu{}class af{resolveComponentFactory(t){throw function sf(e){const t=Error(`No component factory found for ${I(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let pa=(()=>{class e{}return e.NULL=new af,e})();function cf(){return xs(l(),lt())}function xs(e,t){return new ma(Q(e,t))}let ma=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=cf,e})();function lf(e){return e instanceof ma?e.nativeElement:e}class bu{}let uf=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function df(){const e=lt(),n=kt(l().index,e);return function hf(e){return e[11]}(Ot(n)?n:e)}(),e})(),ff=(()=>{class e{}return e.\u0275prov=_t({token:e,providedIn:"root",factory:()=>null}),e})();class wu{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const pf=new wu("13.1.3"),L4={};function U1(e,t,n,i,o=!1){for(;null!==n;){const r=t[n.index];if(null!==r&&i.push(Wn(r)),Vt(r))for(let f=10;f-1&&(Ka(t,i),js(n,i))}this._attachedToViewContainer=!1}$c(this._lView[1],this._lView)}onDestroy(t){Tl(this._lView[1],this._lView,null,t)}markForCheck(){C1(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){b1(this._lView[1],this._lView,this.context)}checkNoChanges(){!function G8(e,t,n){Bt(!0);try{b1(e,t,n)}finally{Bt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Fe(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function $3(e,t){ys(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Fe(902,"");this._appRef=t}}class mf extends ga{constructor(t){super(t),this._view=t}detectChanges(){Ll(this._view)}checkNoChanges(){!function K8(e){Bt(!0);try{Ll(e)}finally{Bt(!1)}}(this._view)}get context(){return null}}class Du extends pa{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ve(t);return new H4(n,this.ngModule)}}function Eu(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const vf=new li("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Lc});class H4 extends Cu{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function u8(e){return e.map(l8).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Eu(this.componentDef.inputs)}get outputs(){return Eu(this.componentDef.outputs)}create(t,n,i,o){const r=(o=o||this.ngModule)?function yf(e,t){return{get:(n,i,o)=>{const r=e.get(n,L4,o);return r!==L4||i===L4?r:t.get(n,i,o)}}}(t,o.injector):t,u=r.get(bu,Pi),f=r.get(ff,null),v=u.createRenderer(null,this.componentDef),T=this.componentDef.selectors[0][0]||"div",N=i?function Sl(e,t,n){if(Bn(e))return e.selectRootElement(t,n===me.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(v,i,this.componentDef.encapsulation):Ga(u.createRenderer(null,this.componentDef),T,function gf(e){const t=e.toLowerCase();return"svg"===t?Ei:"math"===t?"http://www.w3.org/1998/MathML/":null}(T)),re=this.componentDef.onPush?576:528,Pe=function P1(e,t){return{components:[],scheduler:e||Lc,clean:Z8,playerHandler:t||null,flags:0}}(),We=oa(0,null,null,1,0,null,null,null,null,null),gt=Nr(null,We,Pe,re,null,null,u,v,f,r);let xt,Ft;Ho(gt);try{const $t=function r4(e,t,n,i,o,r){const u=n[1];n[20]=e;const v=Rr(u,20,2,"#host",null),T=v.mergedAttrs=t.hostAttrs;null!==T&&(Cs(v,T,!0),null!==e&&(is(o,e,T),null!==v.classes&&Xa(o,e,v.classes),null!==v.styles&&ol(o,e,v.styles)));const N=i.createRenderer(e,t),re=Nr(n,El(t),null,t.onPush?64:16,n[20],v,i,N,r||null,null);return u.firstCreatePass&&(d(ur(v,n),u,t.type),v1(u,v),kl(v,n.length,1)),ra(n,re),n[20]=re}(N,this.componentDef,gt,u,v);if(N)if(i)is(v,N,["ng-version",pf.full]);else{const{attrs:bt,classes:nn}=function h8(e){const t=[],n=[];let i=1,o=2;for(;i0&&Xa(v,N,nn.join(" "))}if(Ft=ct(We,20),void 0!==n){const bt=Ft.projection=[];for(let nn=0;nnv(u,t)),t.contentQueries){const v=l();t.contentQueries(1,u,v.directiveStart)}const f=l();return!r.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Gn(f.index),Ol(n[1],f,0,f.directiveStart,f.directiveEnd,t),Al(t,u)),u}($t,this.componentDef,gt,Pe,[g6]),_s(We,gt,null)}finally{Rt()}return new Cf(this.componentType,xt,xs(Ft,gt),gt,Ft)}}class Cf extends class rf{}{constructor(t,n,i,o,r){super(),this.location=i,this._rootLView=o,this._tNode=r,this.instance=n,this.hostView=this.changeDetectorRef=new mf(o),this.componentType=t}get injector(){return new co(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Ps{}class zu{}const Os=new Map;class xu extends Ps{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Du(this);const i=jt(t);this._bootstrapComponents=Yo(i.bootstrap),this._r3Injector=Wl(t,n,[{provide:Ps,useValue:this},{provide:pa,useValue:this.componentFactoryResolver}],I(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=fo.THROW_IF_NOT_FOUND,i=Dt.Default){return t===fo||t===Ps||t===D1?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class N4 extends zu{constructor(t){super(),this.moduleType=t,null!==jt(t)&&function bf(e){const t=new Set;!function n(i){const o=jt(i,!0),r=o.id;null!==r&&(function Su(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${I(t)} vs ${I(t.name)}`)}(r,Os.get(r),i),Os.set(r,i));const u=Yo(o.imports);for(const f of u)t.has(f)||(t.add(f),n(f))}(e)}(t)}create(t){return new xu(this.moduleType,t)}}function Pu(e,t,n){const i=Gt()+e,o=lt();return o[i]===yn?$o(o,i,n?t.call(n):t()):function ws(e,t){return e[t]}(o,i)}function Ou(e,t,n,i){return Fu(lt(),Gt(),e,t,n,i)}function Au(e,t,n,i,o){return Iu(lt(),Gt(),e,t,n,i,o)}function ku(e,t,n,i,o,r,u){return function Lu(e,t,n,i,o,r,u,f,v){const T=t+n;return function po(e,t,n,i,o,r){const u=br(e,t,n,i);return br(e,t+2,o,r)||u}(e,T,o,r,u,f)?$o(e,T+4,v?i.call(v,o,r,u,f):i(o,r,u,f)):va(e,T+4)}(lt(),Gt(),e,t,n,i,o,r,u)}function va(e,t){const n=e[t];return n===yn?void 0:n}function Fu(e,t,n,i,o,r){const u=t+n;return Fi(e,u,o)?$o(e,u+1,r?i.call(r,o):i(o)):va(e,u+1)}function Iu(e,t,n,i,o,r,u){const f=t+n;return br(e,f,o,r)?$o(e,f+2,u?i.call(u,o,r):i(o,r)):va(e,f+2)}function Vu(e,t,n,i,o,r,u,f){const v=t+n;return function aa(e,t,n,i,o){const r=br(e,t,n,i);return Fi(e,t+2,o)||r}(e,v,o,r,u)?$o(e,v+3,f?i.call(f,o,r,u):i(o,r,u)):va(e,v+3)}function Nu(e,t){const n=O();let i;const o=e+20;n.firstCreatePass?(i=function xf(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[o]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,i.onDestroy)):i=n.data[o];const r=i.factory||(i.factory=Ti(i.type)),u=Mn(ca);try{const f=Tr(!1),v=r();return Tr(f),function Qd(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,lt(),o,v),v}finally{Mn(u)}}function Ru(e,t,n){const i=e+20,o=lt(),r=Mt(o,i);return ya(o,i)?Fu(o,Gt(),t,r.transform,n,r):r.transform(n)}function Bu(e,t,n,i){const o=e+20,r=lt(),u=Mt(r,o);return ya(r,o)?Iu(r,Gt(),t,u.transform,n,i,u):u.transform(n,i)}function Yu(e,t,n,i,o){const r=e+20,u=lt(),f=Mt(u,r);return ya(u,r)?Vu(u,Gt(),t,f.transform,n,i,o,f):f.transform(n,i,o)}function ya(e,t){return e[1].data[t].pure}function R4(e){return t=>{setTimeout(e,void 0,t)}}const rr=class Af extends a.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var o,r,u;let f=t,v=n||(()=>null),T=i;if(t&&"object"==typeof t){const re=t;f=null===(o=re.next)||void 0===o?void 0:o.bind(re),v=null===(r=re.error)||void 0===r?void 0:r.bind(re),T=null===(u=re.complete)||void 0===u?void 0:u.bind(re)}this.__isAsync&&(v=R4(v),f&&(f=R4(f)),T&&(T=R4(T)));const N=super.subscribe({next:f,error:v,complete:T});return t instanceof s.w&&t.add(N),N}};function kf(){return this._results[$r()]()}class B4{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 n=$r(),i=B4.prototype;i[n]||(i[n]=kf)}get changes(){return this._changes||(this._changes=new rr)}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,n){return this._results.reduce(t,n)}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,n){const i=this;i.dirty=!1;const o=ho(t);(this._changesDetected=!function w2(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i{class e{}return e.__NG_ELEMENT_ID__=Vf,e})();const Ff=_a,If=class extends Ff{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Nr(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[k];return null!==r&&(i[k]=r.createEmbeddedView(n)),_s(n,i,t),new ga(i)}};function Vf(){return $1(l(),lt())}function $1(e,t){return 4&e.type?new If(t,e,xs(e,t)):null}let W1=(()=>{class e{}return e.__NG_ELEMENT_ID__=Lf,e})();function Lf(){return $u(l(),lt())}const Hf=W1,ju=class extends Hf{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return xs(this._hostTNode,this._hostLView)}get injector(){return new co(this._hostTNode,this._hostLView)}get parentInjector(){const t=m(this._hostTNode,this._hostLView);if(Hs(t)){const n=lr(t,this._hostLView),i=cr(t);return new co(n[1].data[i+8],n)}return new co(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Uu(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const o=t.createEmbeddedView(n||{});return this.insert(o,i),o}createComponent(t,n,i,o,r){const u=t&&!function ss(e){return"function"==typeof e}(t);let f;if(u)f=n;else{const re=n||{};f=re.index,i=re.injector,o=re.projectableNodes,r=re.ngModuleRef}const v=u?t:new H4(Ve(t)),T=i||this.parentInjector;if(!r&&null==v.ngModule&&T){const re=T.get(Ps,null);re&&(r=re)}const N=v.create(T,o,void 0,r);return this.insert(N.hostView,f),N}insert(t,n){const i=t._lView,o=i[1];if(function Dn(e){return Vt(e[3])}(i)){const N=this.indexOf(t);if(-1!==N)this.detach(N);else{const re=i[3],Pe=new ju(re,re[6],re[3]);Pe.detach(Pe.indexOf(t))}}const r=this._adjustIndex(n),u=this._lContainer;!function G3(e,t,n,i){const o=10+i,r=n.length;i>0&&(n[o-1][4]=t),i0)i.push(u[f/2]);else{const T=r[f+1],N=t[-v];for(let re=10;re{class e{constructor(n){this.appInits=n,this.resolve=Z1,this.reject=Z1,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{r.subscribe({complete:f,error:v})});n.push(u)}}Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(zi(X4,8))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const yh=new li("AppId"),u9={provide:yh,useFactory:function l9(){return`${e2()}${e2()}${e2()}`},deps:[]};function e2(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const _h=new li("Platform Initializer"),Ch=new li("Platform ID"),Mh=new li("appBootstrapListener");let bh=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const Q1=new li("LocaleId"),wh=new li("DefaultCurrencyCode");class h9{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let t2=(()=>{class e{compileModuleSync(n){return new N4(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),r=Yo(jt(n).declarations).reduce((u,f)=>{const v=Ve(f);return v&&u.push(new H4(v)),u},[]);return new h9(i,r)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const f9=(()=>Promise.resolve(0))();function n2(e){"undefined"==typeof Zone?f9.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class mo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new rr(!1),this.onMicrotaskEmpty=new rr(!1),this.onStable=new rr(!1),this.onError=new rr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&n,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function p9(){let e=V.requestAnimationFrame,t=V.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function v9(e){const t=()=>{!function g9(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(V,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,r2(e),e.isCheckStableRunning=!0,o2(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),r2(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,o,r,u,f)=>{try{return Dh(e),n.invokeTask(o,r,u,f)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||e.shouldCoalesceRunChangeDetection)&&t(),Eh(e)}},onInvoke:(n,i,o,r,u,f,v)=>{try{return Dh(e),n.invoke(o,r,u,f,v)}finally{e.shouldCoalesceRunChangeDetection&&t(),Eh(e)}},onHasTask:(n,i,o,r)=>{n.hasTask(o,r),i===o&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,r2(e),o2(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(n,i,o,r)=>(n.handleError(o,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!mo.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(mo.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,o){const r=this._inner,u=r.scheduleEventTask("NgZoneEvent: "+o,t,m9,Z1,Z1);try{return r.runTask(u,n,i)}finally{r.cancelTask(u)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const m9={};function o2(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function r2(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Dh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Eh(e){e._nesting--,o2(e)}class y9{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new rr,this.onMicrotaskEmpty=new rr,this.onStable=new rr,this.onError=new rr}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,o){return t.apply(n,i)}}let zh=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.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:()=>{mo.assertNotInAngularZone(),n2(()=>{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())n2(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==r),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:r,updateCb:o})}whenStable(n,i,o){if(o&&!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,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(zi(mo))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})(),Sh=(()=>{class e{constructor(){this._applications=new Map,s2.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return s2.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();class _9{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function C9(e){s2=e}let Ko,s2=new _9;const Th=new li("AllowMultipleToken");class w9{constructor(t,n){this.name=t,this.token=n}}function xh(e,t,n=[]){const i=`Platform: ${t}`,o=new li(i);return(r=[])=>{let u=Ph();if(!u||u.injector.get(Th,!1))if(e)e(n.concat(r).concat({provide:o,useValue:!0}));else{const f=n.concat(r).concat({provide:o,useValue:!0},{provide:E1,useValue:"platform"});!function D9(e){if(Ko&&!Ko.destroyed&&!Ko.injector.get(Th,!1))throw new Fe(400,"");Ko=e.get(Oh);const t=e.get(_h,null);t&&t.forEach(n=>n())}(fo.create({providers:f,name:i}))}return function E9(e){const t=Ph();if(!t)throw new Fe(401,"");return t}()}}function Ph(){return Ko&&!Ko.destroyed?Ko:null}let Oh=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const f=function z9(e,t){let n;return n="noop"===e?new y9:("zone.js"===e?void 0:e)||new mo({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),v=[{provide:mo,useValue:f}];return f.run(()=>{const T=fo.create({providers:v,parent:this.injector,name:n.moduleType.name}),N=n.create(T),re=N.injector.get(gs,null);if(!re)throw new Fe(402,"");return f.runOutsideAngular(()=>{const Pe=f.onError.subscribe({next:We=>{re.handleError(We)}});N.onDestroy(()=>{a2(this._modules,N),Pe.unsubscribe()})}),function S9(e,t,n){try{const i=n();return y4(i)?i.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(re,f,()=>{const Pe=N.injector.get(ks);return Pe.runInitializers(),Pe.donePromise.then(()=>(function c7(e){ke(e,"Expected localeId to be defined"),"string"==typeof e&&(K0=e.toLowerCase().replace(/_/g,"-"))}(N.injector.get(Q1,N1)||N1),this._moduleDoBootstrap(N),N))})})}bootstrapModule(n,i=[]){const o=Ah({},i);return function M9(e,t,n){const i=new N4(n);return Promise.resolve(i)}(0,0,n).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(n){const i=n.injector.get(Ma);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new Fe(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Fe(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(zi(fo))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();function Ah(e,t){return Array.isArray(t)?t.reduce(Ah,e):Object.assign(Object.assign({},e),t)}let Ma=(()=>{class e{constructor(n,i,o,r,u){this._zone=n,this._injector=i,this._exceptionHandler=o,this._componentFactoryResolver=r,this._initStatus=u,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 f=new G.y(T=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{T.next(this._stable),T.complete()})}),v=new G.y(T=>{let N;this._zone.runOutsideAngular(()=>{N=this._zone.onStable.subscribe(()=>{mo.assertNotInAngularZone(),n2(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,T.next(!0))})})});const re=this._zone.onUnstable.subscribe(()=>{mo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{T.next(!1)}))});return()=>{N.unsubscribe(),re.unsubscribe()}});this.isStable=(0,oe.T)(f,v.pipe((0,q.B)()))}bootstrap(n,i){if(!this._initStatus.done)throw new Fe(405,"");let o;o=n instanceof Cu?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const r=function b9(e){return e.isBoundToModule}(o)?void 0:this._injector.get(Ps),f=o.create(fo.NULL,[],i||o.selector,r),v=f.location.nativeElement,T=f.injector.get(zh,null),N=T&&f.injector.get(Sh);return T&&N&&N.registerApplication(v,T),f.onDestroy(()=>{this.detachView(f.hostView),a2(this.components,f),N&&N.unregisterApplication(v)}),this._loadComponent(f),f}tick(){if(this._runningTick)throw new Fe(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;a2(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Mh,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(zi(mo),zi(fo),zi(gs),zi(pa),zi(ks))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();function a2(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Fh=!0,Ih=!1;function x9(){return Ih=!0,Fh}function P9(){if(Ih)throw new Error("Cannot enable prod mode after platform setup.");Fh=!1}let O9=(()=>{class e{}return e.__NG_ELEMENT_ID__=A9,e})();function A9(e){return function k9(e,t,n){if(ni(e)&&!n){const i=kt(e.index,t);return new ga(i,i)}return 47&e.type?new ga(t[16],t):null}(l(),lt(),16==(16&e))}class Bh{constructor(){}supports(t){return bs(t)}create(t){return new N9(t)}}const H9=(e,t)=>t;class N9{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||H9}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,o=0,r=null;for(;n||i;){const u=!i||n&&n.currentIndex{u=this._trackByFn(o,f),null!==n&&Object.is(n.trackById,u)?(i&&(n=this._verifyReinsertion(n,f,u,o)),Object.is(n.item,f)||this._addIdentityChange(n,f)):(n=this._mismatch(n,f,u,o),i=!0),n=n._next,o++}),this.length=o;return this._truncate(n),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,n,i,o){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,r,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,r,o)):t=this._addAfter(new R9(n,i),r,o),t}_verifyReinsertion(t,n,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?t=this._reinsertAfter(r,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}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,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,r=t._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Yh),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Yh),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,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class R9{constructor(t,n){this.item=t,this.trackById=n,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 B9{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,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class Yh{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new B9,this.map.set(n,i)),i.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function jh(e,t,n){const i=e.previousIndex;if(null===i)return i;let o=0;return n&&i{if(n&&n.key===o)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const r=this._getOrCreateRecordForKey(o,i);n=this._insertBeforeOrAppend(n,r)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const r=o._prev,u=o._next;return r&&(r._next=u),u&&(u._prev=r),o._next=null,o._prev=null,o}const i=new j9(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_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,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,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,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class j9{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 $h(){return new J1([new Bh])}let J1=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||$h()),deps:[[e,new Ar,new _r]]}}find(n){const i=this.factories.find(o=>o.supports(n));if(null!=i)return i;throw new Fe(901,"")}}return e.\u0275prov=_t({token:e,providedIn:"root",factory:$h}),e})();function Wh(){return new X1([new Uh])}let X1=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Wh()),deps:[[e,new Ar,new _r]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(i)return i;throw new Fe(901,"")}}return e.\u0275prov=_t({token:e,providedIn:"root",factory:Wh}),e})();const U9=[new Uh],W9=new J1([new Bh]),G9=new X1(U9),K9=xh(null,"core",[{provide:Ch,useValue:"unknown"},{provide:Oh,deps:[fo]},{provide:Sh,deps:[]},{provide:bh,deps:[]}]),X9=[{provide:Ma,useClass:Ma,deps:[mo,fo,gs,pa,ks]},{provide:vf,deps:[mo],useFactory:function ep(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:ks,useClass:ks,deps:[[new _r,X4]]},{provide:t2,useClass:t2,deps:[]},u9,{provide:J1,useFactory:function Z9(){return W9},deps:[]},{provide:X1,useFactory:function Q9(){return G9},deps:[]},{provide:Q1,useFactory:function q9(e){return e||function J9(){return"undefined"!=typeof $localize&&$localize.locale||N1}()},deps:[[new hs(Q1),new _r,new Ar]]},{provide:wh,useValue:"USD"}];let tp=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(zi(Ma))},e.\u0275mod=jn({type:e}),e.\u0275inj=St({providers:X9}),e})()},4182:(yt,be,p)=>{p.d(be,{TO:()=>Un,ve:()=>_e,Wl:()=>Ye,Fj:()=>vt,qu:()=>Yt,oH:()=>_o,u:()=>oo,sg:()=>Ii,u5:()=>dn,JU:()=>ee,a5:()=>Cn,JJ:()=>qe,JL:()=>x,F:()=>se,On:()=>kn,Mq:()=>hn,c5:()=>Mt,UX:()=>Yn,Q7:()=>Pi,kI:()=>et,_Y:()=>bi});var a=p(5e3),s=p(9808),G=p(6498),oe=p(6688),q=p(4850),_=p(7830),W=p(5254);function R(D,C){return new G.y(y=>{const U=D.length;if(0===U)return void y.complete();const at=new Array(U);let Nt=0,lt=0;for(let O=0;O{l||(l=!0,lt++),at[O]=g},error:g=>y.error(g),complete:()=>{Nt++,(Nt===U||!l)&&(lt===U&&y.next(C?C.reduce((g,F,ne)=>(g[F]=at[ne],g),{}):at),y.complete())}}))}})}let H=(()=>{class D{constructor(y,U){this._renderer=y,this._elementRef=U,this.onChange=at=>{},this.onTouched=()=>{}}setProperty(y,U){this._renderer.setProperty(this._elementRef.nativeElement,y,U)}registerOnTouched(y){this.onTouched=y}registerOnChange(y){this.onChange=y}setDisabledState(y){this.setProperty("disabled",y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(a.Qsj),a.Y36(a.SBq))},D.\u0275dir=a.lG2({type:D}),D})(),B=(()=>{class D extends H{}return D.\u0275fac=function(){let C;return function(U){return(C||(C=a.n5z(D)))(U||D)}}(),D.\u0275dir=a.lG2({type:D,features:[a.qOj]}),D})();const ee=new a.OlP("NgValueAccessor"),ye={provide:ee,useExisting:(0,a.Gpc)(()=>Ye),multi:!0};let Ye=(()=>{class D extends B{writeValue(y){this.setProperty("checked",y)}}return D.\u0275fac=function(){let C;return function(U){return(C||(C=a.n5z(D)))(U||D)}}(),D.\u0275dir=a.lG2({type:D,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(y,U){1&y&&a.NdJ("change",function(Nt){return U.onChange(Nt.target.checked)})("blur",function(){return U.onTouched()})},features:[a._Bn([ye]),a.qOj]}),D})();const Fe={provide:ee,useExisting:(0,a.Gpc)(()=>vt),multi:!0},_e=new a.OlP("CompositionEventMode");let vt=(()=>{class D extends H{constructor(y,U,at){super(y,U),this._compositionMode=at,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ze(){const D=(0,s.q)()?(0,s.q)().getUserAgent():"";return/android (\d+)/.test(D.toLowerCase())}())}writeValue(y){this.setProperty("value",null==y?"":y)}_handleInput(y){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(y)}_compositionStart(){this._composing=!0}_compositionEnd(y){this._composing=!1,this._compositionMode&&this.onChange(y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(a.Qsj),a.Y36(a.SBq),a.Y36(_e,8))},D.\u0275dir=a.lG2({type:D,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(y,U){1&y&&a.NdJ("input",function(Nt){return U._handleInput(Nt.target.value)})("blur",function(){return U.onTouched()})("compositionstart",function(){return U._compositionStart()})("compositionend",function(Nt){return U._compositionEnd(Nt.target.value)})},features:[a._Bn([Fe]),a.qOj]}),D})();function Je(D){return null==D||0===D.length}function zt(D){return null!=D&&"number"==typeof D.length}const ut=new a.OlP("NgValidators"),Ie=new a.OlP("NgAsyncValidators"),$e=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class et{static min(C){return function Se(D){return C=>{if(Je(C.value)||Je(D))return null;const y=parseFloat(C.value);return!isNaN(y)&&y{if(Je(C.value)||Je(D))return null;const y=parseFloat(C.value);return!isNaN(y)&&y>D?{max:{max:D,actual:C.value}}:null}}(C)}static required(C){return J(C)}static requiredTrue(C){return function fe(D){return!0===D.value?null:{required:!0}}(C)}static email(C){return function he(D){return Je(D.value)||$e.test(D.value)?null:{email:!0}}(C)}static minLength(C){return function te(D){return C=>Je(C.value)||!zt(C.value)?null:C.value.lengthzt(C.value)&&C.value.length>D?{maxlength:{requiredLength:D,actualLength:C.value.length}}:null}(C)}static pattern(C){return ie(C)}static nullValidator(C){return null}static compose(C){return dt(C)}static composeAsync(C){return it(C)}}function J(D){return Je(D.value)?{required:!0}:null}function ie(D){if(!D)return Ue;let C,y;return"string"==typeof D?(y="","^"!==D.charAt(0)&&(y+="^"),y+=D,"$"!==D.charAt(D.length-1)&&(y+="$"),C=new RegExp(y)):(y=D.toString(),C=D),U=>{if(Je(U.value))return null;const at=U.value;return C.test(at)?null:{pattern:{requiredPattern:y,actualValue:at}}}}function Ue(D){return null}function je(D){return null!=D}function tt(D){const C=(0,a.QGY)(D)?(0,W.D)(D):D;return(0,a.CqO)(C),C}function ke(D){let C={};return D.forEach(y=>{C=null!=y?Object.assign(Object.assign({},C),y):C}),0===Object.keys(C).length?null:C}function ve(D,C){return C.map(y=>y(D))}function Qe(D){return D.map(C=>function mt(D){return!D.validate}(C)?C:y=>C.validate(y))}function dt(D){if(!D)return null;const C=D.filter(je);return 0==C.length?null:function(y){return ke(ve(y,C))}}function _t(D){return null!=D?dt(Qe(D)):null}function it(D){if(!D)return null;const C=D.filter(je);return 0==C.length?null:function(y){return function I(...D){if(1===D.length){const C=D[0];if((0,oe.k)(C))return R(C,null);if((0,_.K)(C)&&Object.getPrototypeOf(C)===Object.prototype){const y=Object.keys(C);return R(y.map(U=>C[U]),y)}}if("function"==typeof D[D.length-1]){const C=D.pop();return R(D=1===D.length&&(0,oe.k)(D[0])?D[0]:D,null).pipe((0,q.U)(y=>C(...y)))}return R(D,null)}(ve(y,C).map(tt)).pipe((0,q.U)(ke))}}function St(D){return null!=D?it(Qe(D)):null}function ot(D,C){return null===D?[C]:Array.isArray(D)?[...D,C]:[D,C]}function Et(D){return D._rawValidators}function Zt(D){return D._rawAsyncValidators}function mn(D){return D?Array.isArray(D)?D:[D]:[]}function gn(D,C){return Array.isArray(D)?D.includes(C):D===C}function Ut(D,C){const y=mn(C);return mn(D).forEach(at=>{gn(y,at)||y.push(at)}),y}function un(D,C){return mn(C).filter(y=>!gn(D,y))}class _n{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(C){this._rawValidators=C||[],this._composedValidatorFn=_t(this._rawValidators)}_setAsyncValidators(C){this._rawAsyncValidators=C||[],this._composedAsyncValidatorFn=St(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(C){this._onDestroyCallbacks.push(C)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(C=>C()),this._onDestroyCallbacks=[]}reset(C){this.control&&this.control.reset(C)}hasError(C,y){return!!this.control&&this.control.hasError(C,y)}getError(C,y){return this.control?this.control.getError(C,y):null}}class Cn extends _n{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Dt extends _n{get formDirective(){return null}get path(){return null}}class Sn{constructor(C){this._cd=C}is(C){var y,U,at;return"submitted"===C?!!(null===(y=this._cd)||void 0===y?void 0:y.submitted):!!(null===(at=null===(U=this._cd)||void 0===U?void 0:U.control)||void 0===at?void 0:at[C])}}let qe=(()=>{class D extends Sn{constructor(y){super(y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Cn,2))},D.\u0275dir=a.lG2({type:D,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(y,U){2&y&&a.ekj("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))},features:[a.qOj]}),D})(),x=(()=>{class D extends Sn{constructor(y){super(y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(y,U){2&y&&a.ekj("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))("ng-submitted",U.is("submitted"))},features:[a.qOj]}),D})();function $(D,C){return[...C.path,D]}function ue(D,C){Qt(D,C),C.valueAccessor.writeValue(D.value),function Vn(D,C){C.valueAccessor.registerOnChange(y=>{D._pendingValue=y,D._pendingChange=!0,D._pendingDirty=!0,"change"===D.updateOn&&ri(D,C)})}(D,C),function jn(D,C){const y=(U,at)=>{C.valueAccessor.writeValue(U),at&&C.viewToModelUpdate(U)};D.registerOnChange(y),C._registerOnDestroy(()=>{D._unregisterOnChange(y)})}(D,C),function An(D,C){C.valueAccessor.registerOnTouched(()=>{D._pendingTouched=!0,"blur"===D.updateOn&&D._pendingChange&&ri(D,C),"submit"!==D.updateOn&&D.markAsTouched()})}(D,C),function At(D,C){if(C.valueAccessor.setDisabledState){const y=U=>{C.valueAccessor.setDisabledState(U)};D.registerOnDisabledChange(y),C._registerOnDestroy(()=>{D._unregisterOnDisabledChange(y)})}}(D,C)}function Ae(D,C,y=!0){const U=()=>{};C.valueAccessor&&(C.valueAccessor.registerOnChange(U),C.valueAccessor.registerOnTouched(U)),vn(D,C),D&&(C._invokeOnDestroyCallbacks(),D._registerOnCollectionChange(()=>{}))}function wt(D,C){D.forEach(y=>{y.registerOnValidatorChange&&y.registerOnValidatorChange(C)})}function Qt(D,C){const y=Et(D);null!==C.validator?D.setValidators(ot(y,C.validator)):"function"==typeof y&&D.setValidators([y]);const U=Zt(D);null!==C.asyncValidator?D.setAsyncValidators(ot(U,C.asyncValidator)):"function"==typeof U&&D.setAsyncValidators([U]);const at=()=>D.updateValueAndValidity();wt(C._rawValidators,at),wt(C._rawAsyncValidators,at)}function vn(D,C){let y=!1;if(null!==D){if(null!==C.validator){const at=Et(D);if(Array.isArray(at)&&at.length>0){const Nt=at.filter(lt=>lt!==C.validator);Nt.length!==at.length&&(y=!0,D.setValidators(Nt))}}if(null!==C.asyncValidator){const at=Zt(D);if(Array.isArray(at)&&at.length>0){const Nt=at.filter(lt=>lt!==C.asyncValidator);Nt.length!==at.length&&(y=!0,D.setAsyncValidators(Nt))}}}const U=()=>{};return wt(C._rawValidators,U),wt(C._rawAsyncValidators,U),y}function ri(D,C){D._pendingDirty&&D.markAsDirty(),D.setValue(D._pendingValue,{emitModelToViewChange:!1}),C.viewToModelUpdate(D._pendingValue),D._pendingChange=!1}function qt(D,C){Qt(D,C)}function Ve(D,C){if(!D.hasOwnProperty("model"))return!1;const y=D.model;return!!y.isFirstChange()||!Object.is(C,y.currentValue)}function It(D,C){D._syncPendingControls(),C.forEach(y=>{const U=y.control;"submit"===U.updateOn&&U._pendingChange&&(y.viewToModelUpdate(U._pendingValue),U._pendingChange=!1)})}function jt(D,C){if(!C)return null;let y,U,at;return Array.isArray(C),C.forEach(Nt=>{Nt.constructor===vt?y=Nt:function ht(D){return Object.getPrototypeOf(D.constructor)===B}(Nt)?U=Nt:at=Nt}),at||U||y||null}function fn(D,C){const y=D.indexOf(C);y>-1&&D.splice(y,1)}const Zn="VALID",ii="INVALID",En="PENDING",ei="DISABLED";function Tt(D){return(Te(D)?D.validators:D)||null}function rn(D){return Array.isArray(D)?_t(D):D||null}function bn(D,C){return(Te(C)?C.asyncValidators:D)||null}function Qn(D){return Array.isArray(D)?St(D):D||null}function Te(D){return null!=D&&!Array.isArray(D)&&"object"==typeof D}const Ze=D=>D instanceof $n,De=D=>D instanceof Nn,rt=D=>D instanceof Rn;function Wt(D){return Ze(D)?D.value:D.getRawValue()}function on(D,C){const y=De(D),U=D.controls;if(!(y?Object.keys(U):U).length)throw new a.vHH(1e3,"");if(!U[C])throw new a.vHH(1001,"")}function Lt(D,C){De(D),D._forEachChild((U,at)=>{if(void 0===C[at])throw new a.vHH(1002,"")})}class Un{constructor(C,y){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=C,this._rawAsyncValidators=y,this._composedValidatorFn=rn(this._rawValidators),this._composedAsyncValidatorFn=Qn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(C){this._rawValidators=this._composedValidatorFn=C}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(C){this._rawAsyncValidators=this._composedAsyncValidatorFn=C}get parent(){return this._parent}get valid(){return this.status===Zn}get invalid(){return this.status===ii}get pending(){return this.status==En}get disabled(){return this.status===ei}get enabled(){return this.status!==ei}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(C){this._rawValidators=C,this._composedValidatorFn=rn(C)}setAsyncValidators(C){this._rawAsyncValidators=C,this._composedAsyncValidatorFn=Qn(C)}addValidators(C){this.setValidators(Ut(C,this._rawValidators))}addAsyncValidators(C){this.setAsyncValidators(Ut(C,this._rawAsyncValidators))}removeValidators(C){this.setValidators(un(C,this._rawValidators))}removeAsyncValidators(C){this.setAsyncValidators(un(C,this._rawAsyncValidators))}hasValidator(C){return gn(this._rawValidators,C)}hasAsyncValidator(C){return gn(this._rawAsyncValidators,C)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(C={}){this.touched=!0,this._parent&&!C.onlySelf&&this._parent.markAsTouched(C)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(C=>C.markAllAsTouched())}markAsUntouched(C={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(y=>{y.markAsUntouched({onlySelf:!0})}),this._parent&&!C.onlySelf&&this._parent._updateTouched(C)}markAsDirty(C={}){this.pristine=!1,this._parent&&!C.onlySelf&&this._parent.markAsDirty(C)}markAsPristine(C={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(y=>{y.markAsPristine({onlySelf:!0})}),this._parent&&!C.onlySelf&&this._parent._updatePristine(C)}markAsPending(C={}){this.status=En,!1!==C.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!C.onlySelf&&this._parent.markAsPending(C)}disable(C={}){const y=this._parentMarkedDirty(C.onlySelf);this.status=ei,this.errors=null,this._forEachChild(U=>{U.disable(Object.assign(Object.assign({},C),{onlySelf:!0}))}),this._updateValue(),!1!==C.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},C),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!0))}enable(C={}){const y=this._parentMarkedDirty(C.onlySelf);this.status=Zn,this._forEachChild(U=>{U.enable(Object.assign(Object.assign({},C),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:C.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},C),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!1))}_updateAncestors(C){this._parent&&!C.onlySelf&&(this._parent.updateValueAndValidity(C),C.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(C){this._parent=C}updateValueAndValidity(C={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Zn||this.status===En)&&this._runAsyncValidator(C.emitEvent)),!1!==C.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!C.onlySelf&&this._parent.updateValueAndValidity(C)}_updateTreeValidity(C={emitEvent:!0}){this._forEachChild(y=>y._updateTreeValidity(C)),this.updateValueAndValidity({onlySelf:!0,emitEvent:C.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ei:Zn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(C){if(this.asyncValidator){this.status=En,this._hasOwnPendingAsyncValidator=!0;const y=tt(this.asyncValidator(this));this._asyncValidationSubscription=y.subscribe(U=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(U,{emitEvent:C})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(C,y={}){this.errors=C,this._updateControlsErrors(!1!==y.emitEvent)}get(C){return function Ln(D,C,y){if(null==C||(Array.isArray(C)||(C=C.split(y)),Array.isArray(C)&&0===C.length))return null;let U=D;return C.forEach(at=>{U=De(U)?U.controls.hasOwnProperty(at)?U.controls[at]:null:rt(U)&&U.at(at)||null}),U}(this,C,".")}getError(C,y){const U=y?this.get(y):this;return U&&U.errors?U.errors[C]:null}hasError(C,y){return!!this.getError(C,y)}get root(){let C=this;for(;C._parent;)C=C._parent;return C}_updateControlsErrors(C){this.status=this._calculateStatus(),C&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(C)}_initObservables(){this.valueChanges=new a.vpe,this.statusChanges=new a.vpe}_calculateStatus(){return this._allControlsDisabled()?ei:this.errors?ii:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(En)?En:this._anyControlsHaveStatus(ii)?ii:Zn}_anyControlsHaveStatus(C){return this._anyControls(y=>y.status===C)}_anyControlsDirty(){return this._anyControls(C=>C.dirty)}_anyControlsTouched(){return this._anyControls(C=>C.touched)}_updatePristine(C={}){this.pristine=!this._anyControlsDirty(),this._parent&&!C.onlySelf&&this._parent._updatePristine(C)}_updateTouched(C={}){this.touched=this._anyControlsTouched(),this._parent&&!C.onlySelf&&this._parent._updateTouched(C)}_isBoxedValue(C){return"object"==typeof C&&null!==C&&2===Object.keys(C).length&&"value"in C&&"disabled"in C}_registerOnCollectionChange(C){this._onCollectionChange=C}_setUpdateStrategy(C){Te(C)&&null!=C.updateOn&&(this._updateOn=C.updateOn)}_parentMarkedDirty(C){return!C&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class $n extends Un{constructor(C=null,y,U){super(Tt(y),bn(U,y)),this._onChange=[],this._pendingChange=!1,this._applyFormState(C),this._setUpdateStrategy(y),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(C,y={}){this.value=this._pendingValue=C,this._onChange.length&&!1!==y.emitModelToViewChange&&this._onChange.forEach(U=>U(this.value,!1!==y.emitViewToModelChange)),this.updateValueAndValidity(y)}patchValue(C,y={}){this.setValue(C,y)}reset(C=null,y={}){this._applyFormState(C),this.markAsPristine(y),this.markAsUntouched(y),this.setValue(this.value,y),this._pendingChange=!1}_updateValue(){}_anyControls(C){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(C){this._onChange.push(C)}_unregisterOnChange(C){fn(this._onChange,C)}registerOnDisabledChange(C){this._onDisabledChange.push(C)}_unregisterOnDisabledChange(C){fn(this._onDisabledChange,C)}_forEachChild(C){}_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(C){this._isBoxedValue(C)?(this.value=this._pendingValue=C.value,C.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=C}}class Nn extends Un{constructor(C,y,U){super(Tt(y),bn(U,y)),this.controls=C,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(C,y){return this.controls[C]?this.controls[C]:(this.controls[C]=y,y.setParent(this),y._registerOnCollectionChange(this._onCollectionChange),y)}addControl(C,y,U={}){this.registerControl(C,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}removeControl(C,y={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),delete this.controls[C],this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}setControl(C,y,U={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),delete this.controls[C],y&&this.registerControl(C,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}contains(C){return this.controls.hasOwnProperty(C)&&this.controls[C].enabled}setValue(C,y={}){Lt(this,C),Object.keys(C).forEach(U=>{on(this,U),this.controls[U].setValue(C[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(C,y={}){null!=C&&(Object.keys(C).forEach(U=>{this.controls[U]&&this.controls[U].patchValue(C[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(C={},y={}){this._forEachChild((U,at)=>{U.reset(C[at],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this._reduceChildren({},(C,y,U)=>(C[U]=Wt(y),C))}_syncPendingControls(){let C=this._reduceChildren(!1,(y,U)=>!!U._syncPendingControls()||y);return C&&this.updateValueAndValidity({onlySelf:!0}),C}_forEachChild(C){Object.keys(this.controls).forEach(y=>{const U=this.controls[y];U&&C(U,y)})}_setUpControls(){this._forEachChild(C=>{C.setParent(this),C._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(C){for(const y of Object.keys(this.controls)){const U=this.controls[y];if(this.contains(y)&&C(U))return!0}return!1}_reduceValue(){return this._reduceChildren({},(C,y,U)=>((y.enabled||this.disabled)&&(C[U]=y.value),C))}_reduceChildren(C,y){let U=C;return this._forEachChild((at,Nt)=>{U=y(U,at,Nt)}),U}_allControlsDisabled(){for(const C of Object.keys(this.controls))if(this.controls[C].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Rn extends Un{constructor(C,y,U){super(Tt(y),bn(U,y)),this.controls=C,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(C){return this.controls[C]}push(C,y={}){this.controls.push(C),this._registerControl(C),this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}insert(C,y,U={}){this.controls.splice(C,0,y),this._registerControl(y),this.updateValueAndValidity({emitEvent:U.emitEvent})}removeAt(C,y={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),this.controls.splice(C,1),this.updateValueAndValidity({emitEvent:y.emitEvent})}setControl(C,y,U={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),this.controls.splice(C,1),y&&(this.controls.splice(C,0,y),this._registerControl(y)),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(C,y={}){Lt(this,C),C.forEach((U,at)=>{on(this,at),this.at(at).setValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(C,y={}){null!=C&&(C.forEach((U,at)=>{this.at(at)&&this.at(at).patchValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(C=[],y={}){this._forEachChild((U,at)=>{U.reset(C[at],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this.controls.map(C=>Wt(C))}clear(C={}){this.controls.length<1||(this._forEachChild(y=>y._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:C.emitEvent}))}_syncPendingControls(){let C=this.controls.reduce((y,U)=>!!U._syncPendingControls()||y,!1);return C&&this.updateValueAndValidity({onlySelf:!0}),C}_forEachChild(C){this.controls.forEach((y,U)=>{C(y,U)})}_updateValue(){this.value=this.controls.filter(C=>C.enabled||this.disabled).map(C=>C.value)}_anyControls(C){return this.controls.some(y=>y.enabled&&C(y))}_setUpControls(){this._forEachChild(C=>this._registerControl(C))}_allControlsDisabled(){for(const C of this.controls)if(C.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(C){C.setParent(this),C._registerOnCollectionChange(this._onCollectionChange)}}const qn={provide:Dt,useExisting:(0,a.Gpc)(()=>se)},X=(()=>Promise.resolve(null))();let se=(()=>{class D extends Dt{constructor(y,U){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new a.vpe,this.form=new Nn({},_t(y),St(U))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(y){X.then(()=>{const U=this._findContainer(y.path);y.control=U.registerControl(y.name,y.control),ue(y.control,y),y.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(y)})}getControl(y){return this.form.get(y.path)}removeControl(y){X.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name),fn(this._directives,y)})}addFormGroup(y){X.then(()=>{const U=this._findContainer(y.path),at=new Nn({});qt(at,y),U.registerControl(y.name,at),at.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(y){X.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name)})}getFormGroup(y){return this.form.get(y.path)}updateModel(y,U){X.then(()=>{this.form.get(y.path).setValue(U)})}setValue(y){this.control.setValue(y)}onSubmit(y){return this.submitted=!0,It(this.form,this._directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(y){return y.pop(),y.length?this.form.get(y):this.form}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(ut,10),a.Y36(Ie,10))},D.\u0275dir=a.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(y,U){1&y&&a.NdJ("submit",function(Nt){return U.onSubmit(Nt)})("reset",function(){return U.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([qn]),a.qOj]}),D})(),k=(()=>{class D extends Dt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return $(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return D.\u0275fac=function(){let C;return function(U){return(C||(C=a.n5z(D)))(U||D)}}(),D.\u0275dir=a.lG2({type:D,features:[a.qOj]}),D})();const Vt={provide:Dt,useExisting:(0,a.Gpc)(()=>hn)};let hn=(()=>{class D extends k{constructor(y,U,at){super(),this._parent=y,this._setValidators(U),this._setAsyncValidators(at)}_checkParentType(){}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,5),a.Y36(ut,10),a.Y36(Ie,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[a._Bn([Vt]),a.qOj]}),D})();const ni={provide:Cn,useExisting:(0,a.Gpc)(()=>kn)},ai=(()=>Promise.resolve(null))();let kn=(()=>{class D extends Cn{constructor(y,U,at,Nt){super(),this.control=new $n,this._registered=!1,this.update=new a.vpe,this._parent=y,this._setValidators(U),this._setAsyncValidators(at),this.valueAccessor=jt(0,Nt)}ngOnChanges(y){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in y&&this._updateDisabled(y),Ve(y,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?$(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ue(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(y){ai.then(()=>{this.control.setValue(y,{emitViewToModelChange:!1})})}_updateDisabled(y){const U=y.isDisabled.currentValue,at=""===U||U&&"false"!==U;ai.then(()=>{at&&!this.control.disabled?this.control.disable():!at&&this.control.disabled&&this.control.enable()})}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,9),a.Y36(ut,10),a.Y36(Ie,10),a.Y36(ee,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a._Bn([ni]),a.qOj,a.TTD]}),D})(),bi=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275dir=a.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),D})(),wi=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({}),D})();const Wi=new a.OlP("NgModelWithFormControlWarning"),yo={provide:Cn,useExisting:(0,a.Gpc)(()=>_o)};let _o=(()=>{class D extends Cn{constructor(y,U,at,Nt){super(),this._ngModelWarningConfig=Nt,this.update=new a.vpe,this._ngModelWarningSent=!1,this._setValidators(y),this._setAsyncValidators(U),this.valueAccessor=jt(0,at)}set isDisabled(y){}ngOnChanges(y){if(this._isControlChanged(y)){const U=y.form.previousValue;U&&Ae(U,this,!1),ue(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ve(y,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ae(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}_isControlChanged(y){return y.hasOwnProperty("form")}}return D._ngModelWarningSentOnce=!1,D.\u0275fac=function(y){return new(y||D)(a.Y36(ut,10),a.Y36(Ie,10),a.Y36(ee,10),a.Y36(Wi,8))},D.\u0275dir=a.lG2({type:D,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a._Bn([yo]),a.qOj,a.TTD]}),D})();const sr={provide:Dt,useExisting:(0,a.Gpc)(()=>Ii)};let Ii=(()=>{class D extends Dt{constructor(y,U){super(),this.validators=y,this.asyncValidators=U,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new a.vpe,this._setValidators(y),this._setAsyncValidators(U)}ngOnChanges(y){this._checkFormPresent(),y.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(vn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(y){const U=this.form.get(y.path);return ue(U,y),U.updateValueAndValidity({emitEvent:!1}),this.directives.push(y),U}getControl(y){return this.form.get(y.path)}removeControl(y){Ae(y.control||null,y,!1),fn(this.directives,y)}addFormGroup(y){this._setUpFormContainer(y)}removeFormGroup(y){this._cleanUpFormContainer(y)}getFormGroup(y){return this.form.get(y.path)}addFormArray(y){this._setUpFormContainer(y)}removeFormArray(y){this._cleanUpFormContainer(y)}getFormArray(y){return this.form.get(y.path)}updateModel(y,U){this.form.get(y.path).setValue(U)}onSubmit(y){return this.submitted=!0,It(this.form,this.directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_updateDomValue(){this.directives.forEach(y=>{const U=y.control,at=this.form.get(y.path);U!==at&&(Ae(U||null,y),Ze(at)&&(ue(at,y),y.control=at))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(y){const U=this.form.get(y.path);qt(U,y),U.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(y){if(this.form){const U=this.form.get(y.path);U&&function Re(D,C){return vn(D,C)}(U,y)&&U.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Qt(this.form,this),this._oldForm&&vn(this._oldForm,this)}_checkFormPresent(){}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(ut,10),a.Y36(Ie,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","formGroup",""]],hostBindings:function(y,U){1&y&&a.NdJ("submit",function(Nt){return U.onSubmit(Nt)})("reset",function(){return U.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([sr]),a.qOj,a.TTD]}),D})();const Qo={provide:Cn,useExisting:(0,a.Gpc)(()=>oo)};let oo=(()=>{class D extends Cn{constructor(y,U,at,Nt,lt){super(),this._ngModelWarningConfig=lt,this._added=!1,this.update=new a.vpe,this._ngModelWarningSent=!1,this._parent=y,this._setValidators(U),this._setAsyncValidators(at),this.valueAccessor=jt(0,Nt)}set isDisabled(y){}ngOnChanges(y){this._added||this._setUpControl(),Ve(y,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}get path(){return $(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return D._ngModelWarningSentOnce=!1,D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,13),a.Y36(ut,10),a.Y36(Ie,10),a.Y36(ee,10),a.Y36(Wi,8))},D.\u0275dir=a.lG2({type:D,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[a._Bn([Qo]),a.qOj,a.TTD]}),D})();const Xo={provide:ut,useExisting:(0,a.Gpc)(()=>Pi),multi:!0};let Pi=(()=>{class D{constructor(){this._required=!1}get required(){return this._required}set required(y){this._required=null!=y&&!1!==y&&"false"!=`${y}`,this._onChange&&this._onChange()}validate(y){return this.required?J(y):null}registerOnValidatorChange(y){this._onChange=y}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275dir=a.lG2({type:D,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(y,U){2&y&&a.uIk("required",U.required?"":null)},inputs:{required:"required"},features:[a._Bn([Xo])]}),D})();const ct={provide:ut,useExisting:(0,a.Gpc)(()=>Mt),multi:!0};let Mt=(()=>{class D{constructor(){this._validator=Ue}ngOnChanges(y){"pattern"in y&&(this._createValidator(),this._onChange&&this._onChange())}validate(y){return this._validator(y)}registerOnValidatorChange(y){this._onChange=y}_createValidator(){this._validator=ie(this.pattern)}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275dir=a.lG2({type:D,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(y,U){2&y&&a.uIk("pattern",U.pattern?U.pattern:null)},inputs:{pattern:"pattern"},features:[a._Bn([ct]),a.TTD]}),D})(),Dn=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[[wi]]}),D})(),dn=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[Dn]}),D})(),Yn=(()=>{class D{static withConfig(y){return{ngModule:D,providers:[{provide:Wi,useValue:y.warnOnNgModelWithFormControl}]}}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[Dn]}),D})(),Yt=(()=>{class D{group(y,U=null){const at=this._reduceControls(y);let O,Nt=null,lt=null;return null!=U&&(function On(D){return void 0!==D.asyncValidators||void 0!==D.validators||void 0!==D.updateOn}(U)?(Nt=null!=U.validators?U.validators:null,lt=null!=U.asyncValidators?U.asyncValidators:null,O=null!=U.updateOn?U.updateOn:void 0):(Nt=null!=U.validator?U.validator:null,lt=null!=U.asyncValidator?U.asyncValidator:null)),new Nn(at,{asyncValidators:lt,updateOn:O,validators:Nt})}control(y,U,at){return new $n(y,U,at)}array(y,U,at){const Nt=y.map(lt=>this._createControl(lt));return new Rn(Nt,U,at)}_reduceControls(y){const U={};return Object.keys(y).forEach(at=>{U[at]=this._createControl(y[at])}),U}_createControl(y){return Ze(y)||De(y)||rt(y)?y:Array.isArray(y)?this.control(y[0],y.length>1?y[1]:null,y.length>2?y[2]:null):this.control(y)}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275prov=a.Yz7({token:D,factory:D.\u0275fac,providedIn:Yn}),D})()},6360:(yt,be,p)=>{p.d(be,{Qb:()=>C,PW:()=>Nt});var a=p(5e3),s=p(2313),G=p(1777);function oe(){return"undefined"!=typeof window&&void 0!==window.document}function q(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function _(O){switch(O.length){case 0:return new G.ZN;case 1:return O[0];default:return new G.ZE(O)}}function W(O,c,l,g,F={},ne={}){const ge=[],Ce=[];let Ke=-1,ft=null;if(g.forEach(Pt=>{const Bt=Pt.offset,Gt=Bt==Ke,ln=Gt&&ft||{};Object.keys(Pt).forEach(Kt=>{let Jt=Kt,pn=Pt[Kt];if("offset"!==Kt)switch(Jt=c.normalizePropertyName(Jt,ge),pn){case G.k1:pn=F[Kt];break;case G.l3:pn=ne[Kt];break;default:pn=c.normalizeStyleValue(Kt,Jt,pn,ge)}ln[Jt]=pn}),Gt||Ce.push(ln),ft=ln,Ke=Bt}),ge.length){const Pt="\n - ";throw new Error(`Unable to animate due to the following errors:${Pt}${ge.join(Pt)}`)}return Ce}function I(O,c,l,g){switch(c){case"start":O.onStart(()=>g(l&&R(l,"start",O)));break;case"done":O.onDone(()=>g(l&&R(l,"done",O)));break;case"destroy":O.onDestroy(()=>g(l&&R(l,"destroy",O)))}}function R(O,c,l){const g=l.totalTime,ne=H(O.element,O.triggerName,O.fromState,O.toState,c||O.phaseName,null==g?O.totalTime:g,!!l.disabled),ge=O._data;return null!=ge&&(ne._data=ge),ne}function H(O,c,l,g,F="",ne=0,ge){return{element:O,triggerName:c,fromState:l,toState:g,phaseName:F,totalTime:ne,disabled:!!ge}}function B(O,c,l){let g;return O instanceof Map?(g=O.get(c),g||O.set(c,g=l)):(g=O[c],g||(g=O[c]=l)),g}function ee(O){const c=O.indexOf(":");return[O.substring(1,c),O.substr(c+1)]}let ye=(O,c)=>!1,Ye=(O,c,l)=>[];(q()||"undefined"!=typeof Element)&&(ye=oe()?(O,c)=>{for(;c&&c!==document.documentElement;){if(c===O)return!0;c=c.parentNode||c.host}return!1}:(O,c)=>O.contains(c),Ye=(O,c,l)=>{if(l)return Array.from(O.querySelectorAll(c));const g=O.querySelector(c);return g?[g]:[]});let _e=null,vt=!1;function Je(O){_e||(_e=function zt(){return"undefined"!=typeof document?document.body:null}()||{},vt=!!_e.style&&"WebkitAppearance"in _e.style);let c=!0;return _e.style&&!function ze(O){return"ebkit"==O.substring(1,6)}(O)&&(c=O in _e.style,!c&&vt&&(c="Webkit"+O.charAt(0).toUpperCase()+O.substr(1)in _e.style)),c}const ut=ye,Ie=Ye;function $e(O){const c={};return Object.keys(O).forEach(l=>{const g=l.replace(/([a-z])([A-Z])/g,"$1-$2");c[g]=O[l]}),c}let et=(()=>{class O{validateStyleProperty(l){return Je(l)}matchesElement(l,g){return!1}containsElement(l,g){return ut(l,g)}query(l,g,F){return Ie(l,g,F)}computeStyle(l,g,F){return F||""}animate(l,g,F,ne,ge,Ce=[],Ke){return new G.ZN(F,ne)}}return O.\u0275fac=function(l){return new(l||O)},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})(),Se=(()=>{class O{}return O.NOOP=new et,O})();const he="ng-enter",te="ng-leave",le="ng-trigger",ie=".ng-trigger",Ue="ng-animating",je=".ng-animating";function tt(O){if("number"==typeof O)return O;const c=O.match(/^(-?[\.\d]+)(m?s)/);return!c||c.length<2?0:ke(parseFloat(c[1]),c[2])}function ke(O,c){return"s"===c?1e3*O:O}function ve(O,c,l){return O.hasOwnProperty("duration")?O:function mt(O,c,l){let F,ne=0,ge="";if("string"==typeof O){const Ce=O.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ce)return c.push(`The provided timing value "${O}" is invalid.`),{duration:0,delay:0,easing:""};F=ke(parseFloat(Ce[1]),Ce[2]);const Ke=Ce[3];null!=Ke&&(ne=ke(parseFloat(Ke),Ce[4]));const ft=Ce[5];ft&&(ge=ft)}else F=O;if(!l){let Ce=!1,Ke=c.length;F<0&&(c.push("Duration values below 0 are not allowed for this animation step."),Ce=!0),ne<0&&(c.push("Delay values below 0 are not allowed for this animation step."),Ce=!0),Ce&&c.splice(Ke,0,`The provided timing value "${O}" is invalid.`)}return{duration:F,delay:ne,easing:ge}}(O,c,l)}function Qe(O,c={}){return Object.keys(O).forEach(l=>{c[l]=O[l]}),c}function _t(O,c,l={}){if(c)for(let g in O)l[g]=O[g];else Qe(O,l);return l}function it(O,c,l){return l?c+":"+l+";":""}function St(O){let c="";for(let l=0;l{const F=Dt(g);l&&!l.hasOwnProperty(g)&&(l[g]=O.style[F]),O.style[F]=c[g]}),q()&&St(O))}function Et(O,c){O.style&&(Object.keys(c).forEach(l=>{const g=Dt(l);O.style[g]=""}),q()&&St(O))}function Zt(O){return Array.isArray(O)?1==O.length?O[0]:(0,G.vP)(O):O}const gn=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ut(O){let c=[];if("string"==typeof O){let l;for(;l=gn.exec(O);)c.push(l[1]);gn.lastIndex=0}return c}function un(O,c,l){const g=O.toString(),F=g.replace(gn,(ne,ge)=>{let Ce=c[ge];return c.hasOwnProperty(ge)||(l.push(`Please provide a value for the animation param ${ge}`),Ce=""),Ce.toString()});return F==g?O:F}function _n(O){const c=[];let l=O.next();for(;!l.done;)c.push(l.value),l=O.next();return c}const Cn=/-+([a-z0-9])/g;function Dt(O){return O.replace(Cn,(...c)=>c[1].toUpperCase())}function Sn(O){return O.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function cn(O,c){return 0===O||0===c}function Mn(O,c,l){const g=Object.keys(l);if(g.length&&c.length){let ne=c[0],ge=[];if(g.forEach(Ce=>{ne.hasOwnProperty(Ce)||ge.push(Ce),ne[Ce]=l[Ce]}),ge.length)for(var F=1;Ffunction pe(O,c,l){if(":"==O[0]){const Ke=function j(O,c){switch(O){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,g)=>parseFloat(g)>parseFloat(l);case":decrement":return(l,g)=>parseFloat(g) *"}}(O,l);if("function"==typeof Ke)return void c.push(Ke);O=Ke}const g=O.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==g||g.length<4)return l.push(`The provided transition expression "${O}" is not supported`),c;const F=g[1],ne=g[2],ge=g[3];c.push(Ge(F,ge));"<"==ne[0]&&!(F==z&&ge==z)&&c.push(Ge(ge,F))}(g,l,c)):l.push(O),l}const me=new Set(["true","1"]),He=new Set(["false","0"]);function Ge(O,c){const l=me.has(O)||He.has(O),g=me.has(c)||He.has(c);return(F,ne)=>{let ge=O==z||O==F,Ce=c==z||c==ne;return!ge&&l&&"boolean"==typeof F&&(ge=F?me.has(O):He.has(O)),!Ce&&g&&"boolean"==typeof ne&&(Ce=ne?me.has(c):He.has(c)),ge&&Ce}}const Me=new RegExp("s*:selfs*,?","g");function V(O,c,l){return new nt(O).build(c,l)}class nt{constructor(c){this._driver=c}build(c,l){const g=new L(l);return this._resetContextStyleTimingState(g),qe(this,Zt(c),g)}_resetContextStyleTimingState(c){c.currentQuerySelector="",c.collectedStyles={},c.collectedStyles[""]={},c.currentTime=0}visitTrigger(c,l){let g=l.queryCount=0,F=l.depCount=0;const ne=[],ge=[];return"@"==c.name.charAt(0)&&l.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),c.definitions.forEach(Ce=>{if(this._resetContextStyleTimingState(l),0==Ce.type){const Ke=Ce,ft=Ke.name;ft.toString().split(/\s*,\s*/).forEach(Pt=>{Ke.name=Pt,ne.push(this.visitState(Ke,l))}),Ke.name=ft}else if(1==Ce.type){const Ke=this.visitTransition(Ce,l);g+=Ke.queryCount,F+=Ke.depCount,ge.push(Ke)}else l.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:c.name,states:ne,transitions:ge,queryCount:g,depCount:F,options:null}}visitState(c,l){const g=this.visitStyle(c.styles,l),F=c.options&&c.options.params||null;if(g.containsDynamicStyles){const ne=new Set,ge=F||{};if(g.styles.forEach(Ce=>{if($(Ce)){const Ke=Ce;Object.keys(Ke).forEach(ft=>{Ut(Ke[ft]).forEach(Pt=>{ge.hasOwnProperty(Pt)||ne.add(Pt)})})}}),ne.size){const Ce=_n(ne.values());l.errors.push(`state("${c.name}", ...) must define default values for all the following style substitutions: ${Ce.join(", ")}`)}}return{type:0,name:c.name,style:g,options:F?{params:F}:null}}visitTransition(c,l){l.queryCount=0,l.depCount=0;const g=qe(this,Zt(c.animation),l);return{type:1,matchers:P(c.expr,l.errors),animation:g,queryCount:l.queryCount,depCount:l.depCount,options:Ae(c.options)}}visitSequence(c,l){return{type:2,steps:c.steps.map(g=>qe(this,g,l)),options:Ae(c.options)}}visitGroup(c,l){const g=l.currentTime;let F=0;const ne=c.steps.map(ge=>{l.currentTime=g;const Ce=qe(this,ge,l);return F=Math.max(F,l.currentTime),Ce});return l.currentTime=F,{type:3,steps:ne,options:Ae(c.options)}}visitAnimate(c,l){const g=function ue(O,c){let l=null;if(O.hasOwnProperty("duration"))l=O;else if("number"==typeof O)return wt(ve(O,c).duration,0,"");const g=O;if(g.split(/\s+/).some(ne=>"{"==ne.charAt(0)&&"{"==ne.charAt(1))){const ne=wt(0,0,"");return ne.dynamic=!0,ne.strValue=g,ne}return l=l||ve(g,c),wt(l.duration,l.delay,l.easing)}(c.timings,l.errors);l.currentAnimateTimings=g;let F,ne=c.styles?c.styles:(0,G.oB)({});if(5==ne.type)F=this.visitKeyframes(ne,l);else{let ge=c.styles,Ce=!1;if(!ge){Ce=!0;const ft={};g.easing&&(ft.easing=g.easing),ge=(0,G.oB)(ft)}l.currentTime+=g.duration+g.delay;const Ke=this.visitStyle(ge,l);Ke.isEmptyStep=Ce,F=Ke}return l.currentAnimateTimings=null,{type:4,timings:g,style:F,options:null}}visitStyle(c,l){const g=this._makeStyleAst(c,l);return this._validateStyleAst(g,l),g}_makeStyleAst(c,l){const g=[];Array.isArray(c.styles)?c.styles.forEach(ge=>{"string"==typeof ge?ge==G.l3?g.push(ge):l.errors.push(`The provided style string value ${ge} is not allowed.`):g.push(ge)}):g.push(c.styles);let F=!1,ne=null;return g.forEach(ge=>{if($(ge)){const Ce=ge,Ke=Ce.easing;if(Ke&&(ne=Ke,delete Ce.easing),!F)for(let ft in Ce)if(Ce[ft].toString().indexOf("{{")>=0){F=!0;break}}}),{type:6,styles:g,easing:ne,offset:c.offset,containsDynamicStyles:F,options:null}}_validateStyleAst(c,l){const g=l.currentAnimateTimings;let F=l.currentTime,ne=l.currentTime;g&&ne>0&&(ne-=g.duration+g.delay),c.styles.forEach(ge=>{"string"!=typeof ge&&Object.keys(ge).forEach(Ce=>{if(!this._driver.validateStyleProperty(Ce))return void l.errors.push(`The provided animation property "${Ce}" is not a supported CSS property for animations`);const Ke=l.collectedStyles[l.currentQuerySelector],ft=Ke[Ce];let Pt=!0;ft&&(ne!=F&&ne>=ft.startTime&&F<=ft.endTime&&(l.errors.push(`The CSS property "${Ce}" that exists between the times of "${ft.startTime}ms" and "${ft.endTime}ms" is also being animated in a parallel animation between the times of "${ne}ms" and "${F}ms"`),Pt=!1),ne=ft.startTime),Pt&&(Ke[Ce]={startTime:ne,endTime:F}),l.options&&function mn(O,c,l){const g=c.params||{},F=Ut(O);F.length&&F.forEach(ne=>{g.hasOwnProperty(ne)||l.push(`Unable to resolve the local animation param ${ne} in the given list of values`)})}(ge[Ce],l.options,l.errors)})})}visitKeyframes(c,l){const g={type:5,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push("keyframes() must be placed inside of a call to animate()"),g;let ne=0;const ge=[];let Ce=!1,Ke=!1,ft=0;const Pt=c.steps.map(Jn=>{const ti=this._makeStyleAst(Jn,l);let _i=null!=ti.offset?ti.offset:function E(O){if("string"==typeof O)return null;let c=null;if(Array.isArray(O))O.forEach(l=>{if($(l)&&l.hasOwnProperty("offset")){const g=l;c=parseFloat(g.offset),delete g.offset}});else if($(O)&&O.hasOwnProperty("offset")){const l=O;c=parseFloat(l.offset),delete l.offset}return c}(ti.styles),di=0;return null!=_i&&(ne++,di=ti.offset=_i),Ke=Ke||di<0||di>1,Ce=Ce||di0&&ne{const _i=Gt>0?ti==ln?1:Gt*ti:ge[ti],di=_i*pn;l.currentTime=Kt+Jt.delay+di,Jt.duration=di,this._validateStyleAst(Jn,l),Jn.offset=_i,g.styles.push(Jn)}),g}visitReference(c,l){return{type:8,animation:qe(this,Zt(c.animation),l),options:Ae(c.options)}}visitAnimateChild(c,l){return l.depCount++,{type:9,options:Ae(c.options)}}visitAnimateRef(c,l){return{type:10,animation:this.visitReference(c.animation,l),options:Ae(c.options)}}visitQuery(c,l){const g=l.currentQuerySelector,F=c.options||{};l.queryCount++,l.currentQuery=c;const[ne,ge]=function ce(O){const c=!!O.split(/\s*,\s*/).find(l=>":self"==l);return c&&(O=O.replace(Me,"")),O=O.replace(/@\*/g,ie).replace(/@\w+/g,l=>ie+"-"+l.substr(1)).replace(/:animating/g,je),[O,c]}(c.selector);l.currentQuerySelector=g.length?g+" "+ne:ne,B(l.collectedStyles,l.currentQuerySelector,{});const Ce=qe(this,Zt(c.animation),l);return l.currentQuery=null,l.currentQuerySelector=g,{type:11,selector:ne,limit:F.limit||0,optional:!!F.optional,includeSelf:ge,animation:Ce,originalSelector:c.selector,options:Ae(c.options)}}visitStagger(c,l){l.currentQuery||l.errors.push("stagger() can only be used inside of query()");const g="full"===c.timings?{duration:0,delay:0,easing:"full"}:ve(c.timings,l.errors,!0);return{type:12,animation:qe(this,Zt(c.animation),l),timings:g,options:null}}}class L{constructor(c){this.errors=c,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 $(O){return!Array.isArray(O)&&"object"==typeof O}function Ae(O){return O?(O=Qe(O)).params&&(O.params=function Ne(O){return O?Qe(O):null}(O.params)):O={},O}function wt(O,c,l){return{duration:O,delay:c,easing:l}}function At(O,c,l,g,F,ne,ge=null,Ce=!1){return{type:1,element:O,keyframes:c,preStyleProps:l,postStyleProps:g,duration:F,delay:ne,totalTime:F+ne,easing:ge,subTimeline:Ce}}class Qt{constructor(){this._map=new Map}get(c){return this._map.get(c)||[]}append(c,l){let g=this._map.get(c);g||this._map.set(c,g=[]),g.push(...l)}has(c){return this._map.has(c)}clear(){this._map.clear()}}const An=new RegExp(":enter","g"),jn=new RegExp(":leave","g");function qt(O,c,l,g,F,ne={},ge={},Ce,Ke,ft=[]){return(new Re).buildKeyframes(O,c,l,g,F,ne,ge,Ce,Ke,ft)}class Re{buildKeyframes(c,l,g,F,ne,ge,Ce,Ke,ft,Pt=[]){ft=ft||new Qt;const Bt=new ae(c,l,ft,F,ne,Pt,[]);Bt.options=Ke,Bt.currentTimeline.setStyles([ge],null,Bt.errors,Ke),qe(this,g,Bt);const Gt=Bt.timelines.filter(ln=>ln.containsAnimation());if(Object.keys(Ce).length){let ln;for(let Kt=Gt.length-1;Kt>=0;Kt--){const Jt=Gt[Kt];if(Jt.element===l){ln=Jt;break}}ln&&!ln.allowOnlyTimelineStyles()&&ln.setStyles([Ce],null,Bt.errors,Ke)}return Gt.length?Gt.map(ln=>ln.buildKeyframes()):[At(l,[],[],[],0,0,"",!1)]}visitTrigger(c,l){}visitState(c,l){}visitTransition(c,l){}visitAnimateChild(c,l){const g=l.subInstructions.get(l.element);if(g){const F=l.createSubContext(c.options),ne=l.currentTimeline.currentTime,ge=this._visitSubInstructions(g,F,F.options);ne!=ge&&l.transformIntoNewTimeline(ge)}l.previousNode=c}visitAnimateRef(c,l){const g=l.createSubContext(c.options);g.transformIntoNewTimeline(),this.visitReference(c.animation,g),l.transformIntoNewTimeline(g.currentTimeline.currentTime),l.previousNode=c}_visitSubInstructions(c,l,g){let ne=l.currentTimeline.currentTime;const ge=null!=g.duration?tt(g.duration):null,Ce=null!=g.delay?tt(g.delay):null;return 0!==ge&&c.forEach(Ke=>{const ft=l.appendInstructionToTimeline(Ke,ge,Ce);ne=Math.max(ne,ft.duration+ft.delay)}),ne}visitReference(c,l){l.updateOptions(c.options,!0),qe(this,c.animation,l),l.previousNode=c}visitSequence(c,l){const g=l.subContextCount;let F=l;const ne=c.options;if(ne&&(ne.params||ne.delay)&&(F=l.createSubContext(ne),F.transformIntoNewTimeline(),null!=ne.delay)){6==F.previousNode.type&&(F.currentTimeline.snapshotCurrentStyles(),F.previousNode=we);const ge=tt(ne.delay);F.delayNextStep(ge)}c.steps.length&&(c.steps.forEach(ge=>qe(this,ge,F)),F.currentTimeline.applyStylesToKeyframe(),F.subContextCount>g&&F.transformIntoNewTimeline()),l.previousNode=c}visitGroup(c,l){const g=[];let F=l.currentTimeline.currentTime;const ne=c.options&&c.options.delay?tt(c.options.delay):0;c.steps.forEach(ge=>{const Ce=l.createSubContext(c.options);ne&&Ce.delayNextStep(ne),qe(this,ge,Ce),F=Math.max(F,Ce.currentTimeline.currentTime),g.push(Ce.currentTimeline)}),g.forEach(ge=>l.currentTimeline.mergeTimelineCollectedStyles(ge)),l.transformIntoNewTimeline(F),l.previousNode=c}_visitTiming(c,l){if(c.dynamic){const g=c.strValue;return ve(l.params?un(g,l.params,l.errors):g,l.errors)}return{duration:c.duration,delay:c.delay,easing:c.easing}}visitAnimate(c,l){const g=l.currentAnimateTimings=this._visitTiming(c.timings,l),F=l.currentTimeline;g.delay&&(l.incrementTime(g.delay),F.snapshotCurrentStyles());const ne=c.style;5==ne.type?this.visitKeyframes(ne,l):(l.incrementTime(g.duration),this.visitStyle(ne,l),F.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=c}visitStyle(c,l){const g=l.currentTimeline,F=l.currentAnimateTimings;!F&&g.getCurrentStyleProperties().length&&g.forwardFrame();const ne=F&&F.easing||c.easing;c.isEmptyStep?g.applyEmptyStep(ne):g.setStyles(c.styles,ne,l.errors,l.options),l.previousNode=c}visitKeyframes(c,l){const g=l.currentAnimateTimings,F=l.currentTimeline.duration,ne=g.duration,Ce=l.createSubContext().currentTimeline;Ce.easing=g.easing,c.styles.forEach(Ke=>{Ce.forwardTime((Ke.offset||0)*ne),Ce.setStyles(Ke.styles,Ke.easing,l.errors,l.options),Ce.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(Ce),l.transformIntoNewTimeline(F+ne),l.previousNode=c}visitQuery(c,l){const g=l.currentTimeline.currentTime,F=c.options||{},ne=F.delay?tt(F.delay):0;ne&&(6===l.previousNode.type||0==g&&l.currentTimeline.getCurrentStyleProperties().length)&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=we);let ge=g;const Ce=l.invokeQuery(c.selector,c.originalSelector,c.limit,c.includeSelf,!!F.optional,l.errors);l.currentQueryTotal=Ce.length;let Ke=null;Ce.forEach((ft,Pt)=>{l.currentQueryIndex=Pt;const Bt=l.createSubContext(c.options,ft);ne&&Bt.delayNextStep(ne),ft===l.element&&(Ke=Bt.currentTimeline),qe(this,c.animation,Bt),Bt.currentTimeline.applyStylesToKeyframe(),ge=Math.max(ge,Bt.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(ge),Ke&&(l.currentTimeline.mergeTimelineCollectedStyles(Ke),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=c}visitStagger(c,l){const g=l.parentContext,F=l.currentTimeline,ne=c.timings,ge=Math.abs(ne.duration),Ce=ge*(l.currentQueryTotal-1);let Ke=ge*l.currentQueryIndex;switch(ne.duration<0?"reverse":ne.easing){case"reverse":Ke=Ce-Ke;break;case"full":Ke=g.currentStaggerTime}const Pt=l.currentTimeline;Ke&&Pt.delayNextStep(Ke);const Bt=Pt.currentTime;qe(this,c.animation,l),l.previousNode=c,g.currentStaggerTime=F.currentTime-Bt+(F.startTime-g.currentTimeline.startTime)}}const we={};class ae{constructor(c,l,g,F,ne,ge,Ce,Ke){this._driver=c,this.element=l,this.subInstructions=g,this._enterClassName=F,this._leaveClassName=ne,this.errors=ge,this.timelines=Ce,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=we,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ke||new Ve(this._driver,l,0),Ce.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(c,l){if(!c)return;const g=c;let F=this.options;null!=g.duration&&(F.duration=tt(g.duration)),null!=g.delay&&(F.delay=tt(g.delay));const ne=g.params;if(ne){let ge=F.params;ge||(ge=this.options.params={}),Object.keys(ne).forEach(Ce=>{(!l||!ge.hasOwnProperty(Ce))&&(ge[Ce]=un(ne[Ce],ge,this.errors))})}}_copyOptions(){const c={};if(this.options){const l=this.options.params;if(l){const g=c.params={};Object.keys(l).forEach(F=>{g[F]=l[F]})}}return c}createSubContext(c=null,l,g){const F=l||this.element,ne=new ae(this._driver,F,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(F,g||0));return ne.previousNode=this.previousNode,ne.currentAnimateTimings=this.currentAnimateTimings,ne.options=this._copyOptions(),ne.updateOptions(c),ne.currentQueryIndex=this.currentQueryIndex,ne.currentQueryTotal=this.currentQueryTotal,ne.parentContext=this,this.subContextCount++,ne}transformIntoNewTimeline(c){return this.previousNode=we,this.currentTimeline=this.currentTimeline.fork(this.element,c),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(c,l,g){const F={duration:null!=l?l:c.duration,delay:this.currentTimeline.currentTime+(null!=g?g:0)+c.delay,easing:""},ne=new ht(this._driver,c.element,c.keyframes,c.preStyleProps,c.postStyleProps,F,c.stretchStartingKeyframe);return this.timelines.push(ne),F}incrementTime(c){this.currentTimeline.forwardTime(this.currentTimeline.duration+c)}delayNextStep(c){c>0&&this.currentTimeline.delayNextStep(c)}invokeQuery(c,l,g,F,ne,ge){let Ce=[];if(F&&Ce.push(this.element),c.length>0){c=(c=c.replace(An,"."+this._enterClassName)).replace(jn,"."+this._leaveClassName);let ft=this._driver.query(this.element,c,1!=g);0!==g&&(ft=g<0?ft.slice(ft.length+g,ft.length):ft.slice(0,g)),Ce.push(...ft)}return!ne&&0==Ce.length&&ge.push(`\`query("${l}")\` returned zero elements. (Use \`query("${l}", { optional: true })\` if you wish to allow this.)`),Ce}}class Ve{constructor(c,l,g,F){this._driver=c,this.element=l,this.startTime=g,this._elementTimelineStylesLookup=F,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(l),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(l,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(c){const l=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||l?(this.forwardTime(this.currentTime+c),l&&this.snapshotCurrentStyles()):this.startTime+=c}fork(c,l){return this.applyStylesToKeyframe(),new Ve(this._driver,c,l||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(c){this.applyStylesToKeyframe(),this.duration=c,this._loadKeyframe()}_updateStyle(c,l){this._localTimelineStyles[c]=l,this._globalTimelineStyles[c]=l,this._styleSummary[c]={time:this.currentTime,value:l}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(c){c&&(this._previousKeyframe.easing=c),Object.keys(this._globalTimelineStyles).forEach(l=>{this._backFill[l]=this._globalTimelineStyles[l]||G.l3,this._currentKeyframe[l]=G.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(c,l,g,F){l&&(this._previousKeyframe.easing=l);const ne=F&&F.params||{},ge=function jt(O,c){const l={};let g;return O.forEach(F=>{"*"===F?(g=g||Object.keys(c),g.forEach(ne=>{l[ne]=G.l3})):_t(F,!1,l)}),l}(c,this._globalTimelineStyles);Object.keys(ge).forEach(Ce=>{const Ke=un(ge[Ce],ne,g);this._pendingStyles[Ce]=Ke,this._localTimelineStyles.hasOwnProperty(Ce)||(this._backFill[Ce]=this._globalTimelineStyles.hasOwnProperty(Ce)?this._globalTimelineStyles[Ce]:G.l3),this._updateStyle(Ce,Ke)})}applyStylesToKeyframe(){const c=this._pendingStyles,l=Object.keys(c);0!=l.length&&(this._pendingStyles={},l.forEach(g=>{this._currentKeyframe[g]=c[g]}),Object.keys(this._localTimelineStyles).forEach(g=>{this._currentKeyframe.hasOwnProperty(g)||(this._currentKeyframe[g]=this._localTimelineStyles[g])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(c=>{const l=this._localTimelineStyles[c];this._pendingStyles[c]=l,this._updateStyle(c,l)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const c=[];for(let l in this._currentKeyframe)c.push(l);return c}mergeTimelineCollectedStyles(c){Object.keys(c._styleSummary).forEach(l=>{const g=this._styleSummary[l],F=c._styleSummary[l];(!g||F.time>g.time)&&this._updateStyle(l,F.value)})}buildKeyframes(){this.applyStylesToKeyframe();const c=new Set,l=new Set,g=1===this._keyframes.size&&0===this.duration;let F=[];this._keyframes.forEach((Ce,Ke)=>{const ft=_t(Ce,!0);Object.keys(ft).forEach(Pt=>{const Bt=ft[Pt];Bt==G.k1?c.add(Pt):Bt==G.l3&&l.add(Pt)}),g||(ft.offset=Ke/this.duration),F.push(ft)});const ne=c.size?_n(c.values()):[],ge=l.size?_n(l.values()):[];if(g){const Ce=F[0],Ke=Qe(Ce);Ce.offset=0,Ke.offset=1,F=[Ce,Ke]}return At(this.element,F,ne,ge,this.duration,this.startTime,this.easing,!1)}}class ht extends Ve{constructor(c,l,g,F,ne,ge,Ce=!1){super(c,l,ge.delay),this.keyframes=g,this.preStyleProps=F,this.postStyleProps=ne,this._stretchStartingKeyframe=Ce,this.timings={duration:ge.duration,delay:ge.delay,easing:ge.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let c=this.keyframes,{delay:l,duration:g,easing:F}=this.timings;if(this._stretchStartingKeyframe&&l){const ne=[],ge=g+l,Ce=l/ge,Ke=_t(c[0],!1);Ke.offset=0,ne.push(Ke);const ft=_t(c[0],!1);ft.offset=It(Ce),ne.push(ft);const Pt=c.length-1;for(let Bt=1;Bt<=Pt;Bt++){let Gt=_t(c[Bt],!1);Gt.offset=It((l+Gt.offset*g)/ge),ne.push(Gt)}g=ge,l=0,F="",c=ne}return At(this.element,c,this.preStyleProps,this.postStyleProps,g,l,F,!0)}}function It(O,c=3){const l=Math.pow(10,c-1);return Math.round(O*l)/l}class Pn{}class Zn extends Pn{normalizePropertyName(c,l){return Dt(c)}normalizeStyleValue(c,l,g,F){let ne="";const ge=g.toString().trim();if(ii[l]&&0!==g&&"0"!==g)if("number"==typeof g)ne="px";else{const Ce=g.match(/^[+-]?[\d\.]+([a-z]*)$/);Ce&&0==Ce[1].length&&F.push(`Please provide a CSS unit value for ${c}:${g}`)}return ge+ne}}const ii=(()=>function En(O){const c={};return O.forEach(l=>c[l]=!0),c}("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 ei(O,c,l,g,F,ne,ge,Ce,Ke,ft,Pt,Bt,Gt){return{type:0,element:O,triggerName:c,isRemovalTransition:F,fromState:l,fromStyles:ne,toState:g,toStyles:ge,timelines:Ce,queriedElements:Ke,preStyleProps:ft,postStyleProps:Pt,totalTime:Bt,errors:Gt}}const Ln={};class Tt{constructor(c,l,g){this._triggerName=c,this.ast=l,this._stateStyles=g}match(c,l,g,F){return function rn(O,c,l,g,F){return O.some(ne=>ne(c,l,g,F))}(this.ast.matchers,c,l,g,F)}buildStyles(c,l,g){const F=this._stateStyles["*"],ne=this._stateStyles[c],ge=F?F.buildStyles(l,g):{};return ne?ne.buildStyles(l,g):ge}build(c,l,g,F,ne,ge,Ce,Ke,ft,Pt){const Bt=[],Gt=this.ast.options&&this.ast.options.params||Ln,Kt=this.buildStyles(g,Ce&&Ce.params||Ln,Bt),Jt=Ke&&Ke.params||Ln,pn=this.buildStyles(F,Jt,Bt),Jn=new Set,ti=new Map,_i=new Map,di="void"===F,qi={params:Object.assign(Object.assign({},Gt),Jt)},Oi=Pt?[]:qt(c,l,this.ast.animation,ne,ge,Kt,pn,qi,ft,Bt);let fi=0;if(Oi.forEach(Yi=>{fi=Math.max(Yi.duration+Yi.delay,fi)}),Bt.length)return ei(l,this._triggerName,g,F,di,Kt,pn,[],[],ti,_i,fi,Bt);Oi.forEach(Yi=>{const Li=Yi.element,Ho=B(ti,Li,{});Yi.preStyleProps.forEach(ao=>Ho[ao]=!0);const zo=B(_i,Li,{});Yi.postStyleProps.forEach(ao=>zo[ao]=!0),Li!==l&&Jn.add(Li)});const Bi=_n(Jn.values());return ei(l,this._triggerName,g,F,di,Kt,pn,Oi,Bi,ti,_i,fi)}}class bn{constructor(c,l,g){this.styles=c,this.defaultParams=l,this.normalizer=g}buildStyles(c,l){const g={},F=Qe(this.defaultParams);return Object.keys(c).forEach(ne=>{const ge=c[ne];null!=ge&&(F[ne]=ge)}),this.styles.styles.forEach(ne=>{if("string"!=typeof ne){const ge=ne;Object.keys(ge).forEach(Ce=>{let Ke=ge[Ce];Ke.length>1&&(Ke=un(Ke,F,l));const ft=this.normalizer.normalizePropertyName(Ce,l);Ke=this.normalizer.normalizeStyleValue(Ce,ft,Ke,l),g[ft]=Ke})}}),g}}class Te{constructor(c,l,g){this.name=c,this.ast=l,this._normalizer=g,this.transitionFactories=[],this.states={},l.states.forEach(F=>{this.states[F.name]=new bn(F.style,F.options&&F.options.params||{},g)}),De(this.states,"true","1"),De(this.states,"false","0"),l.transitions.forEach(F=>{this.transitionFactories.push(new Tt(c,F,this.states))}),this.fallbackTransition=function Ze(O,c,l){return new Tt(O,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ge,Ce)=>!0],options:null,queryCount:0,depCount:0},c)}(c,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(c,l,g,F){return this.transitionFactories.find(ge=>ge.match(c,l,g,F))||null}matchStyles(c,l,g){return this.fallbackTransition.buildStyles(c,l,g)}}function De(O,c,l){O.hasOwnProperty(c)?O.hasOwnProperty(l)||(O[l]=O[c]):O.hasOwnProperty(l)&&(O[c]=O[l])}const rt=new Qt;class Wt{constructor(c,l,g){this.bodyNode=c,this._driver=l,this._normalizer=g,this._animations={},this._playersById={},this.players=[]}register(c,l){const g=[],F=V(this._driver,l,g);if(g.length)throw new Error(`Unable to build the animation due to the following errors: ${g.join("\n")}`);this._animations[c]=F}_buildPlayer(c,l,g){const F=c.element,ne=W(0,this._normalizer,0,c.keyframes,l,g);return this._driver.animate(F,ne,c.duration,c.delay,c.easing,[],!0)}create(c,l,g={}){const F=[],ne=this._animations[c];let ge;const Ce=new Map;if(ne?(ge=qt(this._driver,l,ne,he,te,{},{},g,rt,F),ge.forEach(Pt=>{const Bt=B(Ce,Pt.element,{});Pt.postStyleProps.forEach(Gt=>Bt[Gt]=null)})):(F.push("The requested animation doesn't exist or has already been destroyed"),ge=[]),F.length)throw new Error(`Unable to create the animation due to the following errors: ${F.join("\n")}`);Ce.forEach((Pt,Bt)=>{Object.keys(Pt).forEach(Gt=>{Pt[Gt]=this._driver.computeStyle(Bt,Gt,G.l3)})});const ft=_(ge.map(Pt=>{const Bt=Ce.get(Pt.element);return this._buildPlayer(Pt,{},Bt)}));return this._playersById[c]=ft,ft.onDestroy(()=>this.destroy(c)),this.players.push(ft),ft}destroy(c){const l=this._getPlayer(c);l.destroy(),delete this._playersById[c];const g=this.players.indexOf(l);g>=0&&this.players.splice(g,1)}_getPlayer(c){const l=this._playersById[c];if(!l)throw new Error(`Unable to find the timeline player referenced by ${c}`);return l}listen(c,l,g,F){const ne=H(l,"","","");return I(this._getPlayer(c),g,ne,F),()=>{}}command(c,l,g,F){if("register"==g)return void this.register(c,F[0]);if("create"==g)return void this.create(c,l,F[0]||{});const ne=this._getPlayer(c);switch(g){case"play":ne.play();break;case"pause":ne.pause();break;case"reset":ne.reset();break;case"restart":ne.restart();break;case"finish":ne.finish();break;case"init":ne.init();break;case"setPosition":ne.setPosition(parseFloat(F[0]));break;case"destroy":this.destroy(c)}}}const on="ng-animate-queued",Un="ng-animate-disabled",qn=[],X={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},se={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},k="__ng_removed";class Ee{constructor(c,l=""){this.namespaceId=l;const g=c&&c.hasOwnProperty("value");if(this.value=function ai(O){return null!=O?O:null}(g?c.value:c),g){const ne=Qe(c);delete ne.value,this.options=ne}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(c){const l=c.params;if(l){const g=this.options.params;Object.keys(l).forEach(F=>{null==g[F]&&(g[F]=l[F])})}}}const st="void",Ct=new Ee(st);class Ot{constructor(c,l,g){this.id=c,this.hostElement=l,this._engine=g,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+c,ui(l,this._hostClassName)}listen(c,l,g,F){if(!this._triggers.hasOwnProperty(l))throw new Error(`Unable to listen on the animation trigger event "${g}" because the animation trigger "${l}" doesn't exist!`);if(null==g||0==g.length)throw new Error(`Unable to listen on the animation trigger "${l}" because the provided event is undefined!`);if(!function bi(O){return"start"==O||"done"==O}(g))throw new Error(`The provided animation trigger event "${g}" for the animation trigger "${l}" is not supported!`);const ne=B(this._elementListeners,c,[]),ge={name:l,phase:g,callback:F};ne.push(ge);const Ce=B(this._engine.statesByElement,c,{});return Ce.hasOwnProperty(l)||(ui(c,le),ui(c,le+"-"+l),Ce[l]=Ct),()=>{this._engine.afterFlush(()=>{const Ke=ne.indexOf(ge);Ke>=0&&ne.splice(Ke,1),this._triggers[l]||delete Ce[l]})}}register(c,l){return!this._triggers[c]&&(this._triggers[c]=l,!0)}_getTrigger(c){const l=this._triggers[c];if(!l)throw new Error(`The provided animation trigger "${c}" has not been registered!`);return l}trigger(c,l,g,F=!0){const ne=this._getTrigger(l),ge=new hn(this.id,l,c);let Ce=this._engine.statesByElement.get(c);Ce||(ui(c,le),ui(c,le+"-"+l),this._engine.statesByElement.set(c,Ce={}));let Ke=Ce[l];const ft=new Ee(g,this.id);if(!(g&&g.hasOwnProperty("value"))&&Ke&&ft.absorbOptions(Ke.options),Ce[l]=ft,Ke||(Ke=Ct),ft.value!==st&&Ke.value===ft.value){if(!function Zo(O,c){const l=Object.keys(O),g=Object.keys(c);if(l.length!=g.length)return!1;for(let F=0;F{Et(c,pn),ot(c,Jn)})}return}const Gt=B(this._engine.playersByElement,c,[]);Gt.forEach(Jt=>{Jt.namespaceId==this.id&&Jt.triggerName==l&&Jt.queued&&Jt.destroy()});let ln=ne.matchTransition(Ke.value,ft.value,c,ft.params),Kt=!1;if(!ln){if(!F)return;ln=ne.fallbackTransition,Kt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:l,transition:ln,fromState:Ke,toState:ft,player:ge,isFallbackTransition:Kt}),Kt||(ui(c,on),ge.onStart(()=>{wi(c,on)})),ge.onDone(()=>{let Jt=this.players.indexOf(ge);Jt>=0&&this.players.splice(Jt,1);const pn=this._engine.playersByElement.get(c);if(pn){let Jn=pn.indexOf(ge);Jn>=0&&pn.splice(Jn,1)}}),this.players.push(ge),Gt.push(ge),ge}deregister(c){delete this._triggers[c],this._engine.statesByElement.forEach((l,g)=>{delete l[c]}),this._elementListeners.forEach((l,g)=>{this._elementListeners.set(g,l.filter(F=>F.name!=c))})}clearElementCache(c){this._engine.statesByElement.delete(c),this._elementListeners.delete(c);const l=this._engine.playersByElement.get(c);l&&(l.forEach(g=>g.destroy()),this._engine.playersByElement.delete(c))}_signalRemovalForInnerTriggers(c,l){const g=this._engine.driver.query(c,ie,!0);g.forEach(F=>{if(F[k])return;const ne=this._engine.fetchNamespacesByElement(F);ne.size?ne.forEach(ge=>ge.triggerLeaveAnimation(F,l,!1,!0)):this.clearElementCache(F)}),this._engine.afterFlushAnimationsDone(()=>g.forEach(F=>this.clearElementCache(F)))}triggerLeaveAnimation(c,l,g,F){const ne=this._engine.statesByElement.get(c),ge=new Map;if(ne){const Ce=[];if(Object.keys(ne).forEach(Ke=>{if(ge.set(Ke,ne[Ke].value),this._triggers[Ke]){const ft=this.trigger(c,Ke,st,F);ft&&Ce.push(ft)}}),Ce.length)return this._engine.markElementAsRemoved(this.id,c,!0,l,ge),g&&_(Ce).onDone(()=>this._engine.processLeaveNode(c)),!0}return!1}prepareLeaveAnimationListeners(c){const l=this._elementListeners.get(c),g=this._engine.statesByElement.get(c);if(l&&g){const F=new Set;l.forEach(ne=>{const ge=ne.name;if(F.has(ge))return;F.add(ge);const Ke=this._triggers[ge].fallbackTransition,ft=g[ge]||Ct,Pt=new Ee(st),Bt=new hn(this.id,ge,c);this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:ge,transition:Ke,fromState:ft,toState:Pt,player:Bt,isFallbackTransition:!0})})}}removeNode(c,l){const g=this._engine;if(c.childElementCount&&this._signalRemovalForInnerTriggers(c,l),this.triggerLeaveAnimation(c,l,!0))return;let F=!1;if(g.totalAnimations){const ne=g.players.length?g.playersByQueriedElement.get(c):[];if(ne&&ne.length)F=!0;else{let ge=c;for(;ge=ge.parentNode;)if(g.statesByElement.get(ge)){F=!0;break}}}if(this.prepareLeaveAnimationListeners(c),F)g.markElementAsRemoved(this.id,c,!1,l);else{const ne=c[k];(!ne||ne===X)&&(g.afterFlush(()=>this.clearElementCache(c)),g.destroyInnerAnimations(c),g._onRemovalComplete(c,l))}}insertNode(c,l){ui(c,this._hostClassName)}drainQueuedTransitions(c){const l=[];return this._queue.forEach(g=>{const F=g.player;if(F.destroyed)return;const ne=g.element,ge=this._elementListeners.get(ne);ge&&ge.forEach(Ce=>{if(Ce.name==g.triggerName){const Ke=H(ne,g.triggerName,g.fromState.value,g.toState.value);Ke._data=c,I(g.player,Ce.phase,Ke,Ce.callback)}}),F.markedForDestroy?this._engine.afterFlush(()=>{F.destroy()}):l.push(g)}),this._queue=[],l.sort((g,F)=>{const ne=g.transition.ast.depCount,ge=F.transition.ast.depCount;return 0==ne||0==ge?ne-ge:this._engine.driver.containsElement(g.element,F.element)?1:-1})}destroy(c){this.players.forEach(l=>l.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,c)}elementContainsData(c){let l=!1;return this._elementListeners.has(c)&&(l=!0),l=!!this._queue.find(g=>g.element===c)||l,l}}class Vt{constructor(c,l,g){this.bodyNode=c,this.driver=l,this._normalizer=g,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=(F,ne)=>{}}_onRemovalComplete(c,l){this.onRemovalComplete(c,l)}get queuedPlayers(){const c=[];return this._namespaceList.forEach(l=>{l.players.forEach(g=>{g.queued&&c.push(g)})}),c}createNamespace(c,l){const g=new Ot(c,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(g,l):(this.newHostElements.set(l,g),this.collectEnterElement(l)),this._namespaceLookup[c]=g}_balanceNamespaceList(c,l){const g=this._namespaceList.length-1;if(g>=0){let F=!1;for(let ne=g;ne>=0;ne--)if(this.driver.containsElement(this._namespaceList[ne].hostElement,l)){this._namespaceList.splice(ne+1,0,c),F=!0;break}F||this._namespaceList.splice(0,0,c)}else this._namespaceList.push(c);return this.namespacesByHostElement.set(l,c),c}register(c,l){let g=this._namespaceLookup[c];return g||(g=this.createNamespace(c,l)),g}registerTrigger(c,l,g){let F=this._namespaceLookup[c];F&&F.register(l,g)&&this.totalAnimations++}destroy(c,l){if(!c)return;const g=this._fetchNamespace(c);this.afterFlush(()=>{this.namespacesByHostElement.delete(g.hostElement),delete this._namespaceLookup[c];const F=this._namespaceList.indexOf(g);F>=0&&this._namespaceList.splice(F,1)}),this.afterFlushAnimationsDone(()=>g.destroy(l))}_fetchNamespace(c){return this._namespaceLookup[c]}fetchNamespacesByElement(c){const l=new Set,g=this.statesByElement.get(c);if(g){const F=Object.keys(g);for(let ne=0;ne=0&&this.collectedLeaveElements.splice(ge,1)}if(c){const ge=this._fetchNamespace(c);ge&&ge.insertNode(l,g)}F&&this.collectEnterElement(l)}collectEnterElement(c){this.collectedEnterElements.push(c)}markElementAsDisabled(c,l){l?this.disabledNodes.has(c)||(this.disabledNodes.add(c),ui(c,Un)):this.disabledNodes.has(c)&&(this.disabledNodes.delete(c),wi(c,Un))}removeNode(c,l,g,F){if(kn(l)){const ne=c?this._fetchNamespace(c):null;if(ne?ne.removeNode(l,F):this.markElementAsRemoved(c,l,!1,F),g){const ge=this.namespacesByHostElement.get(l);ge&&ge.id!==c&&ge.removeNode(l,F)}}else this._onRemovalComplete(l,F)}markElementAsRemoved(c,l,g,F,ne){this.collectedLeaveElements.push(l),l[k]={namespaceId:c,setForRemoval:F,hasAnimation:g,removedBeforeQueried:!1,previousTriggersValues:ne}}listen(c,l,g,F,ne){return kn(l)?this._fetchNamespace(c).listen(l,g,F,ne):()=>{}}_buildInstruction(c,l,g,F,ne){return c.transition.build(this.driver,c.element,c.fromState.value,c.toState.value,g,F,c.fromState.options,c.toState.options,l,ne)}destroyInnerAnimations(c){let l=this.driver.query(c,ie,!0);l.forEach(g=>this.destroyActiveAnimationsForElement(g)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(c,je,!0),l.forEach(g=>this.finishActiveQueriedAnimationOnElement(g)))}destroyActiveAnimationsForElement(c){const l=this.playersByElement.get(c);l&&l.forEach(g=>{g.queued?g.markedForDestroy=!0:g.destroy()})}finishActiveQueriedAnimationOnElement(c){const l=this.playersByQueriedElement.get(c);l&&l.forEach(g=>g.finish())}whenRenderingDone(){return new Promise(c=>{if(this.players.length)return _(this.players).onDone(()=>c());c()})}processLeaveNode(c){var l;const g=c[k];if(g&&g.setForRemoval){if(c[k]=X,g.namespaceId){this.destroyInnerAnimations(c);const F=this._fetchNamespace(g.namespaceId);F&&F.clearElementCache(c)}this._onRemovalComplete(c,g.setForRemoval)}(null===(l=c.classList)||void 0===l?void 0:l.contains(Un))&&this.markElementAsDisabled(c,!1),this.driver.query(c,".ng-animate-disabled",!0).forEach(F=>{this.markElementAsDisabled(F,!1)})}flush(c=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((g,F)=>this._balanceNamespaceList(g,F)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let g=0;gg()),this._flushFns=[],this._whenQuietFns.length){const g=this._whenQuietFns;this._whenQuietFns=[],l.length?_(l).onDone(()=>{g.forEach(F=>F())}):g.forEach(F=>F())}}reportError(c){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${c.join("\n")}`)}_flushAnimations(c,l){const g=new Qt,F=[],ne=new Map,ge=[],Ce=new Map,Ke=new Map,ft=new Map,Pt=new Set;this.disabledNodes.forEach(Rt=>{Pt.add(Rt);const Xt=this.driver.query(Rt,".ng-animate-queued",!0);for(let en=0;en{const en=he+Jt++;Kt.set(Xt,en),Rt.forEach(sn=>ui(sn,en))});const pn=[],Jn=new Set,ti=new Set;for(let Rt=0;RtJn.add(sn)):ti.add(Xt))}const _i=new Map,di=vi(Gt,Array.from(Jn));di.forEach((Rt,Xt)=>{const en=te+Jt++;_i.set(Xt,en),Rt.forEach(sn=>ui(sn,en))}),c.push(()=>{ln.forEach((Rt,Xt)=>{const en=Kt.get(Xt);Rt.forEach(sn=>wi(sn,en))}),di.forEach((Rt,Xt)=>{const en=_i.get(Xt);Rt.forEach(sn=>wi(sn,en))}),pn.forEach(Rt=>{this.processLeaveNode(Rt)})});const qi=[],Oi=[];for(let Rt=this._namespaceList.length-1;Rt>=0;Rt--)this._namespaceList[Rt].drainQueuedTransitions(l).forEach(en=>{const sn=en.player,Gn=en.element;if(qi.push(sn),this.collectedEnterElements.length){const Ci=Gn[k];if(Ci&&Ci.setForMove){if(Ci.previousTriggersValues&&Ci.previousTriggersValues.has(en.triggerName)){const Hi=Ci.previousTriggersValues.get(en.triggerName),Ni=this.statesByElement.get(en.element);Ni&&Ni[en.triggerName]&&(Ni[en.triggerName].value=Hi)}return void sn.destroy()}}const xn=!Bt||!this.driver.containsElement(Bt,Gn),pi=_i.get(Gn),Ji=Kt.get(Gn),Xn=this._buildInstruction(en,g,Ji,pi,xn);if(Xn.errors&&Xn.errors.length)return void Oi.push(Xn);if(xn)return sn.onStart(()=>Et(Gn,Xn.fromStyles)),sn.onDestroy(()=>ot(Gn,Xn.toStyles)),void F.push(sn);if(en.isFallbackTransition)return sn.onStart(()=>Et(Gn,Xn.fromStyles)),sn.onDestroy(()=>ot(Gn,Xn.toStyles)),void F.push(sn);const mr=[];Xn.timelines.forEach(Ci=>{Ci.stretchStartingKeyframe=!0,this.disabledNodes.has(Ci.element)||mr.push(Ci)}),Xn.timelines=mr,g.append(Gn,Xn.timelines),ge.push({instruction:Xn,player:sn,element:Gn}),Xn.queriedElements.forEach(Ci=>B(Ce,Ci,[]).push(sn)),Xn.preStyleProps.forEach((Ci,Hi)=>{const Ni=Object.keys(Ci);if(Ni.length){let ji=Ke.get(Hi);ji||Ke.set(Hi,ji=new Set),Ni.forEach(ci=>ji.add(ci))}}),Xn.postStyleProps.forEach((Ci,Hi)=>{const Ni=Object.keys(Ci);let ji=ft.get(Hi);ji||ft.set(Hi,ji=new Set),Ni.forEach(ci=>ji.add(ci))})});if(Oi.length){const Rt=[];Oi.forEach(Xt=>{Rt.push(`@${Xt.triggerName} has failed due to:\n`),Xt.errors.forEach(en=>Rt.push(`- ${en}\n`))}),qi.forEach(Xt=>Xt.destroy()),this.reportError(Rt)}const fi=new Map,Bi=new Map;ge.forEach(Rt=>{const Xt=Rt.element;g.has(Xt)&&(Bi.set(Xt,Xt),this._beforeAnimationBuild(Rt.player.namespaceId,Rt.instruction,fi))}),F.forEach(Rt=>{const Xt=Rt.element;this._getPreviousPlayers(Xt,!1,Rt.namespaceId,Rt.triggerName,null).forEach(sn=>{B(fi,Xt,[]).push(sn),sn.destroy()})});const Yi=pn.filter(Rt=>Wi(Rt,Ke,ft)),Li=new Map;Ao(Li,this.driver,ti,ft,G.l3).forEach(Rt=>{Wi(Rt,Ke,ft)&&Yi.push(Rt)});const zo=new Map;ln.forEach((Rt,Xt)=>{Ao(zo,this.driver,new Set(Rt),Ke,G.k1)}),Yi.forEach(Rt=>{const Xt=Li.get(Rt),en=zo.get(Rt);Li.set(Rt,Object.assign(Object.assign({},Xt),en))});const ao=[],fr=[],pr={};ge.forEach(Rt=>{const{element:Xt,player:en,instruction:sn}=Rt;if(g.has(Xt)){if(Pt.has(Xt))return en.onDestroy(()=>ot(Xt,sn.toStyles)),en.disabled=!0,en.overrideTotalTime(sn.totalTime),void F.push(en);let Gn=pr;if(Bi.size>1){let pi=Xt;const Ji=[];for(;pi=pi.parentNode;){const Xn=Bi.get(pi);if(Xn){Gn=Xn;break}Ji.push(pi)}Ji.forEach(Xn=>Bi.set(Xn,Gn))}const xn=this._buildAnimation(en.namespaceId,sn,fi,ne,zo,Li);if(en.setRealPlayer(xn),Gn===pr)ao.push(en);else{const pi=this.playersByElement.get(Gn);pi&&pi.length&&(en.parentPlayer=_(pi)),F.push(en)}}else Et(Xt,sn.fromStyles),en.onDestroy(()=>ot(Xt,sn.toStyles)),fr.push(en),Pt.has(Xt)&&F.push(en)}),fr.forEach(Rt=>{const Xt=ne.get(Rt.element);if(Xt&&Xt.length){const en=_(Xt);Rt.setRealPlayer(en)}}),F.forEach(Rt=>{Rt.parentPlayer?Rt.syncPlayerEvents(Rt.parentPlayer):Rt.destroy()});for(let Rt=0;Rt!xn.destroyed);Gn.length?ko(this,Xt,Gn):this.processLeaveNode(Xt)}return pn.length=0,ao.forEach(Rt=>{this.players.push(Rt),Rt.onDone(()=>{Rt.destroy();const Xt=this.players.indexOf(Rt);this.players.splice(Xt,1)}),Rt.play()}),ao}elementContainsData(c,l){let g=!1;const F=l[k];return F&&F.setForRemoval&&(g=!0),this.playersByElement.has(l)&&(g=!0),this.playersByQueriedElement.has(l)&&(g=!0),this.statesByElement.has(l)&&(g=!0),this._fetchNamespace(c).elementContainsData(l)||g}afterFlush(c){this._flushFns.push(c)}afterFlushAnimationsDone(c){this._whenQuietFns.push(c)}_getPreviousPlayers(c,l,g,F,ne){let ge=[];if(l){const Ce=this.playersByQueriedElement.get(c);Ce&&(ge=Ce)}else{const Ce=this.playersByElement.get(c);if(Ce){const Ke=!ne||ne==st;Ce.forEach(ft=>{ft.queued||!Ke&&ft.triggerName!=F||ge.push(ft)})}}return(g||F)&&(ge=ge.filter(Ce=>!(g&&g!=Ce.namespaceId||F&&F!=Ce.triggerName))),ge}_beforeAnimationBuild(c,l,g){const ne=l.element,ge=l.isRemovalTransition?void 0:c,Ce=l.isRemovalTransition?void 0:l.triggerName;for(const Ke of l.timelines){const ft=Ke.element,Pt=ft!==ne,Bt=B(g,ft,[]);this._getPreviousPlayers(ft,Pt,ge,Ce,l.toState).forEach(ln=>{const Kt=ln.getRealPlayer();Kt.beforeDestroy&&Kt.beforeDestroy(),ln.destroy(),Bt.push(ln)})}Et(ne,l.fromStyles)}_buildAnimation(c,l,g,F,ne,ge){const Ce=l.triggerName,Ke=l.element,ft=[],Pt=new Set,Bt=new Set,Gt=l.timelines.map(Kt=>{const Jt=Kt.element;Pt.add(Jt);const pn=Jt[k];if(pn&&pn.removedBeforeQueried)return new G.ZN(Kt.duration,Kt.delay);const Jn=Jt!==Ke,ti=function Fo(O){const c=[];return vo(O,c),c}((g.get(Jt)||qn).map(fi=>fi.getRealPlayer())).filter(fi=>!!fi.element&&fi.element===Jt),_i=ne.get(Jt),di=ge.get(Jt),qi=W(0,this._normalizer,0,Kt.keyframes,_i,di),Oi=this._buildPlayer(Kt,qi,ti);if(Kt.subTimeline&&F&&Bt.add(Jt),Jn){const fi=new hn(c,Ce,Jt);fi.setRealPlayer(Oi),ft.push(fi)}return Oi});ft.forEach(Kt=>{B(this.playersByQueriedElement,Kt.element,[]).push(Kt),Kt.onDone(()=>function ni(O,c,l){let g;if(O instanceof Map){if(g=O.get(c),g){if(g.length){const F=g.indexOf(l);g.splice(F,1)}0==g.length&&O.delete(c)}}else if(g=O[c],g){if(g.length){const F=g.indexOf(l);g.splice(F,1)}0==g.length&&delete O[c]}return g}(this.playersByQueriedElement,Kt.element,Kt))}),Pt.forEach(Kt=>ui(Kt,Ue));const ln=_(Gt);return ln.onDestroy(()=>{Pt.forEach(Kt=>wi(Kt,Ue)),ot(Ke,l.toStyles)}),Bt.forEach(Kt=>{B(F,Kt,[]).push(ln)}),ln}_buildPlayer(c,l,g){return l.length>0?this.driver.animate(c.element,l,c.duration,c.delay,c.easing,g):new G.ZN(c.duration,c.delay)}}class hn{constructor(c,l,g){this.namespaceId=c,this.triggerName=l,this.element=g,this._player=new G.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(c){this._containsRealPlayer||(this._player=c,Object.keys(this._queuedCallbacks).forEach(l=>{this._queuedCallbacks[l].forEach(g=>I(c,l,void 0,g))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(c.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(c){this.totalTime=c}syncPlayerEvents(c){const l=this._player;l.triggerCallback&&c.onStart(()=>l.triggerCallback("start")),c.onDone(()=>this.finish()),c.onDestroy(()=>this.destroy())}_queueEvent(c,l){B(this._queuedCallbacks,c,[]).push(l)}onDone(c){this.queued&&this._queueEvent("done",c),this._player.onDone(c)}onStart(c){this.queued&&this._queueEvent("start",c),this._player.onStart(c)}onDestroy(c){this.queued&&this._queueEvent("destroy",c),this._player.onDestroy(c)}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(c){this.queued||this._player.setPosition(c)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(c){const l=this._player;l.triggerCallback&&l.triggerCallback(c)}}function kn(O){return O&&1===O.nodeType}function io(O,c){const l=O.style.display;return O.style.display=null!=c?c:"none",l}function Ao(O,c,l,g,F){const ne=[];l.forEach(Ke=>ne.push(io(Ke)));const ge=[];g.forEach((Ke,ft)=>{const Pt={};Ke.forEach(Bt=>{const Gt=Pt[Bt]=c.computeStyle(ft,Bt,F);(!Gt||0==Gt.length)&&(ft[k]=se,ge.push(ft))}),O.set(ft,Pt)});let Ce=0;return l.forEach(Ke=>io(Ke,ne[Ce++])),ge}function vi(O,c){const l=new Map;if(O.forEach(Ce=>l.set(Ce,[])),0==c.length)return l;const F=new Set(c),ne=new Map;function ge(Ce){if(!Ce)return 1;let Ke=ne.get(Ce);if(Ke)return Ke;const ft=Ce.parentNode;return Ke=l.has(ft)?ft:F.has(ft)?1:ge(ft),ne.set(Ce,Ke),Ke}return c.forEach(Ce=>{const Ke=ge(Ce);1!==Ke&&l.get(Ke).push(Ce)}),l}function ui(O,c){var l;null===(l=O.classList)||void 0===l||l.add(c)}function wi(O,c){var l;null===(l=O.classList)||void 0===l||l.remove(c)}function ko(O,c,l){_(l).onDone(()=>O.processLeaveNode(c))}function vo(O,c){for(let l=0;lF.add(ne)):c.set(O,g),l.delete(O),!0}class yo{constructor(c,l,g){this.bodyNode=c,this._driver=l,this._normalizer=g,this._triggerCache={},this.onRemovalComplete=(F,ne)=>{},this._transitionEngine=new Vt(c,l,g),this._timelineEngine=new Wt(c,l,g),this._transitionEngine.onRemovalComplete=(F,ne)=>this.onRemovalComplete(F,ne)}registerTrigger(c,l,g,F,ne){const ge=c+"-"+F;let Ce=this._triggerCache[ge];if(!Ce){const Ke=[],ft=V(this._driver,ne,Ke);if(Ke.length)throw new Error(`The animation trigger "${F}" has failed to build due to the following errors:\n - ${Ke.join("\n - ")}`);Ce=function Qn(O,c,l){return new Te(O,c,l)}(F,ft,this._normalizer),this._triggerCache[ge]=Ce}this._transitionEngine.registerTrigger(l,F,Ce)}register(c,l){this._transitionEngine.register(c,l)}destroy(c,l){this._transitionEngine.destroy(c,l)}onInsert(c,l,g,F){this._transitionEngine.insertNode(c,l,g,F)}onRemove(c,l,g,F){this._transitionEngine.removeNode(c,l,F||!1,g)}disableAnimations(c,l){this._transitionEngine.markElementAsDisabled(c,l)}process(c,l,g,F){if("@"==g.charAt(0)){const[ne,ge]=ee(g);this._timelineEngine.command(ne,l,ge,F)}else this._transitionEngine.trigger(c,l,g,F)}listen(c,l,g,F,ne){if("@"==g.charAt(0)){const[ge,Ce]=ee(g);return this._timelineEngine.listen(ge,l,Ce,ne)}return this._transitionEngine.listen(c,l,g,F,ne)}flush(c=-1){this._transitionEngine.flush(c)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function _o(O,c){let l=null,g=null;return Array.isArray(c)&&c.length?(l=Ii(c[0]),c.length>1&&(g=Ii(c[c.length-1]))):c&&(l=Ii(c)),l||g?new sr(O,l,g):null}let sr=(()=>{class O{constructor(l,g,F){this._element=l,this._startStyles=g,this._endStyles=F,this._state=0;let ne=O.initialStylesByElement.get(l);ne||O.initialStylesByElement.set(l,ne={}),this._initialStyles=ne}start(){this._state<1&&(this._startStyles&&ot(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ot(this._element,this._initialStyles),this._endStyles&&(ot(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(O.initialStylesByElement.delete(this._element),this._startStyles&&(Et(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Et(this._element,this._endStyles),this._endStyles=null),ot(this._element,this._initialStyles),this._state=3)}}return O.initialStylesByElement=new WeakMap,O})();function Ii(O){let c=null;const l=Object.keys(O);for(let g=0;gthis._handleCallback(Ke)}apply(){(function qo(O,c){const l=bo(O,"").trim();let g=0;l.length&&(g=function Vo(O,c){let l=0;for(let g=0;g=this._delay&&g>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Zi(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function Ti(O,c){const g=bo(O,"").split(","),F=oi(g,c);F>=0&&(g.splice(F,1),Di(O,"",g.join(",")))}(this._element,this._name))}}function oo(O,c,l){Di(O,"PlayState",l,ro(O,c))}function ro(O,c){const l=bo(O,"");return l.indexOf(",")>0?oi(l.split(","),c):oi([l],c)}function oi(O,c){for(let l=0;l=0)return l;return-1}function Zi(O,c,l){l?O.removeEventListener(Gi,c):O.addEventListener(Gi,c)}function Di(O,c,l,g){const F=Mo+c;if(null!=g){const ne=O.style[F];if(ne.length){const ge=ne.split(",");ge[g]=l,l=ge.join(",")}}O.style[F]=l}function bo(O,c){return O.style[Mo+c]||""}class xi{constructor(c,l,g,F,ne,ge,Ce,Ke){this.element=c,this.keyframes=l,this.animationName=g,this._duration=F,this._delay=ne,this._finalStyles=Ce,this._specialStyles=Ke,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=ge||"linear",this.totalTime=F+ne,this._buildStyler()}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(c=>c()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(c=>c()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(c=>c()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(c){this._styler.setPosition(c)}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 Qo(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(c){const l="start"==c?this._onStartFns:this._onDoneFns;l.forEach(g=>g()),l.length=0}beforeDestroy(){this.init();const c={};if(this.hasStarted()){const l=this._state>=3;Object.keys(this._finalStyles).forEach(g=>{"offset"!=g&&(c[g]=l?this._finalStyles[g]:x(this.element,g))})}this.currentSnapshot=c}}class Vi extends G.ZN{constructor(c,l){super(),this.element=c,this._startingStyles={},this.__initialized=!1,this._styles=$e(l)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(c=>{this._startingStyles[c]=this.element.style[c]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(c=>this.element.style.setProperty(c,this._styles[c])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(c=>{const l=this._startingStyles[c];l?this.element.style.setProperty(c,l):this.element.style.removeProperty(c)}),this._startingStyles=null,super.destroy())}}class so{constructor(){this._count=0}validateStyleProperty(c){return Je(c)}matchesElement(c,l){return!1}containsElement(c,l){return ut(c,l)}query(c,l,g){return Ie(c,l,g)}computeStyle(c,l,g){return window.getComputedStyle(c)[l]}buildKeyframeElement(c,l,g){g=g.map(Ce=>$e(Ce));let F=`@keyframes ${l} {\n`,ne="";g.forEach(Ce=>{ne=" ";const Ke=parseFloat(Ce.offset);F+=`${ne}${100*Ke}% {\n`,ne+=" ",Object.keys(Ce).forEach(ft=>{const Pt=Ce[ft];switch(ft){case"offset":return;case"easing":return void(Pt&&(F+=`${ne}animation-timing-function: ${Pt};\n`));default:return void(F+=`${ne}${ft}: ${Pt};\n`)}}),F+=`${ne}}\n`}),F+="}\n";const ge=document.createElement("style");return ge.textContent=F,ge}animate(c,l,g,F,ne,ge=[],Ce){const Ke=ge.filter(pn=>pn instanceof xi),ft={};cn(g,F)&&Ke.forEach(pn=>{let Jn=pn.currentSnapshot;Object.keys(Jn).forEach(ti=>ft[ti]=Jn[ti])});const Pt=function Jo(O){let c={};return O&&(Array.isArray(O)?O:[O]).forEach(g=>{Object.keys(g).forEach(F=>{"offset"==F||"easing"==F||(c[F]=g[F])})}),c}(l=Mn(c,l,ft));if(0==g)return new Vi(c,Pt);const Bt="gen_css_kf_"+this._count++,Gt=this.buildKeyframeElement(c,Bt,l);(function Do(O){var c;const l=null===(c=O.getRootNode)||void 0===c?void 0:c.call(O);return"undefined"!=typeof ShadowRoot&&l instanceof ShadowRoot?l:document.head})(c).appendChild(Gt);const Kt=_o(c,l),Jt=new xi(c,l,Bt,g,F,ne,Pt,Kt);return Jt.onDestroy(()=>function Qi(O){O.parentNode.removeChild(O)}(Gt)),Jt}}class Pi{constructor(c,l,g,F){this.element=c,this.keyframes=l,this.options=g,this._specialStyles=F,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=g.duration,this._delay=g.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(c=>c()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const c=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,c,this.options),this._finalKeyframe=c.length?c[c.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(c,l,g){return c.animate(l,g)}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(c=>c()),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(c=>c()),this._onDestroyFns=[])}setPosition(c){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=c*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const c={};if(this.hasStarted()){const l=this._finalKeyframe;Object.keys(l).forEach(g=>{"offset"!=g&&(c[g]=this._finished?l[g]:x(this.element,g))})}this.currentSnapshot=c}triggerCallback(c){const l="start"==c?this._onStartFns:this._onDoneFns;l.forEach(g=>g()),l.length=0}}class yi{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(b().toString()),this._cssKeyframesDriver=new so}validateStyleProperty(c){return Je(c)}matchesElement(c,l){return!1}containsElement(c,l){return ut(c,l)}query(c,l,g){return Ie(c,l,g)}computeStyle(c,l,g){return window.getComputedStyle(c)[l]}overrideWebAnimationsSupport(c){this._isNativeImpl=c}animate(c,l,g,F,ne,ge=[],Ce){if(!Ce&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(c,l,g,F,ne,ge);const Pt={duration:g,delay:F,fill:0==F?"both":"forwards"};ne&&(Pt.easing=ne);const Bt={},Gt=ge.filter(Kt=>Kt instanceof Pi);cn(g,F)&&Gt.forEach(Kt=>{let Jt=Kt.currentSnapshot;Object.keys(Jt).forEach(pn=>Bt[pn]=Jt[pn])});const ln=_o(c,l=Mn(c,l=l.map(Kt=>_t(Kt,!1)),Bt));return new Pi(c,l,Pt,ln)}}function b(){return oe()&&Element.prototype.animate||{}}var Y=p(9808);let w=(()=>{class O extends G._j{constructor(l,g){super(),this._nextAnimationId=0,this._renderer=l.createRenderer(g.body,{id:"0",encapsulation:a.ifc.None,styles:[],data:{animation:[]}})}build(l){const g=this._nextAnimationId.toString();this._nextAnimationId++;const F=Array.isArray(l)?(0,G.vP)(l):l;return ct(this._renderer,null,g,"register",[F]),new Q(g,this._renderer)}}return O.\u0275fac=function(l){return new(l||O)(a.LFG(a.FYo),a.LFG(Y.K0))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();class Q extends G.LC{constructor(c,l){super(),this._id=c,this._renderer=l}create(c,l){return new xe(this._id,c,l||{},this._renderer)}}class xe{constructor(c,l,g,F){this.id=c,this.element=l,this._renderer=F,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",g)}_listen(c,l){return this._renderer.listen(this.element,`@@${this.id}:${c}`,l)}_command(c,...l){return ct(this._renderer,this.element,this.id,c,l)}onDone(c){this._listen("done",c)}onStart(c){this._listen("start",c)}onDestroy(c){this._listen("destroy",c)}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(c){this._command("setPosition",c)}getPosition(){var c,l;return null!==(l=null===(c=this._renderer.engine.players[+this.id])||void 0===c?void 0:c.getPosition())&&void 0!==l?l:0}}function ct(O,c,l,g,F){return O.setProperty(c,`@@${l}:${g}`,F)}const kt="@.disabled";let Fn=(()=>{class O{constructor(l,g,F){this.delegate=l,this.engine=g,this._zone=F,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),g.onRemovalComplete=(ne,ge)=>{const Ce=null==ge?void 0:ge.parentNode(ne);Ce&&ge.removeChild(Ce,ne)}}createRenderer(l,g){const ne=this.delegate.createRenderer(l,g);if(!(l&&g&&g.data&&g.data.animation)){let Pt=this._rendererCache.get(ne);return Pt||(Pt=new Tn("",ne,this.engine),this._rendererCache.set(ne,Pt)),Pt}const ge=g.id,Ce=g.id+"-"+this._currentId;this._currentId++,this.engine.register(Ce,l);const Ke=Pt=>{Array.isArray(Pt)?Pt.forEach(Ke):this.engine.registerTrigger(ge,Ce,l,Pt.name,Pt)};return g.data.animation.forEach(Ke),new Dn(this,Ce,ne,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(l,g,F){l>=0&&lg(F)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ne=>{const[ge,Ce]=ne;ge(Ce)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([g,F]))}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 O.\u0275fac=function(l){return new(l||O)(a.LFG(a.FYo),a.LFG(yo),a.LFG(a.R0b))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();class Tn{constructor(c,l,g){this.namespaceId=c,this.delegate=l,this.engine=g,this.destroyNode=this.delegate.destroyNode?F=>l.destroyNode(F):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(c,l){return this.delegate.createElement(c,l)}createComment(c){return this.delegate.createComment(c)}createText(c){return this.delegate.createText(c)}appendChild(c,l){this.delegate.appendChild(c,l),this.engine.onInsert(this.namespaceId,l,c,!1)}insertBefore(c,l,g,F=!0){this.delegate.insertBefore(c,l,g),this.engine.onInsert(this.namespaceId,l,c,F)}removeChild(c,l,g){this.engine.onRemove(this.namespaceId,l,this.delegate,g)}selectRootElement(c,l){return this.delegate.selectRootElement(c,l)}parentNode(c){return this.delegate.parentNode(c)}nextSibling(c){return this.delegate.nextSibling(c)}setAttribute(c,l,g,F){this.delegate.setAttribute(c,l,g,F)}removeAttribute(c,l,g){this.delegate.removeAttribute(c,l,g)}addClass(c,l){this.delegate.addClass(c,l)}removeClass(c,l){this.delegate.removeClass(c,l)}setStyle(c,l,g,F){this.delegate.setStyle(c,l,g,F)}removeStyle(c,l,g){this.delegate.removeStyle(c,l,g)}setProperty(c,l,g){"@"==l.charAt(0)&&l==kt?this.disableAnimations(c,!!g):this.delegate.setProperty(c,l,g)}setValue(c,l){this.delegate.setValue(c,l)}listen(c,l,g){return this.delegate.listen(c,l,g)}disableAnimations(c,l){this.engine.disableAnimations(c,l)}}class Dn extends Tn{constructor(c,l,g,F){super(l,g,F),this.factory=c,this.namespaceId=l}setProperty(c,l,g){"@"==l.charAt(0)?"."==l.charAt(1)&&l==kt?this.disableAnimations(c,g=void 0===g||!!g):this.engine.process(this.namespaceId,c,l.substr(1),g):this.delegate.setProperty(c,l,g)}listen(c,l,g){if("@"==l.charAt(0)){const F=function dn(O){switch(O){case"body":return document.body;case"document":return document;case"window":return window;default:return O}}(c);let ne=l.substr(1),ge="";return"@"!=ne.charAt(0)&&([ne,ge]=function Yn(O){const c=O.indexOf(".");return[O.substring(0,c),O.substr(c+1)]}(ne)),this.engine.listen(this.namespaceId,F,ne,ge,Ce=>{this.factory.scheduleListenerCallback(Ce._data||-1,g,Ce)})}return this.delegate.listen(c,l,g)}}let On=(()=>{class O extends yo{constructor(l,g,F){super(l.body,g,F)}ngOnDestroy(){this.flush()}}return O.\u0275fac=function(l){return new(l||O)(a.LFG(Y.K0),a.LFG(Se),a.LFG(Pn))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();const C=new a.OlP("AnimationModuleType"),y=[{provide:G._j,useClass:w},{provide:Pn,useFactory:function Eo(){return new Zn}},{provide:yo,useClass:On},{provide:a.FYo,useFactory:function D(O,c,l){return new Fn(O,c,l)},deps:[s.se,yo,a.R0b]}],U=[{provide:Se,useFactory:function Yt(){return function Wn(){return"function"==typeof b()}()?new yi:new so}},{provide:C,useValue:"BrowserAnimations"},...y],at=[{provide:Se,useClass:et},{provide:C,useValue:"NoopAnimations"},...y];let Nt=(()=>{class O{static withConfig(l){return{ngModule:O,providers:l.disableAnimations?at:U}}}return O.\u0275fac=function(l){return new(l||O)},O.\u0275mod=a.oAB({type:O}),O.\u0275inj=a.cJS({providers:U,imports:[s.b2]}),O})()},2313:(yt,be,p)=>{p.d(be,{b2:()=>_n,H7:()=>An,q6:()=>Ut,se:()=>le});var a=p(9808),s=p(5e3);class G extends a.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class oe extends G{static makeCurrent(){(0,a.HT)(new oe)}onAndCancel(we,ae,Ve){return we.addEventListener(ae,Ve,!1),()=>{we.removeEventListener(ae,Ve,!1)}}dispatchEvent(we,ae){we.dispatchEvent(ae)}remove(we){we.parentNode&&we.parentNode.removeChild(we)}createElement(we,ae){return(ae=ae||this.getDefaultDocument()).createElement(we)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(we){return we.nodeType===Node.ELEMENT_NODE}isShadowRoot(we){return we instanceof DocumentFragment}getGlobalEventTarget(we,ae){return"window"===ae?window:"document"===ae?we:"body"===ae?we.body:null}getBaseHref(we){const ae=function _(){return q=q||document.querySelector("base"),q?q.getAttribute("href"):null}();return null==ae?null:function I(Re){W=W||document.createElement("a"),W.setAttribute("href",Re);const we=W.pathname;return"/"===we.charAt(0)?we:`/${we}`}(ae)}resetBaseElement(){q=null}getUserAgent(){return window.navigator.userAgent}getCookie(we){return(0,a.Mx)(document.cookie,we)}}let W,q=null;const R=new s.OlP("TRANSITION_ID"),B=[{provide:s.ip1,useFactory:function H(Re,we,ae){return()=>{ae.get(s.CZH).donePromise.then(()=>{const Ve=(0,a.q)(),ht=we.querySelectorAll(`style[ng-transition="${Re}"]`);for(let It=0;It{const It=we.findTestabilityInTree(Ve,ht);if(null==It)throw new Error("Could not find testability for element.");return It},s.dqk.getAllAngularTestabilities=()=>we.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>we.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(Ve=>{const ht=s.dqk.getAllAngularTestabilities();let It=ht.length,jt=!1;const fn=function(Pn){jt=jt||Pn,It--,0==It&&Ve(jt)};ht.forEach(function(Pn){Pn.whenStable(fn)})})}findTestabilityInTree(we,ae,Ve){if(null==ae)return null;const ht=we.getTestability(ae);return null!=ht?ht:Ve?(0,a.q)().isShadowRoot(ae)?this.findTestabilityInTree(we,ae.host,!0):this.findTestabilityInTree(we,ae.parentElement,!0):null}}let ye=(()=>{class Re{build(){return new XMLHttpRequest}}return Re.\u0275fac=function(ae){return new(ae||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Ye=new s.OlP("EventManagerPlugins");let Fe=(()=>{class Re{constructor(ae,Ve){this._zone=Ve,this._eventNameToPlugin=new Map,ae.forEach(ht=>ht.manager=this),this._plugins=ae.slice().reverse()}addEventListener(ae,Ve,ht){return this._findPluginFor(Ve).addEventListener(ae,Ve,ht)}addGlobalEventListener(ae,Ve,ht){return this._findPluginFor(Ve).addGlobalEventListener(ae,Ve,ht)}getZone(){return this._zone}_findPluginFor(ae){const Ve=this._eventNameToPlugin.get(ae);if(Ve)return Ve;const ht=this._plugins;for(let It=0;It{class Re{constructor(){this._stylesSet=new Set}addStyles(ae){const Ve=new Set;ae.forEach(ht=>{this._stylesSet.has(ht)||(this._stylesSet.add(ht),Ve.add(ht))}),this.onStylesAdded(Ve)}onStylesAdded(ae){}getAllStyles(){return Array.from(this._stylesSet)}}return Re.\u0275fac=function(ae){return new(ae||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),vt=(()=>{class Re extends _e{constructor(ae){super(),this._doc=ae,this._hostNodes=new Map,this._hostNodes.set(ae.head,[])}_addStylesToHost(ae,Ve,ht){ae.forEach(It=>{const jt=this._doc.createElement("style");jt.textContent=It,ht.push(Ve.appendChild(jt))})}addHost(ae){const Ve=[];this._addStylesToHost(this._stylesSet,ae,Ve),this._hostNodes.set(ae,Ve)}removeHost(ae){const Ve=this._hostNodes.get(ae);Ve&&Ve.forEach(Je),this._hostNodes.delete(ae)}onStylesAdded(ae){this._hostNodes.forEach((Ve,ht)=>{this._addStylesToHost(ae,ht,Ve)})}ngOnDestroy(){this._hostNodes.forEach(ae=>ae.forEach(Je))}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();function Je(Re){(0,a.q)().remove(Re)}const zt={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/"},ut=/%COMP%/g;function fe(Re,we,ae){for(let Ve=0;Ve{if("__ngUnwrap__"===we)return Re;!1===Re(we)&&(we.preventDefault(),we.returnValue=!1)}}let le=(()=>{class Re{constructor(ae,Ve,ht){this.eventManager=ae,this.sharedStylesHost=Ve,this.appId=ht,this.rendererByCompId=new Map,this.defaultRenderer=new ie(ae)}createRenderer(ae,Ve){if(!ae||!Ve)return this.defaultRenderer;switch(Ve.encapsulation){case s.ifc.Emulated:{let ht=this.rendererByCompId.get(Ve.id);return ht||(ht=new tt(this.eventManager,this.sharedStylesHost,Ve,this.appId),this.rendererByCompId.set(Ve.id,ht)),ht.applyToHost(ae),ht}case 1:case s.ifc.ShadowDom:return new ke(this.eventManager,this.sharedStylesHost,ae,Ve);default:if(!this.rendererByCompId.has(Ve.id)){const ht=fe(Ve.id,Ve.styles,[]);this.sharedStylesHost.addStyles(ht),this.rendererByCompId.set(Ve.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(Fe),s.LFG(vt),s.LFG(s.AFp))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();class ie{constructor(we){this.eventManager=we,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(we,ae){return ae?document.createElementNS(zt[ae]||ae,we):document.createElement(we)}createComment(we){return document.createComment(we)}createText(we){return document.createTextNode(we)}appendChild(we,ae){we.appendChild(ae)}insertBefore(we,ae,Ve){we&&we.insertBefore(ae,Ve)}removeChild(we,ae){we&&we.removeChild(ae)}selectRootElement(we,ae){let Ve="string"==typeof we?document.querySelector(we):we;if(!Ve)throw new Error(`The selector "${we}" did not match any elements`);return ae||(Ve.textContent=""),Ve}parentNode(we){return we.parentNode}nextSibling(we){return we.nextSibling}setAttribute(we,ae,Ve,ht){if(ht){ae=ht+":"+ae;const It=zt[ht];It?we.setAttributeNS(It,ae,Ve):we.setAttribute(ae,Ve)}else we.setAttribute(ae,Ve)}removeAttribute(we,ae,Ve){if(Ve){const ht=zt[Ve];ht?we.removeAttributeNS(ht,ae):we.removeAttribute(`${Ve}:${ae}`)}else we.removeAttribute(ae)}addClass(we,ae){we.classList.add(ae)}removeClass(we,ae){we.classList.remove(ae)}setStyle(we,ae,Ve,ht){ht&(s.JOm.DashCase|s.JOm.Important)?we.style.setProperty(ae,Ve,ht&s.JOm.Important?"important":""):we.style[ae]=Ve}removeStyle(we,ae,Ve){Ve&s.JOm.DashCase?we.style.removeProperty(ae):we.style[ae]=""}setProperty(we,ae,Ve){we[ae]=Ve}setValue(we,ae){we.nodeValue=ae}listen(we,ae,Ve){return"string"==typeof we?this.eventManager.addGlobalEventListener(we,ae,he(Ve)):this.eventManager.addEventListener(we,ae,he(Ve))}}class tt extends ie{constructor(we,ae,Ve,ht){super(we),this.component=Ve;const It=fe(ht+"-"+Ve.id,Ve.styles,[]);ae.addStyles(It),this.contentAttr=function Xe(Re){return"_ngcontent-%COMP%".replace(ut,Re)}(ht+"-"+Ve.id),this.hostAttr=function J(Re){return"_nghost-%COMP%".replace(ut,Re)}(ht+"-"+Ve.id)}applyToHost(we){super.setAttribute(we,this.hostAttr,"")}createElement(we,ae){const Ve=super.createElement(we,ae);return super.setAttribute(Ve,this.contentAttr,""),Ve}}class ke extends ie{constructor(we,ae,Ve,ht){super(we),this.sharedStylesHost=ae,this.hostEl=Ve,this.shadowRoot=Ve.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const It=fe(ht.id,ht.styles,[]);for(let jt=0;jt{class Re extends ze{constructor(ae){super(ae)}supports(ae){return!0}addEventListener(ae,Ve,ht){return ae.addEventListener(Ve,ht,!1),()=>this.removeEventListener(ae,Ve,ht)}removeEventListener(ae,Ve,ht){return ae.removeEventListener(Ve,ht)}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const mt=["alt","control","meta","shift"],dt={"\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"},_t={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"},it={alt:Re=>Re.altKey,control:Re=>Re.ctrlKey,meta:Re=>Re.metaKey,shift:Re=>Re.shiftKey};let St=(()=>{class Re extends ze{constructor(ae){super(ae)}supports(ae){return null!=Re.parseEventName(ae)}addEventListener(ae,Ve,ht){const It=Re.parseEventName(Ve),jt=Re.eventCallback(It.fullKey,ht,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,a.q)().onAndCancel(ae,It.domEventName,jt))}static parseEventName(ae){const Ve=ae.toLowerCase().split("."),ht=Ve.shift();if(0===Ve.length||"keydown"!==ht&&"keyup"!==ht)return null;const It=Re._normalizeKey(Ve.pop());let jt="";if(mt.forEach(Pn=>{const si=Ve.indexOf(Pn);si>-1&&(Ve.splice(si,1),jt+=Pn+".")}),jt+=It,0!=Ve.length||0===It.length)return null;const fn={};return fn.domEventName=ht,fn.fullKey=jt,fn}static getEventFullKey(ae){let Ve="",ht=function ot(Re){let we=Re.key;if(null==we){if(we=Re.keyIdentifier,null==we)return"Unidentified";we.startsWith("U+")&&(we=String.fromCharCode(parseInt(we.substring(2),16)),3===Re.location&&_t.hasOwnProperty(we)&&(we=_t[we]))}return dt[we]||we}(ae);return ht=ht.toLowerCase()," "===ht?ht="space":"."===ht&&(ht="dot"),mt.forEach(It=>{It!=ht&&it[It](ae)&&(Ve+=It+".")}),Ve+=ht,Ve}static eventCallback(ae,Ve,ht){return It=>{Re.getEventFullKey(It)===ae&&ht.runGuarded(()=>Ve(It))}}static _normalizeKey(ae){return"esc"===ae?"escape":ae}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Ut=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:a.bD},{provide:s.g9A,useValue:function Et(){oe.makeCurrent(),ee.init()},multi:!0},{provide:a.K0,useFactory:function mn(){return(0,s.RDi)(document),document},deps:[]}]),un=[{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function Zt(){return new s.qLn},deps:[]},{provide:Ye,useClass:ve,multi:!0,deps:[a.K0,s.R0b,s.Lbi]},{provide:Ye,useClass:St,multi:!0,deps:[a.K0]},{provide:le,useClass:le,deps:[Fe,vt,s.AFp]},{provide:s.FYo,useExisting:le},{provide:_e,useExisting:vt},{provide:vt,useClass:vt,deps:[a.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:Fe,useClass:Fe,deps:[Ye,s.R0b]},{provide:a.JF,useClass:ye,deps:[]}];let _n=(()=>{class Re{constructor(ae){if(ae)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(ae){return{ngModule:Re,providers:[{provide:s.AFp,useValue:ae.appId},{provide:R,useExisting:s.AFp},B]}}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(Re,12))},Re.\u0275mod=s.oAB({type:Re}),Re.\u0275inj=s.cJS({providers:un,imports:[a.ez,s.hGG]}),Re})();"undefined"!=typeof window&&window;let An=(()=>{class Re{}return Re.\u0275fac=function(ae){return new(ae||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:function(ae){let Ve=null;return Ve=ae?new(ae||Re):s.LFG(jn),Ve},providedIn:"root"}),Re})(),jn=(()=>{class Re extends An{constructor(ae){super(),this._doc=ae}sanitize(ae,Ve){if(null==Ve)return null;switch(ae){case s.q3G.NONE:return Ve;case s.q3G.HTML:return(0,s.qzn)(Ve,"HTML")?(0,s.z3N)(Ve):(0,s.EiD)(this._doc,String(Ve)).toString();case s.q3G.STYLE:return(0,s.qzn)(Ve,"Style")?(0,s.z3N)(Ve):Ve;case s.q3G.SCRIPT:if((0,s.qzn)(Ve,"Script"))return(0,s.z3N)(Ve);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(Ve),(0,s.qzn)(Ve,"URL")?(0,s.z3N)(Ve):(0,s.mCW)(String(Ve));case s.q3G.RESOURCE_URL:if((0,s.qzn)(Ve,"ResourceURL"))return(0,s.z3N)(Ve);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ae} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ae){return(0,s.JVY)(ae)}bypassSecurityTrustStyle(ae){return(0,s.L6k)(ae)}bypassSecurityTrustScript(ae){return(0,s.eBb)(ae)}bypassSecurityTrustUrl(ae){return(0,s.LAX)(ae)}bypassSecurityTrustResourceUrl(ae){return(0,s.pB0)(ae)}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:function(ae){let Ve=null;return Ve=ae?new ae:function ri(Re){return new jn(Re.get(a.K0))}(s.LFG(s.zs3)),Ve},providedIn:"root"}),Re})()},2302:(yt,be,p)=>{p.d(be,{gz:()=>k,m2:()=>Et,OD:()=>ot,wm:()=>Is,F0:()=>ci,rH:()=>Xi,yS:()=>No,Bz:()=>Hs,lC:()=>so});var a=p(5e3);const G=(()=>{function m(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return m.prototype=Object.create(Error.prototype),m})();var oe=p(5254),q=p(1086),_=p(591),W=p(6053),I=p(6498),R=p(1961),H=p(8514),B=p(8896),ee=p(1762),ye=p(8929),Ye=p(2198),Fe=p(3489),ze=p(4231);function _e(m){return function(h){return 0===m?(0,B.c)():h.lift(new vt(m))}}class vt{constructor(d){if(this.total=d,this.total<0)throw new ze.W}call(d,h){return h.subscribe(new Je(d,this.total))}}class Je extends Fe.L{constructor(d,h){super(d),this.total=h,this.ring=new Array,this.count=0}_next(d){const h=this.ring,M=this.total,S=this.count++;h.length0){const M=this.count>=this.total?this.total:this.count,S=this.ring;for(let K=0;Kd.lift(new ut(m))}class ut{constructor(d){this.errorFactory=d}call(d,h){return h.subscribe(new Ie(d,this.errorFactory))}}class Ie extends Fe.L{constructor(d,h){super(d),this.errorFactory=h,this.hasValue=!1}_next(d){this.hasValue=!0,this.destination.next(d)}_complete(){if(this.hasValue)return this.destination.complete();{let d;try{d=this.errorFactory()}catch(h){d=h}this.destination.error(d)}}}function $e(){return new G}function et(m=null){return d=>d.lift(new Se(m))}class Se{constructor(d){this.defaultValue=d}call(d,h){return h.subscribe(new Xe(d,this.defaultValue))}}class Xe extends Fe.L{constructor(d,h){super(d),this.defaultValue=h,this.isEmpty=!0}_next(d){this.isEmpty=!1,this.destination.next(d)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var J=p(5379),he=p(2986);function te(m,d){const h=arguments.length>=2;return M=>M.pipe(m?(0,Ye.h)((S,K)=>m(S,K,M)):J.y,(0,he.q)(1),h?et(d):zt(()=>new G))}var le=p(4850),ie=p(7545),Ue=p(1059),je=p(2014),tt=p(7221),ke=p(1406),ve=p(1709),mt=p(2994),Qe=p(4327),dt=p(537),_t=p(9146),it=p(9808);class St{constructor(d,h){this.id=d,this.url=h}}class ot extends St{constructor(d,h,M="imperative",S=null){super(d,h),this.navigationTrigger=M,this.restoredState=S}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Et extends St{constructor(d,h,M){super(d,h),this.urlAfterRedirects=M}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Zt extends St{constructor(d,h,M){super(d,h),this.reason=M}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class mn extends St{constructor(d,h,M){super(d,h),this.error=M}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class gn extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ut extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class un extends St{constructor(d,h,M,S,K){super(d,h),this.urlAfterRedirects=M,this.state=S,this.shouldActivate=K}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class _n extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cn extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dt{constructor(d){this.route=d}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Sn{constructor(d){this.route=d}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class cn{constructor(d){this.snapshot=d}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mn{constructor(d){this.snapshot=d}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qe{constructor(d){this.snapshot=d}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class x{constructor(d){this.snapshot=d}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class z{constructor(d,h,M){this.routerEvent=d,this.position=h,this.anchor=M}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const P="primary";class pe{constructor(d){this.params=d||{}}has(d){return Object.prototype.hasOwnProperty.call(this.params,d)}get(d){if(this.has(d)){const h=this.params[d];return Array.isArray(h)?h[0]:h}return null}getAll(d){if(this.has(d)){const h=this.params[d];return Array.isArray(h)?h:[h]}return[]}get keys(){return Object.keys(this.params)}}function j(m){return new pe(m)}const me="ngNavigationCancelingError";function He(m){const d=Error("NavigationCancelingError: "+m);return d[me]=!0,d}function Le(m,d,h){const M=h.path.split("/");if(M.length>m.length||"full"===h.pathMatch&&(d.hasChildren()||M.lengthM[K]===S)}return m===d}function nt(m){return Array.prototype.concat.apply([],m)}function ce(m){return m.length>0?m[m.length-1]:null}function L(m,d){for(const h in m)m.hasOwnProperty(h)&&d(m[h],h)}function E(m){return(0,a.CqO)(m)?m:(0,a.QGY)(m)?(0,oe.D)(Promise.resolve(m)):(0,q.of)(m)}const ue={exact:function Qt(m,d,h){if(!ae(m.segments,d.segments)||!ri(m.segments,d.segments,h)||m.numberOfChildren!==d.numberOfChildren)return!1;for(const M in d.children)if(!m.children[M]||!Qt(m.children[M],d.children[M],h))return!1;return!0},subset:Vn},Ae={exact:function At(m,d){return V(m,d)},subset:function vn(m,d){return Object.keys(d).length<=Object.keys(m).length&&Object.keys(d).every(h=>Be(m[h],d[h]))},ignored:()=>!0};function wt(m,d,h){return ue[h.paths](m.root,d.root,h.matrixParams)&&Ae[h.queryParams](m.queryParams,d.queryParams)&&!("exact"===h.fragment&&m.fragment!==d.fragment)}function Vn(m,d,h){return An(m,d,d.segments,h)}function An(m,d,h,M){if(m.segments.length>h.length){const S=m.segments.slice(0,h.length);return!(!ae(S,h)||d.hasChildren()||!ri(S,h,M))}if(m.segments.length===h.length){if(!ae(m.segments,h)||!ri(m.segments,h,M))return!1;for(const S in d.children)if(!m.children[S]||!Vn(m.children[S],d.children[S],M))return!1;return!0}{const S=h.slice(0,m.segments.length),K=h.slice(m.segments.length);return!!(ae(m.segments,S)&&ri(m.segments,S,M)&&m.children[P])&&An(m.children[P],d,K,M)}}function ri(m,d,h){return d.every((M,S)=>Ae[h](m[S].parameters,M.parameters))}class jn{constructor(d,h,M){this.root=d,this.queryParams=h,this.fragment=M}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=j(this.queryParams)),this._queryParamMap}toString(){return jt.serialize(this)}}class qt{constructor(d,h){this.segments=d,this.children=h,this.parent=null,L(h,(M,S)=>M.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fn(this)}}class Re{constructor(d,h){this.path=d,this.parameters=h}get parameterMap(){return this._parameterMap||(this._parameterMap=j(this.parameters)),this._parameterMap}toString(){return Tt(this)}}function ae(m,d){return m.length===d.length&&m.every((h,M)=>h.path===d[M].path)}class ht{}class It{parse(d){const h=new on(d);return new jn(h.parseRootSegment(),h.parseQueryParams(),h.parseFragment())}serialize(d){const h=`/${Pn(d.root,!0)}`,M=function bn(m){const d=Object.keys(m).map(h=>{const M=m[h];return Array.isArray(M)?M.map(S=>`${Zn(h)}=${Zn(S)}`).join("&"):`${Zn(h)}=${Zn(M)}`}).filter(h=>!!h);return d.length?`?${d.join("&")}`:""}(d.queryParams);return`${h}${M}${"string"==typeof d.fragment?`#${function ii(m){return encodeURI(m)}(d.fragment)}`:""}`}}const jt=new It;function fn(m){return m.segments.map(d=>Tt(d)).join("/")}function Pn(m,d){if(!m.hasChildren())return fn(m);if(d){const h=m.children[P]?Pn(m.children[P],!1):"",M=[];return L(m.children,(S,K)=>{K!==P&&M.push(`${K}:${Pn(S,!1)}`)}),M.length>0?`${h}(${M.join("//")})`:h}{const h=function Ve(m,d){let h=[];return L(m.children,(M,S)=>{S===P&&(h=h.concat(d(M,S)))}),L(m.children,(M,S)=>{S!==P&&(h=h.concat(d(M,S)))}),h}(m,(M,S)=>S===P?[Pn(m.children[P],!1)]:[`${S}:${Pn(M,!1)}`]);return 1===Object.keys(m.children).length&&null!=m.children[P]?`${fn(m)}/${h[0]}`:`${fn(m)}/(${h.join("//")})`}}function si(m){return encodeURIComponent(m).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zn(m){return si(m).replace(/%3B/gi,";")}function En(m){return si(m).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ei(m){return decodeURIComponent(m)}function Ln(m){return ei(m.replace(/\+/g,"%20"))}function Tt(m){return`${En(m.path)}${function rn(m){return Object.keys(m).map(d=>`;${En(d)}=${En(m[d])}`).join("")}(m.parameters)}`}const Qn=/^[^\/()?;=#]+/;function Te(m){const d=m.match(Qn);return d?d[0]:""}const Ze=/^[^=?&#]+/,rt=/^[^&#]+/;class on{constructor(d){this.url=d,this.remaining=d}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new qt([],{}):new qt([],this.parseChildren())}parseQueryParams(){const d={};if(this.consumeOptional("?"))do{this.parseQueryParam(d)}while(this.consumeOptional("&"));return d}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const d=[];for(this.peekStartsWith("(")||d.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),d.push(this.parseSegment());let h={};this.peekStartsWith("/(")&&(this.capture("/"),h=this.parseParens(!0));let M={};return this.peekStartsWith("(")&&(M=this.parseParens(!1)),(d.length>0||Object.keys(h).length>0)&&(M[P]=new qt(d,h)),M}parseSegment(){const d=Te(this.remaining);if(""===d&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(d),new Re(ei(d),this.parseMatrixParams())}parseMatrixParams(){const d={};for(;this.consumeOptional(";");)this.parseParam(d);return d}parseParam(d){const h=Te(this.remaining);if(!h)return;this.capture(h);let M="";if(this.consumeOptional("=")){const S=Te(this.remaining);S&&(M=S,this.capture(M))}d[ei(h)]=ei(M)}parseQueryParam(d){const h=function De(m){const d=m.match(Ze);return d?d[0]:""}(this.remaining);if(!h)return;this.capture(h);let M="";if(this.consumeOptional("=")){const de=function Wt(m){const d=m.match(rt);return d?d[0]:""}(this.remaining);de&&(M=de,this.capture(M))}const S=Ln(h),K=Ln(M);if(d.hasOwnProperty(S)){let de=d[S];Array.isArray(de)||(de=[de],d[S]=de),de.push(K)}else d[S]=K}parseParens(d){const h={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const M=Te(this.remaining),S=this.remaining[M.length];if("/"!==S&&")"!==S&&";"!==S)throw new Error(`Cannot parse url '${this.url}'`);let K;M.indexOf(":")>-1?(K=M.substr(0,M.indexOf(":")),this.capture(K),this.capture(":")):d&&(K=P);const de=this.parseChildren();h[K]=1===Object.keys(de).length?de[P]:new qt([],de),this.consumeOptional("//")}return h}peekStartsWith(d){return this.remaining.startsWith(d)}consumeOptional(d){return!!this.peekStartsWith(d)&&(this.remaining=this.remaining.substring(d.length),!0)}capture(d){if(!this.consumeOptional(d))throw new Error(`Expected "${d}".`)}}class Lt{constructor(d){this._root=d}get root(){return this._root.value}parent(d){const h=this.pathFromRoot(d);return h.length>1?h[h.length-2]:null}children(d){const h=Un(d,this._root);return h?h.children.map(M=>M.value):[]}firstChild(d){const h=Un(d,this._root);return h&&h.children.length>0?h.children[0].value:null}siblings(d){const h=$n(d,this._root);return h.length<2?[]:h[h.length-2].children.map(S=>S.value).filter(S=>S!==d)}pathFromRoot(d){return $n(d,this._root).map(h=>h.value)}}function Un(m,d){if(m===d.value)return d;for(const h of d.children){const M=Un(m,h);if(M)return M}return null}function $n(m,d){if(m===d.value)return[d];for(const h of d.children){const M=$n(m,h);if(M.length)return M.unshift(d),M}return[]}class Nn{constructor(d,h){this.value=d,this.children=h}toString(){return`TreeNode(${this.value})`}}function Rn(m){const d={};return m&&m.children.forEach(h=>d[h.value.outlet]=h),d}class qn extends Lt{constructor(d,h){super(d),this.snapshot=h,Vt(this,d)}toString(){return this.snapshot.toString()}}function X(m,d){const h=function se(m,d){const de=new Ct([],{},{},"",{},P,d,null,m.root,-1,{});return new Ot("",new Nn(de,[]))}(m,d),M=new _.X([new Re("",{})]),S=new _.X({}),K=new _.X({}),de=new _.X({}),Oe=new _.X(""),pt=new k(M,S,de,Oe,K,P,d,h.root);return pt.snapshot=h.root,new qn(new Nn(pt,[]),h)}class k{constructor(d,h,M,S,K,de,Oe,pt){this.url=d,this.params=h,this.queryParams=M,this.fragment=S,this.data=K,this.outlet=de,this.component=Oe,this._futureSnapshot=pt}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,le.U)(d=>j(d)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,le.U)(d=>j(d)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ee(m,d="emptyOnly"){const h=m.pathFromRoot;let M=0;if("always"!==d)for(M=h.length-1;M>=1;){const S=h[M],K=h[M-1];if(S.routeConfig&&""===S.routeConfig.path)M--;else{if(K.component)break;M--}}return function st(m){return m.reduce((d,h)=>({params:Object.assign(Object.assign({},d.params),h.params),data:Object.assign(Object.assign({},d.data),h.data),resolve:Object.assign(Object.assign({},d.resolve),h._resolvedData)}),{params:{},data:{},resolve:{}})}(h.slice(M))}class Ct{constructor(d,h,M,S,K,de,Oe,pt,Ht,wn,tn){this.url=d,this.params=h,this.queryParams=M,this.fragment=S,this.data=K,this.outlet=de,this.component=Oe,this.routeConfig=pt,this._urlSegment=Ht,this._lastPathIndex=wn,this._resolve=tn}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=j(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=j(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(M=>M.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ot extends Lt{constructor(d,h){super(h),this.url=d,Vt(this,h)}toString(){return hn(this._root)}}function Vt(m,d){d.value._routerState=m,d.children.forEach(h=>Vt(m,h))}function hn(m){const d=m.children.length>0?` { ${m.children.map(hn).join(", ")} } `:"";return`${m.value}${d}`}function ni(m){if(m.snapshot){const d=m.snapshot,h=m._futureSnapshot;m.snapshot=h,V(d.queryParams,h.queryParams)||m.queryParams.next(h.queryParams),d.fragment!==h.fragment&&m.fragment.next(h.fragment),V(d.params,h.params)||m.params.next(h.params),function Me(m,d){if(m.length!==d.length)return!1;for(let h=0;hV(h.parameters,d[M].parameters))}(m.url,d.url);return h&&!(!m.parent!=!d.parent)&&(!m.parent||ai(m.parent,d.parent))}function bi(m,d,h){if(h&&m.shouldReuseRoute(d.value,h.value.snapshot)){const M=h.value;M._futureSnapshot=d.value;const S=function io(m,d,h){return d.children.map(M=>{for(const S of h.children)if(m.shouldReuseRoute(M.value,S.value.snapshot))return bi(m,M,S);return bi(m,M)})}(m,d,h);return new Nn(M,S)}{if(m.shouldAttach(d.value)){const K=m.retrieve(d.value);if(null!==K){const de=K.route;return de.value._futureSnapshot=d.value,de.children=d.children.map(Oe=>bi(m,Oe)),de}}const M=function Ao(m){return new k(new _.X(m.url),new _.X(m.params),new _.X(m.queryParams),new _.X(m.fragment),new _.X(m.data),m.outlet,m.component,m)}(d.value),S=d.children.map(K=>bi(m,K));return new Nn(M,S)}}function ui(m){return"object"==typeof m&&null!=m&&!m.outlets&&!m.segmentPath}function wi(m){return"object"==typeof m&&null!=m&&m.outlets}function ko(m,d,h,M,S){let K={};return M&&L(M,(de,Oe)=>{K[Oe]=Array.isArray(de)?de.map(pt=>`${pt}`):`${de}`}),new jn(h.root===m?d:Fo(h.root,m,d),K,S)}function Fo(m,d,h){const M={};return L(m.children,(S,K)=>{M[K]=S===d?h:Fo(S,d,h)}),new qt(m.segments,M)}class vo{constructor(d,h,M){if(this.isAbsolute=d,this.numberOfDoubleDots=h,this.commands=M,d&&M.length>0&&ui(M[0]))throw new Error("Root segment cannot have matrix parameters");const S=M.find(wi);if(S&&S!==ce(M))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Wi{constructor(d,h,M){this.segmentGroup=d,this.processChildren=h,this.index=M}}function Ii(m,d,h){if(m||(m=new qt([],{})),0===m.segments.length&&m.hasChildren())return Co(m,d,h);const M=function Io(m,d,h){let M=0,S=d;const K={match:!1,pathIndex:0,commandIndex:0};for(;S=h.length)return K;const de=m.segments[S],Oe=h[M];if(wi(Oe))break;const pt=`${Oe}`,Ht=M0&&void 0===pt)break;if(pt&&Ht&&"object"==typeof Ht&&void 0===Ht.outlets){if(!Qo(pt,Ht,de))return K;M+=2}else{if(!Qo(pt,{},de))return K;M++}S++}return{match:!0,pathIndex:S,commandIndex:M}}(m,d,h),S=h.slice(M.commandIndex);if(M.match&&M.pathIndex{"string"==typeof K&&(K=[K]),null!==K&&(S[de]=Ii(m.children[de],d,K))}),L(m.children,(K,de)=>{void 0===M[de]&&(S[de]=K)}),new qt(m.segments,S)}}function Mo(m,d,h){const M=m.segments.slice(0,d);let S=0;for(;S{"string"==typeof h&&(h=[h]),null!==h&&(d[M]=Mo(new qt([],{}),0,h))}),d}function Ki(m){const d={};return L(m,(h,M)=>d[M]=`${h}`),d}function Qo(m,d,h){return m==h.path&&V(d,h.parameters)}class qo{constructor(d,h,M,S){this.routeReuseStrategy=d,this.futureState=h,this.currState=M,this.forwardEvent=S}activate(d){const h=this.futureState._root,M=this.currState?this.currState._root:null;this.deactivateChildRoutes(h,M,d),ni(this.futureState.root),this.activateChildRoutes(h,M,d)}deactivateChildRoutes(d,h,M){const S=Rn(h);d.children.forEach(K=>{const de=K.value.outlet;this.deactivateRoutes(K,S[de],M),delete S[de]}),L(S,(K,de)=>{this.deactivateRouteAndItsChildren(K,M)})}deactivateRoutes(d,h,M){const S=d.value,K=h?h.value:null;if(S===K)if(S.component){const de=M.getContext(S.outlet);de&&this.deactivateChildRoutes(d,h,de.children)}else this.deactivateChildRoutes(d,h,M);else K&&this.deactivateRouteAndItsChildren(h,M)}deactivateRouteAndItsChildren(d,h){d.value.component&&this.routeReuseStrategy.shouldDetach(d.value.snapshot)?this.detachAndStoreRouteSubtree(d,h):this.deactivateRouteAndOutlet(d,h)}detachAndStoreRouteSubtree(d,h){const M=h.getContext(d.value.outlet),S=M&&d.value.component?M.children:h,K=Rn(d);for(const de of Object.keys(K))this.deactivateRouteAndItsChildren(K[de],S);if(M&&M.outlet){const de=M.outlet.detach(),Oe=M.children.onOutletDeactivated();this.routeReuseStrategy.store(d.value.snapshot,{componentRef:de,route:d,contexts:Oe})}}deactivateRouteAndOutlet(d,h){const M=h.getContext(d.value.outlet),S=M&&d.value.component?M.children:h,K=Rn(d);for(const de of Object.keys(K))this.deactivateRouteAndItsChildren(K[de],S);M&&M.outlet&&(M.outlet.deactivate(),M.children.onOutletDeactivated(),M.attachRef=null,M.resolver=null,M.route=null)}activateChildRoutes(d,h,M){const S=Rn(h);d.children.forEach(K=>{this.activateRoutes(K,S[K.value.outlet],M),this.forwardEvent(new x(K.value.snapshot))}),d.children.length&&this.forwardEvent(new Mn(d.value.snapshot))}activateRoutes(d,h,M){const S=d.value,K=h?h.value:null;if(ni(S),S===K)if(S.component){const de=M.getOrCreateContext(S.outlet);this.activateChildRoutes(d,h,de.children)}else this.activateChildRoutes(d,h,M);else if(S.component){const de=M.getOrCreateContext(S.outlet);if(this.routeReuseStrategy.shouldAttach(S.snapshot)){const Oe=this.routeReuseStrategy.retrieve(S.snapshot);this.routeReuseStrategy.store(S.snapshot,null),de.children.onOutletReAttached(Oe.contexts),de.attachRef=Oe.componentRef,de.route=Oe.route.value,de.outlet&&de.outlet.attach(Oe.componentRef,Oe.route.value),ni(Oe.route.value),this.activateChildRoutes(d,null,de.children)}else{const Oe=function Ti(m){for(let d=m.parent;d;d=d.parent){const h=d.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig;if(h&&h.component)return null}return null}(S.snapshot),pt=Oe?Oe.module.componentFactoryResolver:null;de.attachRef=null,de.route=S,de.resolver=pt,de.outlet&&de.outlet.activateWith(S,pt),this.activateChildRoutes(d,null,de.children)}}else this.activateChildRoutes(d,null,M)}}class ro{constructor(d,h){this.routes=d,this.module=h}}function oi(m){return"function"==typeof m}function Di(m){return m instanceof jn}const xi=Symbol("INITIAL_VALUE");function Vi(){return(0,ie.w)(m=>(0,W.aj)(m.map(d=>d.pipe((0,he.q)(1),(0,Ue.O)(xi)))).pipe((0,je.R)((d,h)=>{let M=!1;return h.reduce((S,K,de)=>S!==xi?S:(K===xi&&(M=!0),M||!1!==K&&de!==h.length-1&&!Di(K)?S:K),d)},xi),(0,Ye.h)(d=>d!==xi),(0,le.U)(d=>Di(d)?d:!0===d),(0,he.q)(1)))}class hi{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ei,this.attachRef=null}}class Ei{constructor(){this.contexts=new Map}onChildOutletCreated(d,h){const M=this.getOrCreateContext(d);M.outlet=h,this.contexts.set(d,M)}onChildOutletDestroyed(d){const h=this.getContext(d);h&&(h.outlet=null,h.attachRef=null)}onOutletDeactivated(){const d=this.contexts;return this.contexts=new Map,d}onOutletReAttached(d){this.contexts=d}getOrCreateContext(d){let h=this.getContext(d);return h||(h=new hi,this.contexts.set(d,h)),h}getContext(d){return this.contexts.get(d)||null}}let so=(()=>{class m{constructor(h,M,S,K,de){this.parentContexts=h,this.location=M,this.resolver=S,this.changeDetector=de,this.activated=null,this._activatedRoute=null,this.activateEvents=new a.vpe,this.deactivateEvents=new a.vpe,this.attachEvents=new a.vpe,this.detachEvents=new a.vpe,this.name=K||P,h.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const h=this.parentContexts.getContext(this.name);h&&h.route&&(h.attachRef?this.attach(h.attachRef,h.route):this.activateWith(h.route,h.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 h=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(h.instance),h}attach(h,M){this.activated=h,this._activatedRoute=M,this.location.insert(h.hostView),this.attachEvents.emit(h.instance)}deactivate(){if(this.activated){const h=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(h)}}activateWith(h,M){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=h;const de=(M=M||this.resolver).resolveComponentFactory(h._futureSnapshot.routeConfig.component),Oe=this.parentContexts.getOrCreateContext(this.name).children,pt=new Do(h,Oe,this.location.injector);this.activated=this.location.createComponent(de,this.location.length,pt),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return m.\u0275fac=function(h){return new(h||m)(a.Y36(Ei),a.Y36(a.s_b),a.Y36(a._Vd),a.$8M("name"),a.Y36(a.sBO))},m.\u0275dir=a.lG2({type:m,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),m})();class Do{constructor(d,h,M){this.route=d,this.childContexts=h,this.parent=M}get(d,h){return d===k?this.route:d===Ei?this.childContexts:this.parent.get(d,h)}}let Jo=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275cmp=a.Xpm({type:m,selectors:[["ng-component"]],decls:1,vars:0,template:function(h,M){1&h&&a._UZ(0,"router-outlet")},directives:[so],encapsulation:2}),m})();function Qi(m,d=""){for(let h=0;hyi(M)===d);return h.push(...m.filter(M=>yi(M)!==d)),h}const b={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Y(m,d,h){var M;if(""===d.path)return"full"===d.pathMatch&&(m.hasChildren()||h.length>0)?Object.assign({},b):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const K=(d.matcher||Le)(h,m,d);if(!K)return Object.assign({},b);const de={};L(K.posParams,(pt,Ht)=>{de[Ht]=pt.path});const Oe=K.consumed.length>0?Object.assign(Object.assign({},de),K.consumed[K.consumed.length-1].parameters):de;return{matched:!0,consumedSegments:K.consumed,lastChild:K.consumed.length,parameters:Oe,positionalParamSegments:null!==(M=K.posParams)&&void 0!==M?M:{}}}function w(m,d,h,M,S="corrected"){if(h.length>0&&function ct(m,d,h){return h.some(M=>kt(m,d,M)&&yi(M)!==P)}(m,h,M)){const de=new qt(d,function xe(m,d,h,M){const S={};S[P]=M,M._sourceSegment=m,M._segmentIndexShift=d.length;for(const K of h)if(""===K.path&&yi(K)!==P){const de=new qt([],{});de._sourceSegment=m,de._segmentIndexShift=d.length,S[yi(K)]=de}return S}(m,d,M,new qt(h,m.children)));return de._sourceSegment=m,de._segmentIndexShift=d.length,{segmentGroup:de,slicedSegments:[]}}if(0===h.length&&function Mt(m,d,h){return h.some(M=>kt(m,d,M))}(m,h,M)){const de=new qt(m.segments,function Q(m,d,h,M,S,K){const de={};for(const Oe of M)if(kt(m,h,Oe)&&!S[yi(Oe)]){const pt=new qt([],{});pt._sourceSegment=m,pt._segmentIndexShift="legacy"===K?m.segments.length:d.length,de[yi(Oe)]=pt}return Object.assign(Object.assign({},S),de)}(m,d,h,M,m.children,S));return de._sourceSegment=m,de._segmentIndexShift=d.length,{segmentGroup:de,slicedSegments:h}}const K=new qt(m.segments,m.children);return K._sourceSegment=m,K._segmentIndexShift=d.length,{segmentGroup:K,slicedSegments:h}}function kt(m,d,h){return(!(m.hasChildren()||d.length>0)||"full"!==h.pathMatch)&&""===h.path}function Fn(m,d,h,M){return!!(yi(m)===M||M!==P&&kt(d,h,m))&&("**"===m.path||Y(d,m,h).matched)}function Tn(m,d,h){return 0===d.length&&!m.children[h]}class Dn{constructor(d){this.segmentGroup=d||null}}class dn{constructor(d){this.urlTree=d}}function Yn(m){return new I.y(d=>d.error(new Dn(m)))}function On(m){return new I.y(d=>d.error(new dn(m)))}function Yt(m){return new I.y(d=>d.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${m}'`)))}class C{constructor(d,h,M,S,K){this.configLoader=h,this.urlSerializer=M,this.urlTree=S,this.config=K,this.allowRedirects=!0,this.ngModule=d.get(a.h0i)}apply(){const d=w(this.urlTree.root,[],[],this.config).segmentGroup,h=new qt(d.segments,d.children);return this.expandSegmentGroup(this.ngModule,this.config,h,P).pipe((0,le.U)(K=>this.createUrlTree(U(K),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,tt.K)(K=>{if(K instanceof dn)return this.allowRedirects=!1,this.match(K.urlTree);throw K instanceof Dn?this.noMatchError(K):K}))}match(d){return this.expandSegmentGroup(this.ngModule,this.config,d.root,P).pipe((0,le.U)(S=>this.createUrlTree(U(S),d.queryParams,d.fragment))).pipe((0,tt.K)(S=>{throw S instanceof Dn?this.noMatchError(S):S}))}noMatchError(d){return new Error(`Cannot match any routes. URL Segment: '${d.segmentGroup}'`)}createUrlTree(d,h,M){const S=d.segments.length>0?new qt([],{[P]:d}):d;return new jn(S,h,M)}expandSegmentGroup(d,h,M,S){return 0===M.segments.length&&M.hasChildren()?this.expandChildren(d,h,M).pipe((0,le.U)(K=>new qt([],K))):this.expandSegment(d,M,h,M.segments,S,!0)}expandChildren(d,h,M){const S=[];for(const K of Object.keys(M.children))"primary"===K?S.unshift(K):S.push(K);return(0,oe.D)(S).pipe((0,ke.b)(K=>{const de=M.children[K],Oe=Wn(h,K);return this.expandSegmentGroup(d,Oe,de,K).pipe((0,le.U)(pt=>({segment:pt,outlet:K})))}),(0,je.R)((K,de)=>(K[de.outlet]=de.segment,K),{}),function fe(m,d){const h=arguments.length>=2;return M=>M.pipe(m?(0,Ye.h)((S,K)=>m(S,K,M)):J.y,_e(1),h?et(d):zt(()=>new G))}())}expandSegment(d,h,M,S,K,de){return(0,oe.D)(M).pipe((0,ke.b)(Oe=>this.expandSegmentAgainstRoute(d,h,M,Oe,S,K,de).pipe((0,tt.K)(Ht=>{if(Ht instanceof Dn)return(0,q.of)(null);throw Ht}))),te(Oe=>!!Oe),(0,tt.K)((Oe,pt)=>{if(Oe instanceof G||"EmptyError"===Oe.name){if(Tn(h,S,K))return(0,q.of)(new qt([],{}));throw new Dn(h)}throw Oe}))}expandSegmentAgainstRoute(d,h,M,S,K,de,Oe){return Fn(S,h,K,de)?void 0===S.redirectTo?this.matchSegmentAgainstRoute(d,h,S,K,de):Oe&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de):Yn(h):Yn(h)}expandSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de){return"**"===S.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(d,M,S,de):this.expandRegularSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de)}expandWildCardWithParamsAgainstRouteUsingRedirect(d,h,M,S){const K=this.applyRedirectCommands([],M.redirectTo,{});return M.redirectTo.startsWith("/")?On(K):this.lineralizeSegments(M,K).pipe((0,ve.zg)(de=>{const Oe=new qt(de,{});return this.expandSegment(d,Oe,h,de,S,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de){const{matched:Oe,consumedSegments:pt,lastChild:Ht,positionalParamSegments:wn}=Y(h,S,K);if(!Oe)return Yn(h);const tn=this.applyRedirectCommands(pt,S.redirectTo,wn);return S.redirectTo.startsWith("/")?On(tn):this.lineralizeSegments(S,tn).pipe((0,ve.zg)(In=>this.expandSegment(d,h,M,In.concat(K.slice(Ht)),de,!1)))}matchSegmentAgainstRoute(d,h,M,S,K){if("**"===M.path)return M.loadChildren?(M._loadedConfig?(0,q.of)(M._loadedConfig):this.configLoader.load(d.injector,M)).pipe((0,le.U)(In=>(M._loadedConfig=In,new qt(S,{})))):(0,q.of)(new qt(S,{}));const{matched:de,consumedSegments:Oe,lastChild:pt}=Y(h,M,S);if(!de)return Yn(h);const Ht=S.slice(pt);return this.getChildConfig(d,M,S).pipe((0,ve.zg)(tn=>{const In=tn.module,Hn=tn.routes,{segmentGroup:co,slicedSegments:lo}=w(h,Oe,Ht,Hn),Ui=new qt(co.segments,co.children);if(0===lo.length&&Ui.hasChildren())return this.expandChildren(In,Hn,Ui).pipe((0,le.U)(eo=>new qt(Oe,eo)));if(0===Hn.length&&0===lo.length)return(0,q.of)(new qt(Oe,{}));const uo=yi(M)===K;return this.expandSegment(In,Ui,Hn,lo,uo?P:K,!0).pipe((0,le.U)(Ai=>new qt(Oe.concat(Ai.segments),Ai.children)))}))}getChildConfig(d,h,M){return h.children?(0,q.of)(new ro(h.children,d)):h.loadChildren?void 0!==h._loadedConfig?(0,q.of)(h._loadedConfig):this.runCanLoadGuards(d.injector,h,M).pipe((0,ve.zg)(S=>S?this.configLoader.load(d.injector,h).pipe((0,le.U)(K=>(h._loadedConfig=K,K))):function Eo(m){return new I.y(d=>d.error(He(`Cannot load children because the guard of the route "path: '${m.path}'" returned false`)))}(h))):(0,q.of)(new ro([],d))}runCanLoadGuards(d,h,M){const S=h.canLoad;if(!S||0===S.length)return(0,q.of)(!0);const K=S.map(de=>{const Oe=d.get(de);let pt;if(function bo(m){return m&&oi(m.canLoad)}(Oe))pt=Oe.canLoad(h,M);else{if(!oi(Oe))throw new Error("Invalid CanLoad guard");pt=Oe(h,M)}return E(pt)});return(0,q.of)(K).pipe(Vi(),(0,mt.b)(de=>{if(!Di(de))return;const Oe=He(`Redirecting to "${this.urlSerializer.serialize(de)}"`);throw Oe.url=de,Oe}),(0,le.U)(de=>!0===de))}lineralizeSegments(d,h){let M=[],S=h.root;for(;;){if(M=M.concat(S.segments),0===S.numberOfChildren)return(0,q.of)(M);if(S.numberOfChildren>1||!S.children[P])return Yt(d.redirectTo);S=S.children[P]}}applyRedirectCommands(d,h,M){return this.applyRedirectCreatreUrlTree(h,this.urlSerializer.parse(h),d,M)}applyRedirectCreatreUrlTree(d,h,M,S){const K=this.createSegmentGroup(d,h.root,M,S);return new jn(K,this.createQueryParams(h.queryParams,this.urlTree.queryParams),h.fragment)}createQueryParams(d,h){const M={};return L(d,(S,K)=>{if("string"==typeof S&&S.startsWith(":")){const Oe=S.substring(1);M[K]=h[Oe]}else M[K]=S}),M}createSegmentGroup(d,h,M,S){const K=this.createSegments(d,h.segments,M,S);let de={};return L(h.children,(Oe,pt)=>{de[pt]=this.createSegmentGroup(d,Oe,M,S)}),new qt(K,de)}createSegments(d,h,M,S){return h.map(K=>K.path.startsWith(":")?this.findPosParam(d,K,S):this.findOrReturn(K,M))}findPosParam(d,h,M){const S=M[h.path.substring(1)];if(!S)throw new Error(`Cannot redirect to '${d}'. Cannot find '${h.path}'.`);return S}findOrReturn(d,h){let M=0;for(const S of h){if(S.path===d.path)return h.splice(M),S;M++}return d}}function U(m){const d={};for(const M of Object.keys(m.children)){const K=U(m.children[M]);(K.segments.length>0||K.hasChildren())&&(d[M]=K)}return function y(m){if(1===m.numberOfChildren&&m.children[P]){const d=m.children[P];return new qt(m.segments.concat(d.segments),d.children)}return m}(new qt(m.segments,d))}class Nt{constructor(d){this.path=d,this.route=this.path[this.path.length-1]}}class lt{constructor(d,h){this.component=d,this.route=h}}function O(m,d,h){const M=m._root;return F(M,d?d._root:null,h,[M.value])}function l(m,d,h){const M=function g(m){if(!m)return null;for(let d=m.parent;d;d=d.parent){const h=d.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig}return null}(d);return(M?M.module.injector:h).get(m)}function F(m,d,h,M,S={canDeactivateChecks:[],canActivateChecks:[]}){const K=Rn(d);return m.children.forEach(de=>{(function ne(m,d,h,M,S={canDeactivateChecks:[],canActivateChecks:[]}){const K=m.value,de=d?d.value:null,Oe=h?h.getContext(m.value.outlet):null;if(de&&K.routeConfig===de.routeConfig){const pt=function ge(m,d,h){if("function"==typeof h)return h(m,d);switch(h){case"pathParamsChange":return!ae(m.url,d.url);case"pathParamsOrQueryParamsChange":return!ae(m.url,d.url)||!V(m.queryParams,d.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ai(m,d)||!V(m.queryParams,d.queryParams);default:return!ai(m,d)}}(de,K,K.routeConfig.runGuardsAndResolvers);pt?S.canActivateChecks.push(new Nt(M)):(K.data=de.data,K._resolvedData=de._resolvedData),F(m,d,K.component?Oe?Oe.children:null:h,M,S),pt&&Oe&&Oe.outlet&&Oe.outlet.isActivated&&S.canDeactivateChecks.push(new lt(Oe.outlet.component,de))}else de&&Ce(d,Oe,S),S.canActivateChecks.push(new Nt(M)),F(m,null,K.component?Oe?Oe.children:null:h,M,S)})(de,K[de.value.outlet],h,M.concat([de.value]),S),delete K[de.value.outlet]}),L(K,(de,Oe)=>Ce(de,h.getContext(Oe),S)),S}function Ce(m,d,h){const M=Rn(m),S=m.value;L(M,(K,de)=>{Ce(K,S.component?d?d.children.getContext(de):null:d,h)}),h.canDeactivateChecks.push(new lt(S.component&&d&&d.outlet&&d.outlet.isActivated?d.outlet.component:null,S))}class pn{}function Jn(m){return new I.y(d=>d.error(m))}class _i{constructor(d,h,M,S,K,de){this.rootComponentType=d,this.config=h,this.urlTree=M,this.url=S,this.paramsInheritanceStrategy=K,this.relativeLinkResolution=de}recognize(){const d=w(this.urlTree.root,[],[],this.config.filter(de=>void 0===de.redirectTo),this.relativeLinkResolution).segmentGroup,h=this.processSegmentGroup(this.config,d,P);if(null===h)return null;const M=new Ct([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},P,this.rootComponentType,null,this.urlTree.root,-1,{}),S=new Nn(M,h),K=new Ot(this.url,S);return this.inheritParamsAndData(K._root),K}inheritParamsAndData(d){const h=d.value,M=Ee(h,this.paramsInheritanceStrategy);h.params=Object.freeze(M.params),h.data=Object.freeze(M.data),d.children.forEach(S=>this.inheritParamsAndData(S))}processSegmentGroup(d,h,M){return 0===h.segments.length&&h.hasChildren()?this.processChildren(d,h):this.processSegment(d,h,h.segments,M)}processChildren(d,h){const M=[];for(const K of Object.keys(h.children)){const de=h.children[K],Oe=Wn(d,K),pt=this.processSegmentGroup(Oe,de,K);if(null===pt)return null;M.push(...pt)}const S=fi(M);return function di(m){m.sort((d,h)=>d.value.outlet===P?-1:h.value.outlet===P?1:d.value.outlet.localeCompare(h.value.outlet))}(S),S}processSegment(d,h,M,S){for(const K of d){const de=this.processSegmentAgainstRoute(K,h,M,S);if(null!==de)return de}return Tn(h,M,S)?[]:null}processSegmentAgainstRoute(d,h,M,S){if(d.redirectTo||!Fn(d,h,M,S))return null;let K,de=[],Oe=[];if("**"===d.path){const Hn=M.length>0?ce(M).parameters:{};K=new Ct(M,Hn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ho(d),yi(d),d.component,d,Yi(h),Li(h)+M.length,zo(d))}else{const Hn=Y(h,d,M);if(!Hn.matched)return null;de=Hn.consumedSegments,Oe=M.slice(Hn.lastChild),K=new Ct(de,Hn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ho(d),yi(d),d.component,d,Yi(h),Li(h)+de.length,zo(d))}const pt=function qi(m){return m.children?m.children:m.loadChildren?m._loadedConfig.routes:[]}(d),{segmentGroup:Ht,slicedSegments:wn}=w(h,de,Oe,pt.filter(Hn=>void 0===Hn.redirectTo),this.relativeLinkResolution);if(0===wn.length&&Ht.hasChildren()){const Hn=this.processChildren(pt,Ht);return null===Hn?null:[new Nn(K,Hn)]}if(0===pt.length&&0===wn.length)return[new Nn(K,[])];const tn=yi(d)===S,In=this.processSegment(pt,Ht,wn,tn?P:S);return null===In?null:[new Nn(K,In)]}}function Oi(m){const d=m.value.routeConfig;return d&&""===d.path&&void 0===d.redirectTo}function fi(m){const d=[],h=new Set;for(const M of m){if(!Oi(M)){d.push(M);continue}const S=d.find(K=>M.value.routeConfig===K.value.routeConfig);void 0!==S?(S.children.push(...M.children),h.add(S)):d.push(M)}for(const M of h){const S=fi(M.children);d.push(new Nn(M.value,S))}return d.filter(M=>!h.has(M))}function Yi(m){let d=m;for(;d._sourceSegment;)d=d._sourceSegment;return d}function Li(m){let d=m,h=d._segmentIndexShift?d._segmentIndexShift:0;for(;d._sourceSegment;)d=d._sourceSegment,h+=d._segmentIndexShift?d._segmentIndexShift:0;return h-1}function Ho(m){return m.data||{}}function zo(m){return m.resolve||{}}function en(m){return(0,ie.w)(d=>{const h=m(d);return h?(0,oe.D)(h).pipe((0,le.U)(()=>d)):(0,q.of)(d)})}class xn extends class Gn{shouldDetach(d){return!1}store(d,h){}shouldAttach(d){return!1}retrieve(d){return null}shouldReuseRoute(d,h){return d.routeConfig===h.routeConfig}}{}const pi=new a.OlP("ROUTES");class Ji{constructor(d,h,M,S){this.injector=d,this.compiler=h,this.onLoadStartListener=M,this.onLoadEndListener=S}load(d,h){if(h._loader$)return h._loader$;this.onLoadStartListener&&this.onLoadStartListener(h);const S=this.loadModuleFactory(h.loadChildren).pipe((0,le.U)(K=>{this.onLoadEndListener&&this.onLoadEndListener(h);const de=K.create(d);return new ro(nt(de.injector.get(pi,void 0,a.XFs.Self|a.XFs.Optional)).map(Pi),de)}),(0,tt.K)(K=>{throw h._loader$=void 0,K}));return h._loader$=new ee.c(S,()=>new ye.xQ).pipe((0,Qe.x)()),h._loader$}loadModuleFactory(d){return E(d()).pipe((0,ve.zg)(h=>h instanceof a.YKP?(0,q.of)(h):(0,oe.D)(this.compiler.compileModuleAsync(h))))}}class mr{shouldProcessUrl(d){return!0}extract(d){return d}merge(d,h){return d}}function ts(m){throw m}function Ci(m,d,h){return d.parse("/")}function Hi(m,d){return(0,q.of)(null)}const Ni={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ji={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ci=(()=>{class m{constructor(h,M,S,K,de,Oe,pt){this.rootComponentType=h,this.urlSerializer=M,this.rootContexts=S,this.location=K,this.config=pt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ye.xQ,this.errorHandler=ts,this.malformedUriErrorHandler=Ci,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Hi,afterPreactivation:Hi},this.urlHandlingStrategy=new mr,this.routeReuseStrategy=new xn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=de.get(a.h0i),this.console=de.get(a.c2e);const tn=de.get(a.R0b);this.isNgZoneEnabled=tn instanceof a.R0b&&a.R0b.isInAngularZone(),this.resetConfig(pt),this.currentUrlTree=function $(){return new jn(new qt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ji(de,Oe,In=>this.triggerEvent(new Dt(In)),In=>this.triggerEvent(new Sn(In))),this.routerState=X(this.currentUrlTree,this.rootComponentType),this.transitions=new _.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 h;return null===(h=this.location.getState())||void 0===h?void 0:h.\u0275routerPageId}setupNavigations(h){const M=this.events;return h.pipe((0,Ye.h)(S=>0!==S.id),(0,le.U)(S=>Object.assign(Object.assign({},S),{extractedUrl:this.urlHandlingStrategy.extract(S.rawUrl)})),(0,ie.w)(S=>{let K=!1,de=!1;return(0,q.of)(S).pipe((0,mt.b)(Oe=>{this.currentNavigation={id:Oe.id,initialUrl:Oe.currentRawUrl,extractedUrl:Oe.extractedUrl,trigger:Oe.source,extras:Oe.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,ie.w)(Oe=>{const pt=this.browserUrlTree.toString(),Ht=!this.navigated||Oe.extractedUrl.toString()!==pt||pt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ht)&&this.urlHandlingStrategy.shouldProcessUrl(Oe.rawUrl))return gr(Oe.source)&&(this.browserUrlTree=Oe.extractedUrl),(0,q.of)(Oe).pipe((0,ie.w)(tn=>{const In=this.transitions.getValue();return M.next(new ot(tn.id,this.serializeUrl(tn.extractedUrl),tn.source,tn.restoredState)),In!==this.transitions.getValue()?B.E:Promise.resolve(tn)}),function at(m,d,h,M){return(0,ie.w)(S=>function D(m,d,h,M,S){return new C(m,d,h,M,S).apply()}(m,d,h,S.extractedUrl,M).pipe((0,le.U)(K=>Object.assign(Object.assign({},S),{urlAfterRedirects:K}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,mt.b)(tn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:tn.urlAfterRedirects})}),function ao(m,d,h,M,S){return(0,ve.zg)(K=>function ti(m,d,h,M,S="emptyOnly",K="legacy"){try{const de=new _i(m,d,h,M,S,K).recognize();return null===de?Jn(new pn):(0,q.of)(de)}catch(de){return Jn(de)}}(m,d,K.urlAfterRedirects,h(K.urlAfterRedirects),M,S).pipe((0,le.U)(de=>Object.assign(Object.assign({},K),{targetSnapshot:de}))))}(this.rootComponentType,this.config,tn=>this.serializeUrl(tn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,mt.b)(tn=>{if("eager"===this.urlUpdateStrategy){if(!tn.extras.skipLocationChange){const Hn=this.urlHandlingStrategy.merge(tn.urlAfterRedirects,tn.rawUrl);this.setBrowserUrl(Hn,tn)}this.browserUrlTree=tn.urlAfterRedirects}const In=new gn(tn.id,this.serializeUrl(tn.extractedUrl),this.serializeUrl(tn.urlAfterRedirects),tn.targetSnapshot);M.next(In)}));if(Ht&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:In,extractedUrl:Hn,source:co,restoredState:lo,extras:Ui}=Oe,uo=new ot(In,this.serializeUrl(Hn),co,lo);M.next(uo);const So=X(Hn,this.rootComponentType).snapshot;return(0,q.of)(Object.assign(Object.assign({},Oe),{targetSnapshot:So,urlAfterRedirects:Hn,extras:Object.assign(Object.assign({},Ui),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=Oe.rawUrl,Oe.resolve(null),B.E}),en(Oe=>{const{targetSnapshot:pt,id:Ht,extractedUrl:wn,rawUrl:tn,extras:{skipLocationChange:In,replaceUrl:Hn}}=Oe;return this.hooks.beforePreactivation(pt,{navigationId:Ht,appliedUrlTree:wn,rawUrlTree:tn,skipLocationChange:!!In,replaceUrl:!!Hn})}),(0,mt.b)(Oe=>{const pt=new Ut(Oe.id,this.serializeUrl(Oe.extractedUrl),this.serializeUrl(Oe.urlAfterRedirects),Oe.targetSnapshot);this.triggerEvent(pt)}),(0,le.U)(Oe=>Object.assign(Object.assign({},Oe),{guards:O(Oe.targetSnapshot,Oe.currentSnapshot,this.rootContexts)})),function Ke(m,d){return(0,ve.zg)(h=>{const{targetSnapshot:M,currentSnapshot:S,guards:{canActivateChecks:K,canDeactivateChecks:de}}=h;return 0===de.length&&0===K.length?(0,q.of)(Object.assign(Object.assign({},h),{guardsResult:!0})):function ft(m,d,h,M){return(0,oe.D)(m).pipe((0,ve.zg)(S=>function Jt(m,d,h,M,S){const K=d&&d.routeConfig?d.routeConfig.canDeactivate:null;if(!K||0===K.length)return(0,q.of)(!0);const de=K.map(Oe=>{const pt=l(Oe,d,S);let Ht;if(function wo(m){return m&&oi(m.canDeactivate)}(pt))Ht=E(pt.canDeactivate(m,d,h,M));else{if(!oi(pt))throw new Error("Invalid CanDeactivate guard");Ht=E(pt(m,d,h,M))}return Ht.pipe(te())});return(0,q.of)(de).pipe(Vi())}(S.component,S.route,h,d,M)),te(S=>!0!==S,!0))}(de,M,S,m).pipe((0,ve.zg)(Oe=>Oe&&function Zi(m){return"boolean"==typeof m}(Oe)?function Pt(m,d,h,M){return(0,oe.D)(d).pipe((0,ke.b)(S=>(0,R.z)(function Gt(m,d){return null!==m&&d&&d(new cn(m)),(0,q.of)(!0)}(S.route.parent,M),function Bt(m,d){return null!==m&&d&&d(new qe(m)),(0,q.of)(!0)}(S.route,M),function Kt(m,d,h){const M=d[d.length-1],K=d.slice(0,d.length-1).reverse().map(de=>function c(m){const d=m.routeConfig?m.routeConfig.canActivateChild:null;return d&&0!==d.length?{node:m,guards:d}:null}(de)).filter(de=>null!==de).map(de=>(0,H.P)(()=>{const Oe=de.guards.map(pt=>{const Ht=l(pt,de.node,h);let wn;if(function Lo(m){return m&&oi(m.canActivateChild)}(Ht))wn=E(Ht.canActivateChild(M,m));else{if(!oi(Ht))throw new Error("Invalid CanActivateChild guard");wn=E(Ht(M,m))}return wn.pipe(te())});return(0,q.of)(Oe).pipe(Vi())}));return(0,q.of)(K).pipe(Vi())}(m,S.path,h),function ln(m,d,h){const M=d.routeConfig?d.routeConfig.canActivate:null;if(!M||0===M.length)return(0,q.of)(!0);const S=M.map(K=>(0,H.P)(()=>{const de=l(K,d,h);let Oe;if(function Vo(m){return m&&oi(m.canActivate)}(de))Oe=E(de.canActivate(d,m));else{if(!oi(de))throw new Error("Invalid CanActivate guard");Oe=E(de(d,m))}return Oe.pipe(te())}));return(0,q.of)(S).pipe(Vi())}(m,S.route,h))),te(S=>!0!==S,!0))}(M,K,m,d):(0,q.of)(Oe)),(0,le.U)(Oe=>Object.assign(Object.assign({},h),{guardsResult:Oe})))})}(this.ngModule.injector,Oe=>this.triggerEvent(Oe)),(0,mt.b)(Oe=>{if(Di(Oe.guardsResult)){const Ht=He(`Redirecting to "${this.serializeUrl(Oe.guardsResult)}"`);throw Ht.url=Oe.guardsResult,Ht}const pt=new un(Oe.id,this.serializeUrl(Oe.extractedUrl),this.serializeUrl(Oe.urlAfterRedirects),Oe.targetSnapshot,!!Oe.guardsResult);this.triggerEvent(pt)}),(0,Ye.h)(Oe=>!!Oe.guardsResult||(this.restoreHistory(Oe),this.cancelNavigationTransition(Oe,""),!1)),en(Oe=>{if(Oe.guards.canActivateChecks.length)return(0,q.of)(Oe).pipe((0,mt.b)(pt=>{const Ht=new _n(pt.id,this.serializeUrl(pt.extractedUrl),this.serializeUrl(pt.urlAfterRedirects),pt.targetSnapshot);this.triggerEvent(Ht)}),(0,ie.w)(pt=>{let Ht=!1;return(0,q.of)(pt).pipe(function fr(m,d){return(0,ve.zg)(h=>{const{targetSnapshot:M,guards:{canActivateChecks:S}}=h;if(!S.length)return(0,q.of)(h);let K=0;return(0,oe.D)(S).pipe((0,ke.b)(de=>function pr(m,d,h,M){return function Rt(m,d,h,M){const S=Object.keys(m);if(0===S.length)return(0,q.of)({});const K={};return(0,oe.D)(S).pipe((0,ve.zg)(de=>function Xt(m,d,h,M){const S=l(m,d,M);return E(S.resolve?S.resolve(d,h):S(d,h))}(m[de],d,h,M).pipe((0,mt.b)(Oe=>{K[de]=Oe}))),_e(1),(0,ve.zg)(()=>Object.keys(K).length===S.length?(0,q.of)(K):B.E))}(m._resolve,m,d,M).pipe((0,le.U)(K=>(m._resolvedData=K,m.data=Object.assign(Object.assign({},m.data),Ee(m,h).resolve),null)))}(de.route,M,m,d)),(0,mt.b)(()=>K++),_e(1),(0,ve.zg)(de=>K===S.length?(0,q.of)(h):B.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,mt.b)({next:()=>Ht=!0,complete:()=>{Ht||(this.restoreHistory(pt),this.cancelNavigationTransition(pt,"At least one route resolver didn't emit any value."))}}))}),(0,mt.b)(pt=>{const Ht=new Cn(pt.id,this.serializeUrl(pt.extractedUrl),this.serializeUrl(pt.urlAfterRedirects),pt.targetSnapshot);this.triggerEvent(Ht)}))}),en(Oe=>{const{targetSnapshot:pt,id:Ht,extractedUrl:wn,rawUrl:tn,extras:{skipLocationChange:In,replaceUrl:Hn}}=Oe;return this.hooks.afterPreactivation(pt,{navigationId:Ht,appliedUrlTree:wn,rawUrlTree:tn,skipLocationChange:!!In,replaceUrl:!!Hn})}),(0,le.U)(Oe=>{const pt=function kn(m,d,h){const M=bi(m,d._root,h?h._root:void 0);return new qn(M,d)}(this.routeReuseStrategy,Oe.targetSnapshot,Oe.currentRouterState);return Object.assign(Object.assign({},Oe),{targetRouterState:pt})}),(0,mt.b)(Oe=>{this.currentUrlTree=Oe.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Oe.urlAfterRedirects,Oe.rawUrl),this.routerState=Oe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Oe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Oe),this.browserUrlTree=Oe.urlAfterRedirects)}),((m,d,h)=>(0,le.U)(M=>(new qo(d,M.targetRouterState,M.currentRouterState,h).activate(m),M)))(this.rootContexts,this.routeReuseStrategy,Oe=>this.triggerEvent(Oe)),(0,mt.b)({next(){K=!0},complete(){K=!0}}),(0,dt.x)(()=>{var Oe;K||de||this.cancelNavigationTransition(S,`Navigation ID ${S.id} is not equal to the current navigation id ${this.navigationId}`),(null===(Oe=this.currentNavigation)||void 0===Oe?void 0:Oe.id)===S.id&&(this.currentNavigation=null)}),(0,tt.K)(Oe=>{if(de=!0,function Ge(m){return m&&m[me]}(Oe)){const pt=Di(Oe.url);pt||(this.navigated=!0,this.restoreHistory(S,!0));const Ht=new Zt(S.id,this.serializeUrl(S.extractedUrl),Oe.message);M.next(Ht),pt?setTimeout(()=>{const wn=this.urlHandlingStrategy.merge(Oe.url,this.rawUrlTree),tn={skipLocationChange:S.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||gr(S.source)};this.scheduleNavigation(wn,"imperative",null,tn,{resolve:S.resolve,reject:S.reject,promise:S.promise})},0):S.resolve(!1)}else{this.restoreHistory(S,!0);const pt=new mn(S.id,this.serializeUrl(S.extractedUrl),Oe);M.next(pt);try{S.resolve(this.errorHandler(Oe))}catch(Ht){S.reject(Ht)}}return B.E}))}))}resetRootComponentType(h){this.rootComponentType=h,this.routerState.root.component=this.rootComponentType}setTransition(h){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),h))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(h=>{const M="popstate"===h.type?"popstate":"hashchange";"popstate"===M&&setTimeout(()=>{var S;const K={replaceUrl:!0},de=(null===(S=h.state)||void 0===S?void 0:S.navigationId)?h.state:null;if(de){const pt=Object.assign({},de);delete pt.navigationId,delete pt.\u0275routerPageId,0!==Object.keys(pt).length&&(K.state=pt)}const Oe=this.parseUrl(h.url);this.scheduleNavigation(Oe,M,de,K)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(h){this.events.next(h)}resetConfig(h){Qi(h),this.config=h.map(Pi),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(h,M={}){const{relativeTo:S,queryParams:K,fragment:de,queryParamsHandling:Oe,preserveFragment:pt}=M,Ht=S||this.routerState.root,wn=pt?this.currentUrlTree.fragment:de;let tn=null;switch(Oe){case"merge":tn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),K);break;case"preserve":tn=this.currentUrlTree.queryParams;break;default:tn=K||null}return null!==tn&&(tn=this.removeEmptyProps(tn)),function vi(m,d,h,M,S){if(0===h.length)return ko(d.root,d.root,d,M,S);const K=function Zo(m){if("string"==typeof m[0]&&1===m.length&&"/"===m[0])return new vo(!0,0,m);let d=0,h=!1;const M=m.reduce((S,K,de)=>{if("object"==typeof K&&null!=K){if(K.outlets){const Oe={};return L(K.outlets,(pt,Ht)=>{Oe[Ht]="string"==typeof pt?pt.split("/"):pt}),[...S,{outlets:Oe}]}if(K.segmentPath)return[...S,K.segmentPath]}return"string"!=typeof K?[...S,K]:0===de?(K.split("/").forEach((Oe,pt)=>{0==pt&&"."===Oe||(0==pt&&""===Oe?h=!0:".."===Oe?d++:""!=Oe&&S.push(Oe))}),S):[...S,K]},[]);return new vo(h,d,M)}(h);if(K.toRoot())return ko(d.root,new qt([],{}),d,M,S);const de=function yo(m,d,h){if(m.isAbsolute)return new Wi(d.root,!0,0);if(-1===h.snapshot._lastPathIndex){const K=h.snapshot._urlSegment;return new Wi(K,K===d.root,0)}const M=ui(m.commands[0])?0:1;return function _o(m,d,h){let M=m,S=d,K=h;for(;K>S;){if(K-=S,M=M.parent,!M)throw new Error("Invalid number of '../'");S=M.segments.length}return new Wi(M,!1,S-K)}(h.snapshot._urlSegment,h.snapshot._lastPathIndex+M,m.numberOfDoubleDots)}(K,d,m),Oe=de.processChildren?Co(de.segmentGroup,de.index,K.commands):Ii(de.segmentGroup,de.index,K.commands);return ko(de.segmentGroup,Oe,d,M,S)}(Ht,this.currentUrlTree,h,tn,null!=wn?wn:null)}navigateByUrl(h,M={skipLocationChange:!1}){const S=Di(h)?h:this.parseUrl(h),K=this.urlHandlingStrategy.merge(S,this.rawUrlTree);return this.scheduleNavigation(K,"imperative",null,M)}navigate(h,M={skipLocationChange:!1}){return function Fs(m){for(let d=0;d{const K=h[S];return null!=K&&(M[S]=K),M},{})}processNavigations(){this.navigations.subscribe(h=>{this.navigated=!0,this.lastSuccessfulId=h.id,this.currentPageId=h.targetPageId,this.events.next(new Et(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,h.resolve(!0)},h=>{this.console.warn(`Unhandled Navigation Error: ${h}`)})}scheduleNavigation(h,M,S,K,de){var Oe,pt,Ht;if(this.disposed)return Promise.resolve(!1);const wn=this.transitions.value,tn=gr(M)&&wn&&!gr(wn.source),In=wn.rawUrl.toString()===h.toString(),Hn=wn.id===(null===(Oe=this.currentNavigation)||void 0===Oe?void 0:Oe.id);if(tn&&In&&Hn)return Promise.resolve(!0);let lo,Ui,uo;de?(lo=de.resolve,Ui=de.reject,uo=de.promise):uo=new Promise((eo,Bs)=>{lo=eo,Ui=Bs});const So=++this.navigationId;let Ai;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(S=this.location.getState()),Ai=S&&S.\u0275routerPageId?S.\u0275routerPageId:K.replaceUrl||K.skipLocationChange?null!==(pt=this.browserPageId)&&void 0!==pt?pt:0:(null!==(Ht=this.browserPageId)&&void 0!==Ht?Ht:0)+1):Ai=0,this.setTransition({id:So,targetPageId:Ai,source:M,restoredState:S,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:h,extras:K,resolve:lo,reject:Ui,promise:uo,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),uo.catch(eo=>Promise.reject(eo))}setBrowserUrl(h,M){const S=this.urlSerializer.serialize(h),K=Object.assign(Object.assign({},M.extras.state),this.generateNgRouterState(M.id,M.targetPageId));this.location.isCurrentPathEqualTo(S)||M.extras.replaceUrl?this.location.replaceState(S,"",K):this.location.go(S,"",K)}restoreHistory(h,M=!1){var S,K;if("computed"===this.canceledNavigationResolution){const de=this.currentPageId-h.targetPageId;"popstate"!==h.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(S=this.currentNavigation)||void 0===S?void 0:S.finalUrl)||0===de?this.currentUrlTree===(null===(K=this.currentNavigation)||void 0===K?void 0:K.finalUrl)&&0===de&&(this.resetState(h),this.browserUrlTree=h.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(de)}else"replace"===this.canceledNavigationResolution&&(M&&this.resetState(h),this.resetUrlToCurrentUrlTree())}resetState(h){this.routerState=h.currentRouterState,this.currentUrlTree=h.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,h.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(h,M){const S=new Zt(h.id,this.serializeUrl(h.extractedUrl),M);this.triggerEvent(S),h.resolve(!1)}generateNgRouterState(h,M){return"computed"===this.canceledNavigationResolution?{navigationId:h,\u0275routerPageId:M}:{navigationId:h}}}return m.\u0275fac=function(h){a.$Z()},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})();function gr(m){return"imperative"!==m}let Xi=(()=>{class m{constructor(h,M,S,K,de){this.router=h,this.route=M,this.tabIndexAttribute=S,this.renderer=K,this.el=de,this.commands=null,this.onChanges=new ye.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(h){if(null!=this.tabIndexAttribute)return;const M=this.renderer,S=this.el.nativeElement;null!==h?M.setAttribute(S,"tabindex",h):M.removeAttribute(S,"tabindex")}ngOnChanges(h){this.onChanges.next(this)}set routerLink(h){null!=h?(this.commands=Array.isArray(h)?h:[h],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const h={skipLocationChange:ar(this.skipLocationChange),replaceUrl:ar(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,h),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ar(this.preserveFragment)})}}return m.\u0275fac=function(h){return new(h||m)(a.Y36(ci),a.Y36(k),a.$8M("tabindex"),a.Y36(a.Qsj),a.Y36(a.SBq))},m.\u0275dir=a.lG2({type:m,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(h,M){1&h&&a.NdJ("click",function(){return M.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[a.TTD]}),m})(),No=(()=>{class m{constructor(h,M,S){this.router=h,this.route=M,this.locationStrategy=S,this.commands=null,this.href=null,this.onChanges=new ye.xQ,this.subscription=h.events.subscribe(K=>{K instanceof Et&&this.updateTargetUrlAndHref()})}set routerLink(h){this.commands=null!=h?Array.isArray(h)?h:[h]:null}ngOnChanges(h){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(h,M,S,K,de){if(0!==h||M||S||K||de||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Oe={skipLocationChange:ar(this.skipLocationChange),replaceUrl:ar(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Oe),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ar(this.preserveFragment)})}}return m.\u0275fac=function(h){return new(h||m)(a.Y36(ci),a.Y36(k),a.Y36(it.S$))},m.\u0275dir=a.lG2({type:m,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(h,M){1&h&&a.NdJ("click",function(K){return M.onClick(K.button,K.ctrlKey,K.shiftKey,K.altKey,K.metaKey)}),2&h&&a.uIk("target",M.target)("href",M.href,a.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[a.TTD]}),m})();function ar(m){return""===m||!!m}class Er{}class Is{preload(d,h){return h().pipe((0,tt.K)(()=>(0,q.of)(null)))}}class Vs{preload(d,h){return(0,q.of)(null)}}let wa=(()=>{class m{constructor(h,M,S,K){this.router=h,this.injector=S,this.preloadingStrategy=K,this.loader=new Ji(S,M,pt=>h.triggerEvent(new Dt(pt)),pt=>h.triggerEvent(new Sn(pt)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ye.h)(h=>h instanceof Et),(0,ke.b)(()=>this.preload())).subscribe(()=>{})}preload(){const h=this.injector.get(a.h0i);return this.processRoutes(h,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(h,M){const S=[];for(const K of M)if(K.loadChildren&&!K.canLoad&&K._loadedConfig){const de=K._loadedConfig;S.push(this.processRoutes(de.module,de.routes))}else K.loadChildren&&!K.canLoad?S.push(this.preloadConfig(h,K)):K.children&&S.push(this.processRoutes(h,K.children));return(0,oe.D)(S).pipe((0,_t.J)(),(0,le.U)(K=>{}))}preloadConfig(h,M){return this.preloadingStrategy.preload(M,()=>(M._loadedConfig?(0,q.of)(M._loadedConfig):this.loader.load(h.injector,M)).pipe((0,ve.zg)(K=>(M._loadedConfig=K,this.processRoutes(K.module,K.routes)))))}}return m.\u0275fac=function(h){return new(h||m)(a.LFG(ci),a.LFG(a.Sil),a.LFG(a.zs3),a.LFG(Er))},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})(),ns=(()=>{class m{constructor(h,M,S={}){this.router=h,this.viewportScroller=M,this.options=S,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},S.scrollPositionRestoration=S.scrollPositionRestoration||"disabled",S.anchorScrolling=S.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(h=>{h instanceof ot?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=h.navigationTrigger,this.restoredId=h.restoredState?h.restoredState.navigationId:0):h instanceof Et&&(this.lastId=h.id,this.scheduleScrollEvent(h,this.router.parseUrl(h.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(h=>{h instanceof z&&(h.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(h.position):h.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(h.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(h,M){this.router.triggerEvent(new z(h,"popstate"===this.lastSource?this.store[this.restoredId]:null,M))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return m.\u0275fac=function(h){a.$Z()},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})();const Ro=new a.OlP("ROUTER_CONFIGURATION"),zr=new a.OlP("ROUTER_FORROOT_GUARD"),Sr=[it.Ye,{provide:ht,useClass:It},{provide:ci,useFactory:function Tr(m,d,h,M,S,K,de={},Oe,pt){const Ht=new ci(null,m,d,h,M,S,nt(K));return Oe&&(Ht.urlHandlingStrategy=Oe),pt&&(Ht.routeReuseStrategy=pt),function ec(m,d){m.errorHandler&&(d.errorHandler=m.errorHandler),m.malformedUriErrorHandler&&(d.malformedUriErrorHandler=m.malformedUriErrorHandler),m.onSameUrlNavigation&&(d.onSameUrlNavigation=m.onSameUrlNavigation),m.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=m.paramsInheritanceStrategy),m.relativeLinkResolution&&(d.relativeLinkResolution=m.relativeLinkResolution),m.urlUpdateStrategy&&(d.urlUpdateStrategy=m.urlUpdateStrategy),m.canceledNavigationResolution&&(d.canceledNavigationResolution=m.canceledNavigationResolution)}(de,Ht),de.enableTracing&&Ht.events.subscribe(wn=>{var tn,In;null===(tn=console.group)||void 0===tn||tn.call(console,`Router Event: ${wn.constructor.name}`),console.log(wn.toString()),console.log(wn),null===(In=console.groupEnd)||void 0===In||In.call(console)}),Ht},deps:[ht,Ei,it.Ye,a.zs3,a.Sil,pi,Ro,[class Xn{},new a.FiY],[class sn{},new a.FiY]]},Ei,{provide:k,useFactory:function Ns(m){return m.routerState.root},deps:[ci]},wa,Vs,Is,{provide:Ro,useValue:{enableTracing:!1}}];function Ls(){return new a.PXZ("Router",ci)}let Hs=(()=>{class m{constructor(h,M){}static forRoot(h,M){return{ngModule:m,providers:[Sr,yr(h),{provide:zr,useFactory:lr,deps:[[ci,new a.FiY,new a.tp0]]},{provide:Ro,useValue:M||{}},{provide:it.S$,useFactory:Da,deps:[it.lw,[new a.tBr(it.mr),new a.FiY],Ro]},{provide:ns,useFactory:cr,deps:[ci,it.EM,Ro]},{provide:Er,useExisting:M&&M.preloadingStrategy?M.preloadingStrategy:Vs},{provide:a.PXZ,multi:!0,useFactory:Ls},[xr,{provide:a.ip1,multi:!0,useFactory:Ea,deps:[xr]},{provide:ur,useFactory:za,deps:[xr]},{provide:a.tb,multi:!0,useExisting:ur}]]}}static forChild(h){return{ngModule:m,providers:[yr(h)]}}}return m.\u0275fac=function(h){return new(h||m)(a.LFG(zr,8),a.LFG(ci,8))},m.\u0275mod=a.oAB({type:m}),m.\u0275inj=a.cJS({}),m})();function cr(m,d,h){return h.scrollOffset&&d.setOffset(h.scrollOffset),new ns(m,d,h)}function Da(m,d,h={}){return h.useHash?new it.Do(m,d):new it.b0(m,d)}function lr(m){return"guarded"}function yr(m){return[{provide:a.deG,multi:!0,useValue:m},{provide:pi,multi:!0,useValue:m}]}let xr=(()=>{class m{constructor(h){this.injector=h,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new ye.xQ}appInitializer(){return this.injector.get(it.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let M=null;const S=new Promise(Oe=>M=Oe),K=this.injector.get(ci),de=this.injector.get(Ro);return"disabled"===de.initialNavigation?(K.setUpLocationChangeListener(),M(!0)):"enabled"===de.initialNavigation||"enabledBlocking"===de.initialNavigation?(K.hooks.afterPreactivation=()=>this.initNavigation?(0,q.of)(null):(this.initNavigation=!0,M(!0),this.resultOfPreactivationDone),K.initialNavigation()):M(!0),S})}bootstrapListener(h){const M=this.injector.get(Ro),S=this.injector.get(wa),K=this.injector.get(ns),de=this.injector.get(ci),Oe=this.injector.get(a.z2F);h===Oe.components[0]&&(("enabledNonBlocking"===M.initialNavigation||void 0===M.initialNavigation)&&de.initialNavigation(),S.setUpPreloading(),K.init(),de.resetRootComponentType(Oe.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return m.\u0275fac=function(h){return new(h||m)(a.LFG(a.zs3))},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})();function Ea(m){return m.appInitializer.bind(m)}function za(m){return m.bootstrapListener.bind(m)}const ur=new a.OlP("Router Initializer")},9193:(yt,be,p)=>{p.d(be,{V65:()=>mn,ud1:()=>qt,Hkd:()=>jt,XuQ:()=>Pn,bBn:()=>ei,BOg:()=>st,Rfq:()=>Ot,yQU:()=>rn,U2Q:()=>Wt,UKj:()=>kn,BXH:()=>k,OYp:()=>bi,eLU:()=>ai,x0x:()=>Vi,Ej7:()=>Yn,VWu:()=>qi,rMt:()=>Jt,vEg:()=>mr,RIp:()=>ns,RU0:()=>pi,M8e:()=>gr,ssy:()=>m,Z5F:()=>yr,iUK:()=>Ht,LJh:()=>Ui,NFG:()=>To,WH2:()=>Us,UTl:()=>vc,nrZ:()=>Vr,gvV:()=>Fc,d2H:()=>Tc,LBP:()=>qs,_ry:()=>Ic,eFY:()=>Qc,sZJ:()=>e1,np6:()=>ml,UY$:()=>v8,w1L:()=>Nr,rHg:()=>Il,v6v:()=>v1,cN2:()=>Cs,FsU:()=>Zl,s_U:()=>p6,TSL:()=>P1,uIz:()=>wr,d_$:()=>Dr});const mn={name:"bars",theme:"outline",icon:''},qt={name:"calendar",theme:"outline",icon:''},jt={name:"caret-down",theme:"fill",icon:''},Pn={name:"caret-down",theme:"outline",icon:''},ei={name:"caret-up",theme:"fill",icon:''},rn={name:"check-circle",theme:"outline",icon:''},Wt={name:"check",theme:"outline",icon:''},k={name:"close-circle",theme:"fill",icon:''},st={name:"caret-up",theme:"outline",icon:''},Ot={name:"check-circle",theme:"fill",icon:''},ai={name:"close",theme:"outline",icon:''},kn={name:"clock-circle",theme:"outline",icon:''},bi={name:"close-circle",theme:"outline",icon:''},Vi={name:"copy",theme:"outline",icon:''},Yn={name:"dashboard",theme:"outline",icon:''},Jt={name:"double-right",theme:"outline",icon:''},qi={name:"double-left",theme:"outline",icon:''},pi={name:"ellipsis",theme:"outline",icon:''},mr={name:"down",theme:"outline",icon:''},gr={name:"exclamation-circle",theme:"fill",icon:''},ns={name:"edit",theme:"outline",icon:''},yr={name:"eye",theme:"outline",icon:''},m={name:"exclamation-circle",theme:"outline",icon:''},Ht={name:"file",theme:"fill",icon:''},Ui={name:"file",theme:"outline",icon:''},To={name:"filter",theme:"fill",icon:''},Us={name:"form",theme:"outline",icon:''},vc={name:"info-circle",theme:"fill",icon:''},Vr={name:"info-circle",theme:"outline",icon:''},Tc={name:"loading",theme:"outline",icon:''},Fc={name:"left",theme:"outline",icon:''},Ic={name:"menu-unfold",theme:"outline",icon:''},qs={name:"menu-fold",theme:"outline",icon:''},Qc={name:"paper-clip",theme:"outline",icon:''},e1={name:"question-circle",theme:"outline",icon:''},ml={name:"right",theme:"outline",icon:''},v8={name:"rotate-left",theme:"outline",icon:''},Nr={name:"rotate-right",theme:"outline",icon:''},v1={name:"star",theme:"fill",icon:''},Il={name:"search",theme:"outline",icon:''},Cs={name:"swap-right",theme:"outline",icon:''},Zl={name:"up",theme:"outline",icon:''},p6={name:"upload",theme:"outline",icon:''},P1={name:"vertical-align-top",theme:"outline",icon:''},wr={name:"zoom-in",theme:"outline",icon:''},Dr={name:"zoom-out",theme:"outline",icon:''}},8076:(yt,be,p)=>{p.d(be,{J_:()=>oe,c8:()=>W,YK:()=>I,LU:()=>R,Rq:()=>ye,mF:()=>ee,$C:()=>Ye});var a=p(1777);let s=(()=>{class ze{}return ze.SLOW="0.3s",ze.BASE="0.2s",ze.FAST="0.1s",ze})(),G=(()=>{class ze{}return ze.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",ze.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",ze.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",ze.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",ze.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",ze.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",ze.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",ze.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",ze.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",ze.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",ze.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",ze.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",ze.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",ze.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)",ze})();const oe=(0,a.X$)("collapseMotion",[(0,a.SB)("expanded",(0,a.oB)({height:"*"})),(0,a.SB)("collapsed",(0,a.oB)({height:0,overflow:"hidden"})),(0,a.SB)("hidden",(0,a.oB)({height:0,overflow:"hidden",borderTopWidth:"0"})),(0,a.eR)("expanded => collapsed",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`)),(0,a.eR)("expanded => hidden",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`)),(0,a.eR)("collapsed => expanded",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`)),(0,a.eR)("hidden => expanded",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`))]),W=((0,a.X$)("treeCollapseMotion",[(0,a.eR)("* => *",[(0,a.IO)("nz-tree-node:leave,nz-tree-builtin-node:leave",[(0,a.oB)({overflow:"hidden"}),(0,a.EY)(0,[(0,a.jt)(`150ms ${G.EASE_IN_OUT}`,(0,a.oB)({height:0,opacity:0,"padding-bottom":0}))])],{optional:!0}),(0,a.IO)("nz-tree-node:enter,nz-tree-builtin-node:enter",[(0,a.oB)({overflow:"hidden",height:0,opacity:0,"padding-bottom":0}),(0,a.EY)(0,[(0,a.jt)(`150ms ${G.EASE_IN_OUT}`,(0,a.oB)({overflow:"hidden",height:"*",opacity:"*","padding-bottom":"*"}))])],{optional:!0})])]),(0,a.X$)("fadeMotion",[(0,a.eR)(":enter",[(0,a.oB)({opacity:0}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({opacity:1}))]),(0,a.eR)(":leave",[(0,a.oB)({opacity:1}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({opacity:0}))])]),(0,a.X$)("helpMotion",[(0,a.eR)(":enter",[(0,a.oB)({opacity:0,transform:"translateY(-5px)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_OUT}`,(0,a.oB)({opacity:1,transform:"translateY(0)"}))]),(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"translateY(0)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_OUT}`,(0,a.oB)({opacity:0,transform:"translateY(-5px)"}))])])),I=(0,a.X$)("moveUpMotion",[(0,a.eR)("* => enter",[(0,a.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),(0,a.eR)("* => leave",[(0,a.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),R=(0,a.X$)("notificationMotion",[(0,a.SB)("enterRight",(0,a.oB)({opacity:1,transform:"translateX(0)"})),(0,a.eR)("* => enterRight",[(0,a.oB)({opacity:0,transform:"translateX(5%)"}),(0,a.jt)("100ms linear")]),(0,a.SB)("enterLeft",(0,a.oB)({opacity:1,transform:"translateX(0)"})),(0,a.eR)("* => enterLeft",[(0,a.oB)({opacity:0,transform:"translateX(-5%)"}),(0,a.jt)("100ms linear")]),(0,a.SB)("leave",(0,a.oB)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),(0,a.eR)("* => leave",[(0,a.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,a.jt)("100ms linear")])]),H=`${s.BASE} ${G.EASE_OUT_QUINT}`,B=`${s.BASE} ${G.EASE_IN_QUINT}`,ee=(0,a.X$)("slideMotion",[(0,a.SB)("void",(0,a.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,a.SB)("enter",(0,a.oB)({opacity:1,transform:"scaleY(1)"})),(0,a.eR)("void => *",[(0,a.jt)(H)]),(0,a.eR)("* => void",[(0,a.jt)(B)])]),ye=(0,a.X$)("slideAlertMotion",[(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_OUT_CIRC}`,(0,a.oB)({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),Ye=(0,a.X$)("zoomBigMotion",[(0,a.eR)("void => active",[(0,a.oB)({opacity:0,transform:"scale(0.8)"}),(0,a.jt)(`${s.BASE} ${G.EASE_OUT_CIRC}`,(0,a.oB)({opacity:1,transform:"scale(1)"}))]),(0,a.eR)("active => void",[(0,a.oB)({opacity:1,transform:"scale(1)"}),(0,a.jt)(`${s.BASE} ${G.EASE_IN_OUT_CIRC}`,(0,a.oB)({opacity:0,transform:"scale(0.8)"}))])]);(0,a.X$)("zoomBadgeMotion",[(0,a.eR)(":enter",[(0,a.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_OUT_BACK}`,(0,a.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_BACK}`,(0,a.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])])},8693:(yt,be,p)=>{p.d(be,{o2:()=>G,M8:()=>oe,uf:()=>s,Bh:()=>a});const a=["success","processing","error","default","warning"],s=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];function G(q){return-1!==s.indexOf(q)}function oe(q){return-1!==a.indexOf(q)}},9439:(yt,be,p)=>{p.d(be,{jY:()=>W,oS:()=>I});var a=p(5e3),s=p(8929),G=p(2198),oe=p(7604);const q=new a.OlP("nz-config"),_=function(R){return void 0!==R};let W=(()=>{class R{constructor(B){this.configUpdated$=new s.xQ,this.config=B||{}}getConfig(){return this.config}getConfigForComponent(B){return this.config[B]}getConfigChangeEventForComponent(B){return this.configUpdated$.pipe((0,G.h)(ee=>ee===B),(0,oe.h)(void 0))}set(B,ee){this.config[B]=Object.assign(Object.assign({},this.config[B]),ee),this.configUpdated$.next(B)}}return R.\u0275fac=function(B){return new(B||R)(a.LFG(q,8))},R.\u0275prov=a.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();function I(){return function(H,B,ee){const ye=`$$__zorroConfigDecorator__${B}`;return Object.defineProperty(H,ye,{configurable:!0,writable:!0,enumerable:!1}),{get(){var Ye,Fe;const ze=(null==ee?void 0:ee.get)?ee.get.bind(this)():this[ye],_e=((null===(Ye=this.propertyAssignCounter)||void 0===Ye?void 0:Ye[B])||0)>1,vt=null===(Fe=this.nzConfigService.getConfigForComponent(this._nzModuleName))||void 0===Fe?void 0:Fe[B];return _e&&_(ze)?ze:_(vt)?vt:ze},set(Ye){this.propertyAssignCounter=this.propertyAssignCounter||{},this.propertyAssignCounter[B]=(this.propertyAssignCounter[B]||0)+1,(null==ee?void 0:ee.set)?ee.set.bind(this)(Ye):this[ye]=Ye},configurable:!0,enumerable:!0}}}},4351:(yt,be,p)=>{p.d(be,{N:()=>a});const a={isTestMode:!1}},6947:(yt,be,p)=>{p.d(be,{Bq:()=>oe,ZK:()=>W});var a=p(5e3),s=p(4351);const G={},oe="[NG-ZORRO]:";const W=(...H)=>function _(H,...B){(s.N.isTestMode||(0,a.X6Q)()&&function q(...H){const B=H.reduce((ee,ye)=>ee+ye.toString(),"");return!G[B]&&(G[B]=!0,!0)}(...B))&&H(...B)}((...B)=>console.warn(oe,...B),...H)},4832:(yt,be,p)=>{p.d(be,{P:()=>I,g:()=>R});var a=p(9808),s=p(5e3),G=p(655),oe=p(3191),q=p(6360),_=p(1721);const W="nz-animate-disabled";let I=(()=>{class H{constructor(ee,ye,Ye){this.element=ee,this.renderer=ye,this.animationType=Ye,this.nzNoAnimation=!1}ngOnChanges(){this.updateClass()}ngAfterViewInit(){this.updateClass()}updateClass(){const ee=(0,oe.fI)(this.element);!ee||(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(ee,W):this.renderer.removeClass(ee,W))}}return H.\u0275fac=function(ee){return new(ee||H)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(q.Qb,8))},H.\u0275dir=s.lG2({type:H,selectors:[["","nzNoAnimation",""]],inputs:{nzNoAnimation:"nzNoAnimation"},exportAs:["nzNoAnimation"],features:[s.TTD]}),(0,G.gn)([(0,_.yF)()],H.prototype,"nzNoAnimation",void 0),H})(),R=(()=>{class H{}return H.\u0275fac=function(ee){return new(ee||H)},H.\u0275mod=s.oAB({type:H}),H.\u0275inj=s.cJS({imports:[[a.ez]]}),H})()},969:(yt,be,p)=>{p.d(be,{T:()=>q,f:()=>G});var a=p(9808),s=p(5e3);let G=(()=>{class _{constructor(I,R){this.viewContainer=I,this.templateRef=R,this.embeddedViewRef=null,this.context=new oe,this.nzStringTemplateOutletContext=null,this.nzStringTemplateOutlet=null}static ngTemplateContextGuard(I,R){return!0}recreateView(){this.viewContainer.clear();const I=this.nzStringTemplateOutlet instanceof s.Rgc;this.embeddedViewRef=this.viewContainer.createEmbeddedView(I?this.nzStringTemplateOutlet:this.templateRef,I?this.nzStringTemplateOutletContext:this.context)}updateContext(){const R=this.nzStringTemplateOutlet instanceof s.Rgc?this.nzStringTemplateOutletContext:this.context,H=this.embeddedViewRef.context;if(R)for(const B of Object.keys(R))H[B]=R[B]}ngOnChanges(I){const{nzStringTemplateOutletContext:R,nzStringTemplateOutlet:H}=I;H&&(this.context.$implicit=H.currentValue),(()=>{let ye=!1;if(H)if(H.firstChange)ye=!0;else{const _e=H.currentValue instanceof s.Rgc;ye=H.previousValue instanceof s.Rgc||_e}return R&&(ze=>{const _e=Object.keys(ze.previousValue||{}),vt=Object.keys(ze.currentValue||{});if(_e.length===vt.length){for(const Je of vt)if(-1===_e.indexOf(Je))return!0;return!1}return!0})(R)||ye})()?this.recreateView():this.updateContext()}}return _.\u0275fac=function(I){return new(I||_)(s.Y36(s.s_b),s.Y36(s.Rgc))},_.\u0275dir=s.lG2({type:_,selectors:[["","nzStringTemplateOutlet",""]],inputs:{nzStringTemplateOutletContext:"nzStringTemplateOutletContext",nzStringTemplateOutlet:"nzStringTemplateOutlet"},exportAs:["nzStringTemplateOutlet"],features:[s.TTD]}),_})();class oe{}let q=(()=>{class _{}return _.\u0275fac=function(I){return new(I||_)},_.\u0275mod=s.oAB({type:_}),_.\u0275inj=s.cJS({imports:[[a.ez]]}),_})()},6950:(yt,be,p)=>{p.d(be,{Ek:()=>I,hQ:()=>ye,e4:()=>Ye,yW:()=>W,d_:()=>ee});var a=p(655),s=p(2845),G=p(5e3),oe=p(7625),q=p(4090),_=p(1721);const W={top:new s.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new s.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new s.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new s.tR({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new s.tR({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new s.tR({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new s.tR({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new s.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new s.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new s.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new s.tR({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new s.tR({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new s.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new s.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},I=[W.top,W.right,W.bottom,W.left];function ee(Fe){for(const ze in W)if(Fe.connectionPair.originX===W[ze].originX&&Fe.connectionPair.originY===W[ze].originY&&Fe.connectionPair.overlayX===W[ze].overlayX&&Fe.connectionPair.overlayY===W[ze].overlayY)return ze}new s.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),new s.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"}),new s.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"top"});let ye=(()=>{class Fe{constructor(_e,vt){this.cdkConnectedOverlay=_e,this.nzDestroyService=vt,this.nzArrowPointAtCenter=!1,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop",this.cdkConnectedOverlay.positionChange.pipe((0,oe.R)(this.nzDestroyService)).subscribe(Je=>{this.nzArrowPointAtCenter&&this.updateArrowPosition(Je)})}updateArrowPosition(_e){const vt=this.getOriginRect(),Je=ee(_e);let zt=0,ut=0;"topLeft"===Je||"bottomLeft"===Je?zt=vt.width/2-14:"topRight"===Je||"bottomRight"===Je?zt=-(vt.width/2-14):"leftTop"===Je||"rightTop"===Je?ut=vt.height/2-10:("leftBottom"===Je||"rightBottom"===Je)&&(ut=-(vt.height/2-10)),(this.cdkConnectedOverlay.offsetX!==zt||this.cdkConnectedOverlay.offsetY!==ut)&&(this.cdkConnectedOverlay.offsetY=ut,this.cdkConnectedOverlay.offsetX=zt,this.cdkConnectedOverlay.overlayRef.updatePosition())}getFlexibleConnectedPositionStrategyOrigin(){return this.cdkConnectedOverlay.origin instanceof s.xu?this.cdkConnectedOverlay.origin.elementRef:this.cdkConnectedOverlay.origin}getOriginRect(){const _e=this.getFlexibleConnectedPositionStrategyOrigin();if(_e instanceof G.SBq)return _e.nativeElement.getBoundingClientRect();if(_e instanceof Element)return _e.getBoundingClientRect();const vt=_e.width||0,Je=_e.height||0;return{top:_e.y,bottom:_e.y+Je,left:_e.x,right:_e.x+vt,height:Je,width:vt}}}return Fe.\u0275fac=function(_e){return new(_e||Fe)(G.Y36(s.pI),G.Y36(q.kn))},Fe.\u0275dir=G.lG2({type:Fe,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],inputs:{nzArrowPointAtCenter:"nzArrowPointAtCenter"},exportAs:["nzConnectedOverlay"],features:[G._Bn([q.kn])]}),(0,a.gn)([(0,_.yF)()],Fe.prototype,"nzArrowPointAtCenter",void 0),Fe})(),Ye=(()=>{class Fe{}return Fe.\u0275fac=function(_e){return new(_e||Fe)},Fe.\u0275mod=G.oAB({type:Fe}),Fe.\u0275inj=G.cJS({}),Fe})()},4090:(yt,be,p)=>{p.d(be,{G_:()=>Je,r3:()=>Ie,kn:()=>$e,rI:()=>ee,KV:()=>Ye,WV:()=>zt,ow:()=>ut});var a=p(5e3),s=p(8929),G=p(7138),oe=p(537),q=p(7625),_=p(4850),W=p(1059),I=p(5778),R=p(4351),H=p(5113);const B=()=>{};let ee=(()=>{class Se{constructor(J,fe){this.ngZone=J,this.rendererFactory2=fe,this.resizeSource$=new s.xQ,this.listeners=0,this.disposeHandle=B,this.handler=()=>{this.ngZone.run(()=>{this.resizeSource$.next()})},this.renderer=this.rendererFactory2.createRenderer(null,null)}ngOnDestroy(){this.handler=B}subscribe(){return this.registerListener(),this.resizeSource$.pipe((0,G.e)(16),(0,oe.x)(()=>this.unregisterListener()))}unsubscribe(){this.unregisterListener()}registerListener(){0===this.listeners&&this.ngZone.runOutsideAngular(()=>{this.disposeHandle=this.renderer.listen("window","resize",this.handler)}),this.listeners+=1}unregisterListener(){this.listeners-=1,0===this.listeners&&(this.disposeHandle(),this.disposeHandle=B)}}return Se.\u0275fac=function(J){return new(J||Se)(a.LFG(a.R0b),a.LFG(a.FYo))},Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();const ye=new Map;let Ye=(()=>{class Se{constructor(){this._singletonRegistry=new Map}get singletonRegistry(){return R.N.isTestMode?ye:this._singletonRegistry}registerSingletonWithKey(J,fe){const he=this.singletonRegistry.has(J),te=he?this.singletonRegistry.get(J):this.withNewTarget(fe);he||this.singletonRegistry.set(J,te)}getSingletonWithKey(J){return this.singletonRegistry.has(J)?this.singletonRegistry.get(J).target:null}withNewTarget(J){return{target:J}}}return Se.\u0275fac=function(J){return new(J||Se)},Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();var Je=(()=>{return(Se=Je||(Je={})).xxl="xxl",Se.xl="xl",Se.lg="lg",Se.md="md",Se.sm="sm",Se.xs="xs",Je;var Se})();const zt={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},ut={xs:"(max-width: 479.98px)",sm:"(max-width: 575.98px)",md:"(max-width: 767.98px)",lg:"(max-width: 991.98px)",xl:"(max-width: 1199.98px)",xxl:"(max-width: 1599.98px)"};let Ie=(()=>{class Se{constructor(J,fe){this.resizeService=J,this.mediaMatcher=fe,this.destroy$=new s.xQ,this.resizeService.subscribe().pipe((0,q.R)(this.destroy$)).subscribe(()=>{})}ngOnDestroy(){this.destroy$.next()}subscribe(J,fe){if(fe){const he=()=>this.matchMedia(J,!0);return this.resizeService.subscribe().pipe((0,_.U)(he),(0,W.O)(he()),(0,I.x)((te,le)=>te[0]===le[0]),(0,_.U)(te=>te[1]))}{const he=()=>this.matchMedia(J);return this.resizeService.subscribe().pipe((0,_.U)(he),(0,W.O)(he()),(0,I.x)())}}matchMedia(J,fe){let he=Je.md;const te={};return Object.keys(J).map(le=>{const ie=le,Ue=this.mediaMatcher.matchMedia(zt[ie]).matches;te[le]=Ue,Ue&&(he=ie)}),fe?[he,te]:he}}return Se.\u0275fac=function(J){return new(J||Se)(a.LFG(ee),a.LFG(H.vx))},Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),$e=(()=>{class Se extends s.xQ{ngOnDestroy(){this.next(),this.complete()}}return Se.\u0275fac=function(){let Xe;return function(fe){return(Xe||(Xe=a.n5z(Se)))(fe||Se)}}(),Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac}),Se})()},1721:(yt,be,p)=>{p.d(be,{yF:()=>vt,Rn:()=>zt,cO:()=>_,pW:()=>Ie,ov:()=>P,kK:()=>R,DX:()=>I,ui:()=>je,tI:()=>te,D8:()=>x,Sm:()=>ke,sw:()=>ye,WX:()=>Fe,YM:()=>tt,He:()=>Ye});var a=p(3191),s=p(6947),G=p(8929),oe=p(2986);function _(j,me){if(!j||!me||j.length!==me.length)return!1;const He=j.length;for(let Ge=0;GeYe(me,j))}function Ie(j){if(!j.getClientRects().length)return{top:0,left:0};const me=j.getBoundingClientRect(),He=j.ownerDocument.defaultView;return{top:me.top+He.pageYOffset,left:me.left+He.pageXOffset}}function te(j){return!!j&&"function"==typeof j.then&&"function"==typeof j.catch}function je(j){return"number"==typeof j&&isFinite(j)}function tt(j,me){return Math.round(j*Math.pow(10,me))/Math.pow(10,me)}function ke(j,me=0){return j.reduce((He,Ge)=>He+Ge,me)}let cn,Mn;"undefined"!=typeof window&&window;const qe={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function x(j="vertical",me="ant"){if("undefined"==typeof document||"undefined"==typeof window)return 0;const He="vertical"===j;if(He&&cn)return cn;if(!He&&Mn)return Mn;const Ge=document.createElement("div");Object.keys(qe).forEach(Me=>{Ge.style[Me]=qe[Me]}),Ge.className=`${me}-hide-scrollbar scroll-div-append-to-body`,He?Ge.style.overflowY="scroll":Ge.style.overflowX="scroll",document.body.appendChild(Ge);let Le=0;return He?(Le=Ge.offsetWidth-Ge.clientWidth,cn=Le):(Le=Ge.offsetHeight-Ge.clientHeight,Mn=Le),document.body.removeChild(Ge),Le}function P(){const j=new G.xQ;return Promise.resolve().then(()=>j.next()),j.pipe((0,oe.q)(1))}},4147:(yt,be,p)=>{p.d(be,{Vz:()=>ve,SQ:()=>Ue,BL:()=>Qe});var a=p(655),s=p(1159),G=p(2845),oe=p(7429),q=p(9808),_=p(5e3),W=p(8929),I=p(7625),R=p(9439),H=p(1721),B=p(5664),ee=p(226),ye=p(4832),Ye=p(969),Fe=p(647);const ze=["drawerTemplate"];function _e(it,St){if(1&it){const ot=_.EpF();_.TgZ(0,"div",11),_.NdJ("click",function(){return _.CHM(ot),_.oxw(2).maskClick()}),_.qZA()}if(2&it){const ot=_.oxw(2);_.Q6J("ngStyle",ot.nzMaskStyle)}}function vt(it,St){if(1&it&&(_.ynx(0),_._UZ(1,"i",18),_.BQk()),2&it){const ot=St.$implicit;_.xp6(1),_.Q6J("nzType",ot)}}function Je(it,St){if(1&it){const ot=_.EpF();_.TgZ(0,"button",16),_.NdJ("click",function(){return _.CHM(ot),_.oxw(3).closeClick()}),_.YNc(1,vt,2,1,"ng-container",17),_.qZA()}if(2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("nzStringTemplateOutlet",ot.nzCloseIcon)}}function zt(it,St){if(1&it&&(_.ynx(0),_._UZ(1,"div",20),_.BQk()),2&it){const ot=_.oxw(4);_.xp6(1),_.Q6J("innerHTML",ot.nzTitle,_.oJD)}}function ut(it,St){if(1&it&&(_.TgZ(0,"div",19),_.YNc(1,zt,2,1,"ng-container",17),_.qZA()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("nzStringTemplateOutlet",ot.nzTitle)}}function Ie(it,St){if(1&it&&(_.TgZ(0,"div",12),_.TgZ(1,"div",13),_.YNc(2,Je,2,1,"button",14),_.YNc(3,ut,2,1,"div",15),_.qZA(),_.qZA()),2&it){const ot=_.oxw(2);_.ekj("ant-drawer-header-close-only",!ot.nzTitle),_.xp6(2),_.Q6J("ngIf",ot.nzClosable),_.xp6(1),_.Q6J("ngIf",ot.nzTitle)}}function $e(it,St){}function et(it,St){1&it&&_.GkF(0)}function Se(it,St){if(1&it&&(_.ynx(0),_.YNc(1,et,1,0,"ng-container",22),_.BQk()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("ngTemplateOutlet",ot.nzContent)("ngTemplateOutletContext",ot.templateContext)}}function Xe(it,St){if(1&it&&(_.ynx(0),_.YNc(1,Se,2,2,"ng-container",21),_.BQk()),2&it){const ot=_.oxw(2);_.xp6(1),_.Q6J("ngIf",ot.isTemplateRef(ot.nzContent))}}function J(it,St){}function fe(it,St){if(1&it&&(_.ynx(0),_.YNc(1,J,0,0,"ng-template",23),_.BQk()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("ngTemplateOutlet",ot.contentFromContentChild)}}function he(it,St){if(1&it&&_.YNc(0,fe,2,1,"ng-container",21),2&it){const ot=_.oxw(2);_.Q6J("ngIf",ot.contentFromContentChild&&(ot.isOpen||ot.inAnimation))}}function te(it,St){if(1&it&&(_.ynx(0),_._UZ(1,"div",20),_.BQk()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("innerHTML",ot.nzFooter,_.oJD)}}function le(it,St){if(1&it&&(_.TgZ(0,"div",24),_.YNc(1,te,2,1,"ng-container",17),_.qZA()),2&it){const ot=_.oxw(2);_.xp6(1),_.Q6J("nzStringTemplateOutlet",ot.nzFooter)}}function ie(it,St){if(1&it&&(_.TgZ(0,"div",1),_.YNc(1,_e,1,1,"div",2),_.TgZ(2,"div"),_.TgZ(3,"div",3),_.TgZ(4,"div",4),_.YNc(5,Ie,4,4,"div",5),_.TgZ(6,"div",6),_.YNc(7,$e,0,0,"ng-template",7),_.YNc(8,Xe,2,1,"ng-container",8),_.YNc(9,he,1,1,"ng-template",null,9,_.W1O),_.qZA(),_.YNc(11,le,2,1,"div",10),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&it){const ot=_.MAs(10),Et=_.oxw();_.Udp("transform",Et.offsetTransform)("transition",Et.placementChanging?"none":null)("z-index",Et.nzZIndex),_.ekj("ant-drawer-rtl","rtl"===Et.dir)("ant-drawer-open",Et.isOpen)("no-mask",!Et.nzMask)("ant-drawer-top","top"===Et.nzPlacement)("ant-drawer-bottom","bottom"===Et.nzPlacement)("ant-drawer-right","right"===Et.nzPlacement)("ant-drawer-left","left"===Et.nzPlacement),_.Q6J("nzNoAnimation",Et.nzNoAnimation),_.xp6(1),_.Q6J("ngIf",Et.nzMask),_.xp6(1),_.Gre("ant-drawer-content-wrapper ",Et.nzWrapClassName,""),_.Udp("width",Et.width)("height",Et.height)("transform",Et.transform)("transition",Et.placementChanging?"none":null),_.xp6(2),_.Udp("height",Et.isLeftOrRight?"100%":null),_.xp6(1),_.Q6J("ngIf",Et.nzTitle||Et.nzClosable),_.xp6(1),_.Q6J("ngStyle",Et.nzBodyStyle),_.xp6(2),_.Q6J("ngIf",Et.nzContent)("ngIfElse",ot),_.xp6(3),_.Q6J("ngIf",Et.nzFooter)}}let Ue=(()=>{class it{constructor(ot){this.templateRef=ot}}return it.\u0275fac=function(ot){return new(ot||it)(_.Y36(_.Rgc))},it.\u0275dir=_.lG2({type:it,selectors:[["","nzDrawerContent",""]],exportAs:["nzDrawerContent"]}),it})();class je{}let ve=(()=>{class it extends je{constructor(ot,Et,Zt,mn,gn,Ut,un,_n,Cn,Dt,Sn){super(),this.cdr=ot,this.document=Et,this.nzConfigService=Zt,this.renderer=mn,this.overlay=gn,this.injector=Ut,this.changeDetectorRef=un,this.focusTrapFactory=_n,this.viewContainerRef=Cn,this.overlayKeyboardDispatcher=Dt,this.directionality=Sn,this._nzModuleName="drawer",this.nzCloseIcon="close",this.nzClosable=!0,this.nzMaskClosable=!0,this.nzMask=!0,this.nzCloseOnNavigation=!0,this.nzNoAnimation=!1,this.nzKeyboard=!0,this.nzPlacement="right",this.nzMaskStyle={},this.nzBodyStyle={},this.nzWidth=256,this.nzHeight=256,this.nzZIndex=1e3,this.nzOffsetX=0,this.nzOffsetY=0,this.componentInstance=null,this.nzOnViewInit=new _.vpe,this.nzOnClose=new _.vpe,this.nzVisibleChange=new _.vpe,this.destroy$=new W.xQ,this.placementChanging=!1,this.placementChangeTimeoutId=-1,this.isOpen=!1,this.inAnimation=!1,this.templateContext={$implicit:void 0,drawerRef:this},this.nzAfterOpen=new W.xQ,this.nzAfterClose=new W.xQ,this.nzDirection=void 0,this.dir="ltr"}set nzVisible(ot){this.isOpen=ot}get nzVisible(){return this.isOpen}get offsetTransform(){if(!this.isOpen||this.nzOffsetX+this.nzOffsetY===0)return null;switch(this.nzPlacement){case"left":return`translateX(${this.nzOffsetX}px)`;case"right":return`translateX(-${this.nzOffsetX}px)`;case"top":return`translateY(${this.nzOffsetY}px)`;case"bottom":return`translateY(-${this.nzOffsetY}px)`}}get transform(){if(this.isOpen)return null;switch(this.nzPlacement){case"left":return"translateX(-100%)";case"right":return"translateX(100%)";case"top":return"translateY(-100%)";case"bottom":return"translateY(100%)"}}get width(){return this.isLeftOrRight?(0,H.WX)(this.nzWidth):null}get height(){return this.isLeftOrRight?null:(0,H.WX)(this.nzHeight)}get isLeftOrRight(){return"left"===this.nzPlacement||"right"===this.nzPlacement}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}isTemplateRef(ot){return ot instanceof _.Rgc}ngOnInit(){var ot;null===(ot=this.directionality.change)||void 0===ot||ot.pipe((0,I.R)(this.destroy$)).subscribe(Et=>{this.dir=Et,this.cdr.detectChanges()}),this.dir=this.nzDirection||this.directionality.value,this.attachOverlay(),this.updateOverlayStyle(),this.updateBodyOverflow(),this.templateContext={$implicit:this.nzContentParams,drawerRef:this},this.changeDetectorRef.detectChanges()}ngAfterViewInit(){this.attachBodyContent(),this.nzOnViewInit.observers.length&&setTimeout(()=>{this.nzOnViewInit.emit()})}ngOnChanges(ot){const{nzPlacement:Et,nzVisible:Zt}=ot;Zt&&(ot.nzVisible.currentValue?this.open():this.close()),Et&&!Et.isFirstChange()&&this.triggerPlacementChangeCycleOnce()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),clearTimeout(this.placementChangeTimeoutId),this.disposeOverlay()}getAnimationDuration(){return this.nzNoAnimation?0:300}triggerPlacementChangeCycleOnce(){this.nzNoAnimation||(this.placementChanging=!0,this.changeDetectorRef.markForCheck(),clearTimeout(this.placementChangeTimeoutId),this.placementChangeTimeoutId=setTimeout(()=>{this.placementChanging=!1,this.changeDetectorRef.markForCheck()},this.getAnimationDuration()))}close(ot){this.isOpen=!1,this.inAnimation=!0,this.nzVisibleChange.emit(!1),this.updateOverlayStyle(),this.overlayKeyboardDispatcher.remove(this.overlayRef),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.updateBodyOverflow(),this.restoreFocus(),this.inAnimation=!1,this.nzAfterClose.next(ot),this.nzAfterClose.complete(),this.componentInstance=null},this.getAnimationDuration())}open(){this.attachOverlay(),this.isOpen=!0,this.inAnimation=!0,this.nzVisibleChange.emit(!0),this.overlayKeyboardDispatcher.add(this.overlayRef),this.updateOverlayStyle(),this.updateBodyOverflow(),this.savePreviouslyFocusedElement(),this.trapFocus(),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.inAnimation=!1,this.changeDetectorRef.detectChanges(),this.nzAfterOpen.next()},this.getAnimationDuration())}getContentComponent(){return this.componentInstance}closeClick(){this.nzOnClose.emit()}maskClick(){this.nzMaskClosable&&this.nzMask&&this.nzOnClose.emit()}attachBodyContent(){if(this.bodyPortalOutlet.dispose(),this.nzContent instanceof _.DyG){const ot=_.zs3.create({parent:this.injector,providers:[{provide:je,useValue:this}]}),Et=new oe.C5(this.nzContent,null,ot),Zt=this.bodyPortalOutlet.attachComponentPortal(Et);this.componentInstance=Zt.instance,Object.assign(Zt.instance,this.nzContentParams),Zt.changeDetectorRef.detectChanges()}}attachOverlay(){this.overlayRef||(this.portal=new oe.UE(this.drawerTemplate,this.viewContainerRef),this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayRef.keydownEvents().pipe((0,I.R)(this.destroy$)).subscribe(ot=>{ot.keyCode===s.hY&&this.isOpen&&this.nzKeyboard&&this.nzOnClose.emit()}),this.overlayRef.detachments().pipe((0,I.R)(this.destroy$)).subscribe(()=>{this.disposeOverlay()}))}disposeOverlay(){var ot;null===(ot=this.overlayRef)||void 0===ot||ot.dispose(),this.overlayRef=null}getOverlayConfig(){return new G.X_({disposeOnNavigation:this.nzCloseOnNavigation,positionStrategy:this.overlay.position().global(),scrollStrategy:this.overlay.scrollStrategies.block()})}updateOverlayStyle(){this.overlayRef&&this.overlayRef.overlayElement&&this.renderer.setStyle(this.overlayRef.overlayElement,"pointer-events",this.isOpen?"auto":"none")}updateBodyOverflow(){this.overlayRef&&(this.isOpen?this.overlayRef.getConfig().scrollStrategy.enable():this.overlayRef.getConfig().scrollStrategy.disable())}savePreviouslyFocusedElement(){this.document&&!this.previouslyFocusedElement&&(this.previouslyFocusedElement=this.document.activeElement,this.previouslyFocusedElement&&"function"==typeof this.previouslyFocusedElement.blur&&this.previouslyFocusedElement.blur())}trapFocus(){!this.focusTrap&&this.overlayRef&&this.overlayRef.overlayElement&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.overlayElement),this.focusTrap.focusInitialElement())}restoreFocus(){this.previouslyFocusedElement&&"function"==typeof this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus(),this.focusTrap&&this.focusTrap.destroy()}}return it.\u0275fac=function(ot){return new(ot||it)(_.Y36(_.sBO),_.Y36(q.K0,8),_.Y36(R.jY),_.Y36(_.Qsj),_.Y36(G.aV),_.Y36(_.zs3),_.Y36(_.sBO),_.Y36(B.qV),_.Y36(_.s_b),_.Y36(G.Vs),_.Y36(ee.Is,8))},it.\u0275cmp=_.Xpm({type:it,selectors:[["nz-drawer"]],contentQueries:function(ot,Et,Zt){if(1&ot&&_.Suo(Zt,Ue,7,_.Rgc),2&ot){let mn;_.iGM(mn=_.CRH())&&(Et.contentFromContentChild=mn.first)}},viewQuery:function(ot,Et){if(1&ot&&(_.Gf(ze,7),_.Gf(oe.Pl,5)),2&ot){let Zt;_.iGM(Zt=_.CRH())&&(Et.drawerTemplate=Zt.first),_.iGM(Zt=_.CRH())&&(Et.bodyPortalOutlet=Zt.first)}},inputs:{nzContent:"nzContent",nzCloseIcon:"nzCloseIcon",nzClosable:"nzClosable",nzMaskClosable:"nzMaskClosable",nzMask:"nzMask",nzCloseOnNavigation:"nzCloseOnNavigation",nzNoAnimation:"nzNoAnimation",nzKeyboard:"nzKeyboard",nzTitle:"nzTitle",nzFooter:"nzFooter",nzPlacement:"nzPlacement",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzWrapClassName:"nzWrapClassName",nzWidth:"nzWidth",nzHeight:"nzHeight",nzZIndex:"nzZIndex",nzOffsetX:"nzOffsetX",nzOffsetY:"nzOffsetY",nzVisible:"nzVisible"},outputs:{nzOnViewInit:"nzOnViewInit",nzOnClose:"nzOnClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzDrawer"],features:[_.qOj,_.TTD],decls:2,vars:0,consts:[["drawerTemplate",""],[1,"ant-drawer",3,"nzNoAnimation"],["class","ant-drawer-mask",3,"ngStyle","click",4,"ngIf"],[1,"ant-drawer-content"],[1,"ant-drawer-wrapper-body"],["class","ant-drawer-header",3,"ant-drawer-header-close-only",4,"ngIf"],[1,"ant-drawer-body",3,"ngStyle"],["cdkPortalOutlet",""],[4,"ngIf","ngIfElse"],["contentElseTemp",""],["class","ant-drawer-footer",4,"ngIf"],[1,"ant-drawer-mask",3,"ngStyle","click"],[1,"ant-drawer-header"],[1,"ant-drawer-header-title"],["aria-label","Close","class","ant-drawer-close","style","--scroll-bar: 0px;",3,"click",4,"ngIf"],["class","ant-drawer-title",4,"ngIf"],["aria-label","Close",1,"ant-drawer-close",2,"--scroll-bar","0px",3,"click"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"],[1,"ant-drawer-title"],[3,"innerHTML"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"],[1,"ant-drawer-footer"]],template:function(ot,Et){1&ot&&_.YNc(0,ie,12,40,"ng-template",null,0,_.W1O)},directives:[ye.P,q.O5,q.PC,Ye.f,Fe.Ls,oe.Pl,q.tP],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,H.yF)()],it.prototype,"nzClosable",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],it.prototype,"nzMaskClosable",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],it.prototype,"nzMask",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],it.prototype,"nzCloseOnNavigation",void 0),(0,a.gn)([(0,H.yF)()],it.prototype,"nzNoAnimation",void 0),(0,a.gn)([(0,H.yF)()],it.prototype,"nzKeyboard",void 0),(0,a.gn)([(0,R.oS)()],it.prototype,"nzDirection",void 0),it})(),mt=(()=>{class it{}return it.\u0275fac=function(ot){return new(ot||it)},it.\u0275mod=_.oAB({type:it}),it.\u0275inj=_.cJS({}),it})(),Qe=(()=>{class it{}return it.\u0275fac=function(ot){return new(ot||it)},it.\u0275mod=_.oAB({type:it}),it.\u0275inj=_.cJS({imports:[[ee.vT,q.ez,G.U8,oe.eL,Fe.PV,Ye.T,ye.g,mt]]}),it})()},4170:(yt,be,p)=>{p.d(be,{u7:()=>_,YI:()=>H,wi:()=>I,bF:()=>q});var a=p(5e3),s=p(591),G=p(6947),oe={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},DatePicker:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},TimePicker:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Calendar:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click sort by descend",triggerAsc:"Click sort by ascend",cancelSort:"Click to cancel sort"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"}},q={locale:"zh-cn",Pagination:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875"},DatePicker:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},TimePicker:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]},Calendar:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},global:{placeholder:"\u8bf7\u9009\u62e9"},Table:{filterTitle:"\u7b5b\u9009",filterConfirm:"\u786e\u5b9a",filterReset:"\u91cd\u7f6e",filterEmptyText:"\u65e0\u7b5b\u9009\u9879",selectAll:"\u5168\u9009\u5f53\u9875",selectInvert:"\u53cd\u9009\u5f53\u9875",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5e8f",expand:"\u5c55\u5f00\u884c",collapse:"\u5173\u95ed\u884c",triggerDesc:"\u70b9\u51fb\u964d\u5e8f",triggerAsc:"\u70b9\u51fb\u5347\u5e8f",cancelSort:"\u53d6\u6d88\u6392\u5e8f"},Modal:{okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",justOkText:"\u77e5\u9053\u4e86"},Popconfirm:{cancelText:"\u53d6\u6d88",okText:"\u786e\u5b9a"},Transfer:{searchPlaceholder:"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5f53\u9875",removeCurrent:"\u5220\u9664\u5f53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90e8",selectInvert:"\u53cd\u9009\u5f53\u9875"},Upload:{uploading:"\u6587\u4ef6\u4e0a\u4f20\u4e2d",removeFile:"\u5220\u9664\u6587\u4ef6",uploadError:"\u4e0a\u4f20\u9519\u8bef",previewFile:"\u9884\u89c8\u6587\u4ef6",downloadFile:"\u4e0b\u8f7d\u6587\u4ef6"},Empty:{description:"\u6682\u65e0\u6570\u636e"},Icon:{icon:"\u56fe\u6807"},Text:{edit:"\u7f16\u8f91",copy:"\u590d\u5236",copied:"\u590d\u5236\u6210\u529f",expand:"\u5c55\u5f00"},PageHeader:{back:"\u8fd4\u56de"}};const _=new a.OlP("nz-i18n"),W=new a.OlP("nz-date-locale");let I=(()=>{class ${constructor(Ae,wt){this._change=new s.X(this._locale),this.setLocale(Ae||q),this.setDateLocale(wt||null)}get localeChange(){return this._change.asObservable()}translate(Ae,wt){let At=this._getObjectPath(this._locale,Ae);return"string"==typeof At?(wt&&Object.keys(wt).forEach(Qt=>At=At.replace(new RegExp(`%${Qt}%`,"g"),wt[Qt])),At):Ae}setLocale(Ae){this._locale&&this._locale.locale===Ae.locale||(this._locale=Ae,this._change.next(Ae))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(Ae){this.dateLocale=Ae}getDateLocale(){return this.dateLocale}getLocaleData(Ae,wt){const At=Ae?this._getObjectPath(this._locale,Ae):this._locale;return!At&&!wt&&(0,G.ZK)(`Missing translations for "${Ae}" in language "${this._locale.locale}".\nYou can use "NzI18nService.setLocale" as a temporary fix.\nWelcome to submit a pull request to help us optimize the translations!\nhttps://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md`),At||wt||this._getObjectPath(oe,Ae)||{}}_getObjectPath(Ae,wt){let At=Ae;const Qt=wt.split("."),vn=Qt.length;let Vn=0;for(;At&&Vn{class ${}return $.\u0275fac=function(Ae){return new(Ae||$)},$.\u0275mod=a.oAB({type:$}),$.\u0275inj=a.cJS({}),$})();new a.OlP("date-config")},647:(yt,be,p)=>{p.d(be,{sV:()=>Wt,Ls:()=>Rn,PV:()=>qn});var a=p(925),s=p(5e3),G=p(655),oe=p(8929),q=p(5254),_=p(7625),W=p(9808);function I(X,se){(function H(X){return"string"==typeof X&&-1!==X.indexOf(".")&&1===parseFloat(X)})(X)&&(X="100%");var k=function B(X){return"string"==typeof X&&-1!==X.indexOf("%")}(X);return X=360===se?X:Math.min(se,Math.max(0,parseFloat(X))),k&&(X=parseInt(String(X*se),10)/100),Math.abs(X-se)<1e-6?1:X=360===se?(X<0?X%se+se:X%se)/parseFloat(String(se)):X%se/parseFloat(String(se))}function R(X){return Math.min(1,Math.max(0,X))}function ee(X){return X=parseFloat(X),(isNaN(X)||X<0||X>1)&&(X=1),X}function ye(X){return X<=1?100*Number(X)+"%":X}function Ye(X){return 1===X.length?"0"+X:String(X)}function ze(X,se,k){X=I(X,255),se=I(se,255),k=I(k,255);var Ee=Math.max(X,se,k),st=Math.min(X,se,k),Ct=0,Ot=0,Vt=(Ee+st)/2;if(Ee===st)Ot=0,Ct=0;else{var hn=Ee-st;switch(Ot=Vt>.5?hn/(2-Ee-st):hn/(Ee+st),Ee){case X:Ct=(se-k)/hn+(se1&&(k-=1),k<1/6?X+6*k*(se-X):k<.5?se:k<2/3?X+(se-X)*(2/3-k)*6:X}function Je(X,se,k){X=I(X,255),se=I(se,255),k=I(k,255);var Ee=Math.max(X,se,k),st=Math.min(X,se,k),Ct=0,Ot=Ee,Vt=Ee-st,hn=0===Ee?0:Vt/Ee;if(Ee===st)Ct=0;else{switch(Ee){case X:Ct=(se-k)/Vt+(se>16,g:(65280&X)>>8,b:255&X}}(se)),this.originalInput=se;var st=function he(X){var se={r:0,g:0,b:0},k=1,Ee=null,st=null,Ct=null,Ot=!1,Vt=!1;return"string"==typeof X&&(X=function ke(X){if(0===(X=X.trim().toLowerCase()).length)return!1;var se=!1;if(fe[X])X=fe[X],se=!0;else if("transparent"===X)return{r:0,g:0,b:0,a:0,format:"name"};var k=tt.rgb.exec(X);return k?{r:k[1],g:k[2],b:k[3]}:(k=tt.rgba.exec(X))?{r:k[1],g:k[2],b:k[3],a:k[4]}:(k=tt.hsl.exec(X))?{h:k[1],s:k[2],l:k[3]}:(k=tt.hsla.exec(X))?{h:k[1],s:k[2],l:k[3],a:k[4]}:(k=tt.hsv.exec(X))?{h:k[1],s:k[2],v:k[3]}:(k=tt.hsva.exec(X))?{h:k[1],s:k[2],v:k[3],a:k[4]}:(k=tt.hex8.exec(X))?{r:Xe(k[1]),g:Xe(k[2]),b:Xe(k[3]),a:Se(k[4]),format:se?"name":"hex8"}:(k=tt.hex6.exec(X))?{r:Xe(k[1]),g:Xe(k[2]),b:Xe(k[3]),format:se?"name":"hex"}:(k=tt.hex4.exec(X))?{r:Xe(k[1]+k[1]),g:Xe(k[2]+k[2]),b:Xe(k[3]+k[3]),a:Se(k[4]+k[4]),format:se?"name":"hex8"}:!!(k=tt.hex3.exec(X))&&{r:Xe(k[1]+k[1]),g:Xe(k[2]+k[2]),b:Xe(k[3]+k[3]),format:se?"name":"hex"}}(X)),"object"==typeof X&&(ve(X.r)&&ve(X.g)&&ve(X.b)?(se=function Fe(X,se,k){return{r:255*I(X,255),g:255*I(se,255),b:255*I(k,255)}}(X.r,X.g,X.b),Ot=!0,Vt="%"===String(X.r).substr(-1)?"prgb":"rgb"):ve(X.h)&&ve(X.s)&&ve(X.v)?(Ee=ye(X.s),st=ye(X.v),se=function zt(X,se,k){X=6*I(X,360),se=I(se,100),k=I(k,100);var Ee=Math.floor(X),st=X-Ee,Ct=k*(1-se),Ot=k*(1-st*se),Vt=k*(1-(1-st)*se),hn=Ee%6;return{r:255*[k,Ot,Ct,Ct,Vt,k][hn],g:255*[Vt,k,k,Ot,Ct,Ct][hn],b:255*[Ct,Ct,Vt,k,k,Ot][hn]}}(X.h,Ee,st),Ot=!0,Vt="hsv"):ve(X.h)&&ve(X.s)&&ve(X.l)&&(Ee=ye(X.s),Ct=ye(X.l),se=function vt(X,se,k){var Ee,st,Ct;if(X=I(X,360),se=I(se,100),k=I(k,100),0===se)st=k,Ct=k,Ee=k;else{var Ot=k<.5?k*(1+se):k+se-k*se,Vt=2*k-Ot;Ee=_e(Vt,Ot,X+1/3),st=_e(Vt,Ot,X),Ct=_e(Vt,Ot,X-1/3)}return{r:255*Ee,g:255*st,b:255*Ct}}(X.h,Ee,Ct),Ot=!0,Vt="hsl"),Object.prototype.hasOwnProperty.call(X,"a")&&(k=X.a)),k=ee(k),{ok:Ot,format:X.format||Vt,r:Math.min(255,Math.max(se.r,0)),g:Math.min(255,Math.max(se.g,0)),b:Math.min(255,Math.max(se.b,0)),a:k}}(se);this.originalInput=se,this.r=st.r,this.g=st.g,this.b=st.b,this.a=st.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(Ee=k.format)&&void 0!==Ee?Ee:st.format,this.gradientType=k.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=st.ok}return X.prototype.isDark=function(){return this.getBrightness()<128},X.prototype.isLight=function(){return!this.isDark()},X.prototype.getBrightness=function(){var se=this.toRgb();return(299*se.r+587*se.g+114*se.b)/1e3},X.prototype.getLuminance=function(){var se=this.toRgb(),Ct=se.r/255,Ot=se.g/255,Vt=se.b/255;return.2126*(Ct<=.03928?Ct/12.92:Math.pow((Ct+.055)/1.055,2.4))+.7152*(Ot<=.03928?Ot/12.92:Math.pow((Ot+.055)/1.055,2.4))+.0722*(Vt<=.03928?Vt/12.92:Math.pow((Vt+.055)/1.055,2.4))},X.prototype.getAlpha=function(){return this.a},X.prototype.setAlpha=function(se){return this.a=ee(se),this.roundA=Math.round(100*this.a)/100,this},X.prototype.toHsv=function(){var se=Je(this.r,this.g,this.b);return{h:360*se.h,s:se.s,v:se.v,a:this.a}},X.prototype.toHsvString=function(){var se=Je(this.r,this.g,this.b),k=Math.round(360*se.h),Ee=Math.round(100*se.s),st=Math.round(100*se.v);return 1===this.a?"hsv("+k+", "+Ee+"%, "+st+"%)":"hsva("+k+", "+Ee+"%, "+st+"%, "+this.roundA+")"},X.prototype.toHsl=function(){var se=ze(this.r,this.g,this.b);return{h:360*se.h,s:se.s,l:se.l,a:this.a}},X.prototype.toHslString=function(){var se=ze(this.r,this.g,this.b),k=Math.round(360*se.h),Ee=Math.round(100*se.s),st=Math.round(100*se.l);return 1===this.a?"hsl("+k+", "+Ee+"%, "+st+"%)":"hsla("+k+", "+Ee+"%, "+st+"%, "+this.roundA+")"},X.prototype.toHex=function(se){return void 0===se&&(se=!1),ut(this.r,this.g,this.b,se)},X.prototype.toHexString=function(se){return void 0===se&&(se=!1),"#"+this.toHex(se)},X.prototype.toHex8=function(se){return void 0===se&&(se=!1),function Ie(X,se,k,Ee,st){var Ct=[Ye(Math.round(X).toString(16)),Ye(Math.round(se).toString(16)),Ye(Math.round(k).toString(16)),Ye(et(Ee))];return st&&Ct[0].startsWith(Ct[0].charAt(1))&&Ct[1].startsWith(Ct[1].charAt(1))&&Ct[2].startsWith(Ct[2].charAt(1))&&Ct[3].startsWith(Ct[3].charAt(1))?Ct[0].charAt(0)+Ct[1].charAt(0)+Ct[2].charAt(0)+Ct[3].charAt(0):Ct.join("")}(this.r,this.g,this.b,this.a,se)},X.prototype.toHex8String=function(se){return void 0===se&&(se=!1),"#"+this.toHex8(se)},X.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},X.prototype.toRgbString=function(){var se=Math.round(this.r),k=Math.round(this.g),Ee=Math.round(this.b);return 1===this.a?"rgb("+se+", "+k+", "+Ee+")":"rgba("+se+", "+k+", "+Ee+", "+this.roundA+")"},X.prototype.toPercentageRgb=function(){var se=function(k){return Math.round(100*I(k,255))+"%"};return{r:se(this.r),g:se(this.g),b:se(this.b),a:this.a}},X.prototype.toPercentageRgbString=function(){var se=function(k){return Math.round(100*I(k,255))};return 1===this.a?"rgb("+se(this.r)+"%, "+se(this.g)+"%, "+se(this.b)+"%)":"rgba("+se(this.r)+"%, "+se(this.g)+"%, "+se(this.b)+"%, "+this.roundA+")"},X.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var se="#"+ut(this.r,this.g,this.b,!1),k=0,Ee=Object.entries(fe);k=0&&(se.startsWith("hex")||"name"===se)?"name"===se&&0===this.a?this.toName():this.toRgbString():("rgb"===se&&(Ee=this.toRgbString()),"prgb"===se&&(Ee=this.toPercentageRgbString()),("hex"===se||"hex6"===se)&&(Ee=this.toHexString()),"hex3"===se&&(Ee=this.toHexString(!0)),"hex4"===se&&(Ee=this.toHex8String(!0)),"hex8"===se&&(Ee=this.toHex8String()),"name"===se&&(Ee=this.toName()),"hsl"===se&&(Ee=this.toHslString()),"hsv"===se&&(Ee=this.toHsvString()),Ee||this.toHexString())},X.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},X.prototype.clone=function(){return new X(this.toString())},X.prototype.lighten=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.l+=se/100,k.l=R(k.l),new X(k)},X.prototype.brighten=function(se){void 0===se&&(se=10);var k=this.toRgb();return k.r=Math.max(0,Math.min(255,k.r-Math.round(-se/100*255))),k.g=Math.max(0,Math.min(255,k.g-Math.round(-se/100*255))),k.b=Math.max(0,Math.min(255,k.b-Math.round(-se/100*255))),new X(k)},X.prototype.darken=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.l-=se/100,k.l=R(k.l),new X(k)},X.prototype.tint=function(se){return void 0===se&&(se=10),this.mix("white",se)},X.prototype.shade=function(se){return void 0===se&&(se=10),this.mix("black",se)},X.prototype.desaturate=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.s-=se/100,k.s=R(k.s),new X(k)},X.prototype.saturate=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.s+=se/100,k.s=R(k.s),new X(k)},X.prototype.greyscale=function(){return this.desaturate(100)},X.prototype.spin=function(se){var k=this.toHsl(),Ee=(k.h+se)%360;return k.h=Ee<0?360+Ee:Ee,new X(k)},X.prototype.mix=function(se,k){void 0===k&&(k=50);var Ee=this.toRgb(),st=new X(se).toRgb(),Ct=k/100;return new X({r:(st.r-Ee.r)*Ct+Ee.r,g:(st.g-Ee.g)*Ct+Ee.g,b:(st.b-Ee.b)*Ct+Ee.b,a:(st.a-Ee.a)*Ct+Ee.a})},X.prototype.analogous=function(se,k){void 0===se&&(se=6),void 0===k&&(k=30);var Ee=this.toHsl(),st=360/k,Ct=[this];for(Ee.h=(Ee.h-(st*se>>1)+720)%360;--se;)Ee.h=(Ee.h+st)%360,Ct.push(new X(Ee));return Ct},X.prototype.complement=function(){var se=this.toHsl();return se.h=(se.h+180)%360,new X(se)},X.prototype.monochromatic=function(se){void 0===se&&(se=6);for(var k=this.toHsv(),Ee=k.h,st=k.s,Ct=k.v,Ot=[],Vt=1/se;se--;)Ot.push(new X({h:Ee,s:st,v:Ct})),Ct=(Ct+Vt)%1;return Ot},X.prototype.splitcomplement=function(){var se=this.toHsl(),k=se.h;return[this,new X({h:(k+72)%360,s:se.s,l:se.l}),new X({h:(k+216)%360,s:se.s,l:se.l})]},X.prototype.onBackground=function(se){var k=this.toRgb(),Ee=new X(se).toRgb();return new X({r:Ee.r+(k.r-Ee.r)*k.a,g:Ee.g+(k.g-Ee.g)*k.a,b:Ee.b+(k.b-Ee.b)*k.a})},X.prototype.triad=function(){return this.polyad(3)},X.prototype.tetrad=function(){return this.polyad(4)},X.prototype.polyad=function(se){for(var k=this.toHsl(),Ee=k.h,st=[this],Ct=360/se,Ot=1;Ot=60&&Math.round(X.h)<=240?k?Math.round(X.h)-2*se:Math.round(X.h)+2*se:k?Math.round(X.h)+2*se:Math.round(X.h)-2*se)<0?Ee+=360:Ee>=360&&(Ee-=360),Ee}function Ut(X,se,k){return 0===X.h&&0===X.s?X.s:((Ee=k?X.s-.16*se:4===se?X.s+.16:X.s+.05*se)>1&&(Ee=1),k&&5===se&&Ee>.1&&(Ee=.1),Ee<.06&&(Ee=.06),Number(Ee.toFixed(2)));var Ee}function un(X,se,k){var Ee;return(Ee=k?X.v+.05*se:X.v-.15*se)>1&&(Ee=1),Number(Ee.toFixed(2))}function _n(X){for(var se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},k=[],Ee=new mt(X),st=5;st>0;st-=1){var Ct=Ee.toHsv(),Ot=new mt({h:gn(Ct,st,!0),s:Ut(Ct,st,!0),v:un(Ct,st,!0)}).toHexString();k.push(Ot)}k.push(Ee.toHexString());for(var Vt=1;Vt<=4;Vt+=1){var hn=Ee.toHsv(),ni=new mt({h:gn(hn,Vt),s:Ut(hn,Vt),v:un(hn,Vt)}).toHexString();k.push(ni)}return"dark"===se.theme?mn.map(function(ai){var kn=ai.index,bi=ai.opacity;return new mt(se.backgroundColor||"#141414").mix(k[kn],100*bi).toHexString()}):k}var Cn={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Dt={},Sn={};Object.keys(Cn).forEach(function(X){Dt[X]=_n(Cn[X]),Dt[X].primary=Dt[X][5],Sn[X]=_n(Cn[X],{theme:"dark",backgroundColor:"#141414"}),Sn[X].primary=Sn[X][5]});var V=p(520),Be=p(1086),nt=p(6498),ce=p(4850),Ne=p(2994),L=p(537),E=p(7221),$=p(8117),ue=p(2198),Ae=p(2986),wt=p(2313);const At="[@ant-design/icons-angular]:";function vn(X){(0,s.X6Q)()&&console.warn(`${At} ${X}.`)}function Vn(X){return _n(X)[0]}function An(X,se){switch(se){case"fill":return`${X}-fill`;case"outline":return`${X}-o`;case"twotone":return`${X}-twotone`;case void 0:return X;default:throw new Error(`${At}Theme "${se}" is not a recognized theme!`)}}function Re(X){return"object"==typeof X&&"string"==typeof X.name&&("string"==typeof X.theme||void 0===X.theme)&&"string"==typeof X.icon}function ht(X){const se=X.split(":");switch(se.length){case 1:return[X,""];case 2:return[se[1],se[0]];default:throw new Error(`${At}The icon type ${X} is not valid!`)}}function Zn(){return new Error(`${At} tag not found.`)}let ei=(()=>{class X{constructor(k,Ee,st,Ct){this._rendererFactory=k,this._handler=Ee,this._document=st,this.sanitizer=Ct,this.defaultTheme="outline",this._svgDefinitions=new Map,this._svgRenderedDefinitions=new Map,this._inProgressFetches=new Map,this._assetsUrlRoot="",this._twoToneColorPalette={primaryColor:"#333333",secondaryColor:"#E6E6E6"},this._enableJsonpLoading=!1,this._jsonpIconLoad$=new oe.xQ,this._renderer=this._rendererFactory.createRenderer(null,null),this._handler&&(this._http=new V.eN(this._handler))}set twoToneColor({primaryColor:k,secondaryColor:Ee}){this._twoToneColorPalette.primaryColor=k,this._twoToneColorPalette.secondaryColor=Ee||Vn(k)}get twoToneColor(){return Object.assign({},this._twoToneColorPalette)}useJsonpLoading(){this._enableJsonpLoading?vn("You are already using jsonp loading."):(this._enableJsonpLoading=!0,window.__ant_icon_load=k=>{this._jsonpIconLoad$.next(k)})}changeAssetsSource(k){this._assetsUrlRoot=k.endsWith("/")?k:k+"/"}addIcon(...k){k.forEach(Ee=>{this._svgDefinitions.set(An(Ee.name,Ee.theme),Ee)})}addIconLiteral(k,Ee){const[st,Ct]=ht(k);if(!Ct)throw function jt(){return new Error(`${At}Type should have a namespace. Try "namespace:${name}".`)}();this.addIcon({name:k,icon:Ee})}clear(){this._svgDefinitions.clear(),this._svgRenderedDefinitions.clear()}getRenderedContent(k,Ee){const st=Re(k)?k:this._svgDefinitions.get(k)||null;return(st?(0,Be.of)(st):this._loadIconDynamically(k)).pipe((0,ce.U)(Ot=>{if(!Ot)throw function fn(X){return new Error(`${At}the icon ${X} does not exist or is not registered.`)}(k);return this._loadSVGFromCacheOrCreateNew(Ot,Ee)}))}getCachedIcons(){return this._svgDefinitions}_loadIconDynamically(k){if(!this._http&&!this._enableJsonpLoading)return(0,Be.of)(function Pn(){return function Qt(X){console.error(`${At} ${X}.`)}('you need to import "HttpClientModule" to use dynamic importing.'),null}());let Ee=this._inProgressFetches.get(k);if(!Ee){const[st,Ct]=ht(k),Ot=Ct?{name:k,icon:""}:function we(X){const se=X.split("-"),k=function jn(X){return"o"===X?"outline":X}(se.splice(se.length-1,1)[0]);return{name:se.join("-"),theme:k,icon:""}}(st),hn=(Ct?`${this._assetsUrlRoot}assets/${Ct}/${st}`:`${this._assetsUrlRoot}assets/${Ot.theme}/${Ot.name}`)+(this._enableJsonpLoading?".js":".svg"),ni=this.sanitizer.sanitize(s.q3G.URL,hn);if(!ni)throw function si(X){return new Error(`${At}The url "${X}" is unsafe.`)}(hn);Ee=(this._enableJsonpLoading?this._loadIconDynamicallyWithJsonp(Ot,ni):this._http.get(ni,{responseType:"text"}).pipe((0,ce.U)(kn=>Object.assign(Object.assign({},Ot),{icon:kn})))).pipe((0,Ne.b)(kn=>this.addIcon(kn)),(0,L.x)(()=>this._inProgressFetches.delete(k)),(0,E.K)(()=>(0,Be.of)(null)),(0,$.B)()),this._inProgressFetches.set(k,Ee)}return Ee}_loadIconDynamicallyWithJsonp(k,Ee){return new nt.y(st=>{const Ct=this._document.createElement("script"),Ot=setTimeout(()=>{Vt(),st.error(function ii(){return new Error(`${At}Importing timeout error.`)}())},6e3);function Vt(){Ct.parentNode.removeChild(Ct),clearTimeout(Ot)}Ct.src=Ee,this._document.body.appendChild(Ct),this._jsonpIconLoad$.pipe((0,ue.h)(hn=>hn.name===k.name&&hn.theme===k.theme),(0,Ae.q)(1)).subscribe(hn=>{st.next(hn),Vt()})})}_loadSVGFromCacheOrCreateNew(k,Ee){let st;const Ct=Ee||this._twoToneColorPalette.primaryColor,Ot=Vn(Ct)||this._twoToneColorPalette.secondaryColor,Vt="twotone"===k.theme?function ri(X,se,k,Ee){return`${An(X,se)}-${k}-${Ee}`}(k.name,k.theme,Ct,Ot):void 0===k.theme?k.name:An(k.name,k.theme),hn=this._svgRenderedDefinitions.get(Vt);return hn?st=hn.icon:(st=this._setSVGAttribute(this._colorizeSVGIcon(this._createSVGElementFromString(function It(X){return""!==ht(X)[1]}(k.name)?k.icon:function Ve(X){return X.replace(/['"]#333['"]/g,'"primaryColor"').replace(/['"]#E6E6E6['"]/g,'"secondaryColor"').replace(/['"]#D9D9D9['"]/g,'"secondaryColor"').replace(/['"]#D8D8D8['"]/g,'"secondaryColor"')}(k.icon)),"twotone"===k.theme,Ct,Ot)),this._svgRenderedDefinitions.set(Vt,Object.assign(Object.assign({},k),{icon:st}))),function ae(X){return X.cloneNode(!0)}(st)}_createSVGElementFromString(k){const Ee=this._document.createElement("div");Ee.innerHTML=k;const st=Ee.querySelector("svg");if(!st)throw Zn;return st}_setSVGAttribute(k){return this._renderer.setAttribute(k,"width","1em"),this._renderer.setAttribute(k,"height","1em"),k}_colorizeSVGIcon(k,Ee,st,Ct){if(Ee){const Ot=k.childNodes,Vt=Ot.length;for(let hn=0;hn{class X{constructor(k,Ee,st){this._iconService=k,this._elementRef=Ee,this._renderer=st}ngOnChanges(k){(k.type||k.theme||k.twoToneColor)&&this._changeIcon()}_changeIcon(){return new Promise(k=>{if(this.type){const Ee=this._getSelfRenderMeta();this._iconService.getRenderedContent(this._parseIconType(this.type,this.theme),this.twoToneColor).subscribe(st=>{!function Ln(X,se){return X.type===se.type&&X.theme===se.theme&&X.twoToneColor===se.twoToneColor}(Ee,this._getSelfRenderMeta())?k(null):(this._setSVGElement(st),k(st))})}else this._clearSVGElement(),k(null)})}_getSelfRenderMeta(){return{type:this.type,theme:this.theme,twoToneColor:this.twoToneColor}}_parseIconType(k,Ee){if(Re(k))return k;{const[st,Ct]=ht(k);return Ct?k:function qt(X){return X.endsWith("-fill")||X.endsWith("-o")||X.endsWith("-twotone")}(st)?(Ee&&vn(`'type' ${st} already gets a theme inside so 'theme' ${Ee} would be ignored`),st):An(st,Ee||this._iconService.defaultTheme)}}_setSVGElement(k){this._clearSVGElement(),this._renderer.appendChild(this._elementRef.nativeElement,k)}_clearSVGElement(){var k;const Ee=this._elementRef.nativeElement,st=Ee.childNodes;for(let Ot=st.length-1;Ot>=0;Ot--){const Vt=st[Ot];"svg"===(null===(k=Vt.tagName)||void 0===k?void 0:k.toLowerCase())&&this._renderer.removeChild(Ee,Vt)}}}return X.\u0275fac=function(k){return new(k||X)(s.Y36(ei),s.Y36(s.SBq),s.Y36(s.Qsj))},X.\u0275dir=s.lG2({type:X,selectors:[["","antIcon",""]],inputs:{type:"type",theme:"theme",twoToneColor:"twoToneColor"},features:[s.TTD]}),X})();var Qn=p(1721),Te=p(6947),Ze=p(9193),De=p(9439);const rt=[Ze.V65,Ze.ud1,Ze.bBn,Ze.BOg,Ze.Hkd,Ze.XuQ,Ze.Rfq,Ze.yQU,Ze.U2Q,Ze.UKj,Ze.OYp,Ze.BXH,Ze.eLU,Ze.x0x,Ze.VWu,Ze.rMt,Ze.vEg,Ze.RIp,Ze.RU0,Ze.M8e,Ze.ssy,Ze.Z5F,Ze.iUK,Ze.LJh,Ze.NFG,Ze.UTl,Ze.nrZ,Ze.gvV,Ze.d2H,Ze.eFY,Ze.sZJ,Ze.np6,Ze.w1L,Ze.UY$,Ze.v6v,Ze.rHg,Ze.v6v,Ze.s_U,Ze.TSL,Ze.FsU,Ze.cN2,Ze.uIz,Ze.d_$],Wt=new s.OlP("nz_icons"),Lt=(new s.OlP("nz_icon_default_twotone_color"),"#1890ff");let Un=(()=>{class X extends ei{constructor(k,Ee,st,Ct,Ot,Vt){super(k,Ct,Ot,Ee),this.nzConfigService=st,this.configUpdated$=new oe.xQ,this.iconfontCache=new Set,this.subscription=null,this.onConfigChange(),this.addIcon(...rt,...Vt||[]),this.configDefaultTwotoneColor(),this.configDefaultTheme()}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}normalizeSvgElement(k){k.getAttribute("viewBox")||this._renderer.setAttribute(k,"viewBox","0 0 1024 1024"),(!k.getAttribute("width")||!k.getAttribute("height"))&&(this._renderer.setAttribute(k,"width","1em"),this._renderer.setAttribute(k,"height","1em")),k.getAttribute("fill")||this._renderer.setAttribute(k,"fill","currentColor")}fetchFromIconfont(k){const{scriptUrl:Ee}=k;if(this._document&&!this.iconfontCache.has(Ee)){const st=this._renderer.createElement("script");this._renderer.setAttribute(st,"src",Ee),this._renderer.setAttribute(st,"data-namespace",Ee.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,st),this.iconfontCache.add(Ee)}}createIconfontIcon(k){return this._createSVGElementFromString(``)}onConfigChange(){this.subscription=this.nzConfigService.getConfigChangeEventForComponent("icon").subscribe(()=>{this.configDefaultTwotoneColor(),this.configDefaultTheme(),this.configUpdated$.next()})}configDefaultTheme(){const k=this.getConfig();this.defaultTheme=k.nzTheme||"outline"}configDefaultTwotoneColor(){const Ee=this.getConfig().nzTwotoneColor||Lt;let st=Lt;Ee&&(Ee.startsWith("#")?st=Ee:(0,Te.ZK)("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:st}}getConfig(){return this.nzConfigService.getConfigForComponent("icon")||{}}}return X.\u0275fac=function(k){return new(k||X)(s.LFG(s.FYo),s.LFG(wt.H7),s.LFG(De.jY),s.LFG(V.jN,8),s.LFG(W.K0,8),s.LFG(Wt,8))},X.\u0275prov=s.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();const $n=new s.OlP("nz_icons_patch");let Nn=(()=>{class X{constructor(k,Ee){this.extraIcons=k,this.rootIconService=Ee,this.patched=!1}doPatch(){this.patched||(this.extraIcons.forEach(k=>this.rootIconService.addIcon(k)),this.patched=!0)}}return X.\u0275fac=function(k){return new(k||X)(s.LFG($n,2),s.LFG(Un))},X.\u0275prov=s.Yz7({token:X,factory:X.\u0275fac}),X})(),Rn=(()=>{class X extends Tt{constructor(k,Ee,st,Ct,Ot,Vt){super(Ct,st,Ot),this.ngZone=k,this.changeDetectorRef=Ee,this.iconService=Ct,this.renderer=Ot,this.cacheClassName=null,this.nzRotate=0,this.spin=!1,this.destroy$=new oe.xQ,Vt&&Vt.doPatch(),this.el=st.nativeElement}set nzSpin(k){this.spin=k}set nzType(k){this.type=k}set nzTheme(k){this.theme=k}set nzTwotoneColor(k){this.twoToneColor=k}set nzIconfont(k){this.iconfont=k}ngOnChanges(k){const{nzType:Ee,nzTwotoneColor:st,nzSpin:Ct,nzTheme:Ot,nzRotate:Vt}=k;Ee||st||Ct||Ot?this.changeIcon2():Vt?this.handleRotate(this.el.firstChild):this._setSVGElement(this.iconService.createIconfontIcon(`#${this.iconfont}`))}ngOnInit(){this.renderer.setAttribute(this.el,"class",`anticon ${this.el.className}`.trim())}ngAfterContentChecked(){if(!this.type){const k=this.el.children;let Ee=k.length;if(!this.type&&k.length)for(;Ee--;){const st=k[Ee];"svg"===st.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(st)}}}ngOnDestroy(){this.destroy$.next()}changeIcon2(){this.setClassName(),this.ngZone.runOutsideAngular(()=>{(0,q.D)(this._changeIcon()).pipe((0,_.R)(this.destroy$)).subscribe(k=>{this.changeDetectorRef.detectChanges(),k&&(this.setSVGData(k),this.handleSpin(k),this.handleRotate(k))})})}handleSpin(k){this.spin||"loading"===this.type?this.renderer.addClass(k,"anticon-spin"):this.renderer.removeClass(k,"anticon-spin")}handleRotate(k){this.nzRotate?this.renderer.setAttribute(k,"style",`transform: rotate(${this.nzRotate}deg)`):this.renderer.removeAttribute(k,"style")}setClassName(){this.cacheClassName&&this.renderer.removeClass(this.el,this.cacheClassName),this.cacheClassName=`anticon-${this.type}`,this.renderer.addClass(this.el,this.cacheClassName)}setSVGData(k){this.renderer.setAttribute(k,"data-icon",this.type),this.renderer.setAttribute(k,"aria-hidden","true")}}return X.\u0275fac=function(k){return new(k||X)(s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(Un),s.Y36(s.Qsj),s.Y36(Nn,8))},X.\u0275dir=s.lG2({type:X,selectors:[["","nz-icon",""]],hostVars:2,hostBindings:function(k,Ee){2&k&&s.ekj("anticon",!0)},inputs:{nzSpin:"nzSpin",nzRotate:"nzRotate",nzType:"nzType",nzTheme:"nzTheme",nzTwotoneColor:"nzTwotoneColor",nzIconfont:"nzIconfont"},exportAs:["nzIcon"],features:[s.qOj,s.TTD]}),(0,G.gn)([(0,Qn.yF)()],X.prototype,"nzSpin",null),X})(),qn=(()=>{class X{static forRoot(k){return{ngModule:X,providers:[{provide:Wt,useValue:k}]}}static forChild(k){return{ngModule:X,providers:[Nn,{provide:$n,useValue:k}]}}}return X.\u0275fac=function(k){return new(k||X)},X.\u0275mod=s.oAB({type:X}),X.\u0275inj=s.cJS({imports:[[a.ud]]}),X})()},4219:(yt,be,p)=>{p.d(be,{hl:()=>cn,Cc:()=>Dt,wO:()=>Le,YV:()=>Be,r9:()=>qe,ip:()=>nt});var a=p(655),s=p(5e3),G=p(8929),oe=p(591),q=p(6787),_=p(6053),W=p(4850),I=p(1709),R=p(2198),H=p(7604),B=p(7138),ee=p(5778),ye=p(7625),Ye=p(1059),Fe=p(7545),ze=p(1721),_e=p(2302),vt=p(226),Je=p(2845),zt=p(6950),ut=p(925),Ie=p(4832),$e=p(9808),et=p(647),Se=p(969),Xe=p(8076);const J=["nz-submenu-title",""];function fe(ce,Ne){if(1&ce&&s._UZ(0,"i",4),2&ce){const L=s.oxw();s.Q6J("nzType",L.nzIcon)}}function he(ce,Ne){if(1&ce&&(s.ynx(0),s.TgZ(1,"span"),s._uU(2),s.qZA(),s.BQk()),2&ce){const L=s.oxw();s.xp6(2),s.Oqu(L.nzTitle)}}function te(ce,Ne){1&ce&&s._UZ(0,"i",8)}function le(ce,Ne){1&ce&&s._UZ(0,"i",9)}function ie(ce,Ne){if(1&ce&&(s.TgZ(0,"span",5),s.YNc(1,te,1,0,"i",6),s.YNc(2,le,1,0,"i",7),s.qZA()),2&ce){const L=s.oxw();s.Q6J("ngSwitch",L.dir),s.xp6(1),s.Q6J("ngSwitchCase","rtl")}}function Ue(ce,Ne){1&ce&&s._UZ(0,"i",10)}const je=["*"],tt=["nz-submenu-inline-child",""];function ke(ce,Ne){}const ve=["nz-submenu-none-inline-child",""];function mt(ce,Ne){}const Qe=["nz-submenu",""];function dt(ce,Ne){1&ce&&s.Hsn(0,0,["*ngIf","!nzTitle"])}function _t(ce,Ne){if(1&ce&&s._UZ(0,"div",6),2&ce){const L=s.oxw(),E=s.MAs(7);s.Q6J("mode",L.mode)("nzOpen",L.nzOpen)("@.disabled",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)("nzNoAnimation",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)("menuClass",L.nzMenuClassName)("templateOutlet",E)}}function it(ce,Ne){if(1&ce){const L=s.EpF();s.TgZ(0,"div",8),s.NdJ("subMenuMouseState",function($){return s.CHM(L),s.oxw(2).setMouseEnterState($)}),s.qZA()}if(2&ce){const L=s.oxw(2),E=s.MAs(7);s.Q6J("theme",L.theme)("mode",L.mode)("nzOpen",L.nzOpen)("position",L.position)("nzDisabled",L.nzDisabled)("isMenuInsideDropDown",L.isMenuInsideDropDown)("templateOutlet",E)("menuClass",L.nzMenuClassName)("@.disabled",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)("nzNoAnimation",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)}}function St(ce,Ne){if(1&ce){const L=s.EpF();s.YNc(0,it,1,10,"ng-template",7),s.NdJ("positionChange",function($){return s.CHM(L),s.oxw().onPositionChange($)})}if(2&ce){const L=s.oxw(),E=s.MAs(1);s.Q6J("cdkConnectedOverlayPositions",L.overlayPositions)("cdkConnectedOverlayOrigin",E)("cdkConnectedOverlayWidth",L.triggerWidth)("cdkConnectedOverlayOpen",L.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function ot(ce,Ne){1&ce&&s.Hsn(0,1)}const Et=[[["","title",""]],"*"],Zt=["[title]","*"],Dt=new s.OlP("NzIsInDropDownMenuToken"),Sn=new s.OlP("NzMenuServiceLocalToken");let cn=(()=>{class ce{constructor(){this.descendantMenuItemClick$=new G.xQ,this.childMenuItemClick$=new G.xQ,this.theme$=new oe.X("light"),this.mode$=new oe.X("vertical"),this.inlineIndent$=new oe.X(24),this.isChildSubMenuOpen$=new oe.X(!1)}onDescendantMenuItemClick(L){this.descendantMenuItemClick$.next(L)}onChildMenuItemClick(L){this.childMenuItemClick$.next(L)}setMode(L){this.mode$.next(L)}setTheme(L){this.theme$.next(L)}setInlineIndent(L){this.inlineIndent$.next(L)}}return ce.\u0275fac=function(L){return new(L||ce)},ce.\u0275prov=s.Yz7({token:ce,factory:ce.\u0275fac}),ce})(),Mn=(()=>{class ce{constructor(L,E,$){this.nzHostSubmenuService=L,this.nzMenuService=E,this.isMenuInsideDropDown=$,this.mode$=this.nzMenuService.mode$.pipe((0,W.U)(At=>"inline"===At?"inline":"vertical"===At||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new oe.X(!1),this.isChildSubMenuOpen$=new oe.X(!1),this.isMouseEnterTitleOrOverlay$=new G.xQ,this.childMenuItemClick$=new G.xQ,this.destroy$=new G.xQ,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const ue=this.childMenuItemClick$.pipe((0,I.zg)(()=>this.mode$),(0,R.h)(At=>"inline"!==At||this.isMenuInsideDropDown),(0,H.h)(!1)),Ae=(0,q.T)(this.isMouseEnterTitleOrOverlay$,ue);(0,_.aj)([this.isChildSubMenuOpen$,Ae]).pipe((0,W.U)(([At,Qt])=>At||Qt),(0,B.e)(150),(0,ee.x)(),(0,ye.R)(this.destroy$)).pipe((0,ee.x)()).subscribe(At=>{this.setOpenStateWithoutDebounce(At),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(At):this.nzMenuService.isChildSubMenuOpen$.next(At)})}onChildMenuItemClick(L){this.childMenuItemClick$.next(L)}setOpenStateWithoutDebounce(L){this.isCurrentSubMenuOpen$.next(L)}setMouseEnterTitleOrOverlayState(L){this.isMouseEnterTitleOrOverlay$.next(L)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.LFG(ce,12),s.LFG(cn),s.LFG(Dt))},ce.\u0275prov=s.Yz7({token:ce,factory:ce.\u0275fac}),ce})(),qe=(()=>{class ce{constructor(L,E,$,ue,Ae,wt,At,Qt){this.nzMenuService=L,this.cdr=E,this.nzSubmenuService=$,this.isMenuInsideDropDown=ue,this.directionality=Ae,this.routerLink=wt,this.routerLinkWithHref=At,this.router=Qt,this.destroy$=new G.xQ,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new G.xQ,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,Qt&&this.router.events.pipe((0,ye.R)(this.destroy$),(0,R.h)(vn=>vn instanceof _e.m2)).subscribe(()=>{this.updateRouterActive()})}clickMenuItem(L){this.nzDisabled?(L.preventDefault(),L.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(L){this.nzSelected=L,this.selected$.next(L)}updateRouterActive(){!this.listOfRouterLink||!this.listOfRouterLinkWithHref||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{const L=this.hasActiveLinks();this.nzSelected!==L&&(this.nzSelected=L,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){const L=this.isLinkActive(this.router);return this.routerLink&&L(this.routerLink)||this.routerLinkWithHref&&L(this.routerLinkWithHref)||this.listOfRouterLink.some(L)||this.listOfRouterLinkWithHref.some(L)}isLinkActive(L){return E=>L.isActive(E.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}ngOnInit(){var L;(0,_.aj)([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,ye.R)(this.destroy$)).subscribe(([E,$])=>{this.inlinePaddingLeft="inline"===E?this.level*$:null}),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,ye.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.listOfRouterLinkWithHref.changes.pipe((0,ye.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(L){L.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(cn),s.Y36(s.sBO),s.Y36(Mn,8),s.Y36(Dt),s.Y36(vt.Is,8),s.Y36(_e.rH,8),s.Y36(_e.yS,8),s.Y36(_e.F0,8))},ce.\u0275dir=s.lG2({type:ce,selectors:[["","nz-menu-item",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,_e.rH,5),s.Suo($,_e.yS,5)),2&L){let ue;s.iGM(ue=s.CRH())&&(E.listOfRouterLink=ue),s.iGM(ue=s.CRH())&&(E.listOfRouterLinkWithHref=ue)}},hostVars:20,hostBindings:function(L,E){1&L&&s.NdJ("click",function(ue){return E.clickMenuItem(ue)}),2&L&&(s.Udp("padding-left","rtl"===E.dir?null:E.nzPaddingLeft||E.inlinePaddingLeft,"px")("padding-right","rtl"===E.dir?E.nzPaddingLeft||E.inlinePaddingLeft:null,"px"),s.ekj("ant-dropdown-menu-item",E.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",E.isMenuInsideDropDown&&E.nzSelected)("ant-dropdown-menu-item-danger",E.isMenuInsideDropDown&&E.nzDanger)("ant-dropdown-menu-item-disabled",E.isMenuInsideDropDown&&E.nzDisabled)("ant-menu-item",!E.isMenuInsideDropDown)("ant-menu-item-selected",!E.isMenuInsideDropDown&&E.nzSelected)("ant-menu-item-danger",!E.isMenuInsideDropDown&&E.nzDanger)("ant-menu-item-disabled",!E.isMenuInsideDropDown&&E.nzDisabled))},inputs:{nzPaddingLeft:"nzPaddingLeft",nzDisabled:"nzDisabled",nzSelected:"nzSelected",nzDanger:"nzDanger",nzMatchRouterExact:"nzMatchRouterExact",nzMatchRouter:"nzMatchRouter"},exportAs:["nzMenuItem"],features:[s.TTD]}),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzDisabled",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzSelected",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzDanger",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzMatchRouterExact",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzMatchRouter",void 0),ce})(),x=(()=>{class ce{constructor(L,E){this.cdr=L,this.directionality=E,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new s.vpe,this.subMenuMouseState=new s.vpe,this.dir="ltr",this.destroy$=new G.xQ}ngOnInit(){var L;this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(L){this.nzDisabled||this.subMenuMouseState.next(L)}clickTitle(){"inline"===this.mode&&!this.nzDisabled&&this.toggleSubMenu.emit()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(s.sBO),s.Y36(vt.Is,8))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(L,E){1&L&&s.NdJ("click",function(){return E.clickTitle()})("mouseenter",function(){return E.setMouseState(!0)})("mouseleave",function(){return E.setMouseState(!1)}),2&L&&(s.Udp("padding-left","rtl"===E.dir?null:E.paddingLeft,"px")("padding-right","rtl"===E.dir?E.paddingLeft:null,"px"),s.ekj("ant-dropdown-menu-submenu-title",E.isMenuInsideDropDown)("ant-menu-submenu-title",!E.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],attrs:J,ngContentSelectors:je,decls:6,vars:4,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch",4,"ngIf","ngIfElse"],["notDropdownTpl",""],["nz-icon","",3,"nzType"],[1,"ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch"],["nz-icon","","nzType","left","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchCase"],["nz-icon","","nzType","right","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nz-icon","","nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"],[1,"ant-menu-submenu-arrow"]],template:function(L,E){if(1&L&&(s.F$t(),s.YNc(0,fe,1,1,"i",0),s.YNc(1,he,3,1,"ng-container",1),s.Hsn(2),s.YNc(3,ie,3,2,"span",2),s.YNc(4,Ue,1,0,"ng-template",null,3,s.W1O)),2&L){const $=s.MAs(5);s.Q6J("ngIf",E.nzIcon),s.xp6(1),s.Q6J("nzStringTemplateOutlet",E.nzTitle),s.xp6(2),s.Q6J("ngIf",E.isMenuInsideDropDown)("ngIfElse",$)}},directives:[$e.O5,et.Ls,Se.f,$e.RF,$e.n9,$e.ED],encapsulation:2,changeDetection:0}),ce})(),z=(()=>{class ce{constructor(L,E,$){this.elementRef=L,this.renderer=E,this.directionality=$,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new G.xQ}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){var L;this.calcMotionState(),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngOnChanges(L){const{mode:E,nzOpen:$,menuClass:ue}=L;(E||$)&&this.calcMotionState(),ue&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(Ae=>!!Ae).forEach(Ae=>{this.renderer.removeClass(this.elementRef.nativeElement,Ae)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(Ae=>!!Ae).forEach(Ae=>{this.renderer.addClass(this.elementRef.nativeElement,Ae)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(vt.Is,8))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(L,E){2&L&&(s.d8E("@collapseMotion",E.expandState),s.ekj("ant-menu-rtl","rtl"===E.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],features:[s.TTD],attrs:tt,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(L,E){1&L&&s.YNc(0,ke,0,0,"ng-template",0),2&L&&s.Q6J("ngTemplateOutlet",E.templateOutlet)},directives:[$e.tP],encapsulation:2,data:{animation:[Xe.J_]},changeDetection:0}),ce})(),P=(()=>{class ce{constructor(L){this.directionality=L,this.menuClass="",this.theme="light",this.templateOutlet=null,this.isMenuInsideDropDown=!1,this.mode="vertical",this.position="right",this.nzDisabled=!1,this.nzOpen=!1,this.subMenuMouseState=new s.vpe,this.expandState="collapsed",this.dir="ltr",this.destroy$=new G.xQ}setMouseState(L){this.nzDisabled||this.subMenuMouseState.next(L)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}calcMotionState(){this.nzOpen?"horizontal"===this.mode?this.expandState="bottom":"vertical"===this.mode&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){var L;this.calcMotionState(),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngOnChanges(L){const{mode:E,nzOpen:$}=L;(E||$)&&this.calcMotionState()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(vt.Is,8))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(L,E){1&L&&s.NdJ("mouseenter",function(){return E.setMouseState(!0)})("mouseleave",function(){return E.setMouseState(!1)}),2&L&&(s.d8E("@slideMotion",E.expandState)("@zoomBigMotion",E.expandState),s.ekj("ant-menu-light","light"===E.theme)("ant-menu-dark","dark"===E.theme)("ant-menu-submenu-placement-bottom","horizontal"===E.mode)("ant-menu-submenu-placement-right","vertical"===E.mode&&"right"===E.position)("ant-menu-submenu-placement-left","vertical"===E.mode&&"left"===E.position)("ant-menu-submenu-rtl","rtl"===E.dir))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],features:[s.TTD],attrs:ve,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(L,E){1&L&&(s.TgZ(0,"div",0),s.YNc(1,mt,0,0,"ng-template",1),s.qZA()),2&L&&(s.ekj("ant-dropdown-menu",E.isMenuInsideDropDown)("ant-menu",!E.isMenuInsideDropDown)("ant-dropdown-menu-vertical",E.isMenuInsideDropDown)("ant-menu-vertical",!E.isMenuInsideDropDown)("ant-dropdown-menu-sub",E.isMenuInsideDropDown)("ant-menu-sub",!E.isMenuInsideDropDown)("ant-menu-rtl","rtl"===E.dir),s.Q6J("ngClass",E.menuClass),s.xp6(1),s.Q6J("ngTemplateOutlet",E.templateOutlet))},directives:[$e.mk,$e.tP],encapsulation:2,data:{animation:[Xe.$C,Xe.mF]},changeDetection:0}),ce})();const pe=[zt.yW.rightTop,zt.yW.right,zt.yW.rightBottom,zt.yW.leftTop,zt.yW.left,zt.yW.leftBottom],j=[zt.yW.bottomLeft];let me=(()=>{class ce{constructor(L,E,$,ue,Ae,wt,At){this.nzMenuService=L,this.cdr=E,this.nzSubmenuService=$,this.platform=ue,this.isMenuInsideDropDown=Ae,this.directionality=wt,this.noAnimation=At,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzOpenChange=new s.vpe,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new G.xQ,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=pe,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}setOpenStateWithoutDebounce(L){this.nzSubmenuService.setOpenStateWithoutDebounce(L)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(L){this.isActive=L,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(L)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(L){const E=(0,zt.d_)(L);"rightTop"===E||"rightBottom"===E||"right"===E?this.position="right":("leftTop"===E||"leftBottom"===E||"left"===E)&&(this.position="left")}ngOnInit(){var L;this.nzMenuService.theme$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.theme=E,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.mode=E,"horizontal"===E?this.overlayPositions=j:"vertical"===E&&(this.overlayPositions=pe),this.cdr.markForCheck()}),(0,_.aj)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,ye.R)(this.destroy$)).subscribe(([E,$])=>{this.inlinePaddingLeft="inline"===E?this.level*$:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.isActive=E,E!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=E,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const L=this.listOfNzMenuItemDirective,E=L.changes,$=(0,q.T)(E,...L.map(ue=>ue.selected$));E.pipe((0,Ye.O)(L),(0,Fe.w)(()=>$),(0,Ye.O)(!0),(0,W.U)(()=>L.some(ue=>ue.nzSelected)),(0,ye.R)(this.destroy$)).subscribe(ue=>{this.isSelected=ue,this.cdr.markForCheck()})}ngOnChanges(L){const{nzOpen:E}=L;E&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(cn),s.Y36(s.sBO),s.Y36(Mn),s.Y36(ut.t4),s.Y36(Dt),s.Y36(vt.Is,8),s.Y36(Ie.P,9))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,ce,5),s.Suo($,qe,5)),2&L){let ue;s.iGM(ue=s.CRH())&&(E.listOfNzSubMenuComponent=ue),s.iGM(ue=s.CRH())&&(E.listOfNzMenuItemDirective=ue)}},viewQuery:function(L,E){if(1&L&&s.Gf(Je.xu,7,s.SBq),2&L){let $;s.iGM($=s.CRH())&&(E.cdkOverlayOrigin=$.first)}},hostVars:34,hostBindings:function(L,E){2&L&&s.ekj("ant-dropdown-menu-submenu",E.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",E.isMenuInsideDropDown&&E.nzDisabled)("ant-dropdown-menu-submenu-open",E.isMenuInsideDropDown&&E.nzOpen)("ant-dropdown-menu-submenu-selected",E.isMenuInsideDropDown&&E.isSelected)("ant-dropdown-menu-submenu-vertical",E.isMenuInsideDropDown&&"vertical"===E.mode)("ant-dropdown-menu-submenu-horizontal",E.isMenuInsideDropDown&&"horizontal"===E.mode)("ant-dropdown-menu-submenu-inline",E.isMenuInsideDropDown&&"inline"===E.mode)("ant-dropdown-menu-submenu-active",E.isMenuInsideDropDown&&E.isActive)("ant-menu-submenu",!E.isMenuInsideDropDown)("ant-menu-submenu-disabled",!E.isMenuInsideDropDown&&E.nzDisabled)("ant-menu-submenu-open",!E.isMenuInsideDropDown&&E.nzOpen)("ant-menu-submenu-selected",!E.isMenuInsideDropDown&&E.isSelected)("ant-menu-submenu-vertical",!E.isMenuInsideDropDown&&"vertical"===E.mode)("ant-menu-submenu-horizontal",!E.isMenuInsideDropDown&&"horizontal"===E.mode)("ant-menu-submenu-inline",!E.isMenuInsideDropDown&&"inline"===E.mode)("ant-menu-submenu-active",!E.isMenuInsideDropDown&&E.isActive)("ant-menu-submenu-rtl","rtl"===E.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:"nzOpen",nzDisabled:"nzDisabled"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[s._Bn([Mn]),s.TTD],attrs:Qe,ngContentSelectors:Zt,decls:8,vars:9,consts:[["nz-submenu-title","","cdkOverlayOrigin","",3,"nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft","subMenuMouseState","toggleSubMenu"],["origin","cdkOverlayOrigin"],[4,"ngIf"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet",4,"ngIf","ngIfElse"],["nonInlineTemplate",""],["subMenuTemplate",""],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn","positionChange"],["nz-submenu-none-inline-child","",3,"theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","templateOutlet","menuClass","nzNoAnimation","subMenuMouseState"]],template:function(L,E){if(1&L&&(s.F$t(Et),s.TgZ(0,"div",0,1),s.NdJ("subMenuMouseState",function(ue){return E.setMouseEnterState(ue)})("toggleSubMenu",function(){return E.toggleSubMenu()}),s.YNc(2,dt,1,0,"ng-content",2),s.qZA(),s.YNc(3,_t,1,6,"div",3),s.YNc(4,St,1,5,"ng-template",null,4,s.W1O),s.YNc(6,ot,1,0,"ng-template",null,5,s.W1O)),2&L){const $=s.MAs(5);s.Q6J("nzIcon",E.nzIcon)("nzTitle",E.nzTitle)("mode",E.mode)("nzDisabled",E.nzDisabled)("isMenuInsideDropDown",E.isMenuInsideDropDown)("paddingLeft",E.nzPaddingLeft||E.inlinePaddingLeft),s.xp6(2),s.Q6J("ngIf",!E.nzTitle),s.xp6(1),s.Q6J("ngIf","inline"===E.mode)("ngIfElse",$)}},directives:[x,z,P,Je.xu,$e.O5,Ie.P,Je.pI],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzOpen",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzDisabled",void 0),ce})();function He(ce,Ne){return ce||Ne}function Ge(ce){return ce||!1}let Le=(()=>{class ce{constructor(L,E,$,ue){this.nzMenuService=L,this.isMenuInsideDropDown=E,this.cdr=$,this.directionality=ue,this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new s.vpe,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new oe.X(this.nzInlineCollapsed),this.mode$=new oe.X(this.nzMode),this.destroy$=new G.xQ,this.listOfOpenedNzSubMenuComponent=[]}setInlineCollapsed(L){this.nzInlineCollapsed=L,this.inlineCollapsed$.next(L)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(L=>L.nzOpen),this.listOfNzSubMenuComponent.forEach(L=>L.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(L=>L.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}ngOnInit(){var L;(0,_.aj)([this.inlineCollapsed$,this.mode$]).pipe((0,ye.R)(this.destroy$)).subscribe(([E,$])=>{this.actualMode=E?"vertical":$,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.nzClick.emit(E),this.nzSelectable&&!E.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach($=>$.setSelectedState($===E))}),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,ye.R)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(L){const{nzInlineCollapsed:E,nzInlineIndent:$,nzTheme:ue,nzMode:Ae}=L;E&&this.inlineCollapsed$.next(this.nzInlineCollapsed),$&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),ue&&this.nzMenuService.setTheme(this.nzTheme),Ae&&(this.mode$.next(this.nzMode),!L.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(wt=>wt.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(cn),s.Y36(Dt),s.Y36(s.sBO),s.Y36(vt.Is,8))},ce.\u0275dir=s.lG2({type:ce,selectors:[["","nz-menu",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,qe,5),s.Suo($,me,5)),2&L){let ue;s.iGM(ue=s.CRH())&&(E.listOfNzMenuItemDirective=ue),s.iGM(ue=s.CRH())&&(E.listOfNzSubMenuComponent=ue)}},hostVars:34,hostBindings:function(L,E){2&L&&s.ekj("ant-dropdown-menu",E.isMenuInsideDropDown)("ant-dropdown-menu-root",E.isMenuInsideDropDown)("ant-dropdown-menu-light",E.isMenuInsideDropDown&&"light"===E.nzTheme)("ant-dropdown-menu-dark",E.isMenuInsideDropDown&&"dark"===E.nzTheme)("ant-dropdown-menu-vertical",E.isMenuInsideDropDown&&"vertical"===E.actualMode)("ant-dropdown-menu-horizontal",E.isMenuInsideDropDown&&"horizontal"===E.actualMode)("ant-dropdown-menu-inline",E.isMenuInsideDropDown&&"inline"===E.actualMode)("ant-dropdown-menu-inline-collapsed",E.isMenuInsideDropDown&&E.nzInlineCollapsed)("ant-menu",!E.isMenuInsideDropDown)("ant-menu-root",!E.isMenuInsideDropDown)("ant-menu-light",!E.isMenuInsideDropDown&&"light"===E.nzTheme)("ant-menu-dark",!E.isMenuInsideDropDown&&"dark"===E.nzTheme)("ant-menu-vertical",!E.isMenuInsideDropDown&&"vertical"===E.actualMode)("ant-menu-horizontal",!E.isMenuInsideDropDown&&"horizontal"===E.actualMode)("ant-menu-inline",!E.isMenuInsideDropDown&&"inline"===E.actualMode)("ant-menu-inline-collapsed",!E.isMenuInsideDropDown&&E.nzInlineCollapsed)("ant-menu-rtl","rtl"===E.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:"nzInlineCollapsed",nzSelectable:"nzSelectable"},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[s._Bn([{provide:Sn,useClass:cn},{provide:cn,useFactory:He,deps:[[new s.tp0,new s.FiY,cn],Sn]},{provide:Dt,useFactory:Ge,deps:[[new s.tp0,new s.FiY,Dt]]}]),s.TTD]}),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzInlineCollapsed",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzSelectable",void 0),ce})(),Be=(()=>{class ce{constructor(L,E){this.elementRef=L,this.renderer=E,this.renderer.addClass(L.nativeElement,"ant-dropdown-menu-item-divider")}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(s.SBq),s.Y36(s.Qsj))},ce.\u0275dir=s.lG2({type:ce,selectors:[["","nz-menu-divider",""]],exportAs:["nzMenuDivider"]}),ce})(),nt=(()=>{class ce{}return ce.\u0275fac=function(L){return new(L||ce)},ce.\u0275mod=s.oAB({type:ce}),ce.\u0275inj=s.cJS({imports:[[vt.vT,$e.ez,ut.ud,Je.U8,et.PV,Ie.g,Se.T]]}),ce})()},9727:(yt,be,p)=>{p.d(be,{Ay:()=>Xe,Gm:()=>Se,XJ:()=>et,gR:()=>Ue,dD:()=>ie});var a=p(7429),s=p(5e3),G=p(8929),oe=p(2198),q=p(2986),_=p(7625),W=p(9439),I=p(1721),R=p(8076),H=p(9808),B=p(647),ee=p(969),ye=p(4090),Ye=p(2845),Fe=p(226);function ze(je,tt){1&je&&s._UZ(0,"i",10)}function _e(je,tt){1&je&&s._UZ(0,"i",11)}function vt(je,tt){1&je&&s._UZ(0,"i",12)}function Je(je,tt){1&je&&s._UZ(0,"i",13)}function zt(je,tt){1&je&&s._UZ(0,"i",14)}function ut(je,tt){if(1&je&&(s.ynx(0),s._UZ(1,"span",15),s.BQk()),2&je){const ke=s.oxw();s.xp6(1),s.Q6J("innerHTML",ke.instance.content,s.oJD)}}function Ie(je,tt){if(1&je){const ke=s.EpF();s.TgZ(0,"nz-message",2),s.NdJ("destroyed",function(mt){return s.CHM(ke),s.oxw().remove(mt.id,mt.userAction)}),s.qZA()}2&je&&s.Q6J("instance",tt.$implicit)}let $e=0;class et{constructor(tt,ke,ve){this.nzSingletonService=tt,this.overlay=ke,this.injector=ve}remove(tt){this.container&&(tt?this.container.remove(tt):this.container.removeAll())}getInstanceId(){return`${this.componentPrefix}-${$e++}`}withContainer(tt){let ke=this.nzSingletonService.getSingletonWithKey(this.componentPrefix);if(ke)return ke;const ve=this.overlay.create({hasBackdrop:!1,scrollStrategy:this.overlay.scrollStrategies.noop(),positionStrategy:this.overlay.position().global()}),mt=new a.C5(tt,null,this.injector),Qe=ve.attach(mt);return ve.overlayElement.style.zIndex="1010",ke||(this.container=ke=Qe.instance,this.nzSingletonService.registerSingletonWithKey(this.componentPrefix,ke)),ke}}let Se=(()=>{class je{constructor(ke,ve){this.cdr=ke,this.nzConfigService=ve,this.instances=[],this.destroy$=new G.xQ,this.updateConfig()}ngOnInit(){this.subscribeConfigChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}create(ke){const ve=this.onCreate(ke);return this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,ve],this.readyInstances(),ve}remove(ke,ve=!1){this.instances.some((mt,Qe)=>mt.messageId===ke&&(this.instances.splice(Qe,1),this.instances=[...this.instances],this.onRemove(mt,ve),this.readyInstances(),!0))}removeAll(){this.instances.forEach(ke=>this.onRemove(ke,!1)),this.instances=[],this.readyInstances()}onCreate(ke){return ke.options=this.mergeOptions(ke.options),ke.onClose=new G.xQ,ke}onRemove(ke,ve){ke.onClose.next(ve),ke.onClose.complete()}readyInstances(){this.cdr.detectChanges()}mergeOptions(ke){const{nzDuration:ve,nzAnimate:mt,nzPauseOnHover:Qe}=this.config;return Object.assign({nzDuration:ve,nzAnimate:mt,nzPauseOnHover:Qe},ke)}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO),s.Y36(W.jY))},je.\u0275dir=s.lG2({type:je}),je})(),Xe=(()=>{class je{constructor(ke){this.cdr=ke,this.destroyed=new s.vpe,this.animationStateChanged=new G.xQ,this.userAction=!1,this.eraseTimer=null}ngOnInit(){this.options=this.instance.options,this.options.nzAnimate&&(this.instance.state="enter",this.animationStateChanged.pipe((0,oe.h)(ke=>"done"===ke.phaseName&&"leave"===ke.toState),(0,q.q)(1)).subscribe(()=>{clearTimeout(this.closeTimer),this.destroyed.next({id:this.instance.messageId,userAction:this.userAction})})),this.autoClose=this.options.nzDuration>0,this.autoClose&&(this.initErase(),this.startEraseTimeout())}ngOnDestroy(){this.autoClose&&this.clearEraseTimeout(),this.animationStateChanged.complete()}onEnter(){this.autoClose&&this.options.nzPauseOnHover&&(this.clearEraseTimeout(),this.updateTTL())}onLeave(){this.autoClose&&this.options.nzPauseOnHover&&this.startEraseTimeout()}destroy(ke=!1){this.userAction=ke,this.options.nzAnimate?(this.instance.state="leave",this.cdr.detectChanges(),this.closeTimer=setTimeout(()=>{this.closeTimer=void 0,this.destroyed.next({id:this.instance.messageId,userAction:ke})},200)):this.destroyed.next({id:this.instance.messageId,userAction:ke})}initErase(){this.eraseTTL=this.options.nzDuration,this.eraseTimingStart=Date.now()}updateTTL(){this.autoClose&&(this.eraseTTL-=Date.now()-this.eraseTimingStart)}startEraseTimeout(){this.eraseTTL>0?(this.clearEraseTimeout(),this.eraseTimer=setTimeout(()=>this.destroy(),this.eraseTTL),this.eraseTimingStart=Date.now()):this.destroy()}clearEraseTimeout(){null!==this.eraseTimer&&(clearTimeout(this.eraseTimer),this.eraseTimer=null)}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO))},je.\u0275dir=s.lG2({type:je}),je})(),J=(()=>{class je extends Xe{constructor(ke){super(ke),this.destroyed=new s.vpe}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO))},je.\u0275cmp=s.Xpm({type:je,selectors:[["nz-message"]],inputs:{instance:"instance"},outputs:{destroyed:"destroyed"},exportAs:["nzMessage"],features:[s.qOj],decls:10,vars:9,consts:[[1,"ant-message-notice",3,"mouseenter","mouseleave"],[1,"ant-message-notice-content"],[1,"ant-message-custom-content",3,"ngClass"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle",4,"ngSwitchCase"],["nz-icon","","nzType","info-circle",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle",4,"ngSwitchCase"],["nz-icon","","nzType","loading",4,"ngSwitchCase"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzType","check-circle"],["nz-icon","","nzType","info-circle"],["nz-icon","","nzType","exclamation-circle"],["nz-icon","","nzType","close-circle"],["nz-icon","","nzType","loading"],[3,"innerHTML"]],template:function(ke,ve){1&ke&&(s.TgZ(0,"div",0),s.NdJ("@moveUpMotion.done",function(Qe){return ve.animationStateChanged.next(Qe)})("mouseenter",function(){return ve.onEnter()})("mouseleave",function(){return ve.onLeave()}),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.ynx(3,3),s.YNc(4,ze,1,0,"i",4),s.YNc(5,_e,1,0,"i",5),s.YNc(6,vt,1,0,"i",6),s.YNc(7,Je,1,0,"i",7),s.YNc(8,zt,1,0,"i",8),s.BQk(),s.YNc(9,ut,2,1,"ng-container",9),s.qZA(),s.qZA(),s.qZA()),2&ke&&(s.Q6J("@moveUpMotion",ve.instance.state),s.xp6(2),s.Q6J("ngClass","ant-message-"+ve.instance.type),s.xp6(1),s.Q6J("ngSwitch",ve.instance.type),s.xp6(1),s.Q6J("ngSwitchCase","success"),s.xp6(1),s.Q6J("ngSwitchCase","info"),s.xp6(1),s.Q6J("ngSwitchCase","warning"),s.xp6(1),s.Q6J("ngSwitchCase","error"),s.xp6(1),s.Q6J("ngSwitchCase","loading"),s.xp6(1),s.Q6J("nzStringTemplateOutlet",ve.instance.content))},directives:[H.mk,H.RF,H.n9,B.Ls,ee.f],encapsulation:2,data:{animation:[R.YK]},changeDetection:0}),je})();const fe="message",he={nzAnimate:!0,nzDuration:3e3,nzMaxStack:7,nzPauseOnHover:!0,nzTop:24,nzDirection:"ltr"};let te=(()=>{class je extends Se{constructor(ke,ve){super(ke,ve),this.dir="ltr";const mt=this.nzConfigService.getConfigForComponent(fe);this.dir=(null==mt?void 0:mt.nzDirection)||"ltr"}subscribeConfigChange(){this.nzConfigService.getConfigChangeEventForComponent(fe).pipe((0,_.R)(this.destroy$)).subscribe(()=>{this.updateConfig();const ke=this.nzConfigService.getConfigForComponent(fe);if(ke){const{nzDirection:ve}=ke;this.dir=ve||this.dir}})}updateConfig(){this.config=Object.assign(Object.assign(Object.assign({},he),this.config),this.nzConfigService.getConfigForComponent(fe)),this.top=(0,I.WX)(this.config.nzTop),this.cdr.markForCheck()}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO),s.Y36(W.jY))},je.\u0275cmp=s.Xpm({type:je,selectors:[["nz-message-container"]],exportAs:["nzMessageContainer"],features:[s.qOj],decls:2,vars:5,consts:[[1,"ant-message"],[3,"instance","destroyed",4,"ngFor","ngForOf"],[3,"instance","destroyed"]],template:function(ke,ve){1&ke&&(s.TgZ(0,"div",0),s.YNc(1,Ie,1,1,"nz-message",1),s.qZA()),2&ke&&(s.Udp("top",ve.top),s.ekj("ant-message-rtl","rtl"===ve.dir),s.xp6(1),s.Q6J("ngForOf",ve.instances))},directives:[J,H.sg],encapsulation:2,changeDetection:0}),je})(),le=(()=>{class je{}return je.\u0275fac=function(ke){return new(ke||je)},je.\u0275mod=s.oAB({type:je}),je.\u0275inj=s.cJS({}),je})(),ie=(()=>{class je extends et{constructor(ke,ve,mt){super(ke,ve,mt),this.componentPrefix="message-"}success(ke,ve){return this.createInstance({type:"success",content:ke},ve)}error(ke,ve){return this.createInstance({type:"error",content:ke},ve)}info(ke,ve){return this.createInstance({type:"info",content:ke},ve)}warning(ke,ve){return this.createInstance({type:"warning",content:ke},ve)}loading(ke,ve){return this.createInstance({type:"loading",content:ke},ve)}create(ke,ve,mt){return this.createInstance({type:ke,content:ve},mt)}createInstance(ke,ve){return this.container=this.withContainer(te),this.container.create(Object.assign(Object.assign({},ke),{createdAt:new Date,messageId:this.getInstanceId(),options:ve}))}}return je.\u0275fac=function(ke){return new(ke||je)(s.LFG(ye.KV),s.LFG(Ye.aV),s.LFG(s.zs3))},je.\u0275prov=s.Yz7({token:je,factory:je.\u0275fac,providedIn:le}),je})(),Ue=(()=>{class je{}return je.\u0275fac=function(ke){return new(ke||je)},je.\u0275mod=s.oAB({type:je}),je.\u0275inj=s.cJS({imports:[[Fe.vT,H.ez,Ye.U8,B.PV,ee.T,le]]}),je})()},5278:(yt,be,p)=>{p.d(be,{L8:()=>je,zb:()=>ke});var a=p(5e3),s=p(8076),G=p(9727),oe=p(9808),q=p(647),_=p(969),W=p(226),I=p(2845),R=p(8929),H=p(7625),B=p(1721),ee=p(9439),ye=p(4090);function Ye(ve,mt){1&ve&&a._UZ(0,"i",16)}function Fe(ve,mt){1&ve&&a._UZ(0,"i",17)}function ze(ve,mt){1&ve&&a._UZ(0,"i",18)}function _e(ve,mt){1&ve&&a._UZ(0,"i",19)}const vt=function(ve){return{"ant-notification-notice-with-icon":ve}};function Je(ve,mt){if(1&ve&&(a.TgZ(0,"div",7),a.TgZ(1,"div",8),a.TgZ(2,"div"),a.ynx(3,9),a.YNc(4,Ye,1,0,"i",10),a.YNc(5,Fe,1,0,"i",11),a.YNc(6,ze,1,0,"i",12),a.YNc(7,_e,1,0,"i",13),a.BQk(),a._UZ(8,"div",14),a._UZ(9,"div",15),a.qZA(),a.qZA(),a.qZA()),2&ve){const Qe=a.oxw();a.xp6(1),a.Q6J("ngClass",a.VKq(10,vt,"blank"!==Qe.instance.type)),a.xp6(1),a.ekj("ant-notification-notice-with-icon","blank"!==Qe.instance.type),a.xp6(1),a.Q6J("ngSwitch",Qe.instance.type),a.xp6(1),a.Q6J("ngSwitchCase","success"),a.xp6(1),a.Q6J("ngSwitchCase","info"),a.xp6(1),a.Q6J("ngSwitchCase","warning"),a.xp6(1),a.Q6J("ngSwitchCase","error"),a.xp6(1),a.Q6J("innerHTML",Qe.instance.title,a.oJD),a.xp6(1),a.Q6J("innerHTML",Qe.instance.content,a.oJD)}}function zt(ve,mt){}function ut(ve,mt){if(1&ve&&(a.ynx(0),a._UZ(1,"i",21),a.BQk()),2&ve){const Qe=mt.$implicit;a.xp6(1),a.Q6J("nzType",Qe)}}function Ie(ve,mt){if(1&ve&&(a.ynx(0),a.YNc(1,ut,2,1,"ng-container",20),a.BQk()),2&ve){const Qe=a.oxw();a.xp6(1),a.Q6J("nzStringTemplateOutlet",null==Qe.instance.options?null:Qe.instance.options.nzCloseIcon)}}function $e(ve,mt){1&ve&&a._UZ(0,"i",22)}const et=function(ve,mt){return{$implicit:ve,data:mt}};function Se(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}function Xe(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}function J(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}function fe(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}let he=(()=>{class ve extends G.Ay{constructor(Qe){super(Qe),this.destroyed=new a.vpe}ngOnDestroy(){super.ngOnDestroy(),this.instance.onClick.complete()}onClick(Qe){this.instance.onClick.next(Qe)}close(){this.destroy(!0)}get state(){return"enter"===this.instance.state?"topLeft"===this.placement||"bottomLeft"===this.placement?"enterLeft":"enterRight":this.instance.state}}return ve.\u0275fac=function(Qe){return new(Qe||ve)(a.Y36(a.sBO))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["nz-notification"]],inputs:{instance:"instance",index:"index",placement:"placement"},outputs:{destroyed:"destroyed"},exportAs:["nzNotification"],features:[a.qOj],decls:8,vars:12,consts:[[1,"ant-notification-notice","ant-notification-notice-closable",3,"ngStyle","ngClass","click","mouseenter","mouseleave"],["class","ant-notification-notice-content",4,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","0",1,"ant-notification-notice-close",3,"click"],[1,"ant-notification-notice-close-x"],[4,"ngIf","ngIfElse"],["iconTpl",""],[1,"ant-notification-notice-content"],[1,"ant-notification-notice-content",3,"ngClass"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle","class","ant-notification-notice-icon ant-notification-notice-icon-success",4,"ngSwitchCase"],["nz-icon","","nzType","info-circle","class","ant-notification-notice-icon ant-notification-notice-icon-info",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle","class","ant-notification-notice-icon ant-notification-notice-icon-warning",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle","class","ant-notification-notice-icon ant-notification-notice-icon-error",4,"ngSwitchCase"],[1,"ant-notification-notice-message",3,"innerHTML"],[1,"ant-notification-notice-description",3,"innerHTML"],["nz-icon","","nzType","check-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-success"],["nz-icon","","nzType","info-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-info"],["nz-icon","","nzType","exclamation-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-warning"],["nz-icon","","nzType","close-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-error"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","close",1,"ant-notification-close-icon"]],template:function(Qe,dt){if(1&Qe&&(a.TgZ(0,"div",0),a.NdJ("@notificationMotion.done",function(it){return dt.animationStateChanged.next(it)})("click",function(it){return dt.onClick(it)})("mouseenter",function(){return dt.onEnter()})("mouseleave",function(){return dt.onLeave()}),a.YNc(1,Je,10,12,"div",1),a.YNc(2,zt,0,0,"ng-template",2),a.TgZ(3,"a",3),a.NdJ("click",function(){return dt.close()}),a.TgZ(4,"span",4),a.YNc(5,Ie,2,1,"ng-container",5),a.YNc(6,$e,1,0,"ng-template",null,6,a.W1O),a.qZA(),a.qZA(),a.qZA()),2&Qe){const _t=a.MAs(7);a.Q6J("ngStyle",(null==dt.instance.options?null:dt.instance.options.nzStyle)||null)("ngClass",(null==dt.instance.options?null:dt.instance.options.nzClass)||"")("@notificationMotion",dt.state),a.xp6(1),a.Q6J("ngIf",!dt.instance.template),a.xp6(1),a.Q6J("ngIf",dt.instance.template)("ngTemplateOutlet",dt.instance.template)("ngTemplateOutletContext",a.WLB(9,et,dt,null==dt.instance.options?null:dt.instance.options.nzData)),a.xp6(3),a.Q6J("ngIf",null==dt.instance.options?null:dt.instance.options.nzCloseIcon)("ngIfElse",_t)}},directives:[oe.PC,oe.mk,oe.O5,oe.RF,oe.n9,q.Ls,oe.tP,_.f],encapsulation:2,data:{animation:[s.LU]}}),ve})();const te="notification",le={nzTop:"24px",nzBottom:"24px",nzPlacement:"topRight",nzDuration:4500,nzMaxStack:7,nzPauseOnHover:!0,nzAnimate:!0,nzDirection:"ltr"};let ie=(()=>{class ve extends G.Gm{constructor(Qe,dt){super(Qe,dt),this.dir="ltr",this.instances=[],this.topLeftInstances=[],this.topRightInstances=[],this.bottomLeftInstances=[],this.bottomRightInstances=[];const _t=this.nzConfigService.getConfigForComponent(te);this.dir=(null==_t?void 0:_t.nzDirection)||"ltr"}create(Qe){const dt=this.onCreate(Qe),_t=dt.options.nzKey,it=this.instances.find(St=>St.options.nzKey===Qe.options.nzKey);return _t&&it?this.replaceNotification(it,dt):(this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,dt]),this.readyInstances(),dt}onCreate(Qe){return Qe.options=this.mergeOptions(Qe.options),Qe.onClose=new R.xQ,Qe.onClick=new R.xQ,Qe}subscribeConfigChange(){this.nzConfigService.getConfigChangeEventForComponent(te).pipe((0,H.R)(this.destroy$)).subscribe(()=>{this.updateConfig();const Qe=this.nzConfigService.getConfigForComponent(te);if(Qe){const{nzDirection:dt}=Qe;this.dir=dt||this.dir}})}updateConfig(){this.config=Object.assign(Object.assign(Object.assign({},le),this.config),this.nzConfigService.getConfigForComponent(te)),this.top=(0,B.WX)(this.config.nzTop),this.bottom=(0,B.WX)(this.config.nzBottom),this.cdr.markForCheck()}replaceNotification(Qe,dt){Qe.title=dt.title,Qe.content=dt.content,Qe.template=dt.template,Qe.type=dt.type,Qe.options=dt.options}readyInstances(){this.topLeftInstances=this.instances.filter(Qe=>"topLeft"===Qe.options.nzPlacement),this.topRightInstances=this.instances.filter(Qe=>"topRight"===Qe.options.nzPlacement||!Qe.options.nzPlacement),this.bottomLeftInstances=this.instances.filter(Qe=>"bottomLeft"===Qe.options.nzPlacement),this.bottomRightInstances=this.instances.filter(Qe=>"bottomRight"===Qe.options.nzPlacement),this.cdr.detectChanges()}mergeOptions(Qe){const{nzDuration:dt,nzAnimate:_t,nzPauseOnHover:it,nzPlacement:St}=this.config;return Object.assign({nzDuration:dt,nzAnimate:_t,nzPauseOnHover:it,nzPlacement:St},Qe)}}return ve.\u0275fac=function(Qe){return new(Qe||ve)(a.Y36(a.sBO),a.Y36(ee.jY))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["nz-notification-container"]],exportAs:["nzNotificationContainer"],features:[a.qOj],decls:8,vars:28,consts:[[1,"ant-notification","ant-notification-topLeft"],[3,"instance","placement","destroyed",4,"ngFor","ngForOf"],[1,"ant-notification","ant-notification-topRight"],[1,"ant-notification","ant-notification-bottomLeft"],[1,"ant-notification","ant-notification-bottomRight"],[3,"instance","placement","destroyed"]],template:function(Qe,dt){1&Qe&&(a.TgZ(0,"div",0),a.YNc(1,Se,1,2,"nz-notification",1),a.qZA(),a.TgZ(2,"div",2),a.YNc(3,Xe,1,2,"nz-notification",1),a.qZA(),a.TgZ(4,"div",3),a.YNc(5,J,1,2,"nz-notification",1),a.qZA(),a.TgZ(6,"div",4),a.YNc(7,fe,1,2,"nz-notification",1),a.qZA()),2&Qe&&(a.Udp("top",dt.top)("left","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.topLeftInstances),a.xp6(1),a.Udp("top",dt.top)("right","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.topRightInstances),a.xp6(1),a.Udp("bottom",dt.bottom)("left","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.bottomLeftInstances),a.xp6(1),a.Udp("bottom",dt.bottom)("right","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.bottomRightInstances))},directives:[he,oe.sg],encapsulation:2,changeDetection:0}),ve})(),Ue=(()=>{class ve{}return ve.\u0275fac=function(Qe){return new(Qe||ve)},ve.\u0275mod=a.oAB({type:ve}),ve.\u0275inj=a.cJS({}),ve})(),je=(()=>{class ve{}return ve.\u0275fac=function(Qe){return new(Qe||ve)},ve.\u0275mod=a.oAB({type:ve}),ve.\u0275inj=a.cJS({imports:[[W.vT,oe.ez,I.U8,q.PV,_.T,Ue]]}),ve})(),tt=0,ke=(()=>{class ve extends G.XJ{constructor(Qe,dt,_t){super(Qe,dt,_t),this.componentPrefix="notification-"}success(Qe,dt,_t){return this.createInstance({type:"success",title:Qe,content:dt},_t)}error(Qe,dt,_t){return this.createInstance({type:"error",title:Qe,content:dt},_t)}info(Qe,dt,_t){return this.createInstance({type:"info",title:Qe,content:dt},_t)}warning(Qe,dt,_t){return this.createInstance({type:"warning",title:Qe,content:dt},_t)}blank(Qe,dt,_t){return this.createInstance({type:"blank",title:Qe,content:dt},_t)}create(Qe,dt,_t,it){return this.createInstance({type:Qe,title:dt,content:_t},it)}template(Qe,dt){return this.createInstance({template:Qe},dt)}generateMessageId(){return`${this.componentPrefix}-${tt++}`}createInstance(Qe,dt){return this.container=this.withContainer(ie),this.container.create(Object.assign(Object.assign({},Qe),{createdAt:new Date,messageId:this.generateMessageId(),options:dt}))}}return ve.\u0275fac=function(Qe){return new(Qe||ve)(a.LFG(ye.KV),a.LFG(I.aV),a.LFG(a.zs3))},ve.\u0275prov=a.Yz7({token:ve,factory:ve.\u0275fac,providedIn:Ue}),ve})()},7525:(yt,be,p)=>{p.d(be,{W:()=>J,j:()=>fe});var a=p(655),s=p(5e3),G=p(8929),oe=p(591),q=p(5647),_=p(8723),W=p(1177);class R{constructor(te){this.durationSelector=te}call(te,le){return le.subscribe(new H(te,this.durationSelector))}}class H extends W.Ds{constructor(te,le){super(te),this.durationSelector=le,this.hasValue=!1}_next(te){try{const le=this.durationSelector.call(this,te);le&&this._tryNext(te,le)}catch(le){this.destination.error(le)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(te,le){let ie=this.durationSubscription;this.value=te,this.hasValue=!0,ie&&(ie.unsubscribe(),this.remove(ie)),ie=(0,W.ft)(le,new W.IY(this)),ie&&!ie.closed&&this.add(this.durationSubscription=ie)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const te=this.value,le=this.durationSubscription;le&&(this.durationSubscription=void 0,le.unsubscribe(),this.remove(le)),this.value=void 0,this.hasValue=!1,super._next(te)}}}var B=p(1059),ee=p(5778),ye=p(7545),Ye=p(7625),Fe=p(9439),ze=p(1721),_e=p(226),vt=p(9808),Je=p(7144);function zt(he,te){1&he&&(s.TgZ(0,"span",3),s._UZ(1,"i",4),s._UZ(2,"i",4),s._UZ(3,"i",4),s._UZ(4,"i",4),s.qZA())}function ut(he,te){}function Ie(he,te){if(1&he&&(s.TgZ(0,"div",8),s._uU(1),s.qZA()),2&he){const le=s.oxw(2);s.xp6(1),s.Oqu(le.nzTip)}}function $e(he,te){if(1&he&&(s.TgZ(0,"div"),s.TgZ(1,"div",5),s.YNc(2,ut,0,0,"ng-template",6),s.YNc(3,Ie,2,1,"div",7),s.qZA(),s.qZA()),2&he){const le=s.oxw(),ie=s.MAs(1);s.xp6(1),s.ekj("ant-spin-rtl","rtl"===le.dir)("ant-spin-spinning",le.isLoading)("ant-spin-lg","large"===le.nzSize)("ant-spin-sm","small"===le.nzSize)("ant-spin-show-text",le.nzTip),s.xp6(1),s.Q6J("ngTemplateOutlet",le.nzIndicator||ie),s.xp6(1),s.Q6J("ngIf",le.nzTip)}}function et(he,te){if(1&he&&(s.TgZ(0,"div",9),s.Hsn(1),s.qZA()),2&he){const le=s.oxw();s.ekj("ant-spin-blur",le.isLoading)}}const Se=["*"];let J=(()=>{class he{constructor(le,ie,Ue){this.nzConfigService=le,this.cdr=ie,this.directionality=Ue,this._nzModuleName="spin",this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new G.xQ,this.spinning$=new oe.X(this.nzSpinning),this.delay$=new q.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){var le;this.delay$.pipe((0,B.O)(this.nzDelay),(0,ee.x)(),(0,ye.w)(Ue=>0===Ue?this.spinning$:this.spinning$.pipe(function I(he){return te=>te.lift(new R(he))}(je=>(0,_.H)(je?Ue:0)))),(0,Ye.R)(this.destroy$)).subscribe(Ue=>{this.isLoading=Ue,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent("spin").pipe((0,Ye.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),null===(le=this.directionality.change)||void 0===le||le.pipe((0,Ye.R)(this.destroy$)).subscribe(Ue=>{this.dir=Ue,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(le){const{nzSpinning:ie,nzDelay:Ue}=le;ie&&this.spinning$.next(this.nzSpinning),Ue&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return he.\u0275fac=function(le){return new(le||he)(s.Y36(Fe.jY),s.Y36(s.sBO),s.Y36(_e.Is,8))},he.\u0275cmp=s.Xpm({type:he,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(le,ie){2&le&&s.ekj("ant-spin-nested-loading",!ie.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[s.TTD],ngContentSelectors:Se,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(le,ie){1&le&&(s.F$t(),s.YNc(0,zt,5,0,"ng-template",null,0,s.W1O),s.YNc(2,$e,4,12,"div",1),s.YNc(3,et,2,2,"div",2)),2&le&&(s.xp6(2),s.Q6J("ngIf",ie.isLoading),s.xp6(1),s.Q6J("ngIf",!ie.nzSimple))},directives:[vt.O5,vt.tP],encapsulation:2}),(0,a.gn)([(0,Fe.oS)()],he.prototype,"nzIndicator",void 0),(0,a.gn)([(0,ze.Rn)()],he.prototype,"nzDelay",void 0),(0,a.gn)([(0,ze.yF)()],he.prototype,"nzSimple",void 0),(0,a.gn)([(0,ze.yF)()],he.prototype,"nzSpinning",void 0),he})(),fe=(()=>{class he{}return he.\u0275fac=function(le){return new(le||he)},he.\u0275mod=s.oAB({type:he}),he.\u0275inj=s.cJS({imports:[[_e.vT,vt.ez,Je.Q8]]}),he})()},404:(yt,be,p)=>{p.d(be,{cg:()=>et,SY:()=>Ie});var a=p(655),s=p(5e3),G=p(8076),oe=p(8693),q=p(1721),_=p(8929),W=p(5778),I=p(7625),R=p(6950),H=p(4832),B=p(9439),ee=p(226),ye=p(2845),Ye=p(9808),Fe=p(969);const ze=["overlay"];function _e(Se,Xe){if(1&Se&&(s.ynx(0),s._uU(1),s.BQk()),2&Se){const J=s.oxw(2);s.xp6(1),s.Oqu(J.nzTitle)}}function vt(Se,Xe){if(1&Se&&(s.TgZ(0,"div",2),s.TgZ(1,"div",3),s.TgZ(2,"div",4),s._UZ(3,"span",5),s.qZA(),s.TgZ(4,"div",6),s.YNc(5,_e,2,1,"ng-container",7),s.qZA(),s.qZA(),s.qZA()),2&Se){const J=s.oxw();s.ekj("ant-tooltip-rtl","rtl"===J.dir),s.Q6J("ngClass",J._classMap)("ngStyle",J.nzOverlayStyle)("@.disabled",null==J.noAnimation?null:J.noAnimation.nzNoAnimation)("nzNoAnimation",null==J.noAnimation?null:J.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),s.xp6(3),s.Q6J("ngStyle",J._contentStyleMap),s.xp6(1),s.Q6J("ngStyle",J._contentStyleMap),s.xp6(1),s.Q6J("nzStringTemplateOutlet",J.nzTitle)("nzStringTemplateOutletContext",J.nzTitleContext)}}let Je=(()=>{class Se{constructor(J,fe,he,te,le,ie){this.elementRef=J,this.hostView=fe,this.resolver=he,this.renderer=te,this.noAnimation=le,this.nzConfigService=ie,this.visibleChange=new s.vpe,this.internalVisible=!1,this.destroy$=new _.xQ,this.triggerDisposables=[]}get _title(){return this.title||this.directiveTitle||null}get _content(){return this.content||this.directiveContent||null}get _trigger(){return void 0!==this.trigger?this.trigger:"hover"}get _placement(){const J=this.placement;return Array.isArray(J)&&J.length>0?J:"string"==typeof J&&J?[J]:["top"]}get _visible(){return(void 0!==this.visible?this.visible:this.internalVisible)||!1}get _mouseEnterDelay(){return this.mouseEnterDelay||.15}get _mouseLeaveDelay(){return this.mouseLeaveDelay||.1}get _overlayClassName(){return this.overlayClassName||null}get _overlayStyle(){return this.overlayStyle||null}getProxyPropertyMap(){return{noAnimation:["noAnimation",()=>!!this.noAnimation]}}ngOnChanges(J){const{trigger:fe}=J;fe&&!fe.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(J)}ngAfterViewInit(){this.createComponent(),this.registerTriggers()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.clearTogglingTimer(),this.removeTriggerListeners()}show(){var J;null===(J=this.component)||void 0===J||J.show()}hide(){var J;null===(J=this.component)||void 0===J||J.hide()}updatePosition(){this.component&&this.component.updatePosition()}createComponent(){const J=this.componentRef;this.component=J.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),J.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties(),this.component.nzVisibleChange.pipe((0,W.x)(),(0,I.R)(this.destroy$)).subscribe(fe=>{this.internalVisible=fe,this.visibleChange.emit(fe)})}registerTriggers(){const J=this.elementRef.nativeElement,fe=this.trigger;if(this.removeTriggerListeners(),"hover"===fe){let he;this.triggerDisposables.push(this.renderer.listen(J,"mouseenter",()=>{this.delayEnterLeave(!0,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(J,"mouseleave",()=>{var te;this.delayEnterLeave(!0,!1,this._mouseLeaveDelay),(null===(te=this.component)||void 0===te?void 0:te.overlay.overlayRef)&&!he&&(he=this.component.overlay.overlayRef.overlayElement,this.triggerDisposables.push(this.renderer.listen(he,"mouseenter",()=>{this.delayEnterLeave(!1,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(he,"mouseleave",()=>{this.delayEnterLeave(!1,!1,this._mouseLeaveDelay)})))}))}else"focus"===fe?(this.triggerDisposables.push(this.renderer.listen(J,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(J,"focusout",()=>this.hide()))):"click"===fe&&this.triggerDisposables.push(this.renderer.listen(J,"click",he=>{he.preventDefault(),this.show()}))}updatePropertiesByChanges(J){this.updatePropertiesByKeys(Object.keys(J))}updatePropertiesByKeys(J){var fe;const he=Object.assign({title:["nzTitle",()=>this._title],directiveTitle:["nzTitle",()=>this._title],content:["nzContent",()=>this._content],directiveContent:["nzContent",()=>this._content],trigger:["nzTrigger",()=>this._trigger],placement:["nzPlacement",()=>this._placement],visible:["nzVisible",()=>this._visible],mouseEnterDelay:["nzMouseEnterDelay",()=>this._mouseEnterDelay],mouseLeaveDelay:["nzMouseLeaveDelay",()=>this._mouseLeaveDelay],overlayClassName:["nzOverlayClassName",()=>this._overlayClassName],overlayStyle:["nzOverlayStyle",()=>this._overlayStyle],arrowPointAtCenter:["nzArrowPointAtCenter",()=>this.arrowPointAtCenter]},this.getProxyPropertyMap());(J||Object.keys(he).filter(te=>!te.startsWith("directive"))).forEach(te=>{if(he[te]){const[le,ie]=he[te];this.updateComponentValue(le,ie())}}),null===(fe=this.component)||void 0===fe||fe.updateByDirective()}initProperties(){this.updatePropertiesByKeys()}updateComponentValue(J,fe){void 0!==fe&&(this.component[J]=fe)}delayEnterLeave(J,fe,he=-1){this.delayTimer?this.clearTogglingTimer():he>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,fe?this.show():this.hide()},1e3*he):fe&&J?this.show():this.hide()}removeTriggerListeners(){this.triggerDisposables.forEach(J=>J()),this.triggerDisposables.length=0}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(s._Vd),s.Y36(s.Qsj),s.Y36(H.P),s.Y36(B.jY))},Se.\u0275dir=s.lG2({type:Se,features:[s.TTD]}),Se})(),zt=(()=>{class Se{constructor(J,fe,he){this.cdr=J,this.directionality=fe,this.noAnimation=he,this.nzTitle=null,this.nzContent=null,this.nzArrowPointAtCenter=!1,this.nzOverlayStyle={},this.nzBackdrop=!1,this.nzVisibleChange=new _.xQ,this._visible=!1,this._trigger="hover",this.preferredPlacement="top",this.dir="ltr",this._classMap={},this._prefix="ant-tooltip",this._positions=[...R.Ek],this.destroy$=new _.xQ}set nzVisible(J){const fe=(0,q.sw)(J);this._visible!==fe&&(this._visible=fe,this.nzVisibleChange.next(fe))}get nzVisible(){return this._visible}set nzTrigger(J){this._trigger=J}get nzTrigger(){return this._trigger}set nzPlacement(J){const fe=J.map(he=>R.yW[he]);this._positions=[...fe,...R.Ek]}ngOnInit(){var J;null===(J=this.directionality.change)||void 0===J||J.pipe((0,I.R)(this.destroy$)).subscribe(fe=>{this.dir=fe,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.nzVisibleChange.complete(),this.destroy$.next(),this.destroy$.complete()}show(){this.nzVisible||(this.isEmpty()||(this.nzVisible=!0,this.nzVisibleChange.next(!0),this.cdr.detectChanges()),this.origin&&this.overlay&&this.overlay.overlayRef&&"rtl"===this.overlay.overlayRef.getDirection()&&this.overlay.overlayRef.setDirection("ltr"))}hide(){!this.nzVisible||(this.nzVisible=!1,this.nzVisibleChange.next(!1),this.cdr.detectChanges())}updateByDirective(){this.updateStyles(),this.cdr.detectChanges(),Promise.resolve().then(()=>{this.updatePosition(),this.updateVisibilityByTitle()})}updatePosition(){this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.updatePosition()}onPositionChange(J){this.preferredPlacement=(0,R.d_)(J),this.updateStyles(),this.cdr.detectChanges()}setOverlayOrigin(J){this.origin=J,this.cdr.markForCheck()}onClickOutside(J){!this.origin.nativeElement.contains(J.target)&&null!==this.nzTrigger&&this.hide()}updateVisibilityByTitle(){this.isEmpty()&&this.hide()}updateStyles(){this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0}}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.sBO),s.Y36(ee.Is,8),s.Y36(H.P))},Se.\u0275dir=s.lG2({type:Se,viewQuery:function(J,fe){if(1&J&&s.Gf(ze,5),2&J){let he;s.iGM(he=s.CRH())&&(fe.overlay=he.first)}}}),Se})(),Ie=(()=>{class Se extends Je{constructor(J,fe,he,te,le){super(J,fe,he,te,le),this.titleContext=null,this.trigger="hover",this.placement="top",this.visibleChange=new s.vpe,this.componentRef=this.hostView.createComponent($e)}getProxyPropertyMap(){return Object.assign(Object.assign({},super.getProxyPropertyMap()),{nzTooltipColor:["nzColor",()=>this.nzTooltipColor],nzTooltipTitleContext:["nzTitleContext",()=>this.titleContext]})}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(s._Vd),s.Y36(s.Qsj),s.Y36(H.P,9))},Se.\u0275dir=s.lG2({type:Se,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(J,fe){2&J&&s.ekj("ant-tooltip-open",fe.visible)},inputs:{title:["nzTooltipTitle","title"],titleContext:["nzTooltipTitleContext","titleContext"],directiveTitle:["nz-tooltip","directiveTitle"],trigger:["nzTooltipTrigger","trigger"],placement:["nzTooltipPlacement","placement"],origin:["nzTooltipOrigin","origin"],visible:["nzTooltipVisible","visible"],mouseEnterDelay:["nzTooltipMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:["nzTooltipMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:["nzTooltipOverlayClassName","overlayClassName"],overlayStyle:["nzTooltipOverlayStyle","overlayStyle"],arrowPointAtCenter:["nzTooltipArrowPointAtCenter","arrowPointAtCenter"],nzTooltipColor:"nzTooltipColor"},outputs:{visibleChange:"nzTooltipVisibleChange"},exportAs:["nzTooltip"],features:[s.qOj]}),(0,a.gn)([(0,q.yF)()],Se.prototype,"arrowPointAtCenter",void 0),Se})(),$e=(()=>{class Se extends zt{constructor(J,fe,he){super(J,fe,he),this.nzTitle=null,this.nzTitleContext=null,this._contentStyleMap={}}isEmpty(){return function ut(Se){return!(Se instanceof s.Rgc||""!==Se&&(0,q.DX)(Se))}(this.nzTitle)}updateStyles(){const J=this.nzColor&&(0,oe.o2)(this.nzColor);this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0,[`${this._prefix}-${this.nzColor}`]:J},this._contentStyleMap={backgroundColor:this.nzColor&&!J?this.nzColor:null}}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.sBO),s.Y36(ee.Is,8),s.Y36(H.P,9))},Se.\u0275cmp=s.Xpm({type:Se,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],features:[s.qOj],decls:2,vars:5,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayPush","nzArrowPointAtCenter","overlayOutsideClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-tooltip",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-tooltip-content"],[1,"ant-tooltip-arrow"],[1,"ant-tooltip-arrow-content",3,"ngStyle"],[1,"ant-tooltip-inner",3,"ngStyle"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"]],template:function(J,fe){1&J&&(s.YNc(0,vt,6,11,"ng-template",0,1,s.W1O),s.NdJ("overlayOutsideClick",function(te){return fe.onClickOutside(te)})("detach",function(){return fe.hide()})("positionChange",function(te){return fe.onPositionChange(te)})),2&J&&s.Q6J("cdkConnectedOverlayOrigin",fe.origin)("cdkConnectedOverlayOpen",fe._visible)("cdkConnectedOverlayPositions",fe._positions)("cdkConnectedOverlayPush",!0)("nzArrowPointAtCenter",fe.nzArrowPointAtCenter)},directives:[ye.pI,R.hQ,Ye.mk,Ye.PC,H.P,Fe.f],encapsulation:2,data:{animation:[G.$C]},changeDetection:0}),Se})(),et=(()=>{class Se{}return Se.\u0275fac=function(J){return new(J||Se)},Se.\u0275mod=s.oAB({type:Se}),Se.\u0275inj=s.cJS({imports:[[ee.vT,Ye.ez,ye.U8,Fe.T,R.e4,H.g]]}),Se})()}},yt=>{yt(yt.s=434)}]); \ No newline at end of file +"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[179],{4704:(yt,be,p)=>{p.d(be,{g:()=>a});var a=(()=>{return(s=a||(a={})).KEEP_POSITION="KEEP_POSITION",s.GO_TO_TOP="GO_TO_TOP",a;var s})()},2323:(yt,be,p)=>{p.d(be,{V:()=>s});var a=p(5e3);let s=(()=>{class G{constructor(){this.impl=localStorage}hasData(q){return null!==this.getData(q)}getData(q){return this.impl.getItem(q)}setData(q,_){this.impl.setItem(q,_)}removeData(q){this.impl.removeItem(q)}clearData(){this.impl.clear()}}return G.\u0275fac=function(q){return new(q||G)},G.\u0275prov=a.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"}),G})()},2340:(yt,be,p)=>{p.d(be,{N:()=>s});const s={production:!0,apiUrl:"",webSocketUrl:"",ngxLoggerLevel:p(2306)._z.DEBUG,traceRouterScrolling:!1}},434:(yt,be,p)=>{var a=p(2313),s=p(5e3),G=p(4182),oe=p(520),q=p(5113),_=p(6360),W=p(9808);const I=void 0,H=["zh",[["\u4e0a\u5348","\u4e0b\u5348"],I,I],I,[["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"]],I,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],["\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"]],I,[["\u516c\u5143\u524d","\u516c\u5143"],I,I],0,[6,0],["y/M/d","y\u5e74M\u6708d\u65e5",I,"y\u5e74M\u6708d\u65e5EEEE"],["ah:mm","ah:mm:ss","z ah:mm:ss","zzzz ah:mm:ss"],["{1} {0}",I,I,I],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"CNY","\xa5","\u4eba\u6c11\u5e01",{AUD:["AU$","$"],CNY:["\xa5"],ILR:["ILS"],JPY:["JP\xa5","\xa5"],KRW:["\uffe6","\u20a9"],PHP:[I,"\u20b1"],TWD:["NT$"],USD:["US$","$"],XXX:[]},"ltr",function R(Te){return 5}];var B=p(8514),ee=p(1737),ye=p(3753),Ye=p(1086),Fe=p(1961),ze=p(8929),_e=p(6498),vt=p(7876);const Je=new _e.y(vt.Z);var ut=p(6787),Ie=p(4850),$e=p(2198),et=p(7545),Se=p(2536),J=p(2986),fe=p(2994),he=p(8583);const te="Service workers are disabled or not supported by this browser";class ie{constructor(Ze){if(this.serviceWorker=Ze,Ze){const rt=(0,ye.R)(Ze,"controllerchange").pipe((0,Ie.U)(()=>Ze.controller)),Wt=(0,B.P)(()=>(0,Ye.of)(Ze.controller)),on=(0,Fe.z)(Wt,rt);this.worker=on.pipe((0,$e.h)(Rn=>!!Rn)),this.registration=this.worker.pipe((0,et.w)(()=>Ze.getRegistration()));const Nn=(0,ye.R)(Ze,"message").pipe((0,Ie.U)(Rn=>Rn.data)).pipe((0,$e.h)(Rn=>Rn&&Rn.type)).pipe(function Xe(Te){return Te?(0,Se.O)(()=>new ze.xQ,Te):(0,Se.O)(new ze.xQ)}());Nn.connect(),this.events=Nn}else this.worker=this.events=this.registration=function le(Te){return(0,B.P)(()=>(0,ee._)(new Error(Te)))}(te)}postMessage(Ze,De){return this.worker.pipe((0,J.q)(1),(0,fe.b)(rt=>{rt.postMessage(Object.assign({action:Ze},De))})).toPromise().then(()=>{})}postMessageWithOperation(Ze,De,rt){const Wt=this.waitForOperationCompleted(rt),on=this.postMessage(Ze,De);return Promise.all([on,Wt]).then(([,Lt])=>Lt)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(Ze){let De;return De="string"==typeof Ze?rt=>rt.type===Ze:rt=>Ze.includes(rt.type),this.events.pipe((0,$e.h)(De))}nextEventOfType(Ze){return this.eventsOfType(Ze).pipe((0,J.q)(1))}waitForOperationCompleted(Ze){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,$e.h)(De=>De.nonce===Ze),(0,J.q)(1),(0,Ie.U)(De=>{if(void 0!==De.result)return De.result;throw new Error(De.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let Ue=(()=>{class Te{constructor(De){if(this.sw=De,this.subscriptionChanges=new ze.xQ,!De.isEnabled)return this.messages=Je,this.notificationClicks=Je,void(this.subscription=Je);this.messages=this.sw.eventsOfType("PUSH").pipe((0,Ie.U)(Wt=>Wt.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,Ie.U)(Wt=>Wt.data)),this.pushManager=this.sw.registration.pipe((0,Ie.U)(Wt=>Wt.pushManager));const rt=this.pushManager.pipe((0,et.w)(Wt=>Wt.getSubscription()));this.subscription=(0,ut.T)(rt,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(De){if(!this.sw.isEnabled)return Promise.reject(new Error(te));const rt={userVisibleOnly:!0};let Wt=this.decodeBase64(De.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),on=new Uint8Array(new ArrayBuffer(Wt.length));for(let Lt=0;LtLt.subscribe(rt)),(0,J.q)(1)).toPromise().then(Lt=>(this.subscriptionChanges.next(Lt),Lt))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,J.q)(1),(0,et.w)(rt=>{if(null===rt)throw new Error("Not subscribed to push notifications.");return rt.unsubscribe().then(Wt=>{if(!Wt)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(te))}decodeBase64(De){return atob(De)}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(ie))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),je=(()=>{class Te{constructor(De){if(this.sw=De,!De.isEnabled)return this.versionUpdates=Je,this.available=Je,this.activated=Je,void(this.unrecoverable=Je);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY"]),this.available=this.versionUpdates.pipe((0,$e.h)(rt=>"VERSION_READY"===rt.type),(0,Ie.U)(rt=>({type:"UPDATE_AVAILABLE",current:rt.currentVersion,available:rt.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(te));const De=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:De},De)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(te));const De=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:De},De)}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(ie))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class tt{}const ke=new s.OlP("NGSW_REGISTER_SCRIPT");function ve(Te,Ze,De,rt){return()=>{if(!(0,W.NF)(rt)||!("serviceWorker"in navigator)||!1===De.enabled)return;let on;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof De.registrationStrategy)on=De.registrationStrategy();else{const[Un,...$n]=(De.registrationStrategy||"registerWhenStable:30000").split(":");switch(Un){case"registerImmediately":on=(0,Ye.of)(null);break;case"registerWithDelay":on=mt(+$n[0]||0);break;case"registerWhenStable":on=$n[0]?(0,ut.T)(Qe(Te),mt(+$n[0])):Qe(Te);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${De.registrationStrategy}`)}}Te.get(s.R0b).runOutsideAngular(()=>on.pipe((0,J.q)(1)).subscribe(()=>navigator.serviceWorker.register(Ze,{scope:De.scope}).catch(Un=>console.error("Service worker registration failed with:",Un))))}}function mt(Te){return(0,Ye.of)(null).pipe((0,he.g)(Te))}function Qe(Te){return Te.get(s.z2F).isStable.pipe((0,$e.h)(De=>De))}function dt(Te,Ze){return new ie((0,W.NF)(Ze)&&!1!==Te.enabled?navigator.serviceWorker:void 0)}let _t=(()=>{class Te{static register(De,rt={}){return{ngModule:Te,providers:[{provide:ke,useValue:De},{provide:tt,useValue:rt},{provide:ie,useFactory:dt,deps:[tt,s.Lbi]},{provide:s.ip1,useFactory:ve,deps:[s.zs3,ke,tt,s.Lbi],multi:!0}]}}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({providers:[Ue,je]}),Te})();var it=p(2306),St=p(4170),ot=p(7625),Et=p(655),Zt=p(4090),mn=p(1721),gn=p(4219),Ut=p(925),un=p(647),_n=p(226);const Cn=["*"],Dt=["nz-sider-trigger",""];function Sn(Te,Ze){}function cn(Te,Ze){if(1&Te&&(s.ynx(0),s.YNc(1,Sn,0,0,"ng-template",3),s.BQk()),2&Te){const De=s.oxw(),rt=s.MAs(5);s.xp6(1),s.Q6J("ngTemplateOutlet",De.nzZeroTrigger||rt)}}function Mn(Te,Ze){}function qe(Te,Ze){if(1&Te&&(s.ynx(0),s.YNc(1,Mn,0,0,"ng-template",3),s.BQk()),2&Te){const De=s.oxw(),rt=s.MAs(3);s.xp6(1),s.Q6J("ngTemplateOutlet",De.nzTrigger||rt)}}function x(Te,Ze){if(1&Te&&s._UZ(0,"i",5),2&Te){const De=s.oxw(2);s.Q6J("nzType",De.nzCollapsed?"right":"left")}}function z(Te,Ze){if(1&Te&&s._UZ(0,"i",5),2&Te){const De=s.oxw(2);s.Q6J("nzType",De.nzCollapsed?"left":"right")}}function P(Te,Ze){if(1&Te&&(s.YNc(0,x,1,1,"i",4),s.YNc(1,z,1,1,"i",4)),2&Te){const De=s.oxw();s.Q6J("ngIf",!De.nzReverseArrow),s.xp6(1),s.Q6J("ngIf",De.nzReverseArrow)}}function pe(Te,Ze){1&Te&&s._UZ(0,"i",6)}function j(Te,Ze){if(1&Te){const De=s.EpF();s.TgZ(0,"div",2),s.NdJ("click",function(){s.CHM(De);const Wt=s.oxw();return Wt.setCollapsed(!Wt.nzCollapsed)}),s.qZA()}if(2&Te){const De=s.oxw();s.Q6J("matchBreakPoint",De.matchBreakPoint)("nzCollapsedWidth",De.nzCollapsedWidth)("nzCollapsed",De.nzCollapsed)("nzBreakpoint",De.nzBreakpoint)("nzReverseArrow",De.nzReverseArrow)("nzTrigger",De.nzTrigger)("nzZeroTrigger",De.nzZeroTrigger)("siderWidth",De.widthSetting)}}let me=(()=>{class Te{constructor(De,rt){this.elementRef=De,this.renderer=rt,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(s.SBq),s.Y36(s.Qsj))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-content"]],exportAs:["nzContent"],ngContentSelectors:Cn,decls:1,vars:0,template:function(De,rt){1&De&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Ge=(()=>{class Te{constructor(De,rt){this.elementRef=De,this.renderer=rt,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(s.SBq),s.Y36(s.Qsj))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-header"]],exportAs:["nzHeader"],ngContentSelectors:Cn,decls:1,vars:0,template:function(De,rt){1&De&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Le=(()=>{class Te{constructor(){this.nzCollapsed=!1,this.nzReverseArrow=!1,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.matchBreakPoint=!1,this.nzCollapsedWidth=null,this.siderWidth=null,this.nzBreakpoint=null,this.isZeroTrigger=!1,this.isNormalTrigger=!1}updateTriggerType(){this.isZeroTrigger=0===this.nzCollapsedWidth&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=0!==this.nzCollapsedWidth}ngOnInit(){this.updateTriggerType()}ngOnChanges(){this.updateTriggerType()}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(De,rt){2&De&&(s.Udp("width",rt.isNormalTrigger?rt.siderWidth:null),s.ekj("ant-layout-sider-trigger",rt.isNormalTrigger)("ant-layout-sider-zero-width-trigger",rt.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",rt.isZeroTrigger&&rt.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",rt.isZeroTrigger&&!rt.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[s.TTD],attrs:Dt,decls:6,vars:2,consts:[[4,"ngIf"],["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","bars"]],template:function(De,rt){1&De&&(s.YNc(0,cn,2,1,"ng-container",0),s.YNc(1,qe,2,1,"ng-container",0),s.YNc(2,P,2,2,"ng-template",null,1,s.W1O),s.YNc(4,pe,1,0,"ng-template",null,2,s.W1O)),2&De&&(s.Q6J("ngIf",rt.isZeroTrigger),s.xp6(1),s.Q6J("ngIf",rt.isNormalTrigger))},directives:[W.O5,W.tP,un.Ls],encapsulation:2,changeDetection:0}),Te})(),Me=(()=>{class Te{constructor(De,rt,Wt){this.platform=De,this.cdr=rt,this.breakpointService=Wt,this.destroy$=new ze.xQ,this.nzMenuDirective=null,this.nzCollapsedChange=new s.vpe,this.nzWidth=200,this.nzTheme="dark",this.nzCollapsedWidth=80,this.nzBreakpoint=null,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.nzReverseArrow=!1,this.nzCollapsible=!1,this.nzCollapsed=!1,this.matchBreakPoint=!1,this.flexSetting=null,this.widthSetting=null}updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:(0,mn.WX)(this.nzWidth),this.flexSetting=`0 0 ${this.widthSetting}`,this.cdr.markForCheck()}updateMenuInlineCollapsed(){this.nzMenuDirective&&"inline"===this.nzMenuDirective.nzMode&&0!==this.nzCollapsedWidth&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)}setCollapsed(De){De!==this.nzCollapsed&&(this.nzCollapsed=De,this.nzCollapsedChange.emit(De),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(Zt.ow,!0).pipe((0,ot.R)(this.destroy$)).subscribe(De=>{const rt=this.nzBreakpoint;rt&&(0,mn.ov)().subscribe(()=>{this.matchBreakPoint=!De[rt],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(De){const{nzCollapsed:rt,nzCollapsedWidth:Wt,nzWidth:on}=De;(rt||Wt||on)&&this.updateStyleMap(),rt&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(Ut.t4),s.Y36(s.sBO),s.Y36(Zt.r3))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-sider"]],contentQueries:function(De,rt,Wt){if(1&De&&s.Suo(Wt,gn.wO,5),2&De){let on;s.iGM(on=s.CRH())&&(rt.nzMenuDirective=on.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(De,rt){2&De&&(s.Udp("flex",rt.flexSetting)("max-width",rt.widthSetting)("min-width",rt.widthSetting)("width",rt.widthSetting),s.ekj("ant-layout-sider-zero-width",rt.nzCollapsed&&0===rt.nzCollapsedWidth)("ant-layout-sider-light","light"===rt.nzTheme)("ant-layout-sider-dark","dark"===rt.nzTheme)("ant-layout-sider-collapsed",rt.nzCollapsed)("ant-layout-sider-has-trigger",rt.nzCollapsible&&null!==rt.nzTrigger))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:"nzReverseArrow",nzCollapsible:"nzCollapsible",nzCollapsed:"nzCollapsed"},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],features:[s.TTD],ngContentSelectors:Cn,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click",4,"ngIf"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click"]],template:function(De,rt){1&De&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA(),s.YNc(2,j,1,8,"div",1)),2&De&&(s.xp6(2),s.Q6J("ngIf",rt.nzCollapsible&&null!==rt.nzTrigger))},directives:[Le,W.O5],encapsulation:2,changeDetection:0}),(0,Et.gn)([(0,mn.yF)()],Te.prototype,"nzReverseArrow",void 0),(0,Et.gn)([(0,mn.yF)()],Te.prototype,"nzCollapsible",void 0),(0,Et.gn)([(0,mn.yF)()],Te.prototype,"nzCollapsed",void 0),Te})(),V=(()=>{class Te{constructor(De){this.directionality=De,this.dir="ltr",this.destroy$=new ze.xQ}ngOnInit(){var De;this.dir=this.directionality.value,null===(De=this.directionality.change)||void 0===De||De.pipe((0,ot.R)(this.destroy$)).subscribe(rt=>{this.dir=rt})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(_n.Is,8))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-layout"]],contentQueries:function(De,rt,Wt){if(1&De&&s.Suo(Wt,Me,4),2&De){let on;s.iGM(on=s.CRH())&&(rt.listOfNzSiderComponent=on)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(De,rt){2&De&&s.ekj("ant-layout-rtl","rtl"===rt.dir)("ant-layout-has-sider",rt.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:Cn,decls:1,vars:0,template:function(De,rt){1&De&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Be=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[_n.vT,W.ez,un.PV,q.xu,Ut.ud]]}),Te})();var nt=p(4147),ce=p(404);let Ae=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[_n.vT,W.ez,Ut.ud,un.PV]]}),Te})();var wt=p(7525),At=p(9727),Qt=p(5278),vn=p(2302);let Vn=(()=>{class Te{constructor(){}ngOnInit(){}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["app-page-not-found"]],decls:5,vars:0,consts:[[1,"content"],["src","assets/images/bili-404.png","all","\u80a5\u80a0\u62b1\u6b49\uff0c\u4f60\u8981\u627e\u7684\u9875\u9762\u4e0d\u89c1\u4e86"],[1,"btn-wrapper"],["href","/",1,"goback-btn"]],template:function(De,rt){1&De&&(s.TgZ(0,"div",0),s._UZ(1,"img",1),s.TgZ(2,"div",2),s.TgZ(3,"a",3),s._uU(4,"\u8fd4\u56de\u9996\u9875"),s.qZA(),s.qZA(),s.qZA())},styles:[".content[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:980px}.content[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.content[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] .goback-btn[_ngcontent-%COMP%]{display:inline-block;padding:0 20px;border-radius:4px;font-size:16px;line-height:40px;text-align:center;vertical-align:middle;color:#fff;background:#00a1d6;transition:.3s;cursor:pointer}.content[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] .goback-btn[_ngcontent-%COMP%]:hover{background:#00b5e5}"],changeDetection:0}),Te})();const ri=[{path:"tasks",loadChildren:()=>Promise.all([p.e(146),p.e(66),p.e(183)]).then(p.bind(p,3183)).then(Te=>Te.TasksModule)},{path:"settings",loadChildren:()=>Promise.all([p.e(146),p.e(66),p.e(592),p.e(474)]).then(p.bind(p,4474)).then(Te=>Te.SettingsModule),data:{scrollBehavior:p(4704).g.KEEP_POSITION}},{path:"about",loadChildren:()=>Promise.all([p.e(146),p.e(592),p.e(103)]).then(p.bind(p,5103)).then(Te=>Te.AboutModule)},{path:"",pathMatch:"full",redirectTo:"/tasks"},{path:"**",component:Vn}];let jn=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[vn.Bz.forRoot(ri,{preloadingStrategy:vn.wm})],vn.Bz]}),Te})();function qt(Te,Ze){if(1&Te&&s.GkF(0,11),2&Te){s.oxw();const De=s.MAs(3);s.Q6J("ngTemplateOutlet",De)}}function Re(Te,Ze){if(1&Te){const De=s.EpF();s.TgZ(0,"nz-sider",12),s.NdJ("nzCollapsedChange",function(Wt){return s.CHM(De),s.oxw().collapsed=Wt}),s.TgZ(1,"a",13),s.TgZ(2,"div",14),s.TgZ(3,"div",15),s._UZ(4,"img",16),s.qZA(),s.TgZ(5,"h1",17),s._uU(6),s.qZA(),s.qZA(),s.qZA(),s.TgZ(7,"nav",18),s.TgZ(8,"ul",19),s.TgZ(9,"li",20),s._UZ(10,"i",21),s.TgZ(11,"span"),s.TgZ(12,"a",22),s._uU(13,"\u4efb\u52a1"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(14,"li",20),s._UZ(15,"i",23),s.TgZ(16,"span"),s.TgZ(17,"a",24),s._uU(18,"\u8bbe\u7f6e"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(19,"li",20),s._UZ(20,"i",25),s.TgZ(21,"span"),s.TgZ(22,"a",26),s._uU(23,"\u5173\u4e8e"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&Te){const De=s.oxw();s.Q6J("nzTheme",De.theme)("nzTrigger",null)("nzCollapsedWidth",57)("nzCollapsed",De.collapsed),s.xp6(2),s.ekj("collapsed",De.collapsed),s.xp6(4),s.Oqu(De.title),s.xp6(2),s.Q6J("nzTheme",De.theme)("nzInlineCollapsed",De.collapsed),s.xp6(1),s.Q6J("nzTooltipTitle",De.collapsed?"\u4efb\u52a1":""),s.xp6(5),s.Q6J("nzTooltipTitle",De.collapsed?"\u8bbe\u7f6e":""),s.xp6(5),s.Q6J("nzTooltipTitle",De.collapsed?"\u5173\u4e8e":"")}}function we(Te,Ze){if(1&Te&&s._UZ(0,"nz-spin",27),2&Te){const De=s.oxw();s.Q6J("nzSize","large")("nzSpinning",De.loading)}}function ae(Te,Ze){if(1&Te&&(s.ynx(0),s.TgZ(1,"nz-layout"),s.GkF(2,11),s.qZA(),s.BQk()),2&Te){s.oxw(2);const De=s.MAs(3);s.xp6(2),s.Q6J("ngTemplateOutlet",De)}}const Ve=function(){return{padding:"0",overflow:"hidden"}};function ht(Te,Ze){if(1&Te){const De=s.EpF();s.TgZ(0,"nz-drawer",28),s.NdJ("nzOnClose",function(){return s.CHM(De),s.oxw().collapsed=!0}),s.YNc(1,ae,3,1,"ng-container",29),s.qZA()}if(2&Te){const De=s.oxw();s.Q6J("nzBodyStyle",s.DdM(3,Ve))("nzClosable",!1)("nzVisible",!De.collapsed)}}let It=(()=>{class Te{constructor(De,rt,Wt){this.title="B \u7ad9\u76f4\u64ad\u5f55\u5236",this.theme="light",this.loading=!1,this.collapsed=!1,this.useDrawer=!1,this.destroyed=new ze.xQ,De.events.subscribe(on=>{on instanceof vn.OD?(this.loading=!0,this.useDrawer&&(this.collapsed=!0)):on instanceof vn.m2&&(this.loading=!1)}),Wt.observe(q.u3.XSmall).pipe((0,ot.R)(this.destroyed)).subscribe(on=>{this.useDrawer=on.matches,this.useDrawer&&(this.collapsed=!0),rt.markForCheck()}),Wt.observe("(max-width: 1036px)").pipe((0,ot.R)(this.destroyed)).subscribe(on=>{this.collapsed=on.matches,rt.markForCheck()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(vn.F0),s.Y36(s.sBO),s.Y36(q.Yg))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["app-root"]],decls:15,vars:4,consts:[[3,"ngTemplateOutlet",4,"ngIf"],["sider",""],[1,"app-header"],[1,"sidebar-trigger"],["nz-icon","",3,"nzType","click"],[1,"icon-actions"],["href","https://github.com/acgnhiki/blrec","title","GitHub","target","_blank",1,"external-link"],["nz-icon","","nzType","github"],[1,"main-content"],["class","spinner",3,"nzSize","nzSpinning",4,"ngIf"],["nzWidth","200px","nzPlacement","left",3,"nzBodyStyle","nzClosable","nzVisible","nzOnClose",4,"ngIf"],[3,"ngTemplateOutlet"],["nzCollapsible","",1,"sidebar",3,"nzTheme","nzTrigger","nzCollapsedWidth","nzCollapsed","nzCollapsedChange"],["href","/","title","Home","alt","Home"],[1,"sidebar-header"],[1,"app-logo-container"],["alt","Logo","src","assets/images/logo.png",1,"app-logo"],[1,"app-title"],[1,"sidebar-menu"],["nz-menu","","nzMode","inline",3,"nzTheme","nzInlineCollapsed"],["nz-menu-item","","nzMatchRouter","true","nz-tooltip","","nzTooltipPlacement","right",3,"nzTooltipTitle"],["nz-icon","","nzType","unordered-list","nzTheme","outline"],["routerLink","/tasks"],["nz-icon","","nzType","setting","nzTheme","outline"],["routerLink","/settings"],["nz-icon","","nzType","info-circle","nzTheme","outline"],["routerLink","/about"],[1,"spinner",3,"nzSize","nzSpinning"],["nzWidth","200px","nzPlacement","left",3,"nzBodyStyle","nzClosable","nzVisible","nzOnClose"],[4,"nzDrawerContent"]],template:function(De,rt){1&De&&(s.TgZ(0,"nz-layout"),s.YNc(1,qt,1,1,"ng-container",0),s.YNc(2,Re,24,12,"ng-template",null,1,s.W1O),s.TgZ(4,"nz-layout"),s.TgZ(5,"nz-header",2),s.TgZ(6,"div",3),s.TgZ(7,"i",4),s.NdJ("click",function(){return rt.collapsed=!rt.collapsed}),s.qZA(),s.qZA(),s.TgZ(8,"div",5),s.TgZ(9,"a",6),s._UZ(10,"i",7),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"nz-content",8),s.YNc(12,we,1,2,"nz-spin",9),s._UZ(13,"router-outlet"),s.qZA(),s.qZA(),s.qZA(),s.YNc(14,ht,2,4,"nz-drawer",10)),2&De&&(s.xp6(1),s.Q6J("ngIf",!rt.useDrawer),s.xp6(6),s.Q6J("nzType",rt.collapsed?"menu-unfold":"menu-fold"),s.xp6(5),s.Q6J("ngIf",rt.loading),s.xp6(2),s.Q6J("ngIf",rt.useDrawer))},directives:[V,W.O5,W.tP,Me,gn.wO,gn.r9,ce.SY,un.Ls,vn.yS,Ge,me,wt.W,vn.lC,nt.Vz,nt.SQ],styles:[".spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{--app-header-height: 56px;--app-logo-size: 32px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[_nghost-%COMP%] > nz-layout[_ngcontent-%COMP%]{height:100%;width:100%}.sidebar[_ngcontent-%COMP%]{--app-header-height: 56px;--app-logo-size: 32px;position:relative;z-index:10;min-height:100vh;border-right:1px solid #f0f0f0}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%]{display:flex;align-items:center;height:var(--app-header-height);overflow:hidden}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .app-logo-container[_ngcontent-%COMP%]{flex:none;width:var(--app-header-height);height:var(--app-header-height);display:flex;align-items:center;justify-content:center}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .app-logo-container[_ngcontent-%COMP%] .app-logo[_ngcontent-%COMP%]{width:var(--app-logo-size);height:var(--app-logo-size)}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .app-title[_ngcontent-%COMP%]{font-family:Avenir,Helvetica Neue,Arial,Helvetica,sans-serif;font-size:1rem;font-weight:600;margin:0;overflow:hidden;white-space:nowrap;text-overflow:clip;opacity:1;transition-property:width,opacity;transition-duration:.3s;transition-timing-function:cubic-bezier(.645,.045,.355,1)}.sidebar[_ngcontent-%COMP%] .sidebar-header.collapsed[_ngcontent-%COMP%] .app-title[_ngcontent-%COMP%]{opacity:0}.sidebar[_ngcontent-%COMP%] .sidebar-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{width:100%}.app-header[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;width:100%;height:var(--app-header-height);margin:0;padding:0;z-index:2;background:#fff;box-shadow:0 1px 4px #00152914}.app-header[_ngcontent-%COMP%] .sidebar-trigger[_ngcontent-%COMP%]{--icon-size: 20px;display:flex;align-items:center;justify-content:center;height:100%;width:var(--app-header-height);cursor:pointer;transition:all .3s,padding 0s}.app-header[_ngcontent-%COMP%] .sidebar-trigger[_ngcontent-%COMP%]:hover{color:#1890ff}.app-header[_ngcontent-%COMP%] .sidebar-trigger[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:var(--icon-size)}.app-header[_ngcontent-%COMP%] .icon-actions[_ngcontent-%COMP%]{--icon-size: 24px;display:flex;align-items:center;justify-content:center;height:100%;margin-left:auto;margin-right:calc((var(--app-header-height) - var(--icon-size)) / 2)}.app-header[_ngcontent-%COMP%] .icon-actions[_ngcontent-%COMP%] .external-link[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;color:#000}.app-header[_ngcontent-%COMP%] .icon-actions[_ngcontent-%COMP%] .external-link[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:var(--icon-size)}.main-content[_ngcontent-%COMP%]{overflow:hidden}"],changeDetection:0}),Te})(),jt=(()=>{class Te{constructor(De){if(De)throw new Error("You should import core module only in the root module")}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(Te,12))},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[W.ez]]}),Te})();var fn=p(9193);const Pn=[fn.LBP,fn._ry,fn.Ej7,fn.WH2];let si=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({providers:[{provide:un.sV,useValue:Pn}],imports:[[un.PV],un.PV]}),Te})();var Zn=p(2340),ii=p(7221),En=p(9973),ei=p(2323);const Ln="app-api-key";let Tt=(()=>{class Te{constructor(De){this.storage=De}hasApiKey(){return this.storage.hasData(Ln)}getApiKey(){var De;return null!==(De=this.storage.getData(Ln))&&void 0!==De?De:""}setApiKey(De){this.storage.setData(Ln,De)}removeApiKey(){this.storage.removeData(Ln)}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(ei.V))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})();const bn=[{provide:oe.TP,useClass:(()=>{class Te{constructor(De){this.auth=De}intercept(De,rt){return rt.handle(De.clone({setHeaders:{"X-API-KEY":this.auth.getApiKey()}})).pipe((0,ii.K)(Wt=>{var on;if(401===Wt.status){this.auth.hasApiKey()&&this.auth.removeApiKey();const Lt=null!==(on=window.prompt("API Key:"))&&void 0!==on?on:"";this.auth.setApiKey(Lt)}throw Wt}),(0,En.X)(3))}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(Tt))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),multi:!0}];(0,W.qS)(H);let Qn=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te,bootstrap:[It]}),Te.\u0275inj=s.cJS({providers:[{provide:St.u7,useValue:St.bF},bn],imports:[[a.b2,jn,G.u5,oe.JF,q.xu,_.PW,_t.register("ngsw-worker.js",{enabled:Zn.N.production,registrationStrategy:"registerWhenStable:30000"}),Be,nt.BL,gn.ip,ce.cg,Ae,wt.j,At.gR,Qt.L8,si,it.f9.forRoot({level:Zn.N.ngxLoggerLevel}),jt]]}),Te})();Zn.N.production&&(0,s.G48)(),a.q6().bootstrapModule(Qn).catch(Te=>console.error(Te))},2306:(yt,be,p)=>{p.d(be,{f9:()=>_e,Kf:()=>Xe,_z:()=>Je});var a=p(9808),s=p(5e3),G=p(520),oe=p(2198),q=p(4850),_=p(9973),W=p(5154),I=p(7221),R=p(7545),H={},B={};function ee(te){for(var le=[],ie=0,Ue=0,je=0;je>>=1,le.push(ve?0===Ue?-2147483648:-Ue:Ue),Ue=ie=0}}return le}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(te,le){H[te]=le,B[le]=te});var Fe=p(1086);class ze{}let _e=(()=>{class te{static forRoot(ie){return{ngModule:te,providers:[{provide:ze,useValue:ie||{}}]}}static forChild(){return{ngModule:te}}}return te.\u0275fac=function(ie){return new(ie||te)},te.\u0275mod=s.oAB({type:te}),te.\u0275inj=s.cJS({providers:[a.uU],imports:[[a.ez]]}),te})(),vt=(()=>{class te{constructor(ie){this.httpBackend=ie}logOnServer(ie,Ue,je){const tt=new G.aW("POST",ie,Ue,je||{});return this.httpBackend.handle(tt).pipe((0,oe.h)(ke=>ke instanceof G.Zn),(0,q.U)(ke=>ke.body))}}return te.\u0275fac=function(ie){return new(ie||te)(s.LFG(G.jN))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(G.jN))},token:te,providedIn:"root"}),te})();var Je=(()=>{return(te=Je||(Je={}))[te.TRACE=0]="TRACE",te[te.DEBUG=1]="DEBUG",te[te.INFO=2]="INFO",te[te.LOG=3]="LOG",te[te.WARN=4]="WARN",te[te.ERROR=5]="ERROR",te[te.FATAL=6]="FATAL",te[te.OFF=7]="OFF",Je;var te})();class zt{constructor(le){this.config=le,this._config=le}get level(){return this._config.level}get serverLogLevel(){return this._config.serverLogLevel}updateConfig(le){this._config=this._clone(le)}getConfig(){return this._clone(this._config)}_clone(le){const ie=new ze;return Object.keys(le).forEach(Ue=>{ie[Ue]=le[Ue]}),ie}}const ut=["purple","teal","gray","gray","red","red","red"];class Ie{static prepareMetaString(le,ie,Ue,je){return`${le} ${ie}${Ue?` [${Ue}:${je}]`:""}`}static getColor(le,ie){switch(le){case Je.TRACE:return this.getColorFromConfig(Je.TRACE,ie);case Je.DEBUG:return this.getColorFromConfig(Je.DEBUG,ie);case Je.INFO:return this.getColorFromConfig(Je.INFO,ie);case Je.LOG:return this.getColorFromConfig(Je.LOG,ie);case Je.WARN:return this.getColorFromConfig(Je.WARN,ie);case Je.ERROR:return this.getColorFromConfig(Je.ERROR,ie);case Je.FATAL:return this.getColorFromConfig(Je.FATAL,ie);default:return}}static getColorFromConfig(le,ie){return ie?ie[le]:ut[le]}static prepareMessage(le){try{"string"!=typeof le&&!(le instanceof Error)&&(le=JSON.stringify(le,null,2))}catch(ie){le='The provided "message" value could not be parsed with JSON.stringify().'}return le}static prepareAdditionalParameters(le){return null==le?null:le.map((ie,Ue)=>{try{return"object"==typeof ie&&JSON.stringify(ie),ie}catch(je){return`The additional[${Ue}] value could not be parsed using JSON.stringify().`}})}}class $e{constructor(le,ie,Ue){this.fileName=le,this.lineNumber=ie,this.columnNumber=Ue}toString(){return this.fileName+":"+this.lineNumber+":"+this.columnNumber}}let et=(()=>{class te{constructor(ie){this.httpBackend=ie,this.sourceMapCache=new Map,this.logPositionCache=new Map}static getStackLine(ie){const Ue=new Error;try{throw Ue}catch(je){try{let tt=4;return Ue.stack.split("\n")[0].includes(".js:")||(tt+=1),Ue.stack.split("\n")[tt+(ie||0)]}catch(tt){return null}}}static getPosition(ie){const Ue=ie.lastIndexOf("/");let je=ie.indexOf(")");je<0&&(je=void 0);const ke=ie.substring(Ue+1,je).split(":");return 3===ke.length?new $e(ke[0],+ke[1],+ke[2]):new $e("unknown",0,0)}static getTranspileLocation(ie){let Ue=ie.indexOf("(");Ue<0&&(Ue=ie.lastIndexOf("@"),Ue<0&&(Ue=ie.lastIndexOf(" ")));let je=ie.indexOf(")");return je<0&&(je=void 0),ie.substring(Ue+1,je)}static getMapFilePath(ie){const Ue=te.getTranspileLocation(ie),je=Ue.substring(0,Ue.lastIndexOf(":"));return je.substring(0,je.lastIndexOf(":"))+".map"}static getMapping(ie,Ue){let je=0,tt=0,ke=0;const ve=ie.mappings.split(";");for(let mt=0;mt=4&&(Qe+=it[0],je+=it[1],tt+=it[2],ke+=it[3]),mt===Ue.lineNumber){if(Qe===Ue.columnNumber)return new $e(ie.sources[je],tt,ke);if(_t+1===dt.length)return new $e(ie.sources[je],tt,0)}}}return new $e("unknown",0,0)}_getSourceMap(ie,Ue){const je=new G.aW("GET",ie),tt=Ue.toString();if(this.logPositionCache.has(tt))return this.logPositionCache.get(tt);this.sourceMapCache.has(ie)||this.sourceMapCache.set(ie,this.httpBackend.handle(je).pipe((0,oe.h)(ve=>ve instanceof G.Zn),(0,q.U)(ve=>ve.body),(0,_.X)(3),(0,W.d)(1)));const ke=this.sourceMapCache.get(ie).pipe((0,q.U)(ve=>te.getMapping(ve,Ue)),(0,I.K)(()=>(0,Fe.of)(Ue)),(0,W.d)(1));return this.logPositionCache.set(tt,ke),ke}getCallerDetails(ie,Ue){const je=te.getStackLine(Ue);return je?(0,Fe.of)([te.getPosition(je),te.getMapFilePath(je)]).pipe((0,R.w)(([tt,ke])=>ie?this._getSourceMap(ke,tt):(0,Fe.of)(tt))):(0,Fe.of)(new $e("",0,0))}}return te.\u0275fac=function(ie){return new(ie||te)(s.LFG(G.jN))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(G.jN))},token:te,providedIn:"root"}),te})();const Se=["TRACE","DEBUG","INFO","LOG","WARN","ERROR","FATAL","OFF"];let Xe=(()=>{class te{constructor(ie,Ue,je,tt,ke){this.mapperService=ie,this.httpService=Ue,this.platformId=tt,this.datePipe=ke,this._withCredentials=!1,this._isIE=(0,a.NF)(tt)&&navigator&&navigator.userAgent&&!(-1===navigator.userAgent.indexOf("MSIE")&&!navigator.userAgent.match(/Trident\//)&&!navigator.userAgent.match(/Edge\//)),this.config=new zt(je),this._logFunc=this._isIE?this._logIE.bind(this):this._logModern.bind(this)}get level(){return this.config.level}get serverLogLevel(){return this.config.serverLogLevel}trace(ie,...Ue){this._log(Je.TRACE,ie,Ue)}debug(ie,...Ue){this._log(Je.DEBUG,ie,Ue)}info(ie,...Ue){this._log(Je.INFO,ie,Ue)}log(ie,...Ue){this._log(Je.LOG,ie,Ue)}warn(ie,...Ue){this._log(Je.WARN,ie,Ue)}error(ie,...Ue){this._log(Je.ERROR,ie,Ue)}fatal(ie,...Ue){this._log(Je.FATAL,ie,Ue)}setCustomHttpHeaders(ie){this._customHttpHeaders=ie}setCustomParams(ie){this._customParams=ie}setWithCredentialsOptionValue(ie){this._withCredentials=ie}registerMonitor(ie){this._loggerMonitor=ie}updateConfig(ie){this.config.updateConfig(ie)}getConfigSnapshot(){return this.config.getConfig()}_logIE(ie,Ue,je,tt){switch(tt=tt||[],ie){case Je.WARN:console.warn(`${Ue} `,je,...tt);break;case Je.ERROR:case Je.FATAL:console.error(`${Ue} `,je,...tt);break;case Je.INFO:console.info(`${Ue} `,je,...tt);break;default:console.log(`${Ue} `,je,...tt)}}_logModern(ie,Ue,je,tt){const ke=this.getConfigSnapshot().colorScheme,ve=Ie.getColor(ie,ke);switch(tt=tt||[],ie){case Je.WARN:console.warn(`%c${Ue}`,`color:${ve}`,je,...tt);break;case Je.ERROR:case Je.FATAL:console.error(`%c${Ue}`,`color:${ve}`,je,...tt);break;case Je.INFO:console.info(`%c${Ue}`,`color:${ve}`,je,...tt);break;case Je.DEBUG:console.debug(`%c${Ue}`,`color:${ve}`,je,...tt);break;default:console.log(`%c${Ue}`,`color:${ve}`,je,...tt)}}_log(ie,Ue,je=[],tt=!0){const ke=this.config.getConfig(),ve=tt&&ke.serverLoggingUrl&&ie>=ke.serverLogLevel,mt=ie>=ke.level;if(!Ue||!ve&&!mt)return;const Qe=Se[ie];Ue="function"==typeof Ue?Ue():Ue;const dt=Ie.prepareAdditionalParameters(je),_t=ke.timestampFormat?this.datePipe.transform(new Date,ke.timestampFormat):(new Date).toISOString();this.mapperService.getCallerDetails(ke.enableSourceMaps,ke.proxiedSteps).subscribe(it=>{const St={message:Ie.prepareMessage(Ue),additional:dt,level:ie,timestamp:_t,fileName:it.fileName,lineNumber:it.lineNumber.toString()};if(this._loggerMonitor&&mt&&this._loggerMonitor.onLog(St),ve){St.message=Ue instanceof Error?Ue.stack:Ue,St.message=Ie.prepareMessage(St.message);const ot=this._customHttpHeaders||new G.WM;ot.set("Content-Type","application/json");const Et={headers:ot,params:this._customParams||new G.LE,responseType:ke.httpResponseType||"json",withCredentials:this._withCredentials};this.httpService.logOnServer(ke.serverLoggingUrl,St,Et).subscribe(Zt=>{},Zt=>{this._log(Je.ERROR,`FAILED TO LOG ON SERVER: ${Ue}`,[Zt],!1)})}if(mt&&!ke.disableConsoleLogging){const ot=Ie.prepareMetaString(_t,Qe,ke.disableFileDetails?null:it.fileName,it.lineNumber.toString());return this._logFunc(ie,ot,Ue,je)}})}}return te.\u0275fac=function(ie){return new(ie||te)(s.LFG(et),s.LFG(vt),s.LFG(ze),s.LFG(s.Lbi),s.LFG(a.uU))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(et),(0,s.LFG)(vt),(0,s.LFG)(ze),(0,s.LFG)(s.Lbi),(0,s.LFG)(a.uU))},token:te,providedIn:"root"}),te})()},591:(yt,be,p)=>{p.d(be,{X:()=>G});var a=p(8929),s=p(5279);class G extends a.xQ{constructor(q){super(),this._value=q}get value(){return this.getValue()}_subscribe(q){const _=super._subscribe(q);return _&&!_.closed&&q.next(this._value),_}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(q){super.next(this._value=q)}}},9312:(yt,be,p)=>{p.d(be,{P:()=>q});var a=p(8896),s=p(1086),G=p(1737);class q{constructor(W,I,R){this.kind=W,this.value=I,this.error=R,this.hasValue="N"===W}observe(W){switch(this.kind){case"N":return W.next&&W.next(this.value);case"E":return W.error&&W.error(this.error);case"C":return W.complete&&W.complete()}}do(W,I,R){switch(this.kind){case"N":return W&&W(this.value);case"E":return I&&I(this.error);case"C":return R&&R()}}accept(W,I,R){return W&&"function"==typeof W.next?this.observe(W):this.do(W,I,R)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,G._)(this.error);case"C":return(0,a.c)()}throw new Error("unexpected notification kind value")}static createNext(W){return void 0!==W?new q("N",W):q.undefinedValueNotification}static createError(W){return new q("E",void 0,W)}static createComplete(){return q.completeNotification}}q.completeNotification=new q("C"),q.undefinedValueNotification=new q("N",void 0)},6498:(yt,be,p)=>{p.d(be,{y:()=>R});var a=p(3489),G=p(7668),oe=p(3292),_=p(3821),W=p(4843),I=p(2830);let R=(()=>{class B{constructor(ye){this._isScalar=!1,ye&&(this._subscribe=ye)}lift(ye){const Ye=new B;return Ye.source=this,Ye.operator=ye,Ye}subscribe(ye,Ye,Fe){const{operator:ze}=this,_e=function q(B,ee,ye){if(B){if(B instanceof a.L)return B;if(B[G.b])return B[G.b]()}return B||ee||ye?new a.L(B,ee,ye):new a.L(oe.c)}(ye,Ye,Fe);if(_e.add(ze?ze.call(_e,this.source):this.source||I.v.useDeprecatedSynchronousErrorHandling&&!_e.syncErrorThrowable?this._subscribe(_e):this._trySubscribe(_e)),I.v.useDeprecatedSynchronousErrorHandling&&_e.syncErrorThrowable&&(_e.syncErrorThrowable=!1,_e.syncErrorThrown))throw _e.syncErrorValue;return _e}_trySubscribe(ye){try{return this._subscribe(ye)}catch(Ye){I.v.useDeprecatedSynchronousErrorHandling&&(ye.syncErrorThrown=!0,ye.syncErrorValue=Ye),function s(B){for(;B;){const{closed:ee,destination:ye,isStopped:Ye}=B;if(ee||Ye)return!1;B=ye&&ye instanceof a.L?ye:null}return!0}(ye)?ye.error(Ye):console.warn(Ye)}}forEach(ye,Ye){return new(Ye=H(Ye))((Fe,ze)=>{let _e;_e=this.subscribe(vt=>{try{ye(vt)}catch(Je){ze(Je),_e&&_e.unsubscribe()}},ze,Fe)})}_subscribe(ye){const{source:Ye}=this;return Ye&&Ye.subscribe(ye)}[_.L](){return this}pipe(...ye){return 0===ye.length?this:(0,W.U)(ye)(this)}toPromise(ye){return new(ye=H(ye))((Ye,Fe)=>{let ze;this.subscribe(_e=>ze=_e,_e=>Fe(_e),()=>Ye(ze))})}}return B.create=ee=>new B(ee),B})();function H(B){if(B||(B=I.v.Promise||Promise),!B)throw new Error("no Promise impl found");return B}},3292:(yt,be,p)=>{p.d(be,{c:()=>G});var a=p(2830),s=p(2782);const G={closed:!0,next(oe){},error(oe){if(a.v.useDeprecatedSynchronousErrorHandling)throw oe;(0,s.z)(oe)},complete(){}}},826:(yt,be,p)=>{p.d(be,{L:()=>s});var a=p(3489);class s extends a.L{notifyNext(oe,q,_,W,I){this.destination.next(q)}notifyError(oe,q){this.destination.error(oe)}notifyComplete(oe){this.destination.complete()}}},5647:(yt,be,p)=>{p.d(be,{t:()=>ee});var a=p(8929),s=p(6686),oe=p(2268);const W=new class q extends oe.v{}(class G extends s.o{constructor(Fe,ze){super(Fe,ze),this.scheduler=Fe,this.work=ze}schedule(Fe,ze=0){return ze>0?super.schedule(Fe,ze):(this.delay=ze,this.state=Fe,this.scheduler.flush(this),this)}execute(Fe,ze){return ze>0||this.closed?super.execute(Fe,ze):this._execute(Fe,ze)}requestAsyncId(Fe,ze,_e=0){return null!==_e&&_e>0||null===_e&&this.delay>0?super.requestAsyncId(Fe,ze,_e):Fe.flush(this)}});var I=p(2654),R=p(7770),H=p(5279),B=p(5283);class ee extends a.xQ{constructor(Fe=Number.POSITIVE_INFINITY,ze=Number.POSITIVE_INFINITY,_e){super(),this.scheduler=_e,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=Fe<1?1:Fe,this._windowTime=ze<1?1:ze,ze===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(Fe){if(!this.isStopped){const ze=this._events;ze.push(Fe),ze.length>this._bufferSize&&ze.shift()}super.next(Fe)}nextTimeWindow(Fe){this.isStopped||(this._events.push(new ye(this._getNow(),Fe)),this._trimBufferThenGetEvents()),super.next(Fe)}_subscribe(Fe){const ze=this._infiniteTimeWindow,_e=ze?this._events:this._trimBufferThenGetEvents(),vt=this.scheduler,Je=_e.length;let zt;if(this.closed)throw new H.N;if(this.isStopped||this.hasError?zt=I.w.EMPTY:(this.observers.push(Fe),zt=new B.W(this,Fe)),vt&&Fe.add(Fe=new R.ht(Fe,vt)),ze)for(let ut=0;utze&&(zt=Math.max(zt,Je-ze)),zt>0&&vt.splice(0,zt),vt}}class ye{constructor(Fe,ze){this.time=Fe,this.value=ze}}},8929:(yt,be,p)=>{p.d(be,{Yc:()=>W,xQ:()=>I});var a=p(6498),s=p(3489),G=p(2654),oe=p(5279),q=p(5283),_=p(7668);class W extends s.L{constructor(B){super(B),this.destination=B}}let I=(()=>{class H extends a.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[_.b](){return new W(this)}lift(ee){const ye=new R(this,this);return ye.operator=ee,ye}next(ee){if(this.closed)throw new oe.N;if(!this.isStopped){const{observers:ye}=this,Ye=ye.length,Fe=ye.slice();for(let ze=0;zenew R(B,ee),H})();class R extends I{constructor(B,ee){super(),this.destination=B,this.source=ee}next(B){const{destination:ee}=this;ee&&ee.next&&ee.next(B)}error(B){const{destination:ee}=this;ee&&ee.error&&this.destination.error(B)}complete(){const{destination:B}=this;B&&B.complete&&this.destination.complete()}_subscribe(B){const{source:ee}=this;return ee?this.source.subscribe(B):G.w.EMPTY}}},5283:(yt,be,p)=>{p.d(be,{W:()=>s});var a=p(2654);class s extends a.w{constructor(oe,q){super(),this.subject=oe,this.subscriber=q,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const oe=this.subject,q=oe.observers;if(this.subject=null,!q||0===q.length||oe.isStopped||oe.closed)return;const _=q.indexOf(this.subscriber);-1!==_&&q.splice(_,1)}}},3489:(yt,be,p)=>{p.d(be,{L:()=>W});var a=p(7043),s=p(3292),G=p(2654),oe=p(7668),q=p(2830),_=p(2782);class W extends G.w{constructor(H,B,ee){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(!H){this.destination=s.c;break}if("object"==typeof H){H instanceof W?(this.syncErrorThrowable=H.syncErrorThrowable,this.destination=H,H.add(this)):(this.syncErrorThrowable=!0,this.destination=new I(this,H));break}default:this.syncErrorThrowable=!0,this.destination=new I(this,H,B,ee)}}[oe.b](){return this}static create(H,B,ee){const ye=new W(H,B,ee);return ye.syncErrorThrowable=!1,ye}next(H){this.isStopped||this._next(H)}error(H){this.isStopped||(this.isStopped=!0,this._error(H))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(H){this.destination.next(H)}_error(H){this.destination.error(H),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:H}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=H,this}}class I extends W{constructor(H,B,ee,ye){super(),this._parentSubscriber=H;let Ye,Fe=this;(0,a.m)(B)?Ye=B:B&&(Ye=B.next,ee=B.error,ye=B.complete,B!==s.c&&(Fe=Object.create(B),(0,a.m)(Fe.unsubscribe)&&this.add(Fe.unsubscribe.bind(Fe)),Fe.unsubscribe=this.unsubscribe.bind(this))),this._context=Fe,this._next=Ye,this._error=ee,this._complete=ye}next(H){if(!this.isStopped&&this._next){const{_parentSubscriber:B}=this;q.v.useDeprecatedSynchronousErrorHandling&&B.syncErrorThrowable?this.__tryOrSetError(B,this._next,H)&&this.unsubscribe():this.__tryOrUnsub(this._next,H)}}error(H){if(!this.isStopped){const{_parentSubscriber:B}=this,{useDeprecatedSynchronousErrorHandling:ee}=q.v;if(this._error)ee&&B.syncErrorThrowable?(this.__tryOrSetError(B,this._error,H),this.unsubscribe()):(this.__tryOrUnsub(this._error,H),this.unsubscribe());else if(B.syncErrorThrowable)ee?(B.syncErrorValue=H,B.syncErrorThrown=!0):(0,_.z)(H),this.unsubscribe();else{if(this.unsubscribe(),ee)throw H;(0,_.z)(H)}}}complete(){if(!this.isStopped){const{_parentSubscriber:H}=this;if(this._complete){const B=()=>this._complete.call(this._context);q.v.useDeprecatedSynchronousErrorHandling&&H.syncErrorThrowable?(this.__tryOrSetError(H,B),this.unsubscribe()):(this.__tryOrUnsub(B),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(H,B){try{H.call(this._context,B)}catch(ee){if(this.unsubscribe(),q.v.useDeprecatedSynchronousErrorHandling)throw ee;(0,_.z)(ee)}}__tryOrSetError(H,B,ee){if(!q.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{B.call(this._context,ee)}catch(ye){return q.v.useDeprecatedSynchronousErrorHandling?(H.syncErrorValue=ye,H.syncErrorThrown=!0,!0):((0,_.z)(ye),!0)}return!1}_unsubscribe(){const{_parentSubscriber:H}=this;this._context=null,this._parentSubscriber=null,H.unsubscribe()}}},2654:(yt,be,p)=>{p.d(be,{w:()=>_});var a=p(6688),s=p(7830),G=p(7043);const q=(()=>{function I(R){return Error.call(this),this.message=R?`${R.length} errors occurred during unsubscription:\n${R.map((H,B)=>`${B+1}) ${H.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=R,this}return I.prototype=Object.create(Error.prototype),I})();class _{constructor(R){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,R&&(this._ctorUnsubscribe=!0,this._unsubscribe=R)}unsubscribe(){let R;if(this.closed)return;let{_parentOrParents:H,_ctorUnsubscribe:B,_unsubscribe:ee,_subscriptions:ye}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,H instanceof _)H.remove(this);else if(null!==H)for(let Ye=0;YeR.concat(H instanceof q?H.errors:H),[])}_.EMPTY=((I=new _).closed=!0,I)},2830:(yt,be,p)=>{p.d(be,{v:()=>s});let a=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(G){if(G){const oe=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+oe.stack)}else a&&console.log("RxJS: Back to a better error behavior. Thank you. <3");a=G},get useDeprecatedSynchronousErrorHandling(){return a}}},1177:(yt,be,p)=>{p.d(be,{IY:()=>oe,Ds:()=>_,ft:()=>I});var a=p(3489),s=p(6498),G=p(9249);class oe extends a.L{constructor(H){super(),this.parent=H}_next(H){this.parent.notifyNext(H)}_error(H){this.parent.notifyError(H),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class _ extends a.L{notifyNext(H){this.destination.next(H)}notifyError(H){this.destination.error(H)}notifyComplete(){this.destination.complete()}}function I(R,H){if(H.closed)return;if(R instanceof s.y)return R.subscribe(H);let B;try{B=(0,G.s)(R)(H)}catch(ee){H.error(ee)}return B}},1762:(yt,be,p)=>{p.d(be,{c:()=>q,N:()=>_});var a=p(8929),s=p(6498),G=p(2654),oe=p(4327);class q extends s.y{constructor(B,ee){super(),this.source=B,this.subjectFactory=ee,this._refCount=0,this._isComplete=!1}_subscribe(B){return this.getSubject().subscribe(B)}getSubject(){const B=this._subject;return(!B||B.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let B=this._connection;return B||(this._isComplete=!1,B=this._connection=new G.w,B.add(this.source.subscribe(new W(this.getSubject(),this))),B.closed&&(this._connection=null,B=G.w.EMPTY)),B}refCount(){return(0,oe.x)()(this)}}const _=(()=>{const H=q.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:H._subscribe},_isComplete:{value:H._isComplete,writable:!0},getSubject:{value:H.getSubject},connect:{value:H.connect},refCount:{value:H.refCount}}})();class W extends a.Yc{constructor(B,ee){super(B),this.connectable=ee}_error(B){this._unsubscribe(),super._error(B)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const B=this.connectable;if(B){this.connectable=null;const ee=B._connection;B._refCount=0,B._subject=null,B._connection=null,ee&&ee.unsubscribe()}}}},6053:(yt,be,p)=>{p.d(be,{aj:()=>W});var a=p(2866),s=p(6688),G=p(826),oe=p(448),q=p(3009);const _={};function W(...H){let B,ee;return(0,a.K)(H[H.length-1])&&(ee=H.pop()),"function"==typeof H[H.length-1]&&(B=H.pop()),1===H.length&&(0,s.k)(H[0])&&(H=H[0]),(0,q.n)(H,ee).lift(new I(B))}class I{constructor(B){this.resultSelector=B}call(B,ee){return ee.subscribe(new R(B,this.resultSelector))}}class R extends G.L{constructor(B,ee){super(B),this.resultSelector=ee,this.active=0,this.values=[],this.observables=[]}_next(B){this.values.push(_),this.observables.push(B)}_complete(){const B=this.observables,ee=B.length;if(0===ee)this.destination.complete();else{this.active=ee,this.toRespond=ee;for(let ye=0;ye{p.d(be,{z:()=>G});var a=p(1086),s=p(534);function G(...oe){return(0,s.u)()((0,a.of)(...oe))}},8514:(yt,be,p)=>{p.d(be,{P:()=>oe});var a=p(6498),s=p(5254),G=p(8896);function oe(q){return new a.y(_=>{let W;try{W=q()}catch(R){return void _.error(R)}return(W?(0,s.D)(W):(0,G.c)()).subscribe(_)})}},8896:(yt,be,p)=>{p.d(be,{E:()=>s,c:()=>G});var a=p(6498);const s=new a.y(q=>q.complete());function G(q){return q?function oe(q){return new a.y(_=>q.schedule(()=>_.complete()))}(q):s}},5254:(yt,be,p)=>{p.d(be,{D:()=>Fe});var a=p(6498),s=p(9249),G=p(2654),oe=p(3821),W=p(6454),I=p(5430),B=p(8955),ee=p(8515);function Fe(ze,_e){return _e?function Ye(ze,_e){if(null!=ze){if(function H(ze){return ze&&"function"==typeof ze[oe.L]}(ze))return function q(ze,_e){return new a.y(vt=>{const Je=new G.w;return Je.add(_e.schedule(()=>{const zt=ze[oe.L]();Je.add(zt.subscribe({next(ut){Je.add(_e.schedule(()=>vt.next(ut)))},error(ut){Je.add(_e.schedule(()=>vt.error(ut)))},complete(){Je.add(_e.schedule(()=>vt.complete()))}}))})),Je})}(ze,_e);if((0,B.t)(ze))return function _(ze,_e){return new a.y(vt=>{const Je=new G.w;return Je.add(_e.schedule(()=>ze.then(zt=>{Je.add(_e.schedule(()=>{vt.next(zt),Je.add(_e.schedule(()=>vt.complete()))}))},zt=>{Je.add(_e.schedule(()=>vt.error(zt)))}))),Je})}(ze,_e);if((0,ee.z)(ze))return(0,W.r)(ze,_e);if(function ye(ze){return ze&&"function"==typeof ze[I.hZ]}(ze)||"string"==typeof ze)return function R(ze,_e){if(!ze)throw new Error("Iterable cannot be null");return new a.y(vt=>{const Je=new G.w;let zt;return Je.add(()=>{zt&&"function"==typeof zt.return&&zt.return()}),Je.add(_e.schedule(()=>{zt=ze[I.hZ](),Je.add(_e.schedule(function(){if(vt.closed)return;let ut,Ie;try{const $e=zt.next();ut=$e.value,Ie=$e.done}catch($e){return void vt.error($e)}Ie?vt.complete():(vt.next(ut),this.schedule())}))})),Je})}(ze,_e)}throw new TypeError((null!==ze&&typeof ze||ze)+" is not observable")}(ze,_e):ze instanceof a.y?ze:new a.y((0,s.s)(ze))}},3009:(yt,be,p)=>{p.d(be,{n:()=>oe});var a=p(6498),s=p(3650),G=p(6454);function oe(q,_){return _?(0,G.r)(q,_):new a.y((0,s.V)(q))}},3753:(yt,be,p)=>{p.d(be,{R:()=>_});var a=p(6498),s=p(6688),G=p(7043),oe=p(4850);function _(B,ee,ye,Ye){return(0,G.m)(ye)&&(Ye=ye,ye=void 0),Ye?_(B,ee,ye).pipe((0,oe.U)(Fe=>(0,s.k)(Fe)?Ye(...Fe):Ye(Fe))):new a.y(Fe=>{W(B,ee,function ze(_e){Fe.next(arguments.length>1?Array.prototype.slice.call(arguments):_e)},Fe,ye)})}function W(B,ee,ye,Ye,Fe){let ze;if(function H(B){return B&&"function"==typeof B.addEventListener&&"function"==typeof B.removeEventListener}(B)){const _e=B;B.addEventListener(ee,ye,Fe),ze=()=>_e.removeEventListener(ee,ye,Fe)}else if(function R(B){return B&&"function"==typeof B.on&&"function"==typeof B.off}(B)){const _e=B;B.on(ee,ye),ze=()=>_e.off(ee,ye)}else if(function I(B){return B&&"function"==typeof B.addListener&&"function"==typeof B.removeListener}(B)){const _e=B;B.addListener(ee,ye),ze=()=>_e.removeListener(ee,ye)}else{if(!B||!B.length)throw new TypeError("Invalid event target");for(let _e=0,vt=B.length;_e{p.d(be,{T:()=>q});var a=p(6498),s=p(2866),G=p(9146),oe=p(3009);function q(..._){let W=Number.POSITIVE_INFINITY,I=null,R=_[_.length-1];return(0,s.K)(R)?(I=_.pop(),_.length>1&&"number"==typeof _[_.length-1]&&(W=_.pop())):"number"==typeof R&&(W=_.pop()),null===I&&1===_.length&&_[0]instanceof a.y?_[0]:(0,G.J)(W)((0,oe.n)(_,I))}},1086:(yt,be,p)=>{p.d(be,{of:()=>oe});var a=p(2866),s=p(3009),G=p(6454);function oe(...q){let _=q[q.length-1];return(0,a.K)(_)?(q.pop(),(0,G.r)(q,_)):(0,s.n)(q)}},1737:(yt,be,p)=>{p.d(be,{_:()=>s});var a=p(6498);function s(oe,q){return new a.y(q?_=>q.schedule(G,0,{error:oe,subscriber:_}):_=>_.error(oe))}function G({error:oe,subscriber:q}){q.error(oe)}},8723:(yt,be,p)=>{p.d(be,{H:()=>q});var a=p(6498),s=p(353),G=p(4241),oe=p(2866);function q(W=0,I,R){let H=-1;return(0,G.k)(I)?H=Number(I)<1?1:Number(I):(0,oe.K)(I)&&(R=I),(0,oe.K)(R)||(R=s.P),new a.y(B=>{const ee=(0,G.k)(W)?W:+W-R.now();return R.schedule(_,ee,{index:0,period:H,subscriber:B})})}function _(W){const{index:I,period:R,subscriber:H}=W;if(H.next(I),!H.closed){if(-1===R)return H.complete();W.index=I+1,this.schedule(W,R)}}},7138:(yt,be,p)=>{p.d(be,{e:()=>W});var a=p(353),s=p(1177);class oe{constructor(R){this.durationSelector=R}call(R,H){return H.subscribe(new q(R,this.durationSelector))}}class q extends s.Ds{constructor(R,H){super(R),this.durationSelector=H,this.hasValue=!1}_next(R){if(this.value=R,this.hasValue=!0,!this.throttled){let H;try{const{durationSelector:ee}=this;H=ee(R)}catch(ee){return this.destination.error(ee)}const B=(0,s.ft)(H,new s.IY(this));!B||B.closed?this.clearThrottle():this.add(this.throttled=B)}}clearThrottle(){const{value:R,hasValue:H,throttled:B}=this;B&&(this.remove(B),this.throttled=void 0,B.unsubscribe()),H&&(this.value=void 0,this.hasValue=!1,this.destination.next(R))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var _=p(8723);function W(I,R=a.P){return function G(I){return function(H){return H.lift(new oe(I))}}(()=>(0,_.H)(I,R))}},7221:(yt,be,p)=>{p.d(be,{K:()=>s});var a=p(1177);function s(q){return function(W){const I=new G(q),R=W.lift(I);return I.caught=R}}class G{constructor(_){this.selector=_}call(_,W){return W.subscribe(new oe(_,this.selector,this.caught))}}class oe extends a.Ds{constructor(_,W,I){super(_),this.selector=W,this.caught=I}error(_){if(!this.isStopped){let W;try{W=this.selector(_,this.caught)}catch(H){return void super.error(H)}this._unsubscribeAndRecycle();const I=new a.IY(this);this.add(I);const R=(0,a.ft)(W,I);R!==I&&this.add(R)}}}},534:(yt,be,p)=>{p.d(be,{u:()=>s});var a=p(9146);function s(){return(0,a.J)(1)}},1406:(yt,be,p)=>{p.d(be,{b:()=>s});var a=p(1709);function s(G,oe){return(0,a.zg)(G,oe,1)}},13:(yt,be,p)=>{p.d(be,{b:()=>G});var a=p(3489),s=p(353);function G(W,I=s.P){return R=>R.lift(new oe(W,I))}class oe{constructor(I,R){this.dueTime=I,this.scheduler=R}call(I,R){return R.subscribe(new q(I,this.dueTime,this.scheduler))}}class q extends a.L{constructor(I,R,H){super(I),this.dueTime=R,this.scheduler=H,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(I){this.clearDebounce(),this.lastValue=I,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(_,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:I}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(I)}}clearDebounce(){const I=this.debouncedSubscription;null!==I&&(this.remove(I),I.unsubscribe(),this.debouncedSubscription=null)}}function _(W){W.debouncedNext()}},8583:(yt,be,p)=>{p.d(be,{g:()=>q});var a=p(353),G=p(3489),oe=p(9312);function q(R,H=a.P){const ee=function s(R){return R instanceof Date&&!isNaN(+R)}(R)?+R-H.now():Math.abs(R);return ye=>ye.lift(new _(ee,H))}class _{constructor(H,B){this.delay=H,this.scheduler=B}call(H,B){return B.subscribe(new W(H,this.delay,this.scheduler))}}class W extends G.L{constructor(H,B,ee){super(H),this.delay=B,this.scheduler=ee,this.queue=[],this.active=!1,this.errored=!1}static dispatch(H){const B=H.source,ee=B.queue,ye=H.scheduler,Ye=H.destination;for(;ee.length>0&&ee[0].time-ye.now()<=0;)ee.shift().notification.observe(Ye);if(ee.length>0){const Fe=Math.max(0,ee[0].time-ye.now());this.schedule(H,Fe)}else this.unsubscribe(),B.active=!1}_schedule(H){this.active=!0,this.destination.add(H.schedule(W.dispatch,this.delay,{source:this,destination:this.destination,scheduler:H}))}scheduleNotification(H){if(!0===this.errored)return;const B=this.scheduler,ee=new I(B.now()+this.delay,H);this.queue.push(ee),!1===this.active&&this._schedule(B)}_next(H){this.scheduleNotification(oe.P.createNext(H))}_error(H){this.errored=!0,this.queue=[],this.destination.error(H),this.unsubscribe()}_complete(){this.scheduleNotification(oe.P.createComplete()),this.unsubscribe()}}class I{constructor(H,B){this.time=H,this.notification=B}}},5778:(yt,be,p)=>{p.d(be,{x:()=>s});var a=p(3489);function s(q,_){return W=>W.lift(new G(q,_))}class G{constructor(_,W){this.compare=_,this.keySelector=W}call(_,W){return W.subscribe(new oe(_,this.compare,this.keySelector))}}class oe extends a.L{constructor(_,W,I){super(_),this.keySelector=I,this.hasKey=!1,"function"==typeof W&&(this.compare=W)}compare(_,W){return _===W}_next(_){let W;try{const{keySelector:R}=this;W=R?R(_):_}catch(R){return this.destination.error(R)}let I=!1;if(this.hasKey)try{const{compare:R}=this;I=R(this.key,W)}catch(R){return this.destination.error(R)}else this.hasKey=!0;I||(this.key=W,this.destination.next(_))}}},2198:(yt,be,p)=>{p.d(be,{h:()=>s});var a=p(3489);function s(q,_){return function(I){return I.lift(new G(q,_))}}class G{constructor(_,W){this.predicate=_,this.thisArg=W}call(_,W){return W.subscribe(new oe(_,this.predicate,this.thisArg))}}class oe extends a.L{constructor(_,W,I){super(_),this.predicate=W,this.thisArg=I,this.count=0}_next(_){let W;try{W=this.predicate.call(this.thisArg,_,this.count++)}catch(I){return void this.destination.error(I)}W&&this.destination.next(_)}}},537:(yt,be,p)=>{p.d(be,{x:()=>G});var a=p(3489),s=p(2654);function G(_){return W=>W.lift(new oe(_))}class oe{constructor(W){this.callback=W}call(W,I){return I.subscribe(new q(W,this.callback))}}class q extends a.L{constructor(W,I){super(W),this.add(new s.w(I))}}},4850:(yt,be,p)=>{p.d(be,{U:()=>s});var a=p(3489);function s(q,_){return function(I){if("function"!=typeof q)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return I.lift(new G(q,_))}}class G{constructor(_,W){this.project=_,this.thisArg=W}call(_,W){return W.subscribe(new oe(_,this.project,this.thisArg))}}class oe extends a.L{constructor(_,W,I){super(_),this.project=W,this.count=0,this.thisArg=I||this}_next(_){let W;try{W=this.project.call(this.thisArg,_,this.count++)}catch(I){return void this.destination.error(I)}this.destination.next(W)}}},7604:(yt,be,p)=>{p.d(be,{h:()=>s});var a=p(3489);function s(q){return _=>_.lift(new G(q))}class G{constructor(_){this.value=_}call(_,W){return W.subscribe(new oe(_,this.value))}}class oe extends a.L{constructor(_,W){super(_),this.value=W}_next(_){this.destination.next(this.value)}}},9146:(yt,be,p)=>{p.d(be,{J:()=>G});var a=p(1709),s=p(5379);function G(oe=Number.POSITIVE_INFINITY){return(0,a.zg)(s.y,oe)}},1709:(yt,be,p)=>{p.d(be,{zg:()=>oe});var a=p(4850),s=p(5254),G=p(1177);function oe(I,R,H=Number.POSITIVE_INFINITY){return"function"==typeof R?B=>B.pipe(oe((ee,ye)=>(0,s.D)(I(ee,ye)).pipe((0,a.U)((Ye,Fe)=>R(ee,Ye,ye,Fe))),H)):("number"==typeof R&&(H=R),B=>B.lift(new q(I,H)))}class q{constructor(R,H=Number.POSITIVE_INFINITY){this.project=R,this.concurrent=H}call(R,H){return H.subscribe(new _(R,this.project,this.concurrent))}}class _ extends G.Ds{constructor(R,H,B=Number.POSITIVE_INFINITY){super(R),this.project=H,this.concurrent=B,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(R){this.active0?this._next(R.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},2536:(yt,be,p)=>{p.d(be,{O:()=>s});var a=p(1762);function s(oe,q){return function(W){let I;if(I="function"==typeof oe?oe:function(){return oe},"function"==typeof q)return W.lift(new G(I,q));const R=Object.create(W,a.N);return R.source=W,R.subjectFactory=I,R}}class G{constructor(q,_){this.subjectFactory=q,this.selector=_}call(q,_){const{selector:W}=this,I=this.subjectFactory(),R=W(I).subscribe(q);return R.add(_.subscribe(I)),R}}},7770:(yt,be,p)=>{p.d(be,{QV:()=>G,ht:()=>q});var a=p(3489),s=p(9312);function G(W,I=0){return function(H){return H.lift(new oe(W,I))}}class oe{constructor(I,R=0){this.scheduler=I,this.delay=R}call(I,R){return R.subscribe(new q(I,this.scheduler,this.delay))}}class q extends a.L{constructor(I,R,H=0){super(I),this.scheduler=R,this.delay=H}static dispatch(I){const{notification:R,destination:H}=I;R.observe(H),this.unsubscribe()}scheduleMessage(I){this.destination.add(this.scheduler.schedule(q.dispatch,this.delay,new _(I,this.destination)))}_next(I){this.scheduleMessage(s.P.createNext(I))}_error(I){this.scheduleMessage(s.P.createError(I)),this.unsubscribe()}_complete(){this.scheduleMessage(s.P.createComplete()),this.unsubscribe()}}class _{constructor(I,R){this.notification=I,this.destination=R}}},4327:(yt,be,p)=>{p.d(be,{x:()=>s});var a=p(3489);function s(){return function(_){return _.lift(new G(_))}}class G{constructor(_){this.connectable=_}call(_,W){const{connectable:I}=this;I._refCount++;const R=new oe(_,I),H=W.subscribe(R);return R.closed||(R.connection=I.connect()),H}}class oe extends a.L{constructor(_,W){super(_),this.connectable=W}_unsubscribe(){const{connectable:_}=this;if(!_)return void(this.connection=null);this.connectable=null;const W=_._refCount;if(W<=0)return void(this.connection=null);if(_._refCount=W-1,W>1)return void(this.connection=null);const{connection:I}=this,R=_._connection;this.connection=null,R&&(!I||R===I)&&R.unsubscribe()}}},9973:(yt,be,p)=>{p.d(be,{X:()=>s});var a=p(3489);function s(q=-1){return _=>_.lift(new G(q,_))}class G{constructor(_,W){this.count=_,this.source=W}call(_,W){return W.subscribe(new oe(_,this.count,this.source))}}class oe extends a.L{constructor(_,W,I){super(_),this.count=W,this.source=I}error(_){if(!this.isStopped){const{source:W,count:I}=this;if(0===I)return super.error(_);I>-1&&(this.count=I-1),W.subscribe(this._unsubscribeAndRecycle())}}}},2014:(yt,be,p)=>{p.d(be,{R:()=>s});var a=p(3489);function s(q,_){let W=!1;return arguments.length>=2&&(W=!0),function(R){return R.lift(new G(q,_,W))}}class G{constructor(_,W,I=!1){this.accumulator=_,this.seed=W,this.hasSeed=I}call(_,W){return W.subscribe(new oe(_,this.accumulator,this.seed,this.hasSeed))}}class oe extends a.L{constructor(_,W,I,R){super(_),this.accumulator=W,this._seed=I,this.hasSeed=R,this.index=0}get seed(){return this._seed}set seed(_){this.hasSeed=!0,this._seed=_}_next(_){if(this.hasSeed)return this._tryNext(_);this.seed=_,this.destination.next(_)}_tryNext(_){const W=this.index++;let I;try{I=this.accumulator(this.seed,_,W)}catch(R){this.destination.error(R)}this.seed=I,this.destination.next(I)}}},8117:(yt,be,p)=>{p.d(be,{B:()=>q});var a=p(2536),s=p(4327),G=p(8929);function oe(){return new G.xQ}function q(){return _=>(0,s.x)()((0,a.O)(oe)(_))}},5154:(yt,be,p)=>{p.d(be,{d:()=>s});var a=p(5647);function s(oe,q,_){let W;return W=oe&&"object"==typeof oe?oe:{bufferSize:oe,windowTime:q,refCount:!1,scheduler:_},I=>I.lift(function G({bufferSize:oe=Number.POSITIVE_INFINITY,windowTime:q=Number.POSITIVE_INFINITY,refCount:_,scheduler:W}){let I,H,R=0,B=!1,ee=!1;return function(Ye){let Fe;R++,!I||B?(B=!1,I=new a.t(oe,q,W),Fe=I.subscribe(this),H=Ye.subscribe({next(ze){I.next(ze)},error(ze){B=!0,I.error(ze)},complete(){ee=!0,H=void 0,I.complete()}}),ee&&(H=void 0)):Fe=I.subscribe(this),this.add(()=>{R--,Fe.unsubscribe(),Fe=void 0,H&&!ee&&_&&0===R&&(H.unsubscribe(),H=void 0,I=void 0)})}}(W))}},1307:(yt,be,p)=>{p.d(be,{T:()=>s});var a=p(3489);function s(q){return _=>_.lift(new G(q))}class G{constructor(_){this.total=_}call(_,W){return W.subscribe(new oe(_,this.total))}}class oe extends a.L{constructor(_,W){super(_),this.total=W,this.count=0}_next(_){++this.count>this.total&&this.destination.next(_)}}},1059:(yt,be,p)=>{p.d(be,{O:()=>G});var a=p(1961),s=p(2866);function G(...oe){const q=oe[oe.length-1];return(0,s.K)(q)?(oe.pop(),_=>(0,a.z)(oe,_,q)):_=>(0,a.z)(oe,_)}},7545:(yt,be,p)=>{p.d(be,{w:()=>oe});var a=p(4850),s=p(5254),G=p(1177);function oe(W,I){return"function"==typeof I?R=>R.pipe(oe((H,B)=>(0,s.D)(W(H,B)).pipe((0,a.U)((ee,ye)=>I(H,ee,B,ye))))):R=>R.lift(new q(W))}class q{constructor(I){this.project=I}call(I,R){return R.subscribe(new _(I,this.project))}}class _ extends G.Ds{constructor(I,R){super(I),this.project=R,this.index=0}_next(I){let R;const H=this.index++;try{R=this.project(I,H)}catch(B){return void this.destination.error(B)}this._innerSub(R)}_innerSub(I){const R=this.innerSubscription;R&&R.unsubscribe();const H=new G.IY(this),B=this.destination;B.add(H),this.innerSubscription=(0,G.ft)(I,H),this.innerSubscription!==H&&B.add(this.innerSubscription)}_complete(){const{innerSubscription:I}=this;(!I||I.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(I){this.destination.next(I)}}},2986:(yt,be,p)=>{p.d(be,{q:()=>oe});var a=p(3489),s=p(4231),G=p(8896);function oe(W){return I=>0===W?(0,G.c)():I.lift(new q(W))}class q{constructor(I){if(this.total=I,this.total<0)throw new s.W}call(I,R){return R.subscribe(new _(I,this.total))}}class _ extends a.L{constructor(I,R){super(I),this.total=R,this.count=0}_next(I){const R=this.total,H=++this.count;H<=R&&(this.destination.next(I),H===R&&(this.destination.complete(),this.unsubscribe()))}}},7625:(yt,be,p)=>{p.d(be,{R:()=>s});var a=p(1177);function s(q){return _=>_.lift(new G(q))}class G{constructor(_){this.notifier=_}call(_,W){const I=new oe(_),R=(0,a.ft)(this.notifier,new a.IY(I));return R&&!I.seenValue?(I.add(R),W.subscribe(I)):I}}class oe extends a.Ds{constructor(_){super(_),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},2994:(yt,be,p)=>{p.d(be,{b:()=>oe});var a=p(3489),s=p(7876),G=p(7043);function oe(W,I,R){return function(B){return B.lift(new q(W,I,R))}}class q{constructor(I,R,H){this.nextOrObserver=I,this.error=R,this.complete=H}call(I,R){return R.subscribe(new _(I,this.nextOrObserver,this.error,this.complete))}}class _ extends a.L{constructor(I,R,H,B){super(I),this._tapNext=s.Z,this._tapError=s.Z,this._tapComplete=s.Z,this._tapError=H||s.Z,this._tapComplete=B||s.Z,(0,G.m)(R)?(this._context=this,this._tapNext=R):R&&(this._context=R,this._tapNext=R.next||s.Z,this._tapError=R.error||s.Z,this._tapComplete=R.complete||s.Z)}_next(I){try{this._tapNext.call(this._context,I)}catch(R){return void this.destination.error(R)}this.destination.next(I)}_error(I){try{this._tapError.call(this._context,I)}catch(R){return void this.destination.error(R)}this.destination.error(I)}_complete(){try{this._tapComplete.call(this._context)}catch(I){return void this.destination.error(I)}return this.destination.complete()}}},6454:(yt,be,p)=>{p.d(be,{r:()=>G});var a=p(6498),s=p(2654);function G(oe,q){return new a.y(_=>{const W=new s.w;let I=0;return W.add(q.schedule(function(){I!==oe.length?(_.next(oe[I++]),_.closed||W.add(this.schedule())):_.complete()})),W})}},6686:(yt,be,p)=>{p.d(be,{o:()=>G});var a=p(2654);class s extends a.w{constructor(q,_){super()}schedule(q,_=0){return this}}class G extends s{constructor(q,_){super(q,_),this.scheduler=q,this.work=_,this.pending=!1}schedule(q,_=0){if(this.closed)return this;this.state=q;const W=this.id,I=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(I,W,_)),this.pending=!0,this.delay=_,this.id=this.id||this.requestAsyncId(I,this.id,_),this}requestAsyncId(q,_,W=0){return setInterval(q.flush.bind(q,this),W)}recycleAsyncId(q,_,W=0){if(null!==W&&this.delay===W&&!1===this.pending)return _;clearInterval(_)}execute(q,_){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const W=this._execute(q,_);if(W)return W;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(q,_){let I,W=!1;try{this.work(q)}catch(R){W=!0,I=!!R&&R||new Error(R)}if(W)return this.unsubscribe(),I}_unsubscribe(){const q=this.id,_=this.scheduler,W=_.actions,I=W.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==I&&W.splice(I,1),null!=q&&(this.id=this.recycleAsyncId(_,q,null)),this.delay=null}}},2268:(yt,be,p)=>{p.d(be,{v:()=>s});let a=(()=>{class G{constructor(q,_=G.now){this.SchedulerAction=q,this.now=_}schedule(q,_=0,W){return new this.SchedulerAction(this,q).schedule(W,_)}}return G.now=()=>Date.now(),G})();class s extends a{constructor(oe,q=a.now){super(oe,()=>s.delegate&&s.delegate!==this?s.delegate.now():q()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(oe,q=0,_){return s.delegate&&s.delegate!==this?s.delegate.schedule(oe,q,_):super.schedule(oe,q,_)}flush(oe){const{actions:q}=this;if(this.active)return void q.push(oe);let _;this.active=!0;do{if(_=oe.execute(oe.state,oe.delay))break}while(oe=q.shift());if(this.active=!1,_){for(;oe=q.shift();)oe.unsubscribe();throw _}}}},353:(yt,be,p)=>{p.d(be,{z:()=>G,P:()=>oe});var a=p(6686);const G=new(p(2268).v)(a.o),oe=G},5430:(yt,be,p)=>{p.d(be,{hZ:()=>s});const s=function a(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(yt,be,p)=>{p.d(be,{L:()=>a});const a="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(yt,be,p)=>{p.d(be,{b:()=>a});const a="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(yt,be,p)=>{p.d(be,{W:()=>s});const s=(()=>{function G(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return G.prototype=Object.create(Error.prototype),G})()},5279:(yt,be,p)=>{p.d(be,{N:()=>s});const s=(()=>{function G(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return G.prototype=Object.create(Error.prototype),G})()},2782:(yt,be,p)=>{function a(s){setTimeout(()=>{throw s},0)}p.d(be,{z:()=>a})},5379:(yt,be,p)=>{function a(s){return s}p.d(be,{y:()=>a})},6688:(yt,be,p)=>{p.d(be,{k:()=>a});const a=Array.isArray||(s=>s&&"number"==typeof s.length)},8515:(yt,be,p)=>{p.d(be,{z:()=>a});const a=s=>s&&"number"==typeof s.length&&"function"!=typeof s},7043:(yt,be,p)=>{function a(s){return"function"==typeof s}p.d(be,{m:()=>a})},4241:(yt,be,p)=>{p.d(be,{k:()=>s});var a=p(6688);function s(G){return!(0,a.k)(G)&&G-parseFloat(G)+1>=0}},7830:(yt,be,p)=>{function a(s){return null!==s&&"object"==typeof s}p.d(be,{K:()=>a})},8955:(yt,be,p)=>{function a(s){return!!s&&"function"!=typeof s.subscribe&&"function"==typeof s.then}p.d(be,{t:()=>a})},2866:(yt,be,p)=>{function a(s){return s&&"function"==typeof s.schedule}p.d(be,{K:()=>a})},7876:(yt,be,p)=>{function a(){}p.d(be,{Z:()=>a})},4843:(yt,be,p)=>{p.d(be,{z:()=>s,U:()=>G});var a=p(5379);function s(...oe){return G(oe)}function G(oe){return 0===oe.length?a.y:1===oe.length?oe[0]:function(_){return oe.reduce((W,I)=>I(W),_)}}},9249:(yt,be,p)=>{p.d(be,{s:()=>B});var a=p(3650),s=p(2782),oe=p(5430),_=p(3821),I=p(8515),R=p(8955),H=p(7830);const B=ee=>{if(ee&&"function"==typeof ee[_.L])return(ee=>ye=>{const Ye=ee[_.L]();if("function"!=typeof Ye.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return Ye.subscribe(ye)})(ee);if((0,I.z)(ee))return(0,a.V)(ee);if((0,R.t)(ee))return(ee=>ye=>(ee.then(Ye=>{ye.closed||(ye.next(Ye),ye.complete())},Ye=>ye.error(Ye)).then(null,s.z),ye))(ee);if(ee&&"function"==typeof ee[oe.hZ])return(ee=>ye=>{const Ye=ee[oe.hZ]();for(;;){let Fe;try{Fe=Ye.next()}catch(ze){return ye.error(ze),ye}if(Fe.done){ye.complete();break}if(ye.next(Fe.value),ye.closed)break}return"function"==typeof Ye.return&&ye.add(()=>{Ye.return&&Ye.return()}),ye})(ee);{const Ye=`You provided ${(0,H.K)(ee)?"an invalid object":`'${ee}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(Ye)}}},3650:(yt,be,p)=>{p.d(be,{V:()=>a});const a=s=>G=>{for(let oe=0,q=s.length;oe{p.d(be,{D:()=>q});var a=p(3489);class s extends a.L{constructor(W,I,R){super(),this.parent=W,this.outerValue=I,this.outerIndex=R,this.index=0}_next(W){this.parent.notifyNext(this.outerValue,W,this.outerIndex,this.index++,this)}_error(W){this.parent.notifyError(W,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var G=p(9249),oe=p(6498);function q(_,W,I,R,H=new s(_,I,R)){if(!H.closed)return W instanceof oe.y?W.subscribe(H):(0,G.s)(W)(H)}},655:(yt,be,p)=>{function oe(J,fe){var he={};for(var te in J)Object.prototype.hasOwnProperty.call(J,te)&&fe.indexOf(te)<0&&(he[te]=J[te]);if(null!=J&&"function"==typeof Object.getOwnPropertySymbols){var le=0;for(te=Object.getOwnPropertySymbols(J);le=0;je--)(Ue=J[je])&&(ie=(le<3?Ue(ie):le>3?Ue(fe,he,ie):Ue(fe,he))||ie);return le>3&&ie&&Object.defineProperty(fe,he,ie),ie}function I(J,fe,he,te){return new(he||(he=Promise))(function(ie,Ue){function je(ve){try{ke(te.next(ve))}catch(mt){Ue(mt)}}function tt(ve){try{ke(te.throw(ve))}catch(mt){Ue(mt)}}function ke(ve){ve.done?ie(ve.value):function le(ie){return ie instanceof he?ie:new he(function(Ue){Ue(ie)})}(ve.value).then(je,tt)}ke((te=te.apply(J,fe||[])).next())})}p.d(be,{_T:()=>oe,gn:()=>q,mG:()=>I})},1777:(yt,be,p)=>{p.d(be,{l3:()=>G,_j:()=>a,LC:()=>s,ZN:()=>vt,jt:()=>q,IO:()=>Fe,vP:()=>W,EY:()=>ze,SB:()=>R,oB:()=>I,eR:()=>B,X$:()=>oe,ZE:()=>Je,k1:()=>zt});class a{}class s{}const G="*";function oe(ut,Ie){return{type:7,name:ut,definitions:Ie,options:{}}}function q(ut,Ie=null){return{type:4,styles:Ie,timings:ut}}function W(ut,Ie=null){return{type:2,steps:ut,options:Ie}}function I(ut){return{type:6,styles:ut,offset:null}}function R(ut,Ie,$e){return{type:0,name:ut,styles:Ie,options:$e}}function B(ut,Ie,$e=null){return{type:1,expr:ut,animation:Ie,options:$e}}function Fe(ut,Ie,$e=null){return{type:11,selector:ut,animation:Ie,options:$e}}function ze(ut,Ie){return{type:12,timings:ut,animation:Ie}}function _e(ut){Promise.resolve(null).then(ut)}class vt{constructor(Ie=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=Ie+$e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ie=>Ie()),this._onDoneFns=[])}onStart(Ie){this._onStartFns.push(Ie)}onDone(Ie){this._onDoneFns.push(Ie)}onDestroy(Ie){this._onDestroyFns.push(Ie)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){_e(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Ie=>Ie()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Ie=>Ie()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(Ie){this._position=this.totalTime?Ie*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Ie){const $e="start"==Ie?this._onStartFns:this._onDoneFns;$e.forEach(et=>et()),$e.length=0}}class Je{constructor(Ie){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Ie;let $e=0,et=0,Se=0;const Xe=this.players.length;0==Xe?_e(()=>this._onFinish()):this.players.forEach(J=>{J.onDone(()=>{++$e==Xe&&this._onFinish()}),J.onDestroy(()=>{++et==Xe&&this._onDestroy()}),J.onStart(()=>{++Se==Xe&&this._onStart()})}),this.totalTime=this.players.reduce((J,fe)=>Math.max(J,fe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ie=>Ie()),this._onDoneFns=[])}init(){this.players.forEach(Ie=>Ie.init())}onStart(Ie){this._onStartFns.push(Ie)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Ie=>Ie()),this._onStartFns=[])}onDone(Ie){this._onDoneFns.push(Ie)}onDestroy(Ie){this._onDestroyFns.push(Ie)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Ie=>Ie.play())}pause(){this.players.forEach(Ie=>Ie.pause())}restart(){this.players.forEach(Ie=>Ie.restart())}finish(){this._onFinish(),this.players.forEach(Ie=>Ie.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Ie=>Ie.destroy()),this._onDestroyFns.forEach(Ie=>Ie()),this._onDestroyFns=[])}reset(){this.players.forEach(Ie=>Ie.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Ie){const $e=Ie*this.totalTime;this.players.forEach(et=>{const Se=et.totalTime?Math.min(1,$e/et.totalTime):1;et.setPosition(Se)})}getPosition(){const Ie=this.players.reduce(($e,et)=>null===$e||et.totalTime>$e.totalTime?et:$e,null);return null!=Ie?Ie.getPosition():0}beforeDestroy(){this.players.forEach(Ie=>{Ie.beforeDestroy&&Ie.beforeDestroy()})}triggerCallback(Ie){const $e="start"==Ie?this._onStartFns:this._onDoneFns;$e.forEach(et=>et()),$e.length=0}}const zt="!"},5664:(yt,be,p)=>{p.d(be,{rt:()=>Ne,tE:()=>Le,qV:()=>Et});var a=p(9808),s=p(5e3),G=p(591),oe=p(8929),q=p(1086),_=p(1159),W=p(2986),I=p(1307),R=p(5778),H=p(7625),B=p(3191),ee=p(925),ye=p(7144);let le=(()=>{class L{constructor($){this._platform=$}isDisabled($){return $.hasAttribute("disabled")}isVisible($){return function Ue(L){return!!(L.offsetWidth||L.offsetHeight||"function"==typeof L.getClientRects&&L.getClientRects().length)}($)&&"visible"===getComputedStyle($).visibility}isTabbable($){if(!this._platform.isBrowser)return!1;const ue=function ie(L){try{return L.frameElement}catch(E){return null}}(function St(L){return L.ownerDocument&&L.ownerDocument.defaultView||window}($));if(ue&&(-1===dt(ue)||!this.isVisible(ue)))return!1;let Ae=$.nodeName.toLowerCase(),wt=dt($);return $.hasAttribute("contenteditable")?-1!==wt:!("iframe"===Ae||"object"===Ae||this._platform.WEBKIT&&this._platform.IOS&&!function _t(L){let E=L.nodeName.toLowerCase(),$="input"===E&&L.type;return"text"===$||"password"===$||"select"===E||"textarea"===E}($))&&("audio"===Ae?!!$.hasAttribute("controls")&&-1!==wt:"video"===Ae?-1!==wt&&(null!==wt||this._platform.FIREFOX||$.hasAttribute("controls")):$.tabIndex>=0)}isFocusable($,ue){return function it(L){return!function tt(L){return function ve(L){return"input"==L.nodeName.toLowerCase()}(L)&&"hidden"==L.type}(L)&&(function je(L){let E=L.nodeName.toLowerCase();return"input"===E||"select"===E||"button"===E||"textarea"===E}(L)||function ke(L){return function mt(L){return"a"==L.nodeName.toLowerCase()}(L)&&L.hasAttribute("href")}(L)||L.hasAttribute("contenteditable")||Qe(L))}($)&&!this.isDisabled($)&&((null==ue?void 0:ue.ignoreVisibility)||this.isVisible($))}}return L.\u0275fac=function($){return new($||L)(s.LFG(ee.t4))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();function Qe(L){if(!L.hasAttribute("tabindex")||void 0===L.tabIndex)return!1;let E=L.getAttribute("tabindex");return!(!E||isNaN(parseInt(E,10)))}function dt(L){if(!Qe(L))return null;const E=parseInt(L.getAttribute("tabindex")||"",10);return isNaN(E)?-1:E}class ot{constructor(E,$,ue,Ae,wt=!1){this._element=E,this._checker=$,this._ngZone=ue,this._document=Ae,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,wt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(E){this._enabled=E,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(E,this._startAnchor),this._toggleAnchorTabIndex(E,this._endAnchor))}destroy(){const E=this._startAnchor,$=this._endAnchor;E&&(E.removeEventListener("focus",this.startAnchorListener),E.remove()),$&&($.removeEventListener("focus",this.endAnchorListener),$.remove()),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(E){return new Promise($=>{this._executeOnStable(()=>$(this.focusInitialElement(E)))})}focusFirstTabbableElementWhenReady(E){return new Promise($=>{this._executeOnStable(()=>$(this.focusFirstTabbableElement(E)))})}focusLastTabbableElementWhenReady(E){return new Promise($=>{this._executeOnStable(()=>$(this.focusLastTabbableElement(E)))})}_getRegionBoundary(E){const $=this._element.querySelectorAll(`[cdk-focus-region-${E}], [cdkFocusRegion${E}], [cdk-focus-${E}]`);return"start"==E?$.length?$[0]:this._getFirstTabbableElement(this._element):$.length?$[$.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(E){const $=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if($){if(!this._checker.isFocusable($)){const ue=this._getFirstTabbableElement($);return null==ue||ue.focus(E),!!ue}return $.focus(E),!0}return this.focusFirstTabbableElement(E)}focusFirstTabbableElement(E){const $=this._getRegionBoundary("start");return $&&$.focus(E),!!$}focusLastTabbableElement(E){const $=this._getRegionBoundary("end");return $&&$.focus(E),!!$}hasAttached(){return this._hasAttached}_getFirstTabbableElement(E){if(this._checker.isFocusable(E)&&this._checker.isTabbable(E))return E;const $=E.children;for(let ue=0;ue<$.length;ue++){const Ae=$[ue].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement($[ue]):null;if(Ae)return Ae}return null}_getLastTabbableElement(E){if(this._checker.isFocusable(E)&&this._checker.isTabbable(E))return E;const $=E.children;for(let ue=$.length-1;ue>=0;ue--){const Ae=$[ue].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement($[ue]):null;if(Ae)return Ae}return null}_createAnchor(){const 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}_toggleAnchorTabIndex(E,$){E?$.setAttribute("tabindex","0"):$.removeAttribute("tabindex")}toggleAnchors(E){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(E,this._startAnchor),this._toggleAnchorTabIndex(E,this._endAnchor))}_executeOnStable(E){this._ngZone.isStable?E():this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(E)}}let Et=(()=>{class L{constructor($,ue,Ae){this._checker=$,this._ngZone=ue,this._document=Ae}create($,ue=!1){return new ot($,this._checker,this._ngZone,this._document,ue)}}return L.\u0275fac=function($){return new($||L)(s.LFG(le),s.LFG(s.R0b),s.LFG(a.K0))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const Sn=new s.OlP("cdk-input-modality-detector-options"),cn={ignoreKeys:[_.zL,_.jx,_.b2,_.MW,_.JU]},qe=(0,ee.i$)({passive:!0,capture:!0});let x=(()=>{class L{constructor($,ue,Ae,wt){this._platform=$,this._mostRecentTarget=null,this._modality=new G.X(null),this._lastTouchMs=0,this._onKeydown=At=>{var Qt,vn;(null===(vn=null===(Qt=this._options)||void 0===Qt?void 0:Qt.ignoreKeys)||void 0===vn?void 0:vn.some(Vn=>Vn===At.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,ee.sA)(At))},this._onMousedown=At=>{Date.now()-this._lastTouchMs<650||(this._modality.next(function Cn(L){return 0===L.buttons||0===L.offsetX&&0===L.offsetY}(At)?"keyboard":"mouse"),this._mostRecentTarget=(0,ee.sA)(At))},this._onTouchstart=At=>{!function Dt(L){const E=L.touches&&L.touches[0]||L.changedTouches&&L.changedTouches[0];return!(!E||-1!==E.identifier||null!=E.radiusX&&1!==E.radiusX||null!=E.radiusY&&1!==E.radiusY)}(At)?(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,ee.sA)(At)):this._modality.next("keyboard")},this._options=Object.assign(Object.assign({},cn),wt),this.modalityDetected=this._modality.pipe((0,I.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,R.x)()),$.isBrowser&&ue.runOutsideAngular(()=>{Ae.addEventListener("keydown",this._onKeydown,qe),Ae.addEventListener("mousedown",this._onMousedown,qe),Ae.addEventListener("touchstart",this._onTouchstart,qe)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,qe),document.removeEventListener("mousedown",this._onMousedown,qe),document.removeEventListener("touchstart",this._onTouchstart,qe))}}return L.\u0275fac=function($){return new($||L)(s.LFG(ee.t4),s.LFG(s.R0b),s.LFG(a.K0),s.LFG(Sn,8))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const He=new s.OlP("cdk-focus-monitor-default-options"),Ge=(0,ee.i$)({passive:!0,capture:!0});let Le=(()=>{class L{constructor($,ue,Ae,wt,At){this._ngZone=$,this._platform=ue,this._inputModalityDetector=Ae,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=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new oe.xQ,this._rootNodeFocusAndBlurListener=Qt=>{const vn=(0,ee.sA)(Qt),Vn="focus"===Qt.type?this._onFocus:this._onBlur;for(let An=vn;An;An=An.parentElement)Vn.call(this,Qt,An)},this._document=wt,this._detectionMode=(null==At?void 0:At.detectionMode)||0}monitor($,ue=!1){const Ae=(0,B.fI)($);if(!this._platform.isBrowser||1!==Ae.nodeType)return(0,q.of)(null);const wt=(0,ee.kV)(Ae)||this._getDocument(),At=this._elementInfo.get(Ae);if(At)return ue&&(At.checkChildren=!0),At.subject;const Qt={checkChildren:ue,subject:new oe.xQ,rootNode:wt};return this._elementInfo.set(Ae,Qt),this._registerGlobalListeners(Qt),Qt.subject}stopMonitoring($){const ue=(0,B.fI)($),Ae=this._elementInfo.get(ue);Ae&&(Ae.subject.complete(),this._setClasses(ue),this._elementInfo.delete(ue),this._removeGlobalListeners(Ae))}focusVia($,ue,Ae){const wt=(0,B.fI)($);wt===this._getDocument().activeElement?this._getClosestElementsInfo(wt).forEach(([Qt,vn])=>this._originChanged(Qt,ue,vn)):(this._setOrigin(ue),"function"==typeof wt.focus&&wt.focus(Ae))}ngOnDestroy(){this._elementInfo.forEach(($,ue)=>this.stopMonitoring(ue))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin($){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch($)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch($){return 1===this._detectionMode||!!(null==$?void 0:$.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses($,ue){$.classList.toggle("cdk-focused",!!ue),$.classList.toggle("cdk-touch-focused","touch"===ue),$.classList.toggle("cdk-keyboard-focused","keyboard"===ue),$.classList.toggle("cdk-mouse-focused","mouse"===ue),$.classList.toggle("cdk-program-focused","program"===ue)}_setOrigin($,ue=!1){this._ngZone.runOutsideAngular(()=>{this._origin=$,this._originFromTouchInteraction="touch"===$&&ue,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus($,ue){const Ae=this._elementInfo.get(ue),wt=(0,ee.sA)($);!Ae||!Ae.checkChildren&&ue!==wt||this._originChanged(ue,this._getFocusOrigin(wt),Ae)}_onBlur($,ue){const Ae=this._elementInfo.get(ue);!Ae||Ae.checkChildren&&$.relatedTarget instanceof Node&&ue.contains($.relatedTarget)||(this._setClasses(ue),this._emitOrigin(Ae.subject,null))}_emitOrigin($,ue){this._ngZone.run(()=>$.next(ue))}_registerGlobalListeners($){if(!this._platform.isBrowser)return;const ue=$.rootNode,Ae=this._rootNodeFocusListenerCount.get(ue)||0;Ae||this._ngZone.runOutsideAngular(()=>{ue.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ge),ue.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ge)}),this._rootNodeFocusListenerCount.set(ue,Ae+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,H.R)(this._stopInputModalityDetector)).subscribe(wt=>{this._setOrigin(wt,!0)}))}_removeGlobalListeners($){const ue=$.rootNode;if(this._rootNodeFocusListenerCount.has(ue)){const Ae=this._rootNodeFocusListenerCount.get(ue);Ae>1?this._rootNodeFocusListenerCount.set(ue,Ae-1):(ue.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ge),ue.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ge),this._rootNodeFocusListenerCount.delete(ue))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged($,ue,Ae){this._setClasses($,ue),this._emitOrigin(Ae.subject,ue),this._lastFocusOrigin=ue}_getClosestElementsInfo($){const ue=[];return this._elementInfo.forEach((Ae,wt)=>{(wt===$||Ae.checkChildren&&wt.contains($))&&ue.push([wt,Ae])}),ue}}return L.\u0275fac=function($){return new($||L)(s.LFG(s.R0b),s.LFG(ee.t4),s.LFG(x),s.LFG(a.K0,8),s.LFG(He,8))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const V="cdk-high-contrast-black-on-white",Be="cdk-high-contrast-white-on-black",nt="cdk-high-contrast-active";let ce=(()=>{class L{constructor($,ue){this._platform=$,this._document=ue}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const $=this._document.createElement("div");$.style.backgroundColor="rgb(1,2,3)",$.style.position="absolute",this._document.body.appendChild($);const ue=this._document.defaultView||window,Ae=ue&&ue.getComputedStyle?ue.getComputedStyle($):null,wt=(Ae&&Ae.backgroundColor||"").replace(/ /g,"");switch($.remove(),wt){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 $=this._document.body.classList;$.remove(nt),$.remove(V),$.remove(Be),this._hasCheckedHighContrastMode=!0;const ue=this.getHighContrastMode();1===ue?($.add(nt),$.add(V)):2===ue&&($.add(nt),$.add(Be))}}}return L.\u0275fac=function($){return new($||L)(s.LFG(ee.t4),s.LFG(a.K0))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),Ne=(()=>{class L{constructor($){$._applyBodyHighContrastModeCssClasses()}}return L.\u0275fac=function($){return new($||L)(s.LFG(ce))},L.\u0275mod=s.oAB({type:L}),L.\u0275inj=s.cJS({imports:[[ee.ud,ye.Q8]]}),L})()},226:(yt,be,p)=>{p.d(be,{vT:()=>R,Is:()=>W});var a=p(5e3),s=p(9808);const G=new a.OlP("cdk-dir-doc",{providedIn:"root",factory:function oe(){return(0,a.f3M)(s.K0)}}),q=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let W=(()=>{class H{constructor(ee){if(this.value="ltr",this.change=new a.vpe,ee){const Ye=ee.documentElement?ee.documentElement.dir:null;this.value=function _(H){const B=(null==H?void 0:H.toLowerCase())||"";return"auto"===B&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?q.test(navigator.language)?"rtl":"ltr":"rtl"===B?"rtl":"ltr"}((ee.body?ee.body.dir:null)||Ye||"ltr")}}ngOnDestroy(){this.change.complete()}}return H.\u0275fac=function(ee){return new(ee||H)(a.LFG(G,8))},H.\u0275prov=a.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),R=(()=>{class H{}return H.\u0275fac=function(ee){return new(ee||H)},H.\u0275mod=a.oAB({type:H}),H.\u0275inj=a.cJS({}),H})()},3191:(yt,be,p)=>{p.d(be,{t6:()=>oe,Eq:()=>q,Ig:()=>s,HM:()=>_,fI:()=>W,su:()=>G});var a=p(5e3);function s(R){return null!=R&&"false"!=`${R}`}function G(R,H=0){return oe(R)?Number(R):H}function oe(R){return!isNaN(parseFloat(R))&&!isNaN(Number(R))}function q(R){return Array.isArray(R)?R:[R]}function _(R){return null==R?"":"string"==typeof R?R:`${R}px`}function W(R){return R instanceof a.SBq?R.nativeElement:R}},1159:(yt,be,p)=>{p.d(be,{zL:()=>I,ZH:()=>s,jx:()=>W,JH:()=>zt,K5:()=>q,hY:()=>B,oh:()=>_e,b2:()=>se,MW:()=>Ge,SV:()=>Je,JU:()=>_,L_:()=>ee,Mf:()=>G,LH:()=>vt,Vb:()=>k});const s=8,G=9,q=13,_=16,W=17,I=18,B=27,ee=32,_e=37,vt=38,Je=39,zt=40,Ge=91,se=224;function k(Ee,...st){return st.length?st.some(Ct=>Ee[Ct]):Ee.altKey||Ee.shiftKey||Ee.ctrlKey||Ee.metaKey}},5113:(yt,be,p)=>{p.d(be,{Yg:()=>zt,u3:()=>Ie,xu:()=>Ye,vx:()=>_e});var a=p(5e3),s=p(3191),G=p(8929),oe=p(6053),q=p(1961),_=p(6498),W=p(2986),I=p(1307),R=p(13),H=p(4850),B=p(1059),ee=p(7625),ye=p(925);let Ye=(()=>{class $e{}return $e.\u0275fac=function(Se){return new(Se||$e)},$e.\u0275mod=a.oAB({type:$e}),$e.\u0275inj=a.cJS({}),$e})();const Fe=new Set;let ze,_e=(()=>{class $e{constructor(Se){this._platform=Se,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Je}matchMedia(Se){return(this._platform.WEBKIT||this._platform.BLINK)&&function vt($e){if(!Fe.has($e))try{ze||(ze=document.createElement("style"),ze.setAttribute("type","text/css"),document.head.appendChild(ze)),ze.sheet&&(ze.sheet.insertRule(`@media ${$e} {body{ }}`,0),Fe.add($e))}catch(et){console.error(et)}}(Se),this._matchMedia(Se)}}return $e.\u0275fac=function(Se){return new(Se||$e)(a.LFG(ye.t4))},$e.\u0275prov=a.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})();function Je($e){return{matches:"all"===$e||""===$e,media:$e,addListener:()=>{},removeListener:()=>{}}}let zt=(()=>{class $e{constructor(Se,Xe){this._mediaMatcher=Se,this._zone=Xe,this._queries=new Map,this._destroySubject=new G.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Se){return ut((0,s.Eq)(Se)).some(J=>this._registerQuery(J).mql.matches)}observe(Se){const J=ut((0,s.Eq)(Se)).map(he=>this._registerQuery(he).observable);let fe=(0,oe.aj)(J);return fe=(0,q.z)(fe.pipe((0,W.q)(1)),fe.pipe((0,I.T)(1),(0,R.b)(0))),fe.pipe((0,H.U)(he=>{const te={matches:!1,breakpoints:{}};return he.forEach(({matches:le,query:ie})=>{te.matches=te.matches||le,te.breakpoints[ie]=le}),te}))}_registerQuery(Se){if(this._queries.has(Se))return this._queries.get(Se);const Xe=this._mediaMatcher.matchMedia(Se),fe={observable:new _.y(he=>{const te=le=>this._zone.run(()=>he.next(le));return Xe.addListener(te),()=>{Xe.removeListener(te)}}).pipe((0,B.O)(Xe),(0,H.U)(({matches:he})=>({query:Se,matches:he})),(0,ee.R)(this._destroySubject)),mql:Xe};return this._queries.set(Se,fe),fe}}return $e.\u0275fac=function(Se){return new(Se||$e)(a.LFG(_e),a.LFG(a.R0b))},$e.\u0275prov=a.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})();function ut($e){return $e.map(et=>et.split(",")).reduce((et,Se)=>et.concat(Se)).map(et=>et.trim())}const Ie={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:(yt,be,p)=>{p.d(be,{Q8:()=>q});var a=p(5e3);let s=(()=>{class _{create(I){return"undefined"==typeof MutationObserver?null:new MutationObserver(I)}}return _.\u0275fac=function(I){return new(I||_)},_.\u0275prov=a.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})(),q=(()=>{class _{}return _.\u0275fac=function(I){return new(I||_)},_.\u0275mod=a.oAB({type:_}),_.\u0275inj=a.cJS({providers:[s]}),_})()},2845:(yt,be,p)=>{p.d(be,{pI:()=>Cn,xu:()=>_n,tR:()=>fe,aV:()=>gn,X_:()=>J,Vs:()=>Et,U8:()=>cn,Iu:()=>Ue});var a=p(3393),s=p(9808),G=p(5e3),oe=p(3191),q=p(925),_=p(226),W=p(7429),I=p(8929),R=p(2654),H=p(6787),B=p(3489);class ye{constructor(x,z){this.predicate=x,this.inclusive=z}call(x,z){return z.subscribe(new Ye(x,this.predicate,this.inclusive))}}class Ye extends B.L{constructor(x,z,P){super(x),this.predicate=z,this.inclusive=P,this.index=0}_next(x){const z=this.destination;let P;try{P=this.predicate(x,this.index++)}catch(pe){return void z.error(pe)}this.nextOrComplete(x,P)}nextOrComplete(x,z){const P=this.destination;Boolean(z)?P.next(x):(this.inclusive&&P.next(x),P.complete())}}var Fe=p(2986),ze=p(7625),_e=p(1159);const vt=(0,q.Mq)();class Je{constructor(x,z){this._viewportRuler=x,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=z}attach(){}enable(){if(this._canBeEnabled()){const x=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=x.style.left||"",this._previousHTMLStyles.top=x.style.top||"",x.style.left=(0,oe.HM)(-this._previousScrollPosition.left),x.style.top=(0,oe.HM)(-this._previousScrollPosition.top),x.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const x=this._document.documentElement,P=x.style,pe=this._document.body.style,j=P.scrollBehavior||"",me=pe.scrollBehavior||"";this._isEnabled=!1,P.left=this._previousHTMLStyles.left,P.top=this._previousHTMLStyles.top,x.classList.remove("cdk-global-scrollblock"),vt&&(P.scrollBehavior=pe.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),vt&&(P.scrollBehavior=j,pe.scrollBehavior=me)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const z=this._document.body,P=this._viewportRuler.getViewportSize();return z.scrollHeight>P.height||z.scrollWidth>P.width}}class ut{constructor(x,z,P,pe){this._scrollDispatcher=x,this._ngZone=z,this._viewportRuler=P,this._config=pe,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(x){this._overlayRef=x}enable(){if(this._scrollSubscription)return;const x=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=x.subscribe(()=>{const z=this._viewportRuler.getViewportScrollPosition().top;Math.abs(z-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=x.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Ie{enable(){}disable(){}attach(){}}function $e(qe,x){return x.some(z=>qe.bottomz.bottom||qe.rightz.right)}function et(qe,x){return x.some(z=>qe.topz.bottom||qe.leftz.right)}class Se{constructor(x,z,P,pe){this._scrollDispatcher=x,this._viewportRuler=z,this._ngZone=P,this._config=pe,this._scrollSubscription=null}attach(x){this._overlayRef=x}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 z=this._overlayRef.overlayElement.getBoundingClientRect(),{width:P,height:pe}=this._viewportRuler.getViewportSize();$e(z,[{width:P,height:pe,bottom:pe,right:P,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 Xe=(()=>{class qe{constructor(z,P,pe,j){this._scrollDispatcher=z,this._viewportRuler=P,this._ngZone=pe,this.noop=()=>new Ie,this.close=me=>new ut(this._scrollDispatcher,this._ngZone,this._viewportRuler,me),this.block=()=>new Je(this._viewportRuler,this._document),this.reposition=me=>new Se(this._scrollDispatcher,this._viewportRuler,this._ngZone,me),this._document=j}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(a.mF),G.LFG(a.rL),G.LFG(G.R0b),G.LFG(s.K0))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})();class J{constructor(x){if(this.scrollStrategy=new Ie,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,x){const z=Object.keys(x);for(const P of z)void 0!==x[P]&&(this[P]=x[P])}}}class fe{constructor(x,z,P,pe,j){this.offsetX=P,this.offsetY=pe,this.panelClass=j,this.originX=x.originX,this.originY=x.originY,this.overlayX=z.overlayX,this.overlayY=z.overlayY}}class te{constructor(x,z){this.connectionPair=x,this.scrollableViewProperties=z}}class Ue{constructor(x,z,P,pe,j,me,He,Ge,Le){this._portalOutlet=x,this._host=z,this._pane=P,this._config=pe,this._ngZone=j,this._keyboardDispatcher=me,this._document=He,this._location=Ge,this._outsideClickDispatcher=Le,this._backdropElement=null,this._backdropClick=new I.xQ,this._attachments=new I.xQ,this._detachments=new I.xQ,this._locationChanges=R.w.EMPTY,this._backdropClickHandler=Me=>this._backdropClick.next(Me),this._keydownEvents=new I.xQ,this._outsidePointerEvents=new I.xQ,pe.scrollStrategy&&(this._scrollStrategy=pe.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=pe.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(x){let z=this._portalOutlet.attach(x);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,Fe.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),z}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const x=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),x}dispose(){var x;const z=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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),null===(x=this._host)||void 0===x||x.remove(),this._previousHostParent=this._pane=this._host=null,z&&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(x){x!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=x,this.hasAttached()&&(x.attach(this),this.updatePosition()))}updateSize(x){this._config=Object.assign(Object.assign({},this._config),x),this._updateElementSize()}setDirection(x){this._config=Object.assign(Object.assign({},this._config),{direction:x}),this._updateElementDirection()}addPanelClass(x){this._pane&&this._toggleClasses(this._pane,x,!0)}removePanelClass(x){this._pane&&this._toggleClasses(this._pane,x,!1)}getDirection(){const x=this._config.direction;return x?"string"==typeof x?x:x.value:"ltr"}updateScrollStrategy(x){x!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=x,this.hasAttached()&&(x.attach(this),x.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const x=this._pane.style;x.width=(0,oe.HM)(this._config.width),x.height=(0,oe.HM)(this._config.height),x.minWidth=(0,oe.HM)(this._config.minWidth),x.minHeight=(0,oe.HM)(this._config.minHeight),x.maxWidth=(0,oe.HM)(this._config.maxWidth),x.maxHeight=(0,oe.HM)(this._config.maxHeight)}_togglePointerEvents(x){this._pane.style.pointerEvents=x?"":"none"}_attachBackdrop(){const x="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(x)})}):this._backdropElement.classList.add(x)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const x=this._backdropElement;if(!x)return;let z;const P=()=>{x&&(x.removeEventListener("click",this._backdropClickHandler),x.removeEventListener("transitionend",P),this._disposeBackdrop(x)),this._config.backdropClass&&this._toggleClasses(x,this._config.backdropClass,!1),clearTimeout(z)};x.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{x.addEventListener("transitionend",P)}),x.style.pointerEvents="none",z=this._ngZone.runOutsideAngular(()=>setTimeout(P,500))}_toggleClasses(x,z,P){const pe=(0,oe.Eq)(z||[]).filter(j=>!!j);pe.length&&(P?x.classList.add(...pe):x.classList.remove(...pe))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const x=this._ngZone.onStable.pipe((0,ze.R)((0,H.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._host.remove()),x.unsubscribe())})})}_disposeScrollStrategy(){const x=this._scrollStrategy;x&&(x.disable(),x.detach&&x.detach())}_disposeBackdrop(x){x&&(x.remove(),this._backdropElement===x&&(this._backdropElement=null))}}let je=(()=>{class qe{constructor(z,P){this._platform=P,this._document=z}ngOnDestroy(){var z;null===(z=this._containerElement)||void 0===z||z.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const z="cdk-overlay-container";if(this._platform.isBrowser||(0,q.Oy)()){const pe=this._document.querySelectorAll(`.${z}[platform="server"], .${z}[platform="test"]`);for(let j=0;j{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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const x=this._originRect,z=this._overlayRect,P=this._viewportRect,pe=this._containerRect,j=[];let me;for(let He of this._preferredPositions){let Ge=this._getOriginPoint(x,pe,He),Le=this._getOverlayPoint(Ge,z,He),Me=this._getOverlayFit(Le,z,P,He);if(Me.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(He,Ge);this._canFitWithFlexibleDimensions(Me,Le,P)?j.push({position:He,origin:Ge,overlayRect:z,boundingBoxRect:this._calculateBoundingBoxRect(Ge,He)}):(!me||me.overlayFit.visibleAreaGe&&(Ge=Me,He=Le)}return this._isPushed=!1,void this._applyPosition(He.position,He.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(me.position,me.originPoint);this._applyPosition(me.position,me.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&mt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(tt),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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const x=this._lastPosition||this._preferredPositions[0],z=this._getOriginPoint(this._originRect,this._containerRect,x);this._applyPosition(x,z)}}withScrollableContainers(x){return this._scrollables=x,this}withPositions(x){return this._preferredPositions=x,-1===x.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(x){return this._viewportMargin=x,this}withFlexibleDimensions(x=!0){return this._hasFlexibleDimensions=x,this}withGrowAfterOpen(x=!0){return this._growAfterOpen=x,this}withPush(x=!0){return this._canPush=x,this}withLockedPosition(x=!0){return this._positionLocked=x,this}setOrigin(x){return this._origin=x,this}withDefaultOffsetX(x){return this._offsetX=x,this}withDefaultOffsetY(x){return this._offsetY=x,this}withTransformOriginOn(x){return this._transformOriginSelector=x,this}_getOriginPoint(x,z,P){let pe,j;if("center"==P.originX)pe=x.left+x.width/2;else{const me=this._isRtl()?x.right:x.left,He=this._isRtl()?x.left:x.right;pe="start"==P.originX?me:He}return z.left<0&&(pe-=z.left),j="center"==P.originY?x.top+x.height/2:"top"==P.originY?x.top:x.bottom,z.top<0&&(j-=z.top),{x:pe,y:j}}_getOverlayPoint(x,z,P){let pe,j;return pe="center"==P.overlayX?-z.width/2:"start"===P.overlayX?this._isRtl()?-z.width:0:this._isRtl()?0:-z.width,j="center"==P.overlayY?-z.height/2:"top"==P.overlayY?0:-z.height,{x:x.x+pe,y:x.y+j}}_getOverlayFit(x,z,P,pe){const j=dt(z);let{x:me,y:He}=x,Ge=this._getOffset(pe,"x"),Le=this._getOffset(pe,"y");Ge&&(me+=Ge),Le&&(He+=Le);let Be=0-He,nt=He+j.height-P.height,ce=this._subtractOverflows(j.width,0-me,me+j.width-P.width),Ne=this._subtractOverflows(j.height,Be,nt),L=ce*Ne;return{visibleArea:L,isCompletelyWithinViewport:j.width*j.height===L,fitsInViewportVertically:Ne===j.height,fitsInViewportHorizontally:ce==j.width}}_canFitWithFlexibleDimensions(x,z,P){if(this._hasFlexibleDimensions){const pe=P.bottom-z.y,j=P.right-z.x,me=Qe(this._overlayRef.getConfig().minHeight),He=Qe(this._overlayRef.getConfig().minWidth),Le=x.fitsInViewportHorizontally||null!=He&&He<=j;return(x.fitsInViewportVertically||null!=me&&me<=pe)&&Le}return!1}_pushOverlayOnScreen(x,z,P){if(this._previousPushAmount&&this._positionLocked)return{x:x.x+this._previousPushAmount.x,y:x.y+this._previousPushAmount.y};const pe=dt(z),j=this._viewportRect,me=Math.max(x.x+pe.width-j.width,0),He=Math.max(x.y+pe.height-j.height,0),Ge=Math.max(j.top-P.top-x.y,0),Le=Math.max(j.left-P.left-x.x,0);let Me=0,V=0;return Me=pe.width<=j.width?Le||-me:x.xce&&!this._isInitialRender&&!this._growAfterOpen&&(me=x.y-ce/2)}if("end"===z.overlayX&&!pe||"start"===z.overlayX&&pe)Be=P.width-x.x+this._viewportMargin,Me=x.x-this._viewportMargin;else if("start"===z.overlayX&&!pe||"end"===z.overlayX&&pe)V=x.x,Me=P.right-x.x;else{const nt=Math.min(P.right-x.x+P.left,x.x),ce=this._lastBoundingBoxSize.width;Me=2*nt,V=x.x-nt,Me>ce&&!this._isInitialRender&&!this._growAfterOpen&&(V=x.x-ce/2)}return{top:me,left:V,bottom:He,right:Be,width:Me,height:j}}_setBoundingBoxStyles(x,z){const P=this._calculateBoundingBoxRect(x,z);!this._isInitialRender&&!this._growAfterOpen&&(P.height=Math.min(P.height,this._lastBoundingBoxSize.height),P.width=Math.min(P.width,this._lastBoundingBoxSize.width));const pe={};if(this._hasExactPosition())pe.top=pe.left="0",pe.bottom=pe.right=pe.maxHeight=pe.maxWidth="",pe.width=pe.height="100%";else{const j=this._overlayRef.getConfig().maxHeight,me=this._overlayRef.getConfig().maxWidth;pe.height=(0,oe.HM)(P.height),pe.top=(0,oe.HM)(P.top),pe.bottom=(0,oe.HM)(P.bottom),pe.width=(0,oe.HM)(P.width),pe.left=(0,oe.HM)(P.left),pe.right=(0,oe.HM)(P.right),pe.alignItems="center"===z.overlayX?"center":"end"===z.overlayX?"flex-end":"flex-start",pe.justifyContent="center"===z.overlayY?"center":"bottom"===z.overlayY?"flex-end":"flex-start",j&&(pe.maxHeight=(0,oe.HM)(j)),me&&(pe.maxWidth=(0,oe.HM)(me))}this._lastBoundingBoxSize=P,mt(this._boundingBox.style,pe)}_resetBoundingBoxStyles(){mt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){mt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(x,z){const P={},pe=this._hasExactPosition(),j=this._hasFlexibleDimensions,me=this._overlayRef.getConfig();if(pe){const Me=this._viewportRuler.getViewportScrollPosition();mt(P,this._getExactOverlayY(z,x,Me)),mt(P,this._getExactOverlayX(z,x,Me))}else P.position="static";let He="",Ge=this._getOffset(z,"x"),Le=this._getOffset(z,"y");Ge&&(He+=`translateX(${Ge}px) `),Le&&(He+=`translateY(${Le}px)`),P.transform=He.trim(),me.maxHeight&&(pe?P.maxHeight=(0,oe.HM)(me.maxHeight):j&&(P.maxHeight="")),me.maxWidth&&(pe?P.maxWidth=(0,oe.HM)(me.maxWidth):j&&(P.maxWidth="")),mt(this._pane.style,P)}_getExactOverlayY(x,z,P){let pe={top:"",bottom:""},j=this._getOverlayPoint(z,this._overlayRect,x);return this._isPushed&&(j=this._pushOverlayOnScreen(j,this._overlayRect,P)),"bottom"===x.overlayY?pe.bottom=this._document.documentElement.clientHeight-(j.y+this._overlayRect.height)+"px":pe.top=(0,oe.HM)(j.y),pe}_getExactOverlayX(x,z,P){let me,pe={left:"",right:""},j=this._getOverlayPoint(z,this._overlayRect,x);return this._isPushed&&(j=this._pushOverlayOnScreen(j,this._overlayRect,P)),me=this._isRtl()?"end"===x.overlayX?"left":"right":"end"===x.overlayX?"right":"left","right"===me?pe.right=this._document.documentElement.clientWidth-(j.x+this._overlayRect.width)+"px":pe.left=(0,oe.HM)(j.x),pe}_getScrollVisibility(){const x=this._getOriginRect(),z=this._pane.getBoundingClientRect(),P=this._scrollables.map(pe=>pe.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:et(x,P),isOriginOutsideView:$e(x,P),isOverlayClipped:et(z,P),isOverlayOutsideView:$e(z,P)}}_subtractOverflows(x,...z){return z.reduce((P,pe)=>P-Math.max(pe,0),x)}_getNarrowedViewportRect(){const x=this._document.documentElement.clientWidth,z=this._document.documentElement.clientHeight,P=this._viewportRuler.getViewportScrollPosition();return{top:P.top+this._viewportMargin,left:P.left+this._viewportMargin,right:P.left+x-this._viewportMargin,bottom:P.top+z-this._viewportMargin,width:x-2*this._viewportMargin,height:z-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(x,z){return"x"===z?null==x.offsetX?this._offsetX:x.offsetX:null==x.offsetY?this._offsetY:x.offsetY}_validatePositions(){}_addPanelClasses(x){this._pane&&(0,oe.Eq)(x).forEach(z=>{""!==z&&-1===this._appliedPanelClasses.indexOf(z)&&(this._appliedPanelClasses.push(z),this._pane.classList.add(z))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(x=>{this._pane.classList.remove(x)}),this._appliedPanelClasses=[])}_getOriginRect(){const x=this._origin;if(x instanceof G.SBq)return x.nativeElement.getBoundingClientRect();if(x instanceof Element)return x.getBoundingClientRect();const z=x.width||0,P=x.height||0;return{top:x.y,bottom:x.y+P,left:x.x,right:x.x+z,height:P,width:z}}}function mt(qe,x){for(let z in x)x.hasOwnProperty(z)&&(qe[z]=x[z]);return qe}function Qe(qe){if("number"!=typeof qe&&null!=qe){const[x,z]=qe.split(ke);return z&&"px"!==z?null:parseFloat(x)}return qe||null}function dt(qe){return{top:Math.floor(qe.top),right:Math.floor(qe.right),bottom:Math.floor(qe.bottom),left:Math.floor(qe.left),width:Math.floor(qe.width),height:Math.floor(qe.height)}}const _t="cdk-global-overlay-wrapper";class it{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(x){const z=x.getConfig();this._overlayRef=x,this._width&&!z.width&&x.updateSize({width:this._width}),this._height&&!z.height&&x.updateSize({height:this._height}),x.hostElement.classList.add(_t),this._isDisposed=!1}top(x=""){return this._bottomOffset="",this._topOffset=x,this._alignItems="flex-start",this}left(x=""){return this._rightOffset="",this._leftOffset=x,this._justifyContent="flex-start",this}bottom(x=""){return this._topOffset="",this._bottomOffset=x,this._alignItems="flex-end",this}right(x=""){return this._leftOffset="",this._rightOffset=x,this._justifyContent="flex-end",this}width(x=""){return this._overlayRef?this._overlayRef.updateSize({width:x}):this._width=x,this}height(x=""){return this._overlayRef?this._overlayRef.updateSize({height:x}):this._height=x,this}centerHorizontally(x=""){return this.left(x),this._justifyContent="center",this}centerVertically(x=""){return this.top(x),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const x=this._overlayRef.overlayElement.style,z=this._overlayRef.hostElement.style,P=this._overlayRef.getConfig(),{width:pe,height:j,maxWidth:me,maxHeight:He}=P,Ge=!("100%"!==pe&&"100vw"!==pe||me&&"100%"!==me&&"100vw"!==me),Le=!("100%"!==j&&"100vh"!==j||He&&"100%"!==He&&"100vh"!==He);x.position=this._cssPosition,x.marginLeft=Ge?"0":this._leftOffset,x.marginTop=Le?"0":this._topOffset,x.marginBottom=this._bottomOffset,x.marginRight=this._rightOffset,Ge?z.justifyContent="flex-start":"center"===this._justifyContent?z.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?z.justifyContent="flex-end":"flex-end"===this._justifyContent&&(z.justifyContent="flex-start"):z.justifyContent=this._justifyContent,z.alignItems=Le?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const x=this._overlayRef.overlayElement.style,z=this._overlayRef.hostElement,P=z.style;z.classList.remove(_t),P.justifyContent=P.alignItems=x.marginTop=x.marginBottom=x.marginLeft=x.marginRight=x.position="",this._overlayRef=null,this._isDisposed=!0}}let St=(()=>{class qe{constructor(z,P,pe,j){this._viewportRuler=z,this._document=P,this._platform=pe,this._overlayContainer=j}global(){return new it}flexibleConnectedTo(z){return new ve(z,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(a.rL),G.LFG(s.K0),G.LFG(q.t4),G.LFG(je))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),ot=(()=>{class qe{constructor(z){this._attachedOverlays=[],this._document=z}ngOnDestroy(){this.detach()}add(z){this.remove(z),this._attachedOverlays.push(z)}remove(z){const P=this._attachedOverlays.indexOf(z);P>-1&&this._attachedOverlays.splice(P,1),0===this._attachedOverlays.length&&this.detach()}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(s.K0))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),Et=(()=>{class qe extends ot{constructor(z){super(z),this._keydownListener=P=>{const pe=this._attachedOverlays;for(let j=pe.length-1;j>-1;j--)if(pe[j]._keydownEvents.observers.length>0){pe[j]._keydownEvents.next(P);break}}}add(z){super.add(z),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 qe.\u0275fac=function(z){return new(z||qe)(G.LFG(s.K0))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),Zt=(()=>{class qe extends ot{constructor(z,P){super(z),this._platform=P,this._cursorStyleIsSet=!1,this._pointerDownListener=pe=>{this._pointerDownEventTarget=(0,q.sA)(pe)},this._clickListener=pe=>{const j=(0,q.sA)(pe),me="click"===pe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:j;this._pointerDownEventTarget=null;const He=this._attachedOverlays.slice();for(let Ge=He.length-1;Ge>-1;Ge--){const Le=He[Ge];if(!(Le._outsidePointerEvents.observers.length<1)&&Le.hasAttached()){if(Le.overlayElement.contains(j)||Le.overlayElement.contains(me))break;Le._outsidePointerEvents.next(pe)}}}}add(z){if(super.add(z),!this._isAttached){const P=this._document.body;P.addEventListener("pointerdown",this._pointerDownListener,!0),P.addEventListener("click",this._clickListener,!0),P.addEventListener("auxclick",this._clickListener,!0),P.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=P.style.cursor,P.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const z=this._document.body;z.removeEventListener("pointerdown",this._pointerDownListener,!0),z.removeEventListener("click",this._clickListener,!0),z.removeEventListener("auxclick",this._clickListener,!0),z.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(z.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(s.K0),G.LFG(q.t4))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),mn=0,gn=(()=>{class qe{constructor(z,P,pe,j,me,He,Ge,Le,Me,V,Be){this.scrollStrategies=z,this._overlayContainer=P,this._componentFactoryResolver=pe,this._positionBuilder=j,this._keyboardDispatcher=me,this._injector=He,this._ngZone=Ge,this._document=Le,this._directionality=Me,this._location=V,this._outsideClickDispatcher=Be}create(z){const P=this._createHostElement(),pe=this._createPaneElement(P),j=this._createPortalOutlet(pe),me=new J(z);return me.direction=me.direction||this._directionality.value,new Ue(j,P,pe,me,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(z){const P=this._document.createElement("div");return P.id="cdk-overlay-"+mn++,P.classList.add("cdk-overlay-pane"),z.appendChild(P),P}_createHostElement(){const z=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(z),z}_createPortalOutlet(z){return this._appRef||(this._appRef=this._injector.get(G.z2F)),new W.u0(z,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(Xe),G.LFG(je),G.LFG(G._Vd),G.LFG(St),G.LFG(Et),G.LFG(G.zs3),G.LFG(G.R0b),G.LFG(s.K0),G.LFG(_.Is),G.LFG(s.Ye),G.LFG(Zt))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const Ut=[{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"}],un=new G.OlP("cdk-connected-overlay-scroll-strategy");let _n=(()=>{class qe{constructor(z){this.elementRef=z}}return qe.\u0275fac=function(z){return new(z||qe)(G.Y36(G.SBq))},qe.\u0275dir=G.lG2({type:qe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),qe})(),Cn=(()=>{class qe{constructor(z,P,pe,j,me){this._overlay=z,this._dir=me,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=R.w.EMPTY,this._attachSubscription=R.w.EMPTY,this._detachSubscription=R.w.EMPTY,this._positionSubscription=R.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new G.vpe,this.positionChange=new G.vpe,this.attach=new G.vpe,this.detach=new G.vpe,this.overlayKeydown=new G.vpe,this.overlayOutsideClick=new G.vpe,this._templatePortal=new W.UE(P,pe),this._scrollStrategyFactory=j,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(z){this._offsetX=z,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(z){this._offsetY=z,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(z){this._hasBackdrop=(0,oe.Ig)(z)}get lockPosition(){return this._lockPosition}set lockPosition(z){this._lockPosition=(0,oe.Ig)(z)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(z){this._flexibleDimensions=(0,oe.Ig)(z)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(z){this._growAfterOpen=(0,oe.Ig)(z)}get push(){return this._push}set push(z){this._push=(0,oe.Ig)(z)}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(z){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),z.origin&&this.open&&this._position.apply()),z.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ut);const z=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=z.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=z.detachments().subscribe(()=>this.detach.emit()),z.keydownEvents().subscribe(P=>{this.overlayKeydown.next(P),P.keyCode===_e.hY&&!this.disableClose&&!(0,_e.Vb)(P)&&(P.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(P=>{this.overlayOutsideClick.next(P)})}_buildConfig(){const z=this._position=this.positionStrategy||this._createPositionStrategy(),P=new J({direction:this._dir,positionStrategy:z,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(P.width=this.width),(this.height||0===this.height)&&(P.height=this.height),(this.minWidth||0===this.minWidth)&&(P.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(P.minHeight=this.minHeight),this.backdropClass&&(P.backdropClass=this.backdropClass),this.panelClass&&(P.panelClass=this.panelClass),P}_updatePositionStrategy(z){const P=this.positions.map(pe=>({originX:pe.originX,originY:pe.originY,overlayX:pe.overlayX,overlayY:pe.overlayY,offsetX:pe.offsetX||this.offsetX,offsetY:pe.offsetY||this.offsetY,panelClass:pe.panelClass||void 0}));return z.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(P).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const z=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(z),z}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof _n?this.origin.elementRef:this.origin}_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(z=>{this.backdropClick.emit(z)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function ee(qe,x=!1){return z=>z.lift(new ye(qe,x))}(()=>this.positionChange.observers.length>0)).subscribe(z=>{this.positionChange.emit(z),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return qe.\u0275fac=function(z){return new(z||qe)(G.Y36(gn),G.Y36(G.Rgc),G.Y36(G.s_b),G.Y36(un),G.Y36(_.Is,8))},qe.\u0275dir=G.lG2({type:qe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[G.TTD]}),qe})();const Sn={provide:un,deps:[gn],useFactory:function Dt(qe){return()=>qe.scrollStrategies.reposition()}};let cn=(()=>{class qe{}return qe.\u0275fac=function(z){return new(z||qe)},qe.\u0275mod=G.oAB({type:qe}),qe.\u0275inj=G.cJS({providers:[gn,Sn],imports:[[_.vT,W.eL,a.Cl],a.Cl]}),qe})()},925:(yt,be,p)=>{p.d(be,{t4:()=>oe,ud:()=>q,sA:()=>zt,kV:()=>vt,Oy:()=>ut,_i:()=>Fe,i$:()=>B,Mq:()=>Ye});var a=p(5e3),s=p(9808);let G;try{G="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Ie){G=!1}let R,ee,ye,ze,oe=(()=>{class Ie{constructor(et){this._platformId=et,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&&!G)&&"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 Ie.\u0275fac=function(et){return new(et||Ie)(a.LFG(a.Lbi))},Ie.\u0275prov=a.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})(),q=(()=>{class Ie{}return Ie.\u0275fac=function(et){return new(et||Ie)},Ie.\u0275mod=a.oAB({type:Ie}),Ie.\u0275inj=a.cJS({}),Ie})();function B(Ie){return function H(){if(null==R&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>R=!0}))}finally{R=R||!1}return R}()?Ie:!!Ie.capture}function Ye(){if(null==ye){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ye=!1,ye;if("scrollBehavior"in document.documentElement.style)ye=!0;else{const Ie=Element.prototype.scrollTo;ye=!!Ie&&!/\{\s*\[native code\]\s*\}/.test(Ie.toString())}}return ye}function Fe(){if("object"!=typeof document||!document)return 0;if(null==ee){const Ie=document.createElement("div"),$e=Ie.style;Ie.dir="rtl",$e.width="1px",$e.overflow="auto",$e.visibility="hidden",$e.pointerEvents="none",$e.position="absolute";const et=document.createElement("div"),Se=et.style;Se.width="2px",Se.height="1px",Ie.appendChild(et),document.body.appendChild(Ie),ee=0,0===Ie.scrollLeft&&(Ie.scrollLeft=1,ee=0===Ie.scrollLeft?1:2),Ie.remove()}return ee}function vt(Ie){if(function _e(){if(null==ze){const Ie="undefined"!=typeof document?document.head:null;ze=!(!Ie||!Ie.createShadowRoot&&!Ie.attachShadow)}return ze}()){const $e=Ie.getRootNode?Ie.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&$e instanceof ShadowRoot)return $e}return null}function zt(Ie){return Ie.composedPath?Ie.composedPath()[0]:Ie.target}function ut(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(yt,be,p)=>{p.d(be,{en:()=>ye,Pl:()=>Je,C5:()=>H,u0:()=>Fe,eL:()=>ut,UE:()=>B});var a=p(5e3),s=p(9808);class R{attach(et){return this._attachedHost=et,et.attach(this)}detach(){let et=this._attachedHost;null!=et&&(this._attachedHost=null,et.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(et){this._attachedHost=et}}class H extends R{constructor(et,Se,Xe,J){super(),this.component=et,this.viewContainerRef=Se,this.injector=Xe,this.componentFactoryResolver=J}}class B extends R{constructor(et,Se,Xe){super(),this.templateRef=et,this.viewContainerRef=Se,this.context=Xe}get origin(){return this.templateRef.elementRef}attach(et,Se=this.context){return this.context=Se,super.attach(et)}detach(){return this.context=void 0,super.detach()}}class ee extends R{constructor(et){super(),this.element=et instanceof a.SBq?et.nativeElement:et}}class ye{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(et){return et instanceof H?(this._attachedPortal=et,this.attachComponentPortal(et)):et instanceof B?(this._attachedPortal=et,this.attachTemplatePortal(et)):this.attachDomPortal&&et instanceof ee?(this._attachedPortal=et,this.attachDomPortal(et)):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(et){this._disposeFn=et}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Fe extends ye{constructor(et,Se,Xe,J,fe){super(),this.outletElement=et,this._componentFactoryResolver=Se,this._appRef=Xe,this._defaultInjector=J,this.attachDomPortal=he=>{const te=he.element,le=this._document.createComment("dom-portal");te.parentNode.insertBefore(le,te),this.outletElement.appendChild(te),this._attachedPortal=he,super.setDisposeFn(()=>{le.parentNode&&le.parentNode.replaceChild(te,le)})},this._document=fe}attachComponentPortal(et){const Xe=(et.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(et.component);let J;return et.viewContainerRef?(J=et.viewContainerRef.createComponent(Xe,et.viewContainerRef.length,et.injector||et.viewContainerRef.injector),this.setDisposeFn(()=>J.destroy())):(J=Xe.create(et.injector||this._defaultInjector),this._appRef.attachView(J.hostView),this.setDisposeFn(()=>{this._appRef.detachView(J.hostView),J.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(J)),this._attachedPortal=et,J}attachTemplatePortal(et){let Se=et.viewContainerRef,Xe=Se.createEmbeddedView(et.templateRef,et.context);return Xe.rootNodes.forEach(J=>this.outletElement.appendChild(J)),Xe.detectChanges(),this.setDisposeFn(()=>{let J=Se.indexOf(Xe);-1!==J&&Se.remove(J)}),this._attachedPortal=et,Xe}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(et){return et.hostView.rootNodes[0]}}let Je=(()=>{class $e extends ye{constructor(Se,Xe,J){super(),this._componentFactoryResolver=Se,this._viewContainerRef=Xe,this._isInitialized=!1,this.attached=new a.vpe,this.attachDomPortal=fe=>{const he=fe.element,te=this._document.createComment("dom-portal");fe.setAttachedHost(this),he.parentNode.insertBefore(te,he),this._getRootNode().appendChild(he),this._attachedPortal=fe,super.setDisposeFn(()=>{te.parentNode&&te.parentNode.replaceChild(he,te)})},this._document=J}get portal(){return this._attachedPortal}set portal(Se){this.hasAttached()&&!Se&&!this._isInitialized||(this.hasAttached()&&super.detach(),Se&&super.attach(Se),this._attachedPortal=Se||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Se){Se.setAttachedHost(this);const Xe=null!=Se.viewContainerRef?Se.viewContainerRef:this._viewContainerRef,fe=(Se.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Se.component),he=Xe.createComponent(fe,Xe.length,Se.injector||Xe.injector);return Xe!==this._viewContainerRef&&this._getRootNode().appendChild(he.hostView.rootNodes[0]),super.setDisposeFn(()=>he.destroy()),this._attachedPortal=Se,this._attachedRef=he,this.attached.emit(he),he}attachTemplatePortal(Se){Se.setAttachedHost(this);const Xe=this._viewContainerRef.createEmbeddedView(Se.templateRef,Se.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Se,this._attachedRef=Xe,this.attached.emit(Xe),Xe}_getRootNode(){const Se=this._viewContainerRef.element.nativeElement;return Se.nodeType===Se.ELEMENT_NODE?Se:Se.parentNode}}return $e.\u0275fac=function(Se){return new(Se||$e)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36(s.K0))},$e.\u0275dir=a.lG2({type:$e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.qOj]}),$e})(),ut=(()=>{class $e{}return $e.\u0275fac=function(Se){return new(Se||$e)},$e.\u0275mod=a.oAB({type:$e}),$e.\u0275inj=a.cJS({}),$e})()},3393:(yt,be,p)=>{p.d(be,{xd:()=>Dt,x0:()=>me,N7:()=>pe,mF:()=>cn,Cl:()=>Ge,rL:()=>x});var a=p(3191),s=p(5e3),G=p(6686),q=p(2268);const W=new class _ extends q.v{flush(Me){this.active=!0,this.scheduled=void 0;const{actions:V}=this;let Be,nt=-1,ce=V.length;Me=Me||V.shift();do{if(Be=Me.execute(Me.state,Me.delay))break}while(++nt0?super.requestAsyncId(Me,V,Be):(Me.actions.push(this),Me.scheduled||(Me.scheduled=requestAnimationFrame(()=>Me.flush(null))))}recycleAsyncId(Me,V,Be=0){if(null!==Be&&Be>0||null===Be&&this.delay>0)return super.recycleAsyncId(Me,V,Be);0===Me.actions.length&&(cancelAnimationFrame(V),Me.scheduled=void 0)}});let R=1;const H=Promise.resolve(),B={};function ee(Le){return Le in B&&(delete B[Le],!0)}const ye={setImmediate(Le){const Me=R++;return B[Me]=!0,H.then(()=>ee(Me)&&Le()),Me},clearImmediate(Le){ee(Le)}},_e=new class ze extends q.v{flush(Me){this.active=!0,this.scheduled=void 0;const{actions:V}=this;let Be,nt=-1,ce=V.length;Me=Me||V.shift();do{if(Be=Me.execute(Me.state,Me.delay))break}while(++nt0?super.requestAsyncId(Me,V,Be):(Me.actions.push(this),Me.scheduled||(Me.scheduled=ye.setImmediate(Me.flush.bind(Me,null))))}recycleAsyncId(Me,V,Be=0){if(null!==Be&&Be>0||null===Be&&this.delay>0)return super.recycleAsyncId(Me,V,Be);0===Me.actions.length&&(ye.clearImmediate(V),Me.scheduled=void 0)}});var Je=p(6498);function zt(Le){return!!Le&&(Le instanceof Je.y||"function"==typeof Le.lift&&"function"==typeof Le.subscribe)}var ut=p(8929),Ie=p(1086),$e=p(3753),et=p(2654),Se=p(3489);class J{call(Me,V){return V.subscribe(new fe(Me))}}class fe extends Se.L{constructor(Me){super(Me),this.hasPrev=!1}_next(Me){let V;this.hasPrev?V=[this.prev,Me]:this.hasPrev=!0,this.prev=Me,V&&this.destination.next(V)}}var he=p(5778),te=p(7138),le=p(2198),ie=p(7625),Ue=p(1059),je=p(7545),tt=p(5154),ke=p(9808),ve=p(925),mt=p(226);class _t extends class Qe{}{constructor(Me){super(),this._data=Me}connect(){return zt(this._data)?this._data:(0,Ie.of)(this._data)}disconnect(){}}class St{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(Me,V,Be,nt,ce){Me.forEachOperation((Ne,L,E)=>{let $,ue;null==Ne.previousIndex?($=this._insertView(()=>Be(Ne,L,E),E,V,nt(Ne)),ue=$?1:0):null==E?(this._detachAndCacheView(L,V),ue=3):($=this._moveView(L,E,V,nt(Ne)),ue=2),ce&&ce({context:null==$?void 0:$.context,operation:ue,record:Ne})})}detach(){for(const Me of this._viewCache)Me.destroy();this._viewCache=[]}_insertView(Me,V,Be,nt){const ce=this._insertViewFromCache(V,Be);if(ce)return void(ce.context.$implicit=nt);const Ne=Me();return Be.createEmbeddedView(Ne.templateRef,Ne.context,Ne.index)}_detachAndCacheView(Me,V){const Be=V.detach(Me);this._maybeCacheView(Be,V)}_moveView(Me,V,Be,nt){const ce=Be.get(Me);return Be.move(ce,V),ce.context.$implicit=nt,ce}_maybeCacheView(Me,V){if(this._viewCache.length0?ce/this._itemSize:0;if(V.end>nt){const E=Math.ceil(Be/this._itemSize),$=Math.max(0,Math.min(Ne,nt-E));Ne!=$&&(Ne=$,ce=$*this._itemSize,V.start=Math.floor(Ne)),V.end=Math.max(0,Math.min(nt,V.start+E))}const L=ce-V.start*this._itemSize;if(L0&&(V.end=Math.min(nt,V.end+$),V.start=Math.max(0,Math.floor(Ne-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(V),this._viewport.setRenderedContentOffset(this._itemSize*V.start),this._scrolledIndexChange.next(Math.floor(Ne))}}function Cn(Le){return Le._scrollStrategy}let Dt=(()=>{class Le{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new _n(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(V){this._itemSize=(0,a.su)(V)}get minBufferPx(){return this._minBufferPx}set minBufferPx(V){this._minBufferPx=(0,a.su)(V)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(V){this._maxBufferPx=(0,a.su)(V)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275dir=s.lG2({type:Le,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[s._Bn([{provide:un,useFactory:Cn,deps:[(0,s.Gpc)(()=>Le)]}]),s.TTD]}),Le})(),cn=(()=>{class Le{constructor(V,Be,nt){this._ngZone=V,this._platform=Be,this._scrolled=new ut.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=nt}register(V){this.scrollContainers.has(V)||this.scrollContainers.set(V,V.elementScrolled().subscribe(()=>this._scrolled.next(V)))}deregister(V){const Be=this.scrollContainers.get(V);Be&&(Be.unsubscribe(),this.scrollContainers.delete(V))}scrolled(V=20){return this._platform.isBrowser?new Je.y(Be=>{this._globalSubscription||this._addGlobalListener();const nt=V>0?this._scrolled.pipe((0,te.e)(V)).subscribe(Be):this._scrolled.subscribe(Be);return this._scrolledCount++,()=>{nt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ie.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((V,Be)=>this.deregister(Be)),this._scrolled.complete()}ancestorScrolled(V,Be){const nt=this.getAncestorScrollContainers(V);return this.scrolled(Be).pipe((0,le.h)(ce=>!ce||nt.indexOf(ce)>-1))}getAncestorScrollContainers(V){const Be=[];return this.scrollContainers.forEach((nt,ce)=>{this._scrollableContainsElement(ce,V)&&Be.push(ce)}),Be}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(V,Be){let nt=(0,a.fI)(Be),ce=V.getElementRef().nativeElement;do{if(nt==ce)return!0}while(nt=nt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const V=this._getWindow();return(0,$e.R)(V.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Le.\u0275fac=function(V){return new(V||Le)(s.LFG(s.R0b),s.LFG(ve.t4),s.LFG(ke.K0,8))},Le.\u0275prov=s.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})(),Mn=(()=>{class Le{constructor(V,Be,nt,ce){this.elementRef=V,this.scrollDispatcher=Be,this.ngZone=nt,this.dir=ce,this._destroyed=new ut.xQ,this._elementScrolled=new Je.y(Ne=>this.ngZone.runOutsideAngular(()=>(0,$e.R)(this.elementRef.nativeElement,"scroll").pipe((0,ie.R)(this._destroyed)).subscribe(Ne)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(V){const Be=this.elementRef.nativeElement,nt=this.dir&&"rtl"==this.dir.value;null==V.left&&(V.left=nt?V.end:V.start),null==V.right&&(V.right=nt?V.start:V.end),null!=V.bottom&&(V.top=Be.scrollHeight-Be.clientHeight-V.bottom),nt&&0!=(0,ve._i)()?(null!=V.left&&(V.right=Be.scrollWidth-Be.clientWidth-V.left),2==(0,ve._i)()?V.left=V.right:1==(0,ve._i)()&&(V.left=V.right?-V.right:V.right)):null!=V.right&&(V.left=Be.scrollWidth-Be.clientWidth-V.right),this._applyScrollToOptions(V)}_applyScrollToOptions(V){const Be=this.elementRef.nativeElement;(0,ve.Mq)()?Be.scrollTo(V):(null!=V.top&&(Be.scrollTop=V.top),null!=V.left&&(Be.scrollLeft=V.left))}measureScrollOffset(V){const Be="left",ce=this.elementRef.nativeElement;if("top"==V)return ce.scrollTop;if("bottom"==V)return ce.scrollHeight-ce.clientHeight-ce.scrollTop;const Ne=this.dir&&"rtl"==this.dir.value;return"start"==V?V=Ne?"right":Be:"end"==V&&(V=Ne?Be:"right"),Ne&&2==(0,ve._i)()?V==Be?ce.scrollWidth-ce.clientWidth-ce.scrollLeft:ce.scrollLeft:Ne&&1==(0,ve._i)()?V==Be?ce.scrollLeft+ce.scrollWidth-ce.clientWidth:-ce.scrollLeft:V==Be?ce.scrollLeft:ce.scrollWidth-ce.clientWidth-ce.scrollLeft}}return Le.\u0275fac=function(V){return new(V||Le)(s.Y36(s.SBq),s.Y36(cn),s.Y36(s.R0b),s.Y36(mt.Is,8))},Le.\u0275dir=s.lG2({type:Le,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Le})(),x=(()=>{class Le{constructor(V,Be,nt){this._platform=V,this._change=new ut.xQ,this._changeListener=ce=>{this._change.next(ce)},this._document=nt,Be.runOutsideAngular(()=>{if(V.isBrowser){const ce=this._getWindow();ce.addEventListener("resize",this._changeListener),ce.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const V=this._getWindow();V.removeEventListener("resize",this._changeListener),V.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const V={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),V}getViewportRect(){const V=this.getViewportScrollPosition(),{width:Be,height:nt}=this.getViewportSize();return{top:V.top,left:V.left,bottom:V.top+nt,right:V.left+Be,height:nt,width:Be}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const V=this._document,Be=this._getWindow(),nt=V.documentElement,ce=nt.getBoundingClientRect();return{top:-ce.top||V.body.scrollTop||Be.scrollY||nt.scrollTop||0,left:-ce.left||V.body.scrollLeft||Be.scrollX||nt.scrollLeft||0}}change(V=20){return V>0?this._change.pipe((0,te.e)(V)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const V=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:V.innerWidth,height:V.innerHeight}:{width:0,height:0}}}return Le.\u0275fac=function(V){return new(V||Le)(s.LFG(ve.t4),s.LFG(s.R0b),s.LFG(ke.K0,8))},Le.\u0275prov=s.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})();const P="undefined"!=typeof requestAnimationFrame?W:_e;let pe=(()=>{class Le extends Mn{constructor(V,Be,nt,ce,Ne,L,E){super(V,L,nt,Ne),this.elementRef=V,this._changeDetectorRef=Be,this._scrollStrategy=ce,this._detachedSubject=new ut.xQ,this._renderedRangeSubject=new ut.xQ,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new Je.y($=>this._scrollStrategy.scrolledIndexChange.subscribe(ue=>Promise.resolve().then(()=>this.ngZone.run(()=>$.next(ue))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=et.w.EMPTY,this._viewportChanges=E.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(V){this._orientation!==V&&(this._orientation=V,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(V){this._appendOnly=(0,a.Ig)(V)}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe((0,Ue.O)(null),(0,te.e)(0,P)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(V){this.ngZone.runOutsideAngular(()=>{this._forOf=V,this._forOf.dataStream.pipe((0,ie.R)(this._detachedSubject)).subscribe(Be=>{const nt=Be.length;nt!==this._dataLength&&(this._dataLength=nt,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(V){this._totalContentSize!==V&&(this._totalContentSize=V,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(V){(function z(Le,Me){return Le.start==Me.start&&Le.end==Me.end})(this._renderedRange,V)||(this.appendOnly&&(V={start:0,end:Math.max(this._renderedRange.end,V.end)}),this._renderedRangeSubject.next(this._renderedRange=V),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(V,Be="to-start"){const ce="horizontal"==this.orientation,Ne=ce?"X":"Y";let E=`translate${Ne}(${Number((ce&&this.dir&&"rtl"==this.dir.value?-1:1)*V)}px)`;this._renderedContentOffset=V,"to-end"===Be&&(E+=` translate${Ne}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=E&&(this._renderedContentTransform=E,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(V,Be="auto"){const nt={behavior:Be};"horizontal"===this.orientation?nt.start=V:nt.top=V,this.scrollTo(nt)}scrollToIndex(V,Be="auto"){this._scrollStrategy.scrollToIndex(V,Be)}measureScrollOffset(V){return super.measureScrollOffset(V||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const V=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?V.offsetWidth:V.offsetHeight}measureRangeSize(V){return this._forOf?this._forOf.measureRangeSize(V,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const V=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?V.clientWidth:V.clientHeight}_markChangeDetectionNeeded(V){V&&this._runAfterChangeDetection.push(V),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const V=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const Be of V)Be()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Le.\u0275fac=function(V){return new(V||Le)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(un,8),s.Y36(mt.Is,8),s.Y36(cn),s.Y36(x))},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(V,Be){if(1&V&&s.Gf(gn,7),2&V){let nt;s.iGM(nt=s.CRH())&&(Be._contentWrapper=nt.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(V,Be){2&V&&s.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===Be.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Be.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[s._Bn([{provide:Mn,useExisting:Le}]),s.qOj],ngContentSelectors:Ut,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(V,Be){1&V&&(s.F$t(),s.TgZ(0,"div",0,1),s.Hsn(2),s.qZA(),s._UZ(3,"div",2)),2&V&&(s.xp6(3),s.Udp("width",Be._totalContentWidth)("height",Be._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),Le})();function j(Le,Me,V){if(!V.getBoundingClientRect)return 0;const nt=V.getBoundingClientRect();return"horizontal"===Le?"start"===Me?nt.left:nt.right:"start"===Me?nt.top:nt.bottom}let me=(()=>{class Le{constructor(V,Be,nt,ce,Ne,L){this._viewContainerRef=V,this._template=Be,this._differs=nt,this._viewRepeater=ce,this._viewport=Ne,this.viewChange=new ut.xQ,this._dataSourceChanges=new ut.xQ,this.dataStream=this._dataSourceChanges.pipe((0,Ue.O)(null),function Xe(){return Le=>Le.lift(new J)}(),(0,je.w)(([E,$])=>this._changeDataSource(E,$)),(0,tt.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new ut.xQ,this.dataStream.subscribe(E=>{this._data=E,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,ie.R)(this._destroyed)).subscribe(E=>{this._renderedRange=E,L.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(V){this._cdkVirtualForOf=V,function dt(Le){return Le&&"function"==typeof Le.connect}(V)?this._dataSourceChanges.next(V):this._dataSourceChanges.next(new _t(zt(V)?V:Array.from(V||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(V){this._needsUpdate=!0,this._cdkVirtualForTrackBy=V?(Be,nt)=>V(Be+(this._renderedRange?this._renderedRange.start:0),nt):void 0}set cdkVirtualForTemplate(V){V&&(this._needsUpdate=!0,this._template=V)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(V){this._viewRepeater.viewCacheSize=(0,a.su)(V)}measureRangeSize(V,Be){if(V.start>=V.end)return 0;const nt=V.start-this._renderedRange.start,ce=V.end-V.start;let Ne,L;for(let E=0;E-1;E--){const $=this._viewContainerRef.get(E+nt);if($&&$.rootNodes.length){L=$.rootNodes[$.rootNodes.length-1];break}}return Ne&&L?j(Be,"end",L)-j(Be,"start",Ne):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const V=this._differ.diff(this._renderedItems);V?this._applyChanges(V):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((V,Be)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(V,Be):Be)),this._needsUpdate=!0)}_changeDataSource(V,Be){return V&&V.disconnect(this),this._needsUpdate=!0,Be?Be.connect(this):(0,Ie.of)()}_updateContext(){const V=this._data.length;let Be=this._viewContainerRef.length;for(;Be--;){const nt=this._viewContainerRef.get(Be);nt.context.index=this._renderedRange.start+Be,nt.context.count=V,this._updateComputedContextProperties(nt.context),nt.detectChanges()}}_applyChanges(V){this._viewRepeater.applyChanges(V,this._viewContainerRef,(ce,Ne,L)=>this._getEmbeddedViewArgs(ce,L),ce=>ce.item),V.forEachIdentityChange(ce=>{this._viewContainerRef.get(ce.currentIndex).context.$implicit=ce.item});const Be=this._data.length;let nt=this._viewContainerRef.length;for(;nt--;){const ce=this._viewContainerRef.get(nt);ce.context.index=this._renderedRange.start+nt,ce.context.count=Be,this._updateComputedContextProperties(ce.context)}}_updateComputedContextProperties(V){V.first=0===V.index,V.last=V.index===V.count-1,V.even=V.index%2==0,V.odd=!V.even}_getEmbeddedViewArgs(V,Be){return{templateRef:this._template,context:{$implicit:V.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:Be}}}return Le.\u0275fac=function(V){return new(V||Le)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(mn),s.Y36(pe,4),s.Y36(s.R0b))},Le.\u0275dir=s.lG2({type:Le,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[s._Bn([{provide:mn,useClass:St}])]}),Le})(),He=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=s.oAB({type:Le}),Le.\u0275inj=s.cJS({}),Le})(),Ge=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=s.oAB({type:Le}),Le.\u0275inj=s.cJS({imports:[[mt.vT,ve.ud,He],mt.vT,He]}),Le})()},9808:(yt,be,p)=>{p.d(be,{mr:()=>Je,Ov:()=>vo,ez:()=>Vo,K0:()=>W,uU:()=>Ii,JJ:()=>qo,Do:()=>ut,V_:()=>H,Ye:()=>Ie,S$:()=>_e,mk:()=>$n,sg:()=>qn,O5:()=>k,PC:()=>bi,RF:()=>Ot,n9:()=>Vt,ED:()=>hn,tP:()=>io,wE:()=>ie,b0:()=>zt,lw:()=>I,EM:()=>Qi,JF:()=>Wn,dv:()=>ot,NF:()=>hi,qS:()=>Lt,w_:()=>_,bD:()=>Lo,q:()=>G,Mx:()=>Un,HT:()=>q});var a=p(5e3);let s=null;function G(){return s}function q(b){s||(s=b)}class _{}const W=new a.OlP("DocumentToken");let I=(()=>{class b{historyGo(w){throw new Error("Not implemented")}}return b.\u0275fac=function(w){return new(w||b)},b.\u0275prov=a.Yz7({token:b,factory:function(){return function R(){return(0,a.LFG)(B)}()},providedIn:"platform"}),b})();const H=new a.OlP("Location Initialized");let B=(()=>{class b extends I{constructor(w){super(),this._doc=w,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return G().getBaseHref(this._doc)}onPopState(w){const Q=G().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("popstate",w,!1),()=>Q.removeEventListener("popstate",w)}onHashChange(w){const Q=G().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("hashchange",w,!1),()=>Q.removeEventListener("hashchange",w)}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(w){this.location.pathname=w}pushState(w,Q,xe){ee()?this._history.pushState(w,Q,xe):this.location.hash=xe}replaceState(w,Q,xe){ee()?this._history.replaceState(w,Q,xe):this.location.hash=xe}forward(){this._history.forward()}back(){this._history.back()}historyGo(w=0){this._history.go(w)}getState(){return this._history.state}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(W))},b.\u0275prov=a.Yz7({token:b,factory:function(){return function ye(){return new B((0,a.LFG)(W))}()},providedIn:"platform"}),b})();function ee(){return!!window.history.pushState}function Ye(b,Y){if(0==b.length)return Y;if(0==Y.length)return b;let w=0;return b.endsWith("/")&&w++,Y.startsWith("/")&&w++,2==w?b+Y.substring(1):1==w?b+Y:b+"/"+Y}function Fe(b){const Y=b.match(/#|\?|$/),w=Y&&Y.index||b.length;return b.slice(0,w-("/"===b[w-1]?1:0))+b.slice(w)}function ze(b){return b&&"?"!==b[0]?"?"+b:b}let _e=(()=>{class b{historyGo(w){throw new Error("Not implemented")}}return b.\u0275fac=function(w){return new(w||b)},b.\u0275prov=a.Yz7({token:b,factory:function(){return function vt(b){const Y=(0,a.LFG)(W).location;return new zt((0,a.LFG)(I),Y&&Y.origin||"")}()},providedIn:"root"}),b})();const Je=new a.OlP("appBaseHref");let zt=(()=>{class b extends _e{constructor(w,Q){if(super(),this._platformLocation=w,this._removeListenerFns=[],null==Q&&(Q=this._platformLocation.getBaseHrefFromDOM()),null==Q)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=Q}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(w){this._removeListenerFns.push(this._platformLocation.onPopState(w),this._platformLocation.onHashChange(w))}getBaseHref(){return this._baseHref}prepareExternalUrl(w){return Ye(this._baseHref,w)}path(w=!1){const Q=this._platformLocation.pathname+ze(this._platformLocation.search),xe=this._platformLocation.hash;return xe&&w?`${Q}${xe}`:Q}pushState(w,Q,xe,ct){const Mt=this.prepareExternalUrl(xe+ze(ct));this._platformLocation.pushState(w,Q,Mt)}replaceState(w,Q,xe,ct){const Mt=this.prepareExternalUrl(xe+ze(ct));this._platformLocation.replaceState(w,Q,Mt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(w=0){var Q,xe;null===(xe=(Q=this._platformLocation).historyGo)||void 0===xe||xe.call(Q,w)}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(I),a.LFG(Je,8))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})(),ut=(()=>{class b extends _e{constructor(w,Q){super(),this._platformLocation=w,this._baseHref="",this._removeListenerFns=[],null!=Q&&(this._baseHref=Q)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(w){this._removeListenerFns.push(this._platformLocation.onPopState(w),this._platformLocation.onHashChange(w))}getBaseHref(){return this._baseHref}path(w=!1){let Q=this._platformLocation.hash;return null==Q&&(Q="#"),Q.length>0?Q.substring(1):Q}prepareExternalUrl(w){const Q=Ye(this._baseHref,w);return Q.length>0?"#"+Q:Q}pushState(w,Q,xe,ct){let Mt=this.prepareExternalUrl(xe+ze(ct));0==Mt.length&&(Mt=this._platformLocation.pathname),this._platformLocation.pushState(w,Q,Mt)}replaceState(w,Q,xe,ct){let Mt=this.prepareExternalUrl(xe+ze(ct));0==Mt.length&&(Mt=this._platformLocation.pathname),this._platformLocation.replaceState(w,Q,Mt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(w=0){var Q,xe;null===(xe=(Q=this._platformLocation).historyGo)||void 0===xe||xe.call(Q,w)}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(I),a.LFG(Je,8))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})(),Ie=(()=>{class b{constructor(w,Q){this._subject=new a.vpe,this._urlChangeListeners=[],this._platformStrategy=w;const xe=this._platformStrategy.getBaseHref();this._platformLocation=Q,this._baseHref=Fe(Se(xe)),this._platformStrategy.onPopState(ct=>{this._subject.emit({url:this.path(!0),pop:!0,state:ct.state,type:ct.type})})}path(w=!1){return this.normalize(this._platformStrategy.path(w))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(w,Q=""){return this.path()==this.normalize(w+ze(Q))}normalize(w){return b.stripTrailingSlash(function et(b,Y){return b&&Y.startsWith(b)?Y.substring(b.length):Y}(this._baseHref,Se(w)))}prepareExternalUrl(w){return w&&"/"!==w[0]&&(w="/"+w),this._platformStrategy.prepareExternalUrl(w)}go(w,Q="",xe=null){this._platformStrategy.pushState(xe,"",w,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(w+ze(Q)),xe)}replaceState(w,Q="",xe=null){this._platformStrategy.replaceState(xe,"",w,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(w+ze(Q)),xe)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(w=0){var Q,xe;null===(xe=(Q=this._platformStrategy).historyGo)||void 0===xe||xe.call(Q,w)}onUrlChange(w){this._urlChangeListeners.push(w),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Q=>{this._notifyUrlChangeListeners(Q.url,Q.state)}))}_notifyUrlChangeListeners(w="",Q){this._urlChangeListeners.forEach(xe=>xe(w,Q))}subscribe(w,Q,xe){return this._subject.subscribe({next:w,error:Q,complete:xe})}}return b.normalizeQueryParams=ze,b.joinWithSlash=Ye,b.stripTrailingSlash=Fe,b.\u0275fac=function(w){return new(w||b)(a.LFG(_e),a.LFG(I))},b.\u0275prov=a.Yz7({token:b,factory:function(){return function $e(){return new Ie((0,a.LFG)(_e),(0,a.LFG)(I))}()},providedIn:"root"}),b})();function Se(b){return b.replace(/\/index.html$/,"")}var J=(()=>((J=J||{})[J.Decimal=0]="Decimal",J[J.Percent=1]="Percent",J[J.Currency=2]="Currency",J[J.Scientific=3]="Scientific",J))(),fe=(()=>((fe=fe||{})[fe.Zero=0]="Zero",fe[fe.One=1]="One",fe[fe.Two=2]="Two",fe[fe.Few=3]="Few",fe[fe.Many=4]="Many",fe[fe.Other=5]="Other",fe))(),he=(()=>((he=he||{})[he.Format=0]="Format",he[he.Standalone=1]="Standalone",he))(),te=(()=>((te=te||{})[te.Narrow=0]="Narrow",te[te.Abbreviated=1]="Abbreviated",te[te.Wide=2]="Wide",te[te.Short=3]="Short",te))(),le=(()=>((le=le||{})[le.Short=0]="Short",le[le.Medium=1]="Medium",le[le.Long=2]="Long",le[le.Full=3]="Full",le))(),ie=(()=>((ie=ie||{})[ie.Decimal=0]="Decimal",ie[ie.Group=1]="Group",ie[ie.List=2]="List",ie[ie.PercentSign=3]="PercentSign",ie[ie.PlusSign=4]="PlusSign",ie[ie.MinusSign=5]="MinusSign",ie[ie.Exponential=6]="Exponential",ie[ie.SuperscriptingExponent=7]="SuperscriptingExponent",ie[ie.PerMille=8]="PerMille",ie[ie.Infinity=9]="Infinity",ie[ie.NaN=10]="NaN",ie[ie.TimeSeparator=11]="TimeSeparator",ie[ie.CurrencyDecimal=12]="CurrencyDecimal",ie[ie.CurrencyGroup=13]="CurrencyGroup",ie))();function _t(b,Y){return cn((0,a.cg1)(b)[a.wAp.DateFormat],Y)}function it(b,Y){return cn((0,a.cg1)(b)[a.wAp.TimeFormat],Y)}function St(b,Y){return cn((0,a.cg1)(b)[a.wAp.DateTimeFormat],Y)}function ot(b,Y){const w=(0,a.cg1)(b),Q=w[a.wAp.NumberSymbols][Y];if(void 0===Q){if(Y===ie.CurrencyDecimal)return w[a.wAp.NumberSymbols][ie.Decimal];if(Y===ie.CurrencyGroup)return w[a.wAp.NumberSymbols][ie.Group]}return Q}const un=a.kL8;function _n(b){if(!b[a.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${b[a.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function cn(b,Y){for(let w=Y;w>-1;w--)if(void 0!==b[w])return b[w];throw new Error("Locale data API: locale data undefined")}function Mn(b){const[Y,w]=b.split(":");return{hours:+Y,minutes:+w}}const P=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,pe={},j=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var me=(()=>((me=me||{})[me.Short=0]="Short",me[me.ShortGMT=1]="ShortGMT",me[me.Long=2]="Long",me[me.Extended=3]="Extended",me))(),He=(()=>((He=He||{})[He.FullYear=0]="FullYear",He[He.Month=1]="Month",He[He.Date=2]="Date",He[He.Hours=3]="Hours",He[He.Minutes=4]="Minutes",He[He.Seconds=5]="Seconds",He[He.FractionalSeconds=6]="FractionalSeconds",He[He.Day=7]="Day",He))(),Ge=(()=>((Ge=Ge||{})[Ge.DayPeriods=0]="DayPeriods",Ge[Ge.Days=1]="Days",Ge[Ge.Months=2]="Months",Ge[Ge.Eras=3]="Eras",Ge))();function Le(b,Y,w,Q){let xe=function we(b){if(Ve(b))return b;if("number"==typeof b&&!isNaN(b))return new Date(b);if("string"==typeof b){if(b=b.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(b)){const[xe,ct=1,Mt=1]=b.split("-").map(kt=>+kt);return Me(xe,ct-1,Mt)}const w=parseFloat(b);if(!isNaN(b-w))return new Date(w);let Q;if(Q=b.match(P))return function ae(b){const Y=new Date(0);let w=0,Q=0;const xe=b[8]?Y.setUTCFullYear:Y.setFullYear,ct=b[8]?Y.setUTCHours:Y.setHours;b[9]&&(w=Number(b[9]+b[10]),Q=Number(b[9]+b[11])),xe.call(Y,Number(b[1]),Number(b[2])-1,Number(b[3]));const Mt=Number(b[4]||0)-w,kt=Number(b[5]||0)-Q,Fn=Number(b[6]||0),Tn=Math.floor(1e3*parseFloat("0."+(b[7]||0)));return ct.call(Y,Mt,kt,Fn,Tn),Y}(Q)}const Y=new Date(b);if(!Ve(Y))throw new Error(`Unable to convert "${b}" into a date`);return Y}(b);Y=V(w,Y)||Y;let kt,Mt=[];for(;Y;){if(kt=j.exec(Y),!kt){Mt.push(Y);break}{Mt=Mt.concat(kt.slice(1));const Dn=Mt.pop();if(!Dn)break;Y=Dn}}let Fn=xe.getTimezoneOffset();Q&&(Fn=jn(Q,Fn),xe=function Re(b,Y,w){const Q=w?-1:1,xe=b.getTimezoneOffset();return function qt(b,Y){return(b=new Date(b.getTime())).setMinutes(b.getMinutes()+Y),b}(b,Q*(jn(Y,xe)-xe))}(xe,Q,!0));let Tn="";return Mt.forEach(Dn=>{const dn=function ri(b){if(An[b])return An[b];let Y;switch(b){case"G":case"GG":case"GGG":Y=E(Ge.Eras,te.Abbreviated);break;case"GGGG":Y=E(Ge.Eras,te.Wide);break;case"GGGGG":Y=E(Ge.Eras,te.Narrow);break;case"y":Y=Ne(He.FullYear,1,0,!1,!0);break;case"yy":Y=Ne(He.FullYear,2,0,!0,!0);break;case"yyy":Y=Ne(He.FullYear,3,0,!1,!0);break;case"yyyy":Y=Ne(He.FullYear,4,0,!1,!0);break;case"Y":Y=Vn(1);break;case"YY":Y=Vn(2,!0);break;case"YYY":Y=Vn(3);break;case"YYYY":Y=Vn(4);break;case"M":case"L":Y=Ne(He.Month,1,1);break;case"MM":case"LL":Y=Ne(He.Month,2,1);break;case"MMM":Y=E(Ge.Months,te.Abbreviated);break;case"MMMM":Y=E(Ge.Months,te.Wide);break;case"MMMMM":Y=E(Ge.Months,te.Narrow);break;case"LLL":Y=E(Ge.Months,te.Abbreviated,he.Standalone);break;case"LLLL":Y=E(Ge.Months,te.Wide,he.Standalone);break;case"LLLLL":Y=E(Ge.Months,te.Narrow,he.Standalone);break;case"w":Y=vn(1);break;case"ww":Y=vn(2);break;case"W":Y=vn(1,!0);break;case"d":Y=Ne(He.Date,1);break;case"dd":Y=Ne(He.Date,2);break;case"c":case"cc":Y=Ne(He.Day,1);break;case"ccc":Y=E(Ge.Days,te.Abbreviated,he.Standalone);break;case"cccc":Y=E(Ge.Days,te.Wide,he.Standalone);break;case"ccccc":Y=E(Ge.Days,te.Narrow,he.Standalone);break;case"cccccc":Y=E(Ge.Days,te.Short,he.Standalone);break;case"E":case"EE":case"EEE":Y=E(Ge.Days,te.Abbreviated);break;case"EEEE":Y=E(Ge.Days,te.Wide);break;case"EEEEE":Y=E(Ge.Days,te.Narrow);break;case"EEEEEE":Y=E(Ge.Days,te.Short);break;case"a":case"aa":case"aaa":Y=E(Ge.DayPeriods,te.Abbreviated);break;case"aaaa":Y=E(Ge.DayPeriods,te.Wide);break;case"aaaaa":Y=E(Ge.DayPeriods,te.Narrow);break;case"b":case"bb":case"bbb":Y=E(Ge.DayPeriods,te.Abbreviated,he.Standalone,!0);break;case"bbbb":Y=E(Ge.DayPeriods,te.Wide,he.Standalone,!0);break;case"bbbbb":Y=E(Ge.DayPeriods,te.Narrow,he.Standalone,!0);break;case"B":case"BB":case"BBB":Y=E(Ge.DayPeriods,te.Abbreviated,he.Format,!0);break;case"BBBB":Y=E(Ge.DayPeriods,te.Wide,he.Format,!0);break;case"BBBBB":Y=E(Ge.DayPeriods,te.Narrow,he.Format,!0);break;case"h":Y=Ne(He.Hours,1,-12);break;case"hh":Y=Ne(He.Hours,2,-12);break;case"H":Y=Ne(He.Hours,1);break;case"HH":Y=Ne(He.Hours,2);break;case"m":Y=Ne(He.Minutes,1);break;case"mm":Y=Ne(He.Minutes,2);break;case"s":Y=Ne(He.Seconds,1);break;case"ss":Y=Ne(He.Seconds,2);break;case"S":Y=Ne(He.FractionalSeconds,1);break;case"SS":Y=Ne(He.FractionalSeconds,2);break;case"SSS":Y=Ne(He.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Y=ue(me.Short);break;case"ZZZZZ":Y=ue(me.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Y=ue(me.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Y=ue(me.Long);break;default:return null}return An[b]=Y,Y}(Dn);Tn+=dn?dn(xe,w,Fn):"''"===Dn?"'":Dn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Tn}function Me(b,Y,w){const Q=new Date(0);return Q.setFullYear(b,Y,w),Q.setHours(0,0,0),Q}function V(b,Y){const w=function je(b){return(0,a.cg1)(b)[a.wAp.LocaleId]}(b);if(pe[w]=pe[w]||{},pe[w][Y])return pe[w][Y];let Q="";switch(Y){case"shortDate":Q=_t(b,le.Short);break;case"mediumDate":Q=_t(b,le.Medium);break;case"longDate":Q=_t(b,le.Long);break;case"fullDate":Q=_t(b,le.Full);break;case"shortTime":Q=it(b,le.Short);break;case"mediumTime":Q=it(b,le.Medium);break;case"longTime":Q=it(b,le.Long);break;case"fullTime":Q=it(b,le.Full);break;case"short":const xe=V(b,"shortTime"),ct=V(b,"shortDate");Q=Be(St(b,le.Short),[xe,ct]);break;case"medium":const Mt=V(b,"mediumTime"),kt=V(b,"mediumDate");Q=Be(St(b,le.Medium),[Mt,kt]);break;case"long":const Fn=V(b,"longTime"),Tn=V(b,"longDate");Q=Be(St(b,le.Long),[Fn,Tn]);break;case"full":const Dn=V(b,"fullTime"),dn=V(b,"fullDate");Q=Be(St(b,le.Full),[Dn,dn])}return Q&&(pe[w][Y]=Q),Q}function Be(b,Y){return Y&&(b=b.replace(/\{([^}]+)}/g,function(w,Q){return null!=Y&&Q in Y?Y[Q]:w})),b}function nt(b,Y,w="-",Q,xe){let ct="";(b<0||xe&&b<=0)&&(xe?b=1-b:(b=-b,ct=w));let Mt=String(b);for(;Mt.length0||kt>-w)&&(kt+=w),b===He.Hours)0===kt&&-12===w&&(kt=12);else if(b===He.FractionalSeconds)return function ce(b,Y){return nt(b,3).substr(0,Y)}(kt,Y);const Fn=ot(Mt,ie.MinusSign);return nt(kt,Y,Fn,Q,xe)}}function E(b,Y,w=he.Format,Q=!1){return function(xe,ct){return function $(b,Y,w,Q,xe,ct){switch(w){case Ge.Months:return function ve(b,Y,w){const Q=(0,a.cg1)(b),ct=cn([Q[a.wAp.MonthsFormat],Q[a.wAp.MonthsStandalone]],Y);return cn(ct,w)}(Y,xe,Q)[b.getMonth()];case Ge.Days:return function ke(b,Y,w){const Q=(0,a.cg1)(b),ct=cn([Q[a.wAp.DaysFormat],Q[a.wAp.DaysStandalone]],Y);return cn(ct,w)}(Y,xe,Q)[b.getDay()];case Ge.DayPeriods:const Mt=b.getHours(),kt=b.getMinutes();if(ct){const Tn=function Cn(b){const Y=(0,a.cg1)(b);return _n(Y),(Y[a.wAp.ExtraData][2]||[]).map(Q=>"string"==typeof Q?Mn(Q):[Mn(Q[0]),Mn(Q[1])])}(Y),Dn=function Dt(b,Y,w){const Q=(0,a.cg1)(b);_n(Q);const ct=cn([Q[a.wAp.ExtraData][0],Q[a.wAp.ExtraData][1]],Y)||[];return cn(ct,w)||[]}(Y,xe,Q),dn=Tn.findIndex(Yn=>{if(Array.isArray(Yn)){const[On,Yt]=Yn,Eo=Mt>=On.hours&&kt>=On.minutes,D=Mt0?Math.floor(xe/60):Math.ceil(xe/60);switch(b){case me.Short:return(xe>=0?"+":"")+nt(Mt,2,ct)+nt(Math.abs(xe%60),2,ct);case me.ShortGMT:return"GMT"+(xe>=0?"+":"")+nt(Mt,1,ct);case me.Long:return"GMT"+(xe>=0?"+":"")+nt(Mt,2,ct)+":"+nt(Math.abs(xe%60),2,ct);case me.Extended:return 0===Q?"Z":(xe>=0?"+":"")+nt(Mt,2,ct)+":"+nt(Math.abs(xe%60),2,ct);default:throw new Error(`Unknown zone width "${b}"`)}}}function Qt(b){return Me(b.getFullYear(),b.getMonth(),b.getDate()+(4-b.getDay()))}function vn(b,Y=!1){return function(w,Q){let xe;if(Y){const ct=new Date(w.getFullYear(),w.getMonth(),1).getDay()-1,Mt=w.getDate();xe=1+Math.floor((Mt+ct)/7)}else{const ct=Qt(w),Mt=function At(b){const Y=Me(b,0,1).getDay();return Me(b,0,1+(Y<=4?4:11)-Y)}(ct.getFullYear()),kt=ct.getTime()-Mt.getTime();xe=1+Math.round(kt/6048e5)}return nt(xe,b,ot(Q,ie.MinusSign))}}function Vn(b,Y=!1){return function(w,Q){return nt(Qt(w).getFullYear(),b,ot(Q,ie.MinusSign),Y)}}const An={};function jn(b,Y){b=b.replace(/:/g,"");const w=Date.parse("Jan 01, 1970 00:00:00 "+b)/6e4;return isNaN(w)?Y:w}function Ve(b){return b instanceof Date&&!isNaN(b.valueOf())}const ht=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function De(b){const Y=parseInt(b);if(isNaN(Y))throw new Error("Invalid integer literal when parsing "+b);return Y}class rt{}let on=(()=>{class b extends rt{constructor(w){super(),this.locale=w}getPluralCategory(w,Q){switch(un(Q||this.locale)(w)){case fe.Zero:return"zero";case fe.One:return"one";case fe.Two:return"two";case fe.Few:return"few";case fe.Many:return"many";default:return"other"}}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(a.soG))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})();function Lt(b,Y,w){return(0,a.dwT)(b,Y,w)}function Un(b,Y){Y=encodeURIComponent(Y);for(const w of b.split(";")){const Q=w.indexOf("="),[xe,ct]=-1==Q?[w,""]:[w.slice(0,Q),w.slice(Q+1)];if(xe.trim()===Y)return decodeURIComponent(ct)}return null}let $n=(()=>{class b{constructor(w,Q,xe,ct){this._iterableDiffers=w,this._keyValueDiffers=Q,this._ngEl=xe,this._renderer=ct,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(w){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof w?w.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(w){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof w?w.split(/\s+/):w,this._rawClass&&((0,a.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const w=this._iterableDiffer.diff(this._rawClass);w&&this._applyIterableChanges(w)}else if(this._keyValueDiffer){const w=this._keyValueDiffer.diff(this._rawClass);w&&this._applyKeyValueChanges(w)}}_applyKeyValueChanges(w){w.forEachAddedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),w.forEachChangedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),w.forEachRemovedItem(Q=>{Q.previousValue&&this._toggleClass(Q.key,!1)})}_applyIterableChanges(w){w.forEachAddedItem(Q=>{if("string"!=typeof Q.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,a.AaK)(Q.item)}`);this._toggleClass(Q.item,!0)}),w.forEachRemovedItem(Q=>this._toggleClass(Q.item,!1))}_applyClasses(w){w&&(Array.isArray(w)||w instanceof Set?w.forEach(Q=>this._toggleClass(Q,!0)):Object.keys(w).forEach(Q=>this._toggleClass(Q,!!w[Q])))}_removeClasses(w){w&&(Array.isArray(w)||w instanceof Set?w.forEach(Q=>this._toggleClass(Q,!1)):Object.keys(w).forEach(Q=>this._toggleClass(Q,!1)))}_toggleClass(w,Q){(w=w.trim())&&w.split(/\s+/g).forEach(xe=>{Q?this._renderer.addClass(this._ngEl.nativeElement,xe):this._renderer.removeClass(this._ngEl.nativeElement,xe)})}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.ZZ4),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Qsj))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),b})();class Rn{constructor(Y,w,Q,xe){this.$implicit=Y,this.ngForOf=w,this.index=Q,this.count=xe}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 qn=(()=>{class b{constructor(w,Q,xe){this._viewContainer=w,this._template=Q,this._differs=xe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(w){this._ngForOf=w,this._ngForOfDirty=!0}set ngForTrackBy(w){this._trackByFn=w}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(w){w&&(this._template=w)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const w=this._ngForOf;!this._differ&&w&&(this._differ=this._differs.find(w).create(this.ngForTrackBy))}if(this._differ){const w=this._differ.diff(this._ngForOf);w&&this._applyChanges(w)}}_applyChanges(w){const Q=this._viewContainer;w.forEachOperation((xe,ct,Mt)=>{if(null==xe.previousIndex)Q.createEmbeddedView(this._template,new Rn(xe.item,this._ngForOf,-1,-1),null===Mt?void 0:Mt);else if(null==Mt)Q.remove(null===ct?void 0:ct);else if(null!==ct){const kt=Q.get(ct);Q.move(kt,Mt),X(kt,xe)}});for(let xe=0,ct=Q.length;xe{X(Q.get(xe.currentIndex),xe)})}static ngTemplateContextGuard(w,Q){return!0}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(a.ZZ4))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),b})();function X(b,Y){b.context.$implicit=Y.item}let k=(()=>{class b{constructor(w,Q){this._viewContainer=w,this._context=new Ee,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Q}set ngIf(w){this._context.$implicit=this._context.ngIf=w,this._updateView()}set ngIfThen(w){st("ngIfThen",w),this._thenTemplateRef=w,this._thenViewRef=null,this._updateView()}set ngIfElse(w){st("ngIfElse",w),this._elseTemplateRef=w,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(w,Q){return!0}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),b})();class Ee{constructor(){this.$implicit=null,this.ngIf=null}}function st(b,Y){if(Y&&!Y.createEmbeddedView)throw new Error(`${b} must be a TemplateRef, but received '${(0,a.AaK)(Y)}'.`)}class Ct{constructor(Y,w){this._viewContainerRef=Y,this._templateRef=w,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Y){Y&&!this._created?this.create():!Y&&this._created&&this.destroy()}}let Ot=(()=>{class b{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(w){this._ngSwitch=w,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(w){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(w)}_matchCase(w){const Q=w==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Q,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Q}_updateDefaultCases(w){if(this._defaultViews&&w!==this._defaultUsed){this._defaultUsed=w;for(let Q=0;Q{class b{constructor(w,Q,xe){this.ngSwitch=xe,xe._addCase(),this._view=new Ct(w,Q)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(Ot,9))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),b})(),hn=(()=>{class b{constructor(w,Q,xe){xe._addDefault(new Ct(w,Q))}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(Ot,9))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngSwitchDefault",""]]}),b})(),bi=(()=>{class b{constructor(w,Q,xe){this._ngEl=w,this._differs=Q,this._renderer=xe,this._ngStyle=null,this._differ=null}set ngStyle(w){this._ngStyle=w,!this._differ&&w&&(this._differ=this._differs.find(w).create())}ngDoCheck(){if(this._differ){const w=this._differ.diff(this._ngStyle);w&&this._applyChanges(w)}}_setStyle(w,Q){const[xe,ct]=w.split(".");null!=(Q=null!=Q&&ct?`${Q}${ct}`:Q)?this._renderer.setStyle(this._ngEl.nativeElement,xe,Q):this._renderer.removeStyle(this._ngEl.nativeElement,xe)}_applyChanges(w){w.forEachRemovedItem(Q=>this._setStyle(Q.key,null)),w.forEachAddedItem(Q=>this._setStyle(Q.key,Q.currentValue)),w.forEachChangedItem(Q=>this._setStyle(Q.key,Q.currentValue))}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.SBq),a.Y36(a.aQg),a.Y36(a.Qsj))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),b})(),io=(()=>{class b{constructor(w){this._viewContainerRef=w,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(w){if(w.ngTemplateOutlet){const Q=this._viewContainerRef;this._viewRef&&Q.remove(Q.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?Q.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&w.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[a.TTD]}),b})();function vi(b,Y){return new a.vHH(2100,"")}class ui{createSubscription(Y,w){return Y.subscribe({next:w,error:Q=>{throw Q}})}dispose(Y){Y.unsubscribe()}onDestroy(Y){Y.unsubscribe()}}class wi{createSubscription(Y,w){return Y.then(w,Q=>{throw Q})}dispose(Y){}onDestroy(Y){}}const ko=new wi,Fo=new ui;let vo=(()=>{class b{constructor(w){this._ref=w,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(w){return this._obj?w!==this._obj?(this._dispose(),this.transform(w)):this._latestValue:(w&&this._subscribe(w),this._latestValue)}_subscribe(w){this._obj=w,this._strategy=this._selectStrategy(w),this._subscription=this._strategy.createSubscription(w,Q=>this._updateLatestValue(w,Q))}_selectStrategy(w){if((0,a.QGY)(w))return ko;if((0,a.F4k)(w))return Fo;throw vi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(w,Q){w===this._obj&&(this._latestValue=Q,this._ref.markForCheck())}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.sBO,16))},b.\u0275pipe=a.Yjl({name:"async",type:b,pure:!1}),b})();const sr=new a.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ii=(()=>{class b{constructor(w,Q){this.locale=w,this.defaultTimezone=Q}transform(w,Q="mediumDate",xe,ct){var Mt;if(null==w||""===w||w!=w)return null;try{return Le(w,Q,ct||this.locale,null!==(Mt=null!=xe?xe:this.defaultTimezone)&&void 0!==Mt?Mt:void 0)}catch(kt){throw vi()}}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.soG,16),a.Y36(sr,24))},b.\u0275pipe=a.Yjl({name:"date",type:b,pure:!0}),b})(),qo=(()=>{class b{constructor(w){this._locale=w}transform(w,Q,xe){if(!function oi(b){return!(null==b||""===b||b!=b)}(w))return null;xe=xe||this._locale;try{return function rn(b,Y,w){return function ei(b,Y,w,Q,xe,ct,Mt=!1){let kt="",Fn=!1;if(isFinite(b)){let Tn=function Te(b){let Q,xe,ct,Mt,kt,Y=Math.abs(b)+"",w=0;for((xe=Y.indexOf("."))>-1&&(Y=Y.replace(".","")),(ct=Y.search(/e/i))>0?(xe<0&&(xe=ct),xe+=+Y.slice(ct+1),Y=Y.substring(0,ct)):xe<0&&(xe=Y.length),ct=0;"0"===Y.charAt(ct);ct++);if(ct===(kt=Y.length))Q=[0],xe=1;else{for(kt--;"0"===Y.charAt(kt);)kt--;for(xe-=ct,Q=[],Mt=0;ct<=kt;ct++,Mt++)Q[Mt]=Number(Y.charAt(ct))}return xe>22&&(Q=Q.splice(0,21),w=xe-1,xe=1),{digits:Q,exponent:w,integerLen:xe}}(b);Mt&&(Tn=function Qn(b){if(0===b.digits[0])return b;const Y=b.digits.length-b.integerLen;return b.exponent?b.exponent+=2:(0===Y?b.digits.push(0,0):1===Y&&b.digits.push(0),b.integerLen+=2),b}(Tn));let Dn=Y.minInt,dn=Y.minFrac,Yn=Y.maxFrac;if(ct){const y=ct.match(ht);if(null===y)throw new Error(`${ct} is not a valid digit info`);const U=y[1],at=y[3],Nt=y[5];null!=U&&(Dn=De(U)),null!=at&&(dn=De(at)),null!=Nt?Yn=De(Nt):null!=at&&dn>Yn&&(Yn=dn)}!function Ze(b,Y,w){if(Y>w)throw new Error(`The minimum number of digits after fraction (${Y}) is higher than the maximum (${w}).`);let Q=b.digits,xe=Q.length-b.integerLen;const ct=Math.min(Math.max(Y,xe),w);let Mt=ct+b.integerLen,kt=Q[Mt];if(Mt>0){Q.splice(Math.max(b.integerLen,Mt));for(let dn=Mt;dn=5)if(Mt-1<0){for(let dn=0;dn>Mt;dn--)Q.unshift(0),b.integerLen++;Q.unshift(1),b.integerLen++}else Q[Mt-1]++;for(;xe=Tn?Yt.pop():Fn=!1),Yn>=10?1:0},0);Dn&&(Q.unshift(Dn),b.integerLen++)}(Tn,dn,Yn);let On=Tn.digits,Yt=Tn.integerLen;const Eo=Tn.exponent;let D=[];for(Fn=On.every(y=>!y);Yt0?D=On.splice(Yt,On.length):(D=On,On=[0]);const C=[];for(On.length>=Y.lgSize&&C.unshift(On.splice(-Y.lgSize,On.length).join(""));On.length>Y.gSize;)C.unshift(On.splice(-Y.gSize,On.length).join(""));On.length&&C.unshift(On.join("")),kt=C.join(ot(w,Q)),D.length&&(kt+=ot(w,xe)+D.join("")),Eo&&(kt+=ot(w,ie.Exponential)+"+"+Eo)}else kt=ot(w,ie.Infinity);return kt=b<0&&!Fn?Y.negPre+kt+Y.negSuf:Y.posPre+kt+Y.posSuf,kt}(b,function bn(b,Y="-"){const w={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Q=b.split(";"),xe=Q[0],ct=Q[1],Mt=-1!==xe.indexOf(".")?xe.split("."):[xe.substring(0,xe.lastIndexOf("0")+1),xe.substring(xe.lastIndexOf("0")+1)],kt=Mt[0],Fn=Mt[1]||"";w.posPre=kt.substr(0,kt.indexOf("#"));for(let Dn=0;Dn{class b{}return b.\u0275fac=function(w){return new(w||b)},b.\u0275mod=a.oAB({type:b}),b.\u0275inj=a.cJS({providers:[{provide:rt,useClass:on}]}),b})();const Lo="browser";function hi(b){return b===Lo}let Qi=(()=>{class b{}return b.\u0275prov=(0,a.Yz7)({token:b,providedIn:"root",factory:()=>new Xo((0,a.LFG)(W),window)}),b})();class Xo{constructor(Y,w){this.document=Y,this.window=w,this.offset=()=>[0,0]}setOffset(Y){this.offset=Array.isArray(Y)?()=>Y:Y}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Y){this.supportsScrolling()&&this.window.scrollTo(Y[0],Y[1])}scrollToAnchor(Y){if(!this.supportsScrolling())return;const w=function Pi(b,Y){const w=b.getElementById(Y)||b.getElementsByName(Y)[0];if(w)return w;if("function"==typeof b.createTreeWalker&&b.body&&(b.body.createShadowRoot||b.body.attachShadow)){const Q=b.createTreeWalker(b.body,NodeFilter.SHOW_ELEMENT);let xe=Q.currentNode;for(;xe;){const ct=xe.shadowRoot;if(ct){const Mt=ct.getElementById(Y)||ct.querySelector(`[name="${Y}"]`);if(Mt)return Mt}xe=Q.nextNode()}}return null}(this.document,Y);w&&(this.scrollToElement(w),this.attemptFocus(w))}setHistoryScrollRestoration(Y){if(this.supportScrollRestoration()){const w=this.window.history;w&&w.scrollRestoration&&(w.scrollRestoration=Y)}}scrollToElement(Y){const w=Y.getBoundingClientRect(),Q=w.left+this.window.pageXOffset,xe=w.top+this.window.pageYOffset,ct=this.offset();this.window.scrollTo(Q-ct[0],xe-ct[1])}attemptFocus(Y){return Y.focus(),this.document.activeElement===Y}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Y=Bn(this.window.history)||Bn(Object.getPrototypeOf(this.window.history));return!(!Y||!Y.writable&&!Y.set)}catch(Y){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Y){return!1}}}function Bn(b){return Object.getOwnPropertyDescriptor(b,"scrollRestoration")}class Wn{}},520:(yt,be,p)=>{p.d(be,{TP:()=>je,jN:()=>R,eN:()=>ie,JF:()=>cn,WM:()=>H,LE:()=>_e,aW:()=>Se,Zn:()=>he});var a=p(9808),s=p(5e3),G=p(1086),oe=p(6498),q=p(1406),_=p(2198),W=p(4850);class I{}class R{}class H{constructor(z){this.normalizedNames=new Map,this.lazyUpdate=null,z?this.lazyInit="string"==typeof z?()=>{this.headers=new Map,z.split("\n").forEach(P=>{const pe=P.indexOf(":");if(pe>0){const j=P.slice(0,pe),me=j.toLowerCase(),He=P.slice(pe+1).trim();this.maybeSetNormalizedName(j,me),this.headers.has(me)?this.headers.get(me).push(He):this.headers.set(me,[He])}})}:()=>{this.headers=new Map,Object.keys(z).forEach(P=>{let pe=z[P];const j=P.toLowerCase();"string"==typeof pe&&(pe=[pe]),pe.length>0&&(this.headers.set(j,pe),this.maybeSetNormalizedName(P,j))})}:this.headers=new Map}has(z){return this.init(),this.headers.has(z.toLowerCase())}get(z){this.init();const P=this.headers.get(z.toLowerCase());return P&&P.length>0?P[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(z){return this.init(),this.headers.get(z.toLowerCase())||null}append(z,P){return this.clone({name:z,value:P,op:"a"})}set(z,P){return this.clone({name:z,value:P,op:"s"})}delete(z,P){return this.clone({name:z,value:P,op:"d"})}maybeSetNormalizedName(z,P){this.normalizedNames.has(P)||this.normalizedNames.set(P,z)}init(){this.lazyInit&&(this.lazyInit instanceof H?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(z=>this.applyUpdate(z)),this.lazyUpdate=null))}copyFrom(z){z.init(),Array.from(z.headers.keys()).forEach(P=>{this.headers.set(P,z.headers.get(P)),this.normalizedNames.set(P,z.normalizedNames.get(P))})}clone(z){const P=new H;return P.lazyInit=this.lazyInit&&this.lazyInit instanceof H?this.lazyInit:this,P.lazyUpdate=(this.lazyUpdate||[]).concat([z]),P}applyUpdate(z){const P=z.name.toLowerCase();switch(z.op){case"a":case"s":let pe=z.value;if("string"==typeof pe&&(pe=[pe]),0===pe.length)return;this.maybeSetNormalizedName(z.name,P);const j=("a"===z.op?this.headers.get(P):void 0)||[];j.push(...pe),this.headers.set(P,j);break;case"d":const me=z.value;if(me){let He=this.headers.get(P);if(!He)return;He=He.filter(Ge=>-1===me.indexOf(Ge)),0===He.length?(this.headers.delete(P),this.normalizedNames.delete(P)):this.headers.set(P,He)}else this.headers.delete(P),this.normalizedNames.delete(P)}}forEach(z){this.init(),Array.from(this.normalizedNames.keys()).forEach(P=>z(this.normalizedNames.get(P),this.headers.get(P)))}}class B{encodeKey(z){return Fe(z)}encodeValue(z){return Fe(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}const ye=/%(\d[a-f0-9])/gi,Ye={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Fe(x){return encodeURIComponent(x).replace(ye,(z,P)=>{var pe;return null!==(pe=Ye[P])&&void 0!==pe?pe:z})}function ze(x){return`${x}`}class _e{constructor(z={}){if(this.updates=null,this.cloneFrom=null,this.encoder=z.encoder||new B,z.fromString){if(z.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ee(x,z){const P=new Map;return x.length>0&&x.replace(/^\?/,"").split("&").forEach(j=>{const me=j.indexOf("="),[He,Ge]=-1==me?[z.decodeKey(j),""]:[z.decodeKey(j.slice(0,me)),z.decodeValue(j.slice(me+1))],Le=P.get(He)||[];Le.push(Ge),P.set(He,Le)}),P}(z.fromString,this.encoder)}else z.fromObject?(this.map=new Map,Object.keys(z.fromObject).forEach(P=>{const pe=z.fromObject[P];this.map.set(P,Array.isArray(pe)?pe:[pe])})):this.map=null}has(z){return this.init(),this.map.has(z)}get(z){this.init();const P=this.map.get(z);return P?P[0]:null}getAll(z){return this.init(),this.map.get(z)||null}keys(){return this.init(),Array.from(this.map.keys())}append(z,P){return this.clone({param:z,value:P,op:"a"})}appendAll(z){const P=[];return Object.keys(z).forEach(pe=>{const j=z[pe];Array.isArray(j)?j.forEach(me=>{P.push({param:pe,value:me,op:"a"})}):P.push({param:pe,value:j,op:"a"})}),this.clone(P)}set(z,P){return this.clone({param:z,value:P,op:"s"})}delete(z,P){return this.clone({param:z,value:P,op:"d"})}toString(){return this.init(),this.keys().map(z=>{const P=this.encoder.encodeKey(z);return this.map.get(z).map(pe=>P+"="+this.encoder.encodeValue(pe)).join("&")}).filter(z=>""!==z).join("&")}clone(z){const P=new _e({encoder:this.encoder});return P.cloneFrom=this.cloneFrom||this,P.updates=(this.updates||[]).concat(z),P}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(z=>this.map.set(z,this.cloneFrom.map.get(z))),this.updates.forEach(z=>{switch(z.op){case"a":case"s":const P=("a"===z.op?this.map.get(z.param):void 0)||[];P.push(ze(z.value)),this.map.set(z.param,P);break;case"d":if(void 0===z.value){this.map.delete(z.param);break}{let pe=this.map.get(z.param)||[];const j=pe.indexOf(ze(z.value));-1!==j&&pe.splice(j,1),pe.length>0?this.map.set(z.param,pe):this.map.delete(z.param)}}}),this.cloneFrom=this.updates=null)}}class Je{constructor(){this.map=new Map}set(z,P){return this.map.set(z,P),this}get(z){return this.map.has(z)||this.map.set(z,z.defaultValue()),this.map.get(z)}delete(z){return this.map.delete(z),this}has(z){return this.map.has(z)}keys(){return this.map.keys()}}function ut(x){return"undefined"!=typeof ArrayBuffer&&x instanceof ArrayBuffer}function Ie(x){return"undefined"!=typeof Blob&&x instanceof Blob}function $e(x){return"undefined"!=typeof FormData&&x instanceof FormData}class Se{constructor(z,P,pe,j){let me;if(this.url=P,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=z.toUpperCase(),function zt(x){switch(x){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||j?(this.body=void 0!==pe?pe:null,me=j):me=pe,me&&(this.reportProgress=!!me.reportProgress,this.withCredentials=!!me.withCredentials,me.responseType&&(this.responseType=me.responseType),me.headers&&(this.headers=me.headers),me.context&&(this.context=me.context),me.params&&(this.params=me.params)),this.headers||(this.headers=new H),this.context||(this.context=new Je),this.params){const He=this.params.toString();if(0===He.length)this.urlWithParams=P;else{const Ge=P.indexOf("?");this.urlWithParams=P+(-1===Ge?"?":Gent.set(ce,z.setHeaders[ce]),Me)),z.setParams&&(V=Object.keys(z.setParams).reduce((nt,ce)=>nt.set(ce,z.setParams[ce]),V)),new Se(pe,j,He,{params:V,headers:Me,context:Be,reportProgress:Le,responseType:me,withCredentials:Ge})}}var Xe=(()=>((Xe=Xe||{})[Xe.Sent=0]="Sent",Xe[Xe.UploadProgress=1]="UploadProgress",Xe[Xe.ResponseHeader=2]="ResponseHeader",Xe[Xe.DownloadProgress=3]="DownloadProgress",Xe[Xe.Response=4]="Response",Xe[Xe.User=5]="User",Xe))();class J{constructor(z,P=200,pe="OK"){this.headers=z.headers||new H,this.status=void 0!==z.status?z.status:P,this.statusText=z.statusText||pe,this.url=z.url||null,this.ok=this.status>=200&&this.status<300}}class fe extends J{constructor(z={}){super(z),this.type=Xe.ResponseHeader}clone(z={}){return new fe({headers:z.headers||this.headers,status:void 0!==z.status?z.status:this.status,statusText:z.statusText||this.statusText,url:z.url||this.url||void 0})}}class he extends J{constructor(z={}){super(z),this.type=Xe.Response,this.body=void 0!==z.body?z.body:null}clone(z={}){return new he({body:void 0!==z.body?z.body:this.body,headers:z.headers||this.headers,status:void 0!==z.status?z.status:this.status,statusText:z.statusText||this.statusText,url:z.url||this.url||void 0})}}class te extends J{constructor(z){super(z,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${z.url||"(unknown url)"}`:`Http failure response for ${z.url||"(unknown url)"}: ${z.status} ${z.statusText}`,this.error=z.error||null}}function le(x,z){return{body:z,headers:x.headers,context:x.context,observe:x.observe,params:x.params,reportProgress:x.reportProgress,responseType:x.responseType,withCredentials:x.withCredentials}}let ie=(()=>{class x{constructor(P){this.handler=P}request(P,pe,j={}){let me;if(P instanceof Se)me=P;else{let Le,Me;Le=j.headers instanceof H?j.headers:new H(j.headers),j.params&&(Me=j.params instanceof _e?j.params:new _e({fromObject:j.params})),me=new Se(P,pe,void 0!==j.body?j.body:null,{headers:Le,context:j.context,params:Me,reportProgress:j.reportProgress,responseType:j.responseType||"json",withCredentials:j.withCredentials})}const He=(0,G.of)(me).pipe((0,q.b)(Le=>this.handler.handle(Le)));if(P instanceof Se||"events"===j.observe)return He;const Ge=He.pipe((0,_.h)(Le=>Le instanceof he));switch(j.observe||"body"){case"body":switch(me.responseType){case"arraybuffer":return Ge.pipe((0,W.U)(Le=>{if(null!==Le.body&&!(Le.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Le.body}));case"blob":return Ge.pipe((0,W.U)(Le=>{if(null!==Le.body&&!(Le.body instanceof Blob))throw new Error("Response is not a Blob.");return Le.body}));case"text":return Ge.pipe((0,W.U)(Le=>{if(null!==Le.body&&"string"!=typeof Le.body)throw new Error("Response is not a string.");return Le.body}));default:return Ge.pipe((0,W.U)(Le=>Le.body))}case"response":return Ge;default:throw new Error(`Unreachable: unhandled observe type ${j.observe}}`)}}delete(P,pe={}){return this.request("DELETE",P,pe)}get(P,pe={}){return this.request("GET",P,pe)}head(P,pe={}){return this.request("HEAD",P,pe)}jsonp(P,pe){return this.request("JSONP",P,{params:(new _e).append(pe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(P,pe={}){return this.request("OPTIONS",P,pe)}patch(P,pe,j={}){return this.request("PATCH",P,le(j,pe))}post(P,pe,j={}){return this.request("POST",P,le(j,pe))}put(P,pe,j={}){return this.request("PUT",P,le(j,pe))}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(I))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();class Ue{constructor(z,P){this.next=z,this.interceptor=P}handle(z){return this.interceptor.intercept(z,this.next)}}const je=new s.OlP("HTTP_INTERCEPTORS");let tt=(()=>{class x{intercept(P,pe){return pe.handle(P)}}return x.\u0275fac=function(P){return new(P||x)},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();const St=/^\)\]\}',?\n/;let Et=(()=>{class x{constructor(P){this.xhrFactory=P}handle(P){if("JSONP"===P.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new oe.y(pe=>{const j=this.xhrFactory.build();if(j.open(P.method,P.urlWithParams),P.withCredentials&&(j.withCredentials=!0),P.headers.forEach((ce,Ne)=>j.setRequestHeader(ce,Ne.join(","))),P.headers.has("Accept")||j.setRequestHeader("Accept","application/json, text/plain, */*"),!P.headers.has("Content-Type")){const ce=P.detectContentTypeHeader();null!==ce&&j.setRequestHeader("Content-Type",ce)}if(P.responseType){const ce=P.responseType.toLowerCase();j.responseType="json"!==ce?ce:"text"}const me=P.serializeBody();let He=null;const Ge=()=>{if(null!==He)return He;const ce=1223===j.status?204:j.status,Ne=j.statusText||"OK",L=new H(j.getAllResponseHeaders()),E=function ot(x){return"responseURL"in x&&x.responseURL?x.responseURL:/^X-Request-URL:/m.test(x.getAllResponseHeaders())?x.getResponseHeader("X-Request-URL"):null}(j)||P.url;return He=new fe({headers:L,status:ce,statusText:Ne,url:E}),He},Le=()=>{let{headers:ce,status:Ne,statusText:L,url:E}=Ge(),$=null;204!==Ne&&($=void 0===j.response?j.responseText:j.response),0===Ne&&(Ne=$?200:0);let ue=Ne>=200&&Ne<300;if("json"===P.responseType&&"string"==typeof $){const Ae=$;$=$.replace(St,"");try{$=""!==$?JSON.parse($):null}catch(wt){$=Ae,ue&&(ue=!1,$={error:wt,text:$})}}ue?(pe.next(new he({body:$,headers:ce,status:Ne,statusText:L,url:E||void 0})),pe.complete()):pe.error(new te({error:$,headers:ce,status:Ne,statusText:L,url:E||void 0}))},Me=ce=>{const{url:Ne}=Ge(),L=new te({error:ce,status:j.status||0,statusText:j.statusText||"Unknown Error",url:Ne||void 0});pe.error(L)};let V=!1;const Be=ce=>{V||(pe.next(Ge()),V=!0);let Ne={type:Xe.DownloadProgress,loaded:ce.loaded};ce.lengthComputable&&(Ne.total=ce.total),"text"===P.responseType&&!!j.responseText&&(Ne.partialText=j.responseText),pe.next(Ne)},nt=ce=>{let Ne={type:Xe.UploadProgress,loaded:ce.loaded};ce.lengthComputable&&(Ne.total=ce.total),pe.next(Ne)};return j.addEventListener("load",Le),j.addEventListener("error",Me),j.addEventListener("timeout",Me),j.addEventListener("abort",Me),P.reportProgress&&(j.addEventListener("progress",Be),null!==me&&j.upload&&j.upload.addEventListener("progress",nt)),j.send(me),pe.next({type:Xe.Sent}),()=>{j.removeEventListener("error",Me),j.removeEventListener("abort",Me),j.removeEventListener("load",Le),j.removeEventListener("timeout",Me),P.reportProgress&&(j.removeEventListener("progress",Be),null!==me&&j.upload&&j.upload.removeEventListener("progress",nt)),j.readyState!==j.DONE&&j.abort()}})}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(a.JF))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();const Zt=new s.OlP("XSRF_COOKIE_NAME"),mn=new s.OlP("XSRF_HEADER_NAME");class gn{}let Ut=(()=>{class x{constructor(P,pe,j){this.doc=P,this.platform=pe,this.cookieName=j,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const P=this.doc.cookie||"";return P!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,a.Mx)(P,this.cookieName),this.lastCookieString=P),this.lastToken}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(a.K0),s.LFG(s.Lbi),s.LFG(Zt))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),un=(()=>{class x{constructor(P,pe){this.tokenService=P,this.headerName=pe}intercept(P,pe){const j=P.url.toLowerCase();if("GET"===P.method||"HEAD"===P.method||j.startsWith("http://")||j.startsWith("https://"))return pe.handle(P);const me=this.tokenService.getToken();return null!==me&&!P.headers.has(this.headerName)&&(P=P.clone({headers:P.headers.set(this.headerName,me)})),pe.handle(P)}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(gn),s.LFG(mn))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),_n=(()=>{class x{constructor(P,pe){this.backend=P,this.injector=pe,this.chain=null}handle(P){if(null===this.chain){const pe=this.injector.get(je,[]);this.chain=pe.reduceRight((j,me)=>new Ue(j,me),this.backend)}return this.chain.handle(P)}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(R),s.LFG(s.zs3))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),Sn=(()=>{class x{static disable(){return{ngModule:x,providers:[{provide:un,useClass:tt}]}}static withOptions(P={}){return{ngModule:x,providers:[P.cookieName?{provide:Zt,useValue:P.cookieName}:[],P.headerName?{provide:mn,useValue:P.headerName}:[]]}}}return x.\u0275fac=function(P){return new(P||x)},x.\u0275mod=s.oAB({type:x}),x.\u0275inj=s.cJS({providers:[un,{provide:je,useExisting:un,multi:!0},{provide:gn,useClass:Ut},{provide:Zt,useValue:"XSRF-TOKEN"},{provide:mn,useValue:"X-XSRF-TOKEN"}]}),x})(),cn=(()=>{class x{}return x.\u0275fac=function(P){return new(P||x)},x.\u0275mod=s.oAB({type:x}),x.\u0275inj=s.cJS({providers:[ie,{provide:I,useClass:_n},Et,{provide:R,useExisting:Et}],imports:[[Sn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),x})()},5e3:(yt,be,p)=>{p.d(be,{deG:()=>b2,tb:()=>Mh,AFp:()=>yh,ip1:()=>X4,CZH:()=>ks,hGG:()=>tp,z2F:()=>Ma,sBO:()=>O9,Sil:()=>t2,_Vd:()=>pa,EJc:()=>wh,SBq:()=>ma,qLn:()=>gs,vpe:()=>rr,tBr:()=>hs,XFs:()=>Dt,OlP:()=>li,zs3:()=>fo,ZZ4:()=>J1,aQg:()=>X1,soG:()=>Q1,YKP:()=>zu,h0i:()=>Ps,PXZ:()=>w9,R0b:()=>mo,FiY:()=>_r,Lbi:()=>Ch,g9A:()=>_h,Qsj:()=>uf,FYo:()=>bu,JOm:()=>jo,q3G:()=>mi,tp0:()=>Ar,Rgc:()=>_a,dDg:()=>zh,DyG:()=>Ys,GfV:()=>wu,s_b:()=>W1,ifc:()=>me,eFA:()=>xh,G48:()=>P9,Gpc:()=>B,f3M:()=>V2,X6Q:()=>x9,_c5:()=>K9,VLi:()=>C9,c2e:()=>bh,zSh:()=>E1,wAp:()=>an,vHH:()=>Fe,EiD:()=>Ec,mCW:()=>fs,qzn:()=>Ir,JVY:()=>t3,pB0:()=>r3,eBb:()=>vc,L6k:()=>n3,LAX:()=>o3,cg1:()=>P4,kL8:()=>W0,yhl:()=>gc,dqk:()=>V,sIi:()=>bs,CqO:()=>X6,QGY:()=>y4,F4k:()=>J6,dwT:()=>i7,RDi:()=>Jo,AaK:()=>I,z3N:()=>er,qOj:()=>O1,TTD:()=>oi,_Bn:()=>_u,xp6:()=>ll,uIk:()=>F1,Tol:()=>C0,Gre:()=>I0,ekj:()=>E4,Suo:()=>Qu,Xpm:()=>Qt,lG2:()=>we,Yz7:()=>_t,cJS:()=>St,oAB:()=>jn,Yjl:()=>ae,Y36:()=>ca,_UZ:()=>Z6,GkF:()=>Q6,BQk:()=>v4,ynx:()=>g4,qZA:()=>m4,TgZ:()=>p4,EpF:()=>q6,n5z:()=>lo,LFG:()=>zi,$8M:()=>uo,$Z:()=>K6,NdJ:()=>_4,CRH:()=>qu,O4$:()=>pi,oxw:()=>n0,ALo:()=>Nu,lcZ:()=>Ru,xi3:()=>Bu,Dn7:()=>Yu,Hsn:()=>r0,F$t:()=>o0,Q6J:()=>d4,s9C:()=>b4,MGl:()=>V1,hYB:()=>w4,DdM:()=>Pu,VKq:()=>Ou,WLB:()=>Au,l5B:()=>ku,iGM:()=>Ku,MAs:()=>L6,CHM:()=>c,oJD:()=>zc,LSH:()=>Ha,kYT:()=>qt,Udp:()=>D4,WFA:()=>C4,d8E:()=>x4,YNc:()=>V6,W1O:()=>th,_uU:()=>S0,Oqu:()=>S4,hij:()=>H1,AsE:()=>T4,Gf:()=>Zu});var a=p(8929),s=p(2654),G=p(6498),oe=p(6787),q=p(8117);function _(e){for(let t in e)if(e[t]===_)return t;throw Error("Could not find renamed property on target object.")}function W(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function I(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(I).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function R(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const H=_({__forward_ref__:_});function B(e){return e.__forward_ref__=B,e.toString=function(){return I(this())},e}function ee(e){return ye(e)?e():e}function ye(e){return"function"==typeof e&&e.hasOwnProperty(H)&&e.__forward_ref__===B}class Fe extends Error{constructor(t,n){super(function ze(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function _e(e){return"string"==typeof e?e:null==e?"":String(e)}function vt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():_e(e)}function Ie(e,t){const n=t?` in ${t}`:"";throw new Fe(-201,`No provider for ${vt(e)} found${n}`)}function ke(e,t){null==e&&function ve(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function _t(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function St(e){return{providers:e.providers||[],imports:e.imports||[]}}function ot(e){return Et(e,Ut)||Et(e,_n)}function Et(e,t){return e.hasOwnProperty(t)?e[t]:null}function gn(e){return e&&(e.hasOwnProperty(un)||e.hasOwnProperty(Cn))?e[un]:null}const Ut=_({\u0275prov:_}),un=_({\u0275inj:_}),_n=_({ngInjectableDef:_}),Cn=_({ngInjectorDef:_});var Dt=(()=>((Dt=Dt||{})[Dt.Default=0]="Default",Dt[Dt.Host=1]="Host",Dt[Dt.Self=2]="Self",Dt[Dt.SkipSelf=4]="SkipSelf",Dt[Dt.Optional=8]="Optional",Dt))();let Sn;function Mn(e){const t=Sn;return Sn=e,t}function qe(e,t,n){const i=ot(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Dt.Optional?null:void 0!==t?t:void Ie(I(e),"Injector")}function z(e){return{toString:e}.toString()}var P=(()=>((P=P||{})[P.OnPush=0]="OnPush",P[P.Default=1]="Default",P))(),me=(()=>{return(e=me||(me={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",me;var e})();const He="undefined"!=typeof globalThis&&globalThis,Ge="undefined"!=typeof window&&window,Le="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,V=He||"undefined"!=typeof global&&global||Ge||Le,ce={},Ne=[],L=_({\u0275cmp:_}),E=_({\u0275dir:_}),$=_({\u0275pipe:_}),ue=_({\u0275mod:_}),Ae=_({\u0275fac:_}),wt=_({__NG_ELEMENT_ID__:_});let At=0;function Qt(e){return z(()=>{const n={},i={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:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===P.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ne,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||me.Emulated,id:"c",styles:e.styles||Ne,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,r=e.features,u=e.pipes;return i.id+=At++,i.inputs=Re(e.inputs,n),i.outputs=Re(e.outputs),r&&r.forEach(f=>f(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(Vn):null,i.pipeDefs=u?()=>("function"==typeof u?u():u).map(An):null,i})}function Vn(e){return Ve(e)||function ht(e){return e[E]||null}(e)}function An(e){return function It(e){return e[$]||null}(e)}const ri={};function jn(e){return z(()=>{const t={type:e.type,bootstrap:e.bootstrap||Ne,declarations:e.declarations||Ne,imports:e.imports||Ne,exports:e.exports||Ne,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ri[e.id]=e.type),t})}function qt(e,t){return z(()=>{const n=jt(e,!0);n.declarations=t.declarations||Ne,n.imports=t.imports||Ne,n.exports=t.exports||Ne})}function Re(e,t){if(null==e)return ce;const n={};for(const i in e)if(e.hasOwnProperty(i)){let o=e[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),n[o]=i,t&&(t[o]=r)}return n}const we=Qt;function ae(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ve(e){return e[L]||null}function jt(e,t){const n=e[ue]||null;if(!n&&!0===t)throw new Error(`Type ${I(e)} does not have '\u0275mod' property.`);return n}const k=19;function Ot(e){return Array.isArray(e)&&"object"==typeof e[1]}function Vt(e){return Array.isArray(e)&&!0===e[1]}function hn(e){return 0!=(8&e.flags)}function ni(e){return 2==(2&e.flags)}function ai(e){return 1==(1&e.flags)}function kn(e){return null!==e.template}function bi(e){return 0!=(512&e[2])}function Ti(e,t){return e.hasOwnProperty(Ae)?e[Ae]:null}class ro{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function oi(){return Zi}function Zi(e){return e.type.prototype.ngOnChanges&&(e.setInput=bo),Di}function Di(){const e=Lo(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===ce)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function bo(e,t,n,i){const o=Lo(e)||function wo(e,t){return e[Vo]=t}(e,{previous:ce,current:null}),r=o.current||(o.current={}),u=o.previous,f=this.declaredInputs[n],v=u[f];r[f]=new ro(v&&v.currentValue,t,u===ce),e[i]=t}oi.ngInherit=!0;const Vo="__ngSimpleChanges__";function Lo(e){return e[Vo]||null}const Ei="http://www.w3.org/2000/svg";let Do;function Jo(e){Do=e}function Qi(){return void 0!==Do?Do:"undefined"!=typeof document?document:void 0}function Bn(e){return!!e.listen}const Pi={createRenderer:(e,t)=>Qi()};function Wn(e){for(;Array.isArray(e);)e=e[0];return e}function w(e,t){return Wn(t[e])}function Q(e,t){return Wn(t[e.index])}function ct(e,t){return e.data[t]}function Mt(e,t){return e[t]}function kt(e,t){const n=t[e];return Ot(n)?n:n[0]}function Fn(e){return 4==(4&e[2])}function Tn(e){return 128==(128&e[2])}function dn(e,t){return null==t?null:e[t]}function Yn(e){e[18]=0}function On(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const Yt={lFrame:ao(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function U(){return Yt.bindingsEnabled}function lt(){return Yt.lFrame.lView}function O(){return Yt.lFrame.tView}function c(e){return Yt.lFrame.contextLView=e,e[8]}function l(){let e=g();for(;null!==e&&64===e.type;)e=e.parent;return e}function g(){return Yt.lFrame.currentTNode}function ne(e,t){const n=Yt.lFrame;n.currentTNode=e,n.isParent=t}function ge(){return Yt.lFrame.isParent}function Ce(){Yt.lFrame.isParent=!1}function Pt(){return Yt.isInCheckNoChangesMode}function Bt(e){Yt.isInCheckNoChangesMode=e}function Gt(){const e=Yt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Jt(){return Yt.lFrame.bindingIndex++}function pn(e){const t=Yt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function _i(e,t){const n=Yt.lFrame;n.bindingIndex=n.bindingRootIndex=e,qi(t)}function qi(e){Yt.lFrame.currentDirectiveIndex=e}function Oi(e){const t=Yt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function fi(){return Yt.lFrame.currentQueryIndex}function Bi(e){Yt.lFrame.currentQueryIndex=e}function Yi(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Li(e,t,n){if(n&Dt.SkipSelf){let o=t,r=e;for(;!(o=o.parent,null!==o||n&Dt.Host||(o=Yi(r),null===o||(r=r[15],10&o.type))););if(null===o)return!1;t=o,e=r}const i=Yt.lFrame=zo();return i.currentTNode=t,i.lView=e,!0}function Ho(e){const t=zo(),n=e[1];Yt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function zo(){const e=Yt.lFrame,t=null===e?null:e.child;return null===t?ao(e):t}function ao(e){const 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 fr(){const e=Yt.lFrame;return Yt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const pr=fr;function Rt(){const e=fr();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 sn(){return Yt.lFrame.selectedIndex}function Gn(e){Yt.lFrame.selectedIndex=e}function xn(){const e=Yt.lFrame;return ct(e.tView,e.selectedIndex)}function pi(){Yt.lFrame.currentNamespace=Ei}function Hi(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[v]<0&&(e[18]+=65536),(f>11>16&&(3&e[2])===t){e[2]+=2048;try{r.call(f)}finally{}}}else try{r.call(f)}finally{}}class No{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function is(e,t,n){const i=Bn(e);let o=0;for(;ot){u=r-1;break}}}for(;r>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let yr=!0;function Tr(e){const t=yr;return yr=e,t}let Ea=0;function ur(e,t){const n=Rs(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,os(i.data,e),os(t,null),os(i.blueprint,null));const o=m(e,t),r=e.injectorIndex;if(Hs(o)){const u=cr(o),f=lr(o,t),v=f[1].data;for(let T=0;T<8;T++)t[r+T]=f[u+T]|v[u+T]}return t[r+8]=o,r}function os(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Rs(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function m(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,o=t;for(;null!==o;){const r=o[1],u=r.type;if(i=2===u?r.declTNode:1===u?o[6]:null,null===i)return-1;if(n++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function d(e,t,n){!function za(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(wt)&&(i=n[wt]),null==i&&(i=n[wt]=Ea++);const o=255&i;t.data[e+(o>>5)]|=1<=0?255&t:Oe:t}(n);if("function"==typeof r){if(!Li(t,e,i))return i&Dt.Host?M(o,n,i):S(t,n,i,o);try{const u=r(i);if(null!=u||i&Dt.Optional)return u;Ie(n)}finally{pr()}}else if("number"==typeof r){let u=null,f=Rs(e,t),v=-1,T=i&Dt.Host?t[16][6]:null;for((-1===f||i&Dt.SkipSelf)&&(v=-1===f?m(e,t):t[f+8],-1!==v&&Hn(i,!1)?(u=t[1],f=cr(v),t=lr(v,t)):f=-1);-1!==f;){const N=t[1];if(In(r,f,N.data)){const re=pt(f,t,n,u,i,T);if(re!==de)return re}v=t[f+8],-1!==v&&Hn(i,t[1].data[f+8]===T)&&In(r,f,t)?(u=N,f=cr(v),t=lr(v,t)):f=-1}}}return S(t,n,i,o)}const de={};function Oe(){return new co(l(),lt())}function pt(e,t,n,i,o,r){const u=t[1],f=u.data[e+8],N=Ht(f,u,n,null==i?ni(f)&&yr:i!=u&&0!=(3&f.type),o&Dt.Host&&r===f);return null!==N?wn(t,u,N,f):de}function Ht(e,t,n,i,o){const r=e.providerIndexes,u=t.data,f=1048575&r,v=e.directiveStart,N=r>>20,Pe=o?f+N:e.directiveEnd;for(let We=i?f:f+N;We=v&>.type===n)return We}if(o){const We=u[v];if(We&&kn(We)&&We.type===n)return v}return null}function wn(e,t,n,i){let o=e[n];const r=t.data;if(function ar(e){return e instanceof No}(o)){const u=o;u.resolving&&function Je(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Fe(-200,`Circular dependency in DI detected for ${e}${n}`)}(vt(r[n]));const f=Tr(u.canSeeViewProviders);u.resolving=!0;const v=u.injectImpl?Mn(u.injectImpl):null;Li(e,i,Dt.Default);try{o=e[n]=u.factory(void 0,r,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Ci(e,t,n){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=t.type.prototype;if(i){const u=Zi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r))}(n,r[n],t)}finally{null!==v&&Mn(v),Tr(f),u.resolving=!1,pr()}}return o}function In(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[Ae]||Ui(t),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const r=o[Ae]||Ui(o);if(r&&r!==n)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Ui(e){return ye(e)?()=>{const t=Ui(ee(e));return t&&t()}:Ti(e)}function uo(e){return function h(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let o=0;for(;o{const i=function Sa(e){return function(...n){if(e){const i=e(...n);for(const o in i)this[o]=i[o]}}}(t);function o(...r){if(this instanceof o)return i.apply(this,r),this;const u=new o(...r);return f.annotation=u,f;function f(v,T,N){const re=v.hasOwnProperty(Ai)?v[Ai]:Object.defineProperty(v,Ai,{value:[]})[Ai];for(;re.length<=N;)re.push(null);return(re[N]=re[N]||[]).push(u),v}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class li{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=_t({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const b2=new li("AnalyzeForEntryComponents"),Ys=Function;function ho(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?To(n,t):t(n))}function tc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function js(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function as(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function E2(e,t,n,i){let o=e.length;if(o==t)e.push(n,i);else if(1===o)e.push(i,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Ta(e,t){const n=Or(e,t);if(n>=0)return e[1|n]}function Or(e,t){return function oc(e,t,n){let i=0,o=e.length>>n;for(;o!==i;){const r=i+(o-i>>1),u=e[r<t?o=r:i=r+1}return~(o<({token:e})),-1),_r=us(Pr("Optional"),8),Ar=us(Pr("SkipSelf"),4);let Ks,Zs;function Fr(e){var t;return(null===(t=function Aa(){if(void 0===Ks&&(Ks=null,V.trustedTypes))try{Ks=V.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Ks}())||void 0===t?void 0:t.createHTML(e))||e}function fc(e){var t;return(null===(t=function ka(){if(void 0===Zs&&(Zs=null,V.trustedTypes))try{Zs=V.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Zs}())||void 0===t?void 0:t.createHTML(e))||e}class Cr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Q2 extends Cr{getTypeName(){return"HTML"}}class q2 extends Cr{getTypeName(){return"Style"}}class J2 extends Cr{getTypeName(){return"Script"}}class X2 extends Cr{getTypeName(){return"URL"}}class e3 extends Cr{getTypeName(){return"ResourceURL"}}function er(e){return e instanceof Cr?e.changingThisBreaksApplicationSecurity:e}function Ir(e,t){const n=gc(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function gc(e){return e instanceof Cr&&e.getTypeName()||null}function t3(e){return new Q2(e)}function n3(e){return new q2(e)}function vc(e){return new J2(e)}function o3(e){return new X2(e)}function r3(e){return new e3(e)}class s3{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Fr(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class a3{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Fr(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=Fr(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let o=n.length-1;0fs(t.trim())).join(", ")),this.buf.push(" ",u,'="',Dc(v),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Fa.hasOwnProperty(n)&&!Cc.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Dc(t))}checkClobberedElement(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: ${t.outerHTML}`);return n}}const f3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p3=/([^\#-~ |!])/g;function Dc(e){return e.replace(/&/g,"&").replace(f3,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(p3,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Qs;function Ec(e,t){let n=null;try{Qs=Qs||function yc(e){const t=new a3(e);return function c3(){try{return!!(new window.DOMParser).parseFromString(Fr(""),"text/html")}catch(e){return!1}}()?new s3(t):t}(e);let i=t?String(t):"";n=Qs.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=n.innerHTML,n=Qs.getInertBodyElement(i)}while(i!==r);return Fr((new d3).sanitizeChildren(La(n)||n))}finally{if(n){const i=La(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function La(e){return"content"in e&&function m3(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var mi=(()=>((mi=mi||{})[mi.NONE=0]="NONE",mi[mi.HTML=1]="HTML",mi[mi.STYLE=2]="STYLE",mi[mi.SCRIPT=3]="SCRIPT",mi[mi.URL=4]="URL",mi[mi.RESOURCE_URL=5]="RESOURCE_URL",mi))();function zc(e){const t=ps();return t?fc(t.sanitize(mi.HTML,e)||""):Ir(e,"HTML")?fc(er(e)):Ec(Qi(),_e(e))}function Ha(e){const t=ps();return t?t.sanitize(mi.URL,e)||"":Ir(e,"URL")?er(e):fs(_e(e))}function ps(){const e=lt();return e&&e[12]}const Pc="__ngContext__";function ki(e,t){e[Pc]=t}function Ra(e){const t=function ms(e){return e[Pc]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function qs(e){return e.ngOriginalError}function T3(e,...t){e.error(...t)}class gs{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=function S3(e){return e&&e.ngErrorLogger||T3}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&qs(t);for(;n&&qs(n);)n=qs(n);return n||null}}const Lc=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(V))();function Yo(e){return e instanceof Function?e():e}var jo=(()=>((jo=jo||{})[jo.Important=1]="Important",jo[jo.DashCase=2]="DashCase",jo))();function ja(e,t){return undefined(e,t)}function vs(e){const t=e[3];return Vt(t)?t[3]:t}function Ua(e){return Yc(e[13])}function $a(e){return Yc(e[4])}function Yc(e){for(;null!==e&&!Vt(e);)e=e[4];return e}function Hr(e,t,n,i,o){if(null!=i){let r,u=!1;Vt(i)?r=i:Ot(i)&&(u=!0,i=i[0]);const f=Wn(i);0===e&&null!==n?null==o?Kc(t,n,f):Mr(t,n,f,o||null,!0):1===e&&null!==n?Mr(t,n,f,o||null,!0):2===e?function nl(e,t,n){const i=Js(e,t);i&&function q3(e,t,n,i){Bn(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,f,u):3===e&&t.destroyNode(f),null!=r&&function X3(e,t,n,i,o){const r=n[7];r!==Wn(n)&&Hr(t,e,i,r,o);for(let f=10;f0&&(e[n-1][4]=i[4]);const r=js(e,10+t);!function j3(e,t){ys(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const u=r[k];null!==u&&u.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function $c(e,t){if(!(256&t[2])){const n=t[11];Bn(n)&&n.destroyNode&&ys(e,t,n,3,null,null),function W3(e){let t=e[13];if(!t)return Za(e[1],e);for(;t;){let n=null;if(Ot(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Ot(t)&&Za(t[1],t),t=t[3];null===t&&(t=e),Ot(t)&&Za(t[1],t),n=t&&t[4]}t=n}}(t)}}function Za(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function Q3(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[o=T]():i[o=-T].unsubscribe(),r+=2}else{const u=i[o=n[r+1]];n[r].call(u)}if(null!==i){for(let r=o+1;rr?"":o[re+1].toLowerCase();const We=8&i?Pe:null;if(We&&-1!==rl(We,T,0)||2&i&&T!==Pe){if(xo(i))return!1;u=!0}}}}else{if(!u&&!xo(i)&&!xo(v))return!1;if(u&&xo(v))continue;u=!1,i=v|1&i}}return xo(i)||u}function xo(e){return 0==(1&e)}function o8(e,t,n,i){if(null===t)return-1;let o=0;if(i||!n){let r=!1;for(;o-1)for(n++;n0?'="'+f+'"':"")+"]"}else 8&i?o+="."+u:4&i&&(o+=" "+u);else""!==o&&!xo(u)&&(t+=e1(r,o),o=""),i=u,r=r||!xo(i);n++}return""!==o&&(t+=e1(r,o)),t}const yn={};function ll(e){ul(O(),lt(),sn()+e,Pt())}function ul(e,t,n,i){if(!i)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&Ni(t,r,n)}else{const r=e.preOrderHooks;null!==r&&ji(t,r,0,n)}Gn(n)}function ta(e,t){return e<<17|t<<2}function Po(e){return e>>17&32767}function t1(e){return 2|e}function tr(e){return(131068&e)>>2}function n1(e,t){return-131069&e|t<<2}function o1(e){return 1|e}function bl(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i20&&ul(e,t,20,Pt()),n(i,o)}finally{Gn(r)}}function Dl(e,t,n){if(hn(t)){const o=t.directiveEnd;for(let r=t.directiveStart;r0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(f)!=v&&f.push(v),f.push(i,o,u)}}function Al(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function v1(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function H8(e,t,n){if(n){if(t.exportAs)for(let i=0;i0&&_1(n)}}function _1(e){for(let i=Ua(e);null!==i;i=$a(i))for(let o=10;o0&&_1(r)}const n=e[1].components;if(null!==n)for(let i=0;i0&&_1(o)}}function U8(e,t){const n=kt(t,e),i=n[1];(function $8(e,t){for(let n=t.length;nPromise.resolve(null))();function Hl(e){return e[7]||(e[7]=[])}function Nl(e){return e.cleanup||(e.cleanup=[])}function Rl(e,t,n){return(null===e||kn(e))&&(n=function b(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Bl(e,t){const n=e[9],i=n?n.get(gs,null):null;i&&i.handleError(t)}function Yl(e,t,n,i,o){for(let r=0;rthis.processProvider(f,t,n)),To([t],f=>this.processInjectorType(f,[],r)),this.records.set(D1,jr(void 0,this));const u=this.records.get(E1);this.scope=null!=u?u.value:null,this.source=o||("object"==typeof t?null:I(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,n=cs,i=Dt.Default){this.assertNotDestroyed();const o=ac(this),r=Mn(void 0);try{if(!(i&Dt.SkipSelf)){let f=this.records.get(t);if(void 0===f){const v=function a6(e){return"function"==typeof e||"object"==typeof e&&e instanceof li}(t)&&ot(t);f=v&&this.injectableDefInScope(v)?jr(S1(t),Ms):null,this.records.set(t,f)}if(null!=f)return this.hydrate(t,f)}return(i&Dt.Self?Ul():this.parent).get(t,n=i&Dt.Optional&&n===cs?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[Ws]=u[Ws]||[]).unshift(I(t)),o)throw u;return function H2(e,t,n,i){const o=e[Ws];throw t[sc]&&o.unshift(t[sc]),e.message=function N2(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=I(t);if(Array.isArray(t))o=t.map(I).join(" -> ");else if("object"==typeof t){let r=[];for(let u in t)if(t.hasOwnProperty(u)){let f=t[u];r.push(u+":"+("string"==typeof f?JSON.stringify(f):I(f)))}o=`{${r.join(", ")}}`}return`${n}${i?"("+i+")":""}[${o}]: ${e.replace(A2,"\n ")}`}("\n"+e.message,o,n,i),e.ngTokenPath=o,e[Ws]=null,e}(u,t,"R3InjectorError",this.source)}throw u}finally{Mn(r),ac(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,o)=>t.push(I(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Fe(205,"")}processInjectorType(t,n,i){if(!(t=ee(t)))return!1;let o=gn(t);const r=null==o&&t.ngModule||void 0,u=void 0===r?t:r,f=-1!==i.indexOf(u);if(void 0!==r&&(o=gn(r)),null==o)return!1;if(null!=o.imports&&!f){let N;i.push(u);try{To(o.imports,re=>{this.processInjectorType(re,n,i)&&(void 0===N&&(N=[]),N.push(re))})}finally{}if(void 0!==N)for(let re=0;rethis.processProvider(gt,Pe,We||Ne))}}this.injectorDefTypes.add(u);const v=Ti(u)||(()=>new u);this.records.set(u,jr(v,Ms));const T=o.providers;if(null!=T&&!f){const N=t;To(T,re=>this.processProvider(re,N,T))}return void 0!==r&&void 0!==t.providers}processProvider(t,n,i){let o=Ur(t=ee(t))?t:ee(t&&t.provide);const r=function t6(e,t,n){return Kl(e)?jr(void 0,e.useValue):jr(Gl(e),Ms)}(t);if(Ur(t)||!0!==t.multi)this.records.get(o);else{let u=this.records.get(o);u||(u=jr(void 0,Ms,!0),u.factory=()=>Pa(u.multi),this.records.set(o,u)),o=t,u.multi.push(t)}this.records.set(o,r)}hydrate(t,n){return n.value===Ms&&(n.value=J8,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Zl(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=ee(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function S1(e){const t=ot(e),n=null!==t?t.factory:Ti(e);if(null!==n)return n;if(e instanceof li)throw new Fe(204,"");if(e instanceof Function)return function e6(e){const t=e.length;if(t>0)throw as(t,"?"),new Fe(204,"");const n=function Zt(e){const t=e&&(e[Ut]||e[_n]);if(t){const n=function mn(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);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.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Fe(204,"")}function Gl(e,t,n){let i;if(Ur(e)){const o=ee(e);return Ti(o)||S1(o)}if(Kl(e))i=()=>ee(e.useValue);else if(function o6(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Pa(e.deps||[]));else if(function n6(e){return!(!e||!e.useExisting)}(e))i=()=>zi(ee(e.useExisting));else{const o=ee(e&&(e.useClass||e.provide));if(!function s6(e){return!!e.deps}(e))return Ti(o)||S1(o);i=()=>new o(...Pa(e.deps))}return i}function jr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Kl(e){return null!==e&&"object"==typeof e&&F2 in e}function Ur(e){return"function"==typeof e}let fo=(()=>{class e{static create(n,i){var o;if(Array.isArray(n))return $l({name:""},i,n,"");{const r=null!==(o=n.name)&&void 0!==o?o:"";return $l({name:r},n.parent,n.providers,r)}}}return e.THROW_IF_NOT_FOUND=cs,e.NULL=new jl,e.\u0275prov=_t({token:e,providedIn:"any",factory:()=>zi(D1)}),e.__NG_ELEMENT_ID__=-1,e})();function g6(e,t){Hi(Ra(e)[1],l())}function O1(e){let t=function a4(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let o;if(kn(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Fe(903,"");o=t.\u0275dir}if(o){if(n){i.push(o);const u=e;u.inputs=A1(e.inputs),u.declaredInputs=A1(e.declaredInputs),u.outputs=A1(e.outputs);const f=o.hostBindings;f&&C6(e,f);const v=o.viewQuery,T=o.contentQueries;if(v&&y6(e,v),T&&_6(e,T),W(e.inputs,o.inputs),W(e.declaredInputs,o.declaredInputs),W(e.outputs,o.outputs),kn(o)&&o.data.animation){const N=e.data;N.animation=(N.animation||[]).concat(o.data.animation)}}const r=o.features;if(r)for(let u=0;u=0;i--){const o=e[i];o.hostVars=t+=o.hostVars,o.hostAttrs=Sr(o.hostAttrs,n=Sr(n,o.hostAttrs))}}(i)}function A1(e){return e===ce?{}:e===Ne?[]:e}function y6(e,t){const n=e.viewQuery;e.viewQuery=n?(i,o)=>{t(i,o),n(i,o)}:t}function _6(e,t){const n=e.contentQueries;e.contentQueries=n?(i,o,r)=>{t(i,o,r),n(i,o,r)}:t}function C6(e,t){const n=e.hostBindings;e.hostBindings=n?(i,o)=>{t(i,o),n(i,o)}:t}let sa=null;function $r(){if(!sa){const e=V.Symbol;if(e&&e.iterator)sa=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;nf(Wn(zn[i.index])):i.index;if(Bn(n)){let zn=null;if(!f&&v&&(zn=function _5(e,t,n,i){const o=e.cleanup;if(null!=o)for(let r=0;rv?f[v]:null}"string"==typeof u&&(r+=2)}return null}(e,t,o,i.index)),null!==zn)(zn.__ngLastListenerFn__||zn).__ngNextListenerFn__=r,zn.__ngLastListenerFn__=r,We=!1;else{r=M4(i,t,re,r,!1);const Kn=n.listen($t,o,r);Pe.push(r,Kn),N&&N.push(o,nn,bt,bt+1)}}else r=M4(i,t,re,r,!0),$t.addEventListener(o,r,u),Pe.push(r),N&&N.push(o,nn,bt,u)}else r=M4(i,t,re,r,!1);const gt=i.outputs;let xt;if(We&&null!==gt&&(xt=gt[o])){const Ft=xt.length;if(Ft)for(let $t=0;$t0;)t=t[15],e--;return t}(e,Yt.lFrame.contextLView))[8]}(e)}function C5(e,t){let n=null;const i=function r8(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let o=0;o=0}const Si={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function p0(e){return e.substring(Si.key,Si.keyEnd)}function m0(e,t){const n=Si.textEnd;return n===t?-1:(t=Si.keyEnd=function S5(e,t,n){for(;t32;)t++;return t}(e,Si.key=t,n),zs(e,t,n))}function zs(e,t,n){for(;t=0;n=m0(t,n))to(e,p0(t),!0)}function Wo(e,t,n,i){const o=lt(),r=O(),u=pn(2);r.firstUpdatePass&&b0(r,e,u,i),t!==yn&&Fi(o,u,t)&&D0(r,r.data[sn()],o,o[11],e,o[u+1]=function L5(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=I(er(e)))),e}(t,n),i,u)}function Go(e,t,n,i){const o=O(),r=pn(2);o.firstUpdatePass&&b0(o,null,r,i);const u=lt();if(n!==yn&&Fi(u,r,n)){const f=o.data[sn()];if(z0(f,i)&&!M0(o,r)){let v=i?f.classesWithoutHost:f.stylesWithoutHost;null!==v&&(n=R(v,n||"")),f4(o,f,u,n,i)}else!function V5(e,t,n,i,o,r,u,f){o===yn&&(o=Ne);let v=0,T=0,N=0=e.expandoStartIndex}function b0(e,t,n,i){const o=e.data;if(null===o[n+1]){const r=o[sn()],u=M0(e,n);z0(r,i)&&null===t&&!u&&(t=!1),t=function O5(e,t,n,i){const o=Oi(e);let r=i?t.residualClasses:t.residualStyles;if(null===o)0===(i?t.classBindings:t.styleBindings)&&(n=la(n=z4(null,e,t,n,i),t.attrs,i),r=null);else{const u=t.directiveStylingLast;if(-1===u||e[u]!==o)if(n=z4(o,e,t,n,i),null===r){let v=function A5(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==tr(i))return e[Po(i)]}(e,t,i);void 0!==v&&Array.isArray(v)&&(v=z4(null,e,t,v[1],i),v=la(v,t.attrs,i),function k5(e,t,n,i){e[Po(n?t.classBindings:t.styleBindings)]=i}(e,t,i,v))}else r=function F5(e,t,n){let i;const o=t.directiveEnd;for(let r=1+t.directiveStylingLast;r0)&&(T=!0)}else N=n;if(o)if(0!==v){const Pe=Po(e[f+1]);e[i+1]=ta(Pe,f),0!==Pe&&(e[Pe+1]=n1(e[Pe+1],i)),e[f+1]=function d8(e,t){return 131071&e|t<<17}(e[f+1],i)}else e[i+1]=ta(f,0),0!==f&&(e[f+1]=n1(e[f+1],i)),f=i;else e[i+1]=ta(v,0),0===f?f=i:e[v+1]=n1(e[v+1],i),v=i;T&&(e[i+1]=t1(e[i+1])),f0(e,N,i,!0),f0(e,N,i,!1),function b5(e,t,n,i,o){const r=o?e.residualClasses:e.residualStyles;null!=r&&"string"==typeof t&&Or(r,t)>=0&&(n[i+1]=o1(n[i+1]))}(t,N,e,i,r),u=ta(f,v),r?t.classBindings=u:t.styleBindings=u}(o,r,t,n,u,i)}}function z4(e,t,n,i,o){let r=null;const u=n.directiveEnd;let f=n.directiveStylingLast;for(-1===f?f=n.directiveStart:f++;f0;){const v=e[o],T=Array.isArray(v),N=T?v[1]:v,re=null===N;let Pe=n[o+1];Pe===yn&&(Pe=re?Ne:void 0);let We=re?Ta(Pe,i):N===i?Pe:void 0;if(T&&!L1(We)&&(We=Ta(v,i)),L1(We)&&(f=We,u))return f;const gt=e[o+1];o=u?Po(gt):tr(gt)}if(null!==t){let v=r?t.residualClasses:t.residualStyles;null!=v&&(f=Ta(v,i))}return f}function L1(e){return void 0!==e}function z0(e,t){return 0!=(e.flags&(t?16:32))}function S0(e,t=""){const n=lt(),i=O(),o=e+20,r=i.firstCreatePass?Rr(i,o,1,t,null):i.data[o],u=n[o]=function Wa(e,t){return Bn(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Xs(i,n,u,r),ne(r,!1)}function S4(e){return H1("",e,""),S4}function H1(e,t,n){const i=lt(),o=Wr(i,e,t,n);return o!==yn&&nr(i,sn(),o),H1}function T4(e,t,n,i,o){const r=lt(),u=Gr(r,e,t,n,i,o);return u!==yn&&nr(r,sn(),u),T4}function I0(e,t,n){Go(to,or,Wr(lt(),e,t,n),!0)}function x4(e,t,n){const i=lt();if(Fi(i,Jt(),t)){const r=O(),u=xn();no(r,u,i,e,t,Rl(Oi(r.data),u,i),n,!0)}return x4}const Jr=void 0;var n7=["en",[["a","p"],["AM","PM"],Jr],[["AM","PM"],Jr,Jr],[["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"]],Jr,[["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"]],Jr,[["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}",Jr,"{1} 'at' {0}",Jr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function t7(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let Ss={};function i7(e,t,n){"string"!=typeof t&&(n=t,t=e[an.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Ss[t]=e,n&&(Ss[t][an.ExtraData]=n)}function P4(e){const t=function o7(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=G0(t);if(n)return n;const i=t.split("-")[0];if(n=G0(i),n)return n;if("en"===i)return n7;throw new Error(`Missing locale data for the locale "${e}".`)}function W0(e){return P4(e)[an.PluralCase]}function G0(e){return e in Ss||(Ss[e]=V.ng&&V.ng.common&&V.ng.common.locales&&V.ng.common.locales[e]),Ss[e]}var an=(()=>((an=an||{})[an.LocaleId=0]="LocaleId",an[an.DayPeriodsFormat=1]="DayPeriodsFormat",an[an.DayPeriodsStandalone=2]="DayPeriodsStandalone",an[an.DaysFormat=3]="DaysFormat",an[an.DaysStandalone=4]="DaysStandalone",an[an.MonthsFormat=5]="MonthsFormat",an[an.MonthsStandalone=6]="MonthsStandalone",an[an.Eras=7]="Eras",an[an.FirstDayOfWeek=8]="FirstDayOfWeek",an[an.WeekendRange=9]="WeekendRange",an[an.DateFormat=10]="DateFormat",an[an.TimeFormat=11]="TimeFormat",an[an.DateTimeFormat=12]="DateTimeFormat",an[an.NumberSymbols=13]="NumberSymbols",an[an.NumberFormats=14]="NumberFormats",an[an.CurrencyCode=15]="CurrencyCode",an[an.CurrencySymbol=16]="CurrencySymbol",an[an.CurrencyName=17]="CurrencyName",an[an.Currencies=18]="Currencies",an[an.Directionality=19]="Directionality",an[an.PluralCase=20]="PluralCase",an[an.ExtraData=21]="ExtraData",an))();const N1="en-US";let K0=N1;function k4(e,t,n,i,o){if(e=ee(e),Array.isArray(e))for(let r=0;r>20;if(Ur(e)||!e.multi){const We=new No(v,o,ca),gt=I4(f,t,o?N:N+Pe,re);-1===gt?(d(ur(T,u),r,f),F4(r,e,t.length),t.push(f),T.directiveStart++,T.directiveEnd++,o&&(T.providerIndexes+=1048576),n.push(We),u.push(We)):(n[gt]=We,u[gt]=We)}else{const We=I4(f,t,N+Pe,re),gt=I4(f,t,N,N+Pe),xt=We>=0&&n[We],Ft=gt>=0&&n[gt];if(o&&!Ft||!o&&!xt){d(ur(T,u),r,f);const $t=function nf(e,t,n,i,o){const r=new No(e,n,ca);return r.multi=[],r.index=t,r.componentProviders=0,yu(r,o,i&&!n),r}(o?tf:ef,n.length,o,i,v);!o&&Ft&&(n[gt].providerFactory=$t),F4(r,e,t.length,0),t.push(f),T.directiveStart++,T.directiveEnd++,o&&(T.providerIndexes+=1048576),n.push($t),u.push($t)}else F4(r,e,We>-1?We:gt,yu(n[o?gt:We],v,!o&&i));!o&&i&&Ft&&n[gt].componentProviders++}}}function F4(e,t,n,i){const o=Ur(t),r=function r6(e){return!!e.useClass}(t);if(o||r){const v=(r?ee(t.useClass):t).prototype.ngOnDestroy;if(v){const T=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const N=T.indexOf(n);-1===N?T.push(n,[i,v]):T[N+1].push(i,v)}else T.push(n,v)}}}function yu(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function I4(e,t,n,i){for(let o=n;o{n.providersResolver=(i,o)=>function X7(e,t,n){const i=O();if(i.firstCreatePass){const o=kn(e);k4(n,i.data,i.blueprint,o,!0),k4(t,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,t)}}class Cu{}class af{resolveComponentFactory(t){throw function sf(e){const t=Error(`No component factory found for ${I(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let pa=(()=>{class e{}return e.NULL=new af,e})();function cf(){return xs(l(),lt())}function xs(e,t){return new ma(Q(e,t))}let ma=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=cf,e})();function lf(e){return e instanceof ma?e.nativeElement:e}class bu{}let uf=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function df(){const e=lt(),n=kt(l().index,e);return function hf(e){return e[11]}(Ot(n)?n:e)}(),e})(),ff=(()=>{class e{}return e.\u0275prov=_t({token:e,providedIn:"root",factory:()=>null}),e})();class wu{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const pf=new wu("13.1.3"),L4={};function U1(e,t,n,i,o=!1){for(;null!==n;){const r=t[n.index];if(null!==r&&i.push(Wn(r)),Vt(r))for(let f=10;f-1&&(Ka(t,i),js(n,i))}this._attachedToViewContainer=!1}$c(this._lView[1],this._lView)}onDestroy(t){Tl(this._lView[1],this._lView,null,t)}markForCheck(){C1(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){b1(this._lView[1],this._lView,this.context)}checkNoChanges(){!function G8(e,t,n){Bt(!0);try{b1(e,t,n)}finally{Bt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Fe(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function $3(e,t){ys(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Fe(902,"");this._appRef=t}}class mf extends ga{constructor(t){super(t),this._view=t}detectChanges(){Ll(this._view)}checkNoChanges(){!function K8(e){Bt(!0);try{Ll(e)}finally{Bt(!1)}}(this._view)}get context(){return null}}class Du extends pa{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ve(t);return new H4(n,this.ngModule)}}function Eu(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const vf=new li("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Lc});class H4 extends Cu{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function u8(e){return e.map(l8).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Eu(this.componentDef.inputs)}get outputs(){return Eu(this.componentDef.outputs)}create(t,n,i,o){const r=(o=o||this.ngModule)?function yf(e,t){return{get:(n,i,o)=>{const r=e.get(n,L4,o);return r!==L4||i===L4?r:t.get(n,i,o)}}}(t,o.injector):t,u=r.get(bu,Pi),f=r.get(ff,null),v=u.createRenderer(null,this.componentDef),T=this.componentDef.selectors[0][0]||"div",N=i?function Sl(e,t,n){if(Bn(e))return e.selectRootElement(t,n===me.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(v,i,this.componentDef.encapsulation):Ga(u.createRenderer(null,this.componentDef),T,function gf(e){const t=e.toLowerCase();return"svg"===t?Ei:"math"===t?"http://www.w3.org/1998/MathML/":null}(T)),re=this.componentDef.onPush?576:528,Pe=function P1(e,t){return{components:[],scheduler:e||Lc,clean:Z8,playerHandler:t||null,flags:0}}(),We=oa(0,null,null,1,0,null,null,null,null,null),gt=Nr(null,We,Pe,re,null,null,u,v,f,r);let xt,Ft;Ho(gt);try{const $t=function r4(e,t,n,i,o,r){const u=n[1];n[20]=e;const v=Rr(u,20,2,"#host",null),T=v.mergedAttrs=t.hostAttrs;null!==T&&(Cs(v,T,!0),null!==e&&(is(o,e,T),null!==v.classes&&Xa(o,e,v.classes),null!==v.styles&&ol(o,e,v.styles)));const N=i.createRenderer(e,t),re=Nr(n,El(t),null,t.onPush?64:16,n[20],v,i,N,r||null,null);return u.firstCreatePass&&(d(ur(v,n),u,t.type),v1(u,v),kl(v,n.length,1)),ra(n,re),n[20]=re}(N,this.componentDef,gt,u,v);if(N)if(i)is(v,N,["ng-version",pf.full]);else{const{attrs:bt,classes:nn}=function h8(e){const t=[],n=[];let i=1,o=2;for(;i0&&Xa(v,N,nn.join(" "))}if(Ft=ct(We,20),void 0!==n){const bt=Ft.projection=[];for(let nn=0;nnv(u,t)),t.contentQueries){const v=l();t.contentQueries(1,u,v.directiveStart)}const f=l();return!r.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Gn(f.index),Ol(n[1],f,0,f.directiveStart,f.directiveEnd,t),Al(t,u)),u}($t,this.componentDef,gt,Pe,[g6]),_s(We,gt,null)}finally{Rt()}return new Cf(this.componentType,xt,xs(Ft,gt),gt,Ft)}}class Cf extends class rf{}{constructor(t,n,i,o,r){super(),this.location=i,this._rootLView=o,this._tNode=r,this.instance=n,this.hostView=this.changeDetectorRef=new mf(o),this.componentType=t}get injector(){return new co(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Ps{}class zu{}const Os=new Map;class xu extends Ps{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Du(this);const i=jt(t);this._bootstrapComponents=Yo(i.bootstrap),this._r3Injector=Wl(t,n,[{provide:Ps,useValue:this},{provide:pa,useValue:this.componentFactoryResolver}],I(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=fo.THROW_IF_NOT_FOUND,i=Dt.Default){return t===fo||t===Ps||t===D1?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class N4 extends zu{constructor(t){super(),this.moduleType=t,null!==jt(t)&&function bf(e){const t=new Set;!function n(i){const o=jt(i,!0),r=o.id;null!==r&&(function Su(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${I(t)} vs ${I(t.name)}`)}(r,Os.get(r),i),Os.set(r,i));const u=Yo(o.imports);for(const f of u)t.has(f)||(t.add(f),n(f))}(e)}(t)}create(t){return new xu(this.moduleType,t)}}function Pu(e,t,n){const i=Gt()+e,o=lt();return o[i]===yn?$o(o,i,n?t.call(n):t()):function ws(e,t){return e[t]}(o,i)}function Ou(e,t,n,i){return Fu(lt(),Gt(),e,t,n,i)}function Au(e,t,n,i,o){return Iu(lt(),Gt(),e,t,n,i,o)}function ku(e,t,n,i,o,r,u){return function Lu(e,t,n,i,o,r,u,f,v){const T=t+n;return function po(e,t,n,i,o,r){const u=br(e,t,n,i);return br(e,t+2,o,r)||u}(e,T,o,r,u,f)?$o(e,T+4,v?i.call(v,o,r,u,f):i(o,r,u,f)):va(e,T+4)}(lt(),Gt(),e,t,n,i,o,r,u)}function va(e,t){const n=e[t];return n===yn?void 0:n}function Fu(e,t,n,i,o,r){const u=t+n;return Fi(e,u,o)?$o(e,u+1,r?i.call(r,o):i(o)):va(e,u+1)}function Iu(e,t,n,i,o,r,u){const f=t+n;return br(e,f,o,r)?$o(e,f+2,u?i.call(u,o,r):i(o,r)):va(e,f+2)}function Vu(e,t,n,i,o,r,u,f){const v=t+n;return function aa(e,t,n,i,o){const r=br(e,t,n,i);return Fi(e,t+2,o)||r}(e,v,o,r,u)?$o(e,v+3,f?i.call(f,o,r,u):i(o,r,u)):va(e,v+3)}function Nu(e,t){const n=O();let i;const o=e+20;n.firstCreatePass?(i=function xf(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[o]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,i.onDestroy)):i=n.data[o];const r=i.factory||(i.factory=Ti(i.type)),u=Mn(ca);try{const f=Tr(!1),v=r();return Tr(f),function Qd(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,lt(),o,v),v}finally{Mn(u)}}function Ru(e,t,n){const i=e+20,o=lt(),r=Mt(o,i);return ya(o,i)?Fu(o,Gt(),t,r.transform,n,r):r.transform(n)}function Bu(e,t,n,i){const o=e+20,r=lt(),u=Mt(r,o);return ya(r,o)?Iu(r,Gt(),t,u.transform,n,i,u):u.transform(n,i)}function Yu(e,t,n,i,o){const r=e+20,u=lt(),f=Mt(u,r);return ya(u,r)?Vu(u,Gt(),t,f.transform,n,i,o,f):f.transform(n,i,o)}function ya(e,t){return e[1].data[t].pure}function R4(e){return t=>{setTimeout(e,void 0,t)}}const rr=class Af extends a.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var o,r,u;let f=t,v=n||(()=>null),T=i;if(t&&"object"==typeof t){const re=t;f=null===(o=re.next)||void 0===o?void 0:o.bind(re),v=null===(r=re.error)||void 0===r?void 0:r.bind(re),T=null===(u=re.complete)||void 0===u?void 0:u.bind(re)}this.__isAsync&&(v=R4(v),f&&(f=R4(f)),T&&(T=R4(T)));const N=super.subscribe({next:f,error:v,complete:T});return t instanceof s.w&&t.add(N),N}};function kf(){return this._results[$r()]()}class B4{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 n=$r(),i=B4.prototype;i[n]||(i[n]=kf)}get changes(){return this._changes||(this._changes=new rr)}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,n){return this._results.reduce(t,n)}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,n){const i=this;i.dirty=!1;const o=ho(t);(this._changesDetected=!function w2(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i{class e{}return e.__NG_ELEMENT_ID__=Vf,e})();const Ff=_a,If=class extends Ff{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Nr(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[k];return null!==r&&(i[k]=r.createEmbeddedView(n)),_s(n,i,t),new ga(i)}};function Vf(){return $1(l(),lt())}function $1(e,t){return 4&e.type?new If(t,e,xs(e,t)):null}let W1=(()=>{class e{}return e.__NG_ELEMENT_ID__=Lf,e})();function Lf(){return $u(l(),lt())}const Hf=W1,ju=class extends Hf{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return xs(this._hostTNode,this._hostLView)}get injector(){return new co(this._hostTNode,this._hostLView)}get parentInjector(){const t=m(this._hostTNode,this._hostLView);if(Hs(t)){const n=lr(t,this._hostLView),i=cr(t);return new co(n[1].data[i+8],n)}return new co(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Uu(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const o=t.createEmbeddedView(n||{});return this.insert(o,i),o}createComponent(t,n,i,o,r){const u=t&&!function ss(e){return"function"==typeof e}(t);let f;if(u)f=n;else{const re=n||{};f=re.index,i=re.injector,o=re.projectableNodes,r=re.ngModuleRef}const v=u?t:new H4(Ve(t)),T=i||this.parentInjector;if(!r&&null==v.ngModule&&T){const re=T.get(Ps,null);re&&(r=re)}const N=v.create(T,o,void 0,r);return this.insert(N.hostView,f),N}insert(t,n){const i=t._lView,o=i[1];if(function Dn(e){return Vt(e[3])}(i)){const N=this.indexOf(t);if(-1!==N)this.detach(N);else{const re=i[3],Pe=new ju(re,re[6],re[3]);Pe.detach(Pe.indexOf(t))}}const r=this._adjustIndex(n),u=this._lContainer;!function G3(e,t,n,i){const o=10+i,r=n.length;i>0&&(n[o-1][4]=t),i0)i.push(u[f/2]);else{const T=r[f+1],N=t[-v];for(let re=10;re{class e{constructor(n){this.appInits=n,this.resolve=Z1,this.reject=Z1,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{r.subscribe({complete:f,error:v})});n.push(u)}}Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(zi(X4,8))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const yh=new li("AppId"),u9={provide:yh,useFactory:function l9(){return`${e2()}${e2()}${e2()}`},deps:[]};function e2(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const _h=new li("Platform Initializer"),Ch=new li("Platform ID"),Mh=new li("appBootstrapListener");let bh=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const Q1=new li("LocaleId"),wh=new li("DefaultCurrencyCode");class h9{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let t2=(()=>{class e{compileModuleSync(n){return new N4(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),r=Yo(jt(n).declarations).reduce((u,f)=>{const v=Ve(f);return v&&u.push(new H4(v)),u},[]);return new h9(i,r)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const f9=(()=>Promise.resolve(0))();function n2(e){"undefined"==typeof Zone?f9.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class mo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new rr(!1),this.onMicrotaskEmpty=new rr(!1),this.onStable=new rr(!1),this.onError=new rr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&n,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function p9(){let e=V.requestAnimationFrame,t=V.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function v9(e){const t=()=>{!function g9(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(V,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,r2(e),e.isCheckStableRunning=!0,o2(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),r2(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,o,r,u,f)=>{try{return Dh(e),n.invokeTask(o,r,u,f)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||e.shouldCoalesceRunChangeDetection)&&t(),Eh(e)}},onInvoke:(n,i,o,r,u,f,v)=>{try{return Dh(e),n.invoke(o,r,u,f,v)}finally{e.shouldCoalesceRunChangeDetection&&t(),Eh(e)}},onHasTask:(n,i,o,r)=>{n.hasTask(o,r),i===o&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,r2(e),o2(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(n,i,o,r)=>(n.handleError(o,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!mo.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(mo.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,o){const r=this._inner,u=r.scheduleEventTask("NgZoneEvent: "+o,t,m9,Z1,Z1);try{return r.runTask(u,n,i)}finally{r.cancelTask(u)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const m9={};function o2(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function r2(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Dh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Eh(e){e._nesting--,o2(e)}class y9{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new rr,this.onMicrotaskEmpty=new rr,this.onStable=new rr,this.onError=new rr}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,o){return t.apply(n,i)}}let zh=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.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:()=>{mo.assertNotInAngularZone(),n2(()=>{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())n2(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==r),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:r,updateCb:o})}whenStable(n,i,o){if(o&&!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,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(zi(mo))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})(),Sh=(()=>{class e{constructor(){this._applications=new Map,s2.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return s2.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();class _9{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function C9(e){s2=e}let Ko,s2=new _9;const Th=new li("AllowMultipleToken");class w9{constructor(t,n){this.name=t,this.token=n}}function xh(e,t,n=[]){const i=`Platform: ${t}`,o=new li(i);return(r=[])=>{let u=Ph();if(!u||u.injector.get(Th,!1))if(e)e(n.concat(r).concat({provide:o,useValue:!0}));else{const f=n.concat(r).concat({provide:o,useValue:!0},{provide:E1,useValue:"platform"});!function D9(e){if(Ko&&!Ko.destroyed&&!Ko.injector.get(Th,!1))throw new Fe(400,"");Ko=e.get(Oh);const t=e.get(_h,null);t&&t.forEach(n=>n())}(fo.create({providers:f,name:i}))}return function E9(e){const t=Ph();if(!t)throw new Fe(401,"");return t}()}}function Ph(){return Ko&&!Ko.destroyed?Ko:null}let Oh=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const f=function z9(e,t){let n;return n="noop"===e?new y9:("zone.js"===e?void 0:e)||new mo({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),v=[{provide:mo,useValue:f}];return f.run(()=>{const T=fo.create({providers:v,parent:this.injector,name:n.moduleType.name}),N=n.create(T),re=N.injector.get(gs,null);if(!re)throw new Fe(402,"");return f.runOutsideAngular(()=>{const Pe=f.onError.subscribe({next:We=>{re.handleError(We)}});N.onDestroy(()=>{a2(this._modules,N),Pe.unsubscribe()})}),function S9(e,t,n){try{const i=n();return y4(i)?i.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(re,f,()=>{const Pe=N.injector.get(ks);return Pe.runInitializers(),Pe.donePromise.then(()=>(function c7(e){ke(e,"Expected localeId to be defined"),"string"==typeof e&&(K0=e.toLowerCase().replace(/_/g,"-"))}(N.injector.get(Q1,N1)||N1),this._moduleDoBootstrap(N),N))})})}bootstrapModule(n,i=[]){const o=Ah({},i);return function M9(e,t,n){const i=new N4(n);return Promise.resolve(i)}(0,0,n).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(n){const i=n.injector.get(Ma);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new Fe(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Fe(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(zi(fo))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();function Ah(e,t){return Array.isArray(t)?t.reduce(Ah,e):Object.assign(Object.assign({},e),t)}let Ma=(()=>{class e{constructor(n,i,o,r,u){this._zone=n,this._injector=i,this._exceptionHandler=o,this._componentFactoryResolver=r,this._initStatus=u,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 f=new G.y(T=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{T.next(this._stable),T.complete()})}),v=new G.y(T=>{let N;this._zone.runOutsideAngular(()=>{N=this._zone.onStable.subscribe(()=>{mo.assertNotInAngularZone(),n2(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,T.next(!0))})})});const re=this._zone.onUnstable.subscribe(()=>{mo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{T.next(!1)}))});return()=>{N.unsubscribe(),re.unsubscribe()}});this.isStable=(0,oe.T)(f,v.pipe((0,q.B)()))}bootstrap(n,i){if(!this._initStatus.done)throw new Fe(405,"");let o;o=n instanceof Cu?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const r=function b9(e){return e.isBoundToModule}(o)?void 0:this._injector.get(Ps),f=o.create(fo.NULL,[],i||o.selector,r),v=f.location.nativeElement,T=f.injector.get(zh,null),N=T&&f.injector.get(Sh);return T&&N&&N.registerApplication(v,T),f.onDestroy(()=>{this.detachView(f.hostView),a2(this.components,f),N&&N.unregisterApplication(v)}),this._loadComponent(f),f}tick(){if(this._runningTick)throw new Fe(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;a2(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Mh,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(zi(mo),zi(fo),zi(gs),zi(pa),zi(ks))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();function a2(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Fh=!0,Ih=!1;function x9(){return Ih=!0,Fh}function P9(){if(Ih)throw new Error("Cannot enable prod mode after platform setup.");Fh=!1}let O9=(()=>{class e{}return e.__NG_ELEMENT_ID__=A9,e})();function A9(e){return function k9(e,t,n){if(ni(e)&&!n){const i=kt(e.index,t);return new ga(i,i)}return 47&e.type?new ga(t[16],t):null}(l(),lt(),16==(16&e))}class Bh{constructor(){}supports(t){return bs(t)}create(t){return new N9(t)}}const H9=(e,t)=>t;class N9{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||H9}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,o=0,r=null;for(;n||i;){const u=!i||n&&n.currentIndex{u=this._trackByFn(o,f),null!==n&&Object.is(n.trackById,u)?(i&&(n=this._verifyReinsertion(n,f,u,o)),Object.is(n.item,f)||this._addIdentityChange(n,f)):(n=this._mismatch(n,f,u,o),i=!0),n=n._next,o++}),this.length=o;return this._truncate(n),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,n,i,o){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,r,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,r,o)):t=this._addAfter(new R9(n,i),r,o),t}_verifyReinsertion(t,n,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?t=this._reinsertAfter(r,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}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,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,r=t._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Yh),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Yh),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,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class R9{constructor(t,n){this.item=t,this.trackById=n,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 B9{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,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class Yh{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new B9,this.map.set(n,i)),i.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function jh(e,t,n){const i=e.previousIndex;if(null===i)return i;let o=0;return n&&i{if(n&&n.key===o)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const r=this._getOrCreateRecordForKey(o,i);n=this._insertBeforeOrAppend(n,r)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const r=o._prev,u=o._next;return r&&(r._next=u),u&&(u._prev=r),o._next=null,o._prev=null,o}const i=new j9(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_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,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,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,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class j9{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 $h(){return new J1([new Bh])}let J1=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||$h()),deps:[[e,new Ar,new _r]]}}find(n){const i=this.factories.find(o=>o.supports(n));if(null!=i)return i;throw new Fe(901,"")}}return e.\u0275prov=_t({token:e,providedIn:"root",factory:$h}),e})();function Wh(){return new X1([new Uh])}let X1=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Wh()),deps:[[e,new Ar,new _r]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(i)return i;throw new Fe(901,"")}}return e.\u0275prov=_t({token:e,providedIn:"root",factory:Wh}),e})();const U9=[new Uh],W9=new J1([new Bh]),G9=new X1(U9),K9=xh(null,"core",[{provide:Ch,useValue:"unknown"},{provide:Oh,deps:[fo]},{provide:Sh,deps:[]},{provide:bh,deps:[]}]),X9=[{provide:Ma,useClass:Ma,deps:[mo,fo,gs,pa,ks]},{provide:vf,deps:[mo],useFactory:function ep(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:ks,useClass:ks,deps:[[new _r,X4]]},{provide:t2,useClass:t2,deps:[]},u9,{provide:J1,useFactory:function Z9(){return W9},deps:[]},{provide:X1,useFactory:function Q9(){return G9},deps:[]},{provide:Q1,useFactory:function q9(e){return e||function J9(){return"undefined"!=typeof $localize&&$localize.locale||N1}()},deps:[[new hs(Q1),new _r,new Ar]]},{provide:wh,useValue:"USD"}];let tp=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(zi(Ma))},e.\u0275mod=jn({type:e}),e.\u0275inj=St({providers:X9}),e})()},4182:(yt,be,p)=>{p.d(be,{TO:()=>Un,ve:()=>_e,Wl:()=>Ye,Fj:()=>vt,qu:()=>Yt,oH:()=>_o,u:()=>oo,sg:()=>Ii,u5:()=>dn,JU:()=>ee,a5:()=>Cn,JJ:()=>qe,JL:()=>x,F:()=>se,On:()=>kn,Mq:()=>hn,c5:()=>Mt,UX:()=>Yn,Q7:()=>Pi,kI:()=>et,_Y:()=>bi});var a=p(5e3),s=p(9808),G=p(6498),oe=p(6688),q=p(4850),_=p(7830),W=p(5254);function R(D,C){return new G.y(y=>{const U=D.length;if(0===U)return void y.complete();const at=new Array(U);let Nt=0,lt=0;for(let O=0;O{l||(l=!0,lt++),at[O]=g},error:g=>y.error(g),complete:()=>{Nt++,(Nt===U||!l)&&(lt===U&&y.next(C?C.reduce((g,F,ne)=>(g[F]=at[ne],g),{}):at),y.complete())}}))}})}let H=(()=>{class D{constructor(y,U){this._renderer=y,this._elementRef=U,this.onChange=at=>{},this.onTouched=()=>{}}setProperty(y,U){this._renderer.setProperty(this._elementRef.nativeElement,y,U)}registerOnTouched(y){this.onTouched=y}registerOnChange(y){this.onChange=y}setDisabledState(y){this.setProperty("disabled",y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(a.Qsj),a.Y36(a.SBq))},D.\u0275dir=a.lG2({type:D}),D})(),B=(()=>{class D extends H{}return D.\u0275fac=function(){let C;return function(U){return(C||(C=a.n5z(D)))(U||D)}}(),D.\u0275dir=a.lG2({type:D,features:[a.qOj]}),D})();const ee=new a.OlP("NgValueAccessor"),ye={provide:ee,useExisting:(0,a.Gpc)(()=>Ye),multi:!0};let Ye=(()=>{class D extends B{writeValue(y){this.setProperty("checked",y)}}return D.\u0275fac=function(){let C;return function(U){return(C||(C=a.n5z(D)))(U||D)}}(),D.\u0275dir=a.lG2({type:D,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(y,U){1&y&&a.NdJ("change",function(Nt){return U.onChange(Nt.target.checked)})("blur",function(){return U.onTouched()})},features:[a._Bn([ye]),a.qOj]}),D})();const Fe={provide:ee,useExisting:(0,a.Gpc)(()=>vt),multi:!0},_e=new a.OlP("CompositionEventMode");let vt=(()=>{class D extends H{constructor(y,U,at){super(y,U),this._compositionMode=at,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ze(){const D=(0,s.q)()?(0,s.q)().getUserAgent():"";return/android (\d+)/.test(D.toLowerCase())}())}writeValue(y){this.setProperty("value",null==y?"":y)}_handleInput(y){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(y)}_compositionStart(){this._composing=!0}_compositionEnd(y){this._composing=!1,this._compositionMode&&this.onChange(y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(a.Qsj),a.Y36(a.SBq),a.Y36(_e,8))},D.\u0275dir=a.lG2({type:D,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(y,U){1&y&&a.NdJ("input",function(Nt){return U._handleInput(Nt.target.value)})("blur",function(){return U.onTouched()})("compositionstart",function(){return U._compositionStart()})("compositionend",function(Nt){return U._compositionEnd(Nt.target.value)})},features:[a._Bn([Fe]),a.qOj]}),D})();function Je(D){return null==D||0===D.length}function zt(D){return null!=D&&"number"==typeof D.length}const ut=new a.OlP("NgValidators"),Ie=new a.OlP("NgAsyncValidators"),$e=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class et{static min(C){return function Se(D){return C=>{if(Je(C.value)||Je(D))return null;const y=parseFloat(C.value);return!isNaN(y)&&y{if(Je(C.value)||Je(D))return null;const y=parseFloat(C.value);return!isNaN(y)&&y>D?{max:{max:D,actual:C.value}}:null}}(C)}static required(C){return J(C)}static requiredTrue(C){return function fe(D){return!0===D.value?null:{required:!0}}(C)}static email(C){return function he(D){return Je(D.value)||$e.test(D.value)?null:{email:!0}}(C)}static minLength(C){return function te(D){return C=>Je(C.value)||!zt(C.value)?null:C.value.lengthzt(C.value)&&C.value.length>D?{maxlength:{requiredLength:D,actualLength:C.value.length}}:null}(C)}static pattern(C){return ie(C)}static nullValidator(C){return null}static compose(C){return dt(C)}static composeAsync(C){return it(C)}}function J(D){return Je(D.value)?{required:!0}:null}function ie(D){if(!D)return Ue;let C,y;return"string"==typeof D?(y="","^"!==D.charAt(0)&&(y+="^"),y+=D,"$"!==D.charAt(D.length-1)&&(y+="$"),C=new RegExp(y)):(y=D.toString(),C=D),U=>{if(Je(U.value))return null;const at=U.value;return C.test(at)?null:{pattern:{requiredPattern:y,actualValue:at}}}}function Ue(D){return null}function je(D){return null!=D}function tt(D){const C=(0,a.QGY)(D)?(0,W.D)(D):D;return(0,a.CqO)(C),C}function ke(D){let C={};return D.forEach(y=>{C=null!=y?Object.assign(Object.assign({},C),y):C}),0===Object.keys(C).length?null:C}function ve(D,C){return C.map(y=>y(D))}function Qe(D){return D.map(C=>function mt(D){return!D.validate}(C)?C:y=>C.validate(y))}function dt(D){if(!D)return null;const C=D.filter(je);return 0==C.length?null:function(y){return ke(ve(y,C))}}function _t(D){return null!=D?dt(Qe(D)):null}function it(D){if(!D)return null;const C=D.filter(je);return 0==C.length?null:function(y){return function I(...D){if(1===D.length){const C=D[0];if((0,oe.k)(C))return R(C,null);if((0,_.K)(C)&&Object.getPrototypeOf(C)===Object.prototype){const y=Object.keys(C);return R(y.map(U=>C[U]),y)}}if("function"==typeof D[D.length-1]){const C=D.pop();return R(D=1===D.length&&(0,oe.k)(D[0])?D[0]:D,null).pipe((0,q.U)(y=>C(...y)))}return R(D,null)}(ve(y,C).map(tt)).pipe((0,q.U)(ke))}}function St(D){return null!=D?it(Qe(D)):null}function ot(D,C){return null===D?[C]:Array.isArray(D)?[...D,C]:[D,C]}function Et(D){return D._rawValidators}function Zt(D){return D._rawAsyncValidators}function mn(D){return D?Array.isArray(D)?D:[D]:[]}function gn(D,C){return Array.isArray(D)?D.includes(C):D===C}function Ut(D,C){const y=mn(C);return mn(D).forEach(at=>{gn(y,at)||y.push(at)}),y}function un(D,C){return mn(C).filter(y=>!gn(D,y))}class _n{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(C){this._rawValidators=C||[],this._composedValidatorFn=_t(this._rawValidators)}_setAsyncValidators(C){this._rawAsyncValidators=C||[],this._composedAsyncValidatorFn=St(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(C){this._onDestroyCallbacks.push(C)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(C=>C()),this._onDestroyCallbacks=[]}reset(C){this.control&&this.control.reset(C)}hasError(C,y){return!!this.control&&this.control.hasError(C,y)}getError(C,y){return this.control?this.control.getError(C,y):null}}class Cn extends _n{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Dt extends _n{get formDirective(){return null}get path(){return null}}class Sn{constructor(C){this._cd=C}is(C){var y,U,at;return"submitted"===C?!!(null===(y=this._cd)||void 0===y?void 0:y.submitted):!!(null===(at=null===(U=this._cd)||void 0===U?void 0:U.control)||void 0===at?void 0:at[C])}}let qe=(()=>{class D extends Sn{constructor(y){super(y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Cn,2))},D.\u0275dir=a.lG2({type:D,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(y,U){2&y&&a.ekj("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))},features:[a.qOj]}),D})(),x=(()=>{class D extends Sn{constructor(y){super(y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(y,U){2&y&&a.ekj("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))("ng-submitted",U.is("submitted"))},features:[a.qOj]}),D})();function $(D,C){return[...C.path,D]}function ue(D,C){Qt(D,C),C.valueAccessor.writeValue(D.value),function Vn(D,C){C.valueAccessor.registerOnChange(y=>{D._pendingValue=y,D._pendingChange=!0,D._pendingDirty=!0,"change"===D.updateOn&&ri(D,C)})}(D,C),function jn(D,C){const y=(U,at)=>{C.valueAccessor.writeValue(U),at&&C.viewToModelUpdate(U)};D.registerOnChange(y),C._registerOnDestroy(()=>{D._unregisterOnChange(y)})}(D,C),function An(D,C){C.valueAccessor.registerOnTouched(()=>{D._pendingTouched=!0,"blur"===D.updateOn&&D._pendingChange&&ri(D,C),"submit"!==D.updateOn&&D.markAsTouched()})}(D,C),function At(D,C){if(C.valueAccessor.setDisabledState){const y=U=>{C.valueAccessor.setDisabledState(U)};D.registerOnDisabledChange(y),C._registerOnDestroy(()=>{D._unregisterOnDisabledChange(y)})}}(D,C)}function Ae(D,C,y=!0){const U=()=>{};C.valueAccessor&&(C.valueAccessor.registerOnChange(U),C.valueAccessor.registerOnTouched(U)),vn(D,C),D&&(C._invokeOnDestroyCallbacks(),D._registerOnCollectionChange(()=>{}))}function wt(D,C){D.forEach(y=>{y.registerOnValidatorChange&&y.registerOnValidatorChange(C)})}function Qt(D,C){const y=Et(D);null!==C.validator?D.setValidators(ot(y,C.validator)):"function"==typeof y&&D.setValidators([y]);const U=Zt(D);null!==C.asyncValidator?D.setAsyncValidators(ot(U,C.asyncValidator)):"function"==typeof U&&D.setAsyncValidators([U]);const at=()=>D.updateValueAndValidity();wt(C._rawValidators,at),wt(C._rawAsyncValidators,at)}function vn(D,C){let y=!1;if(null!==D){if(null!==C.validator){const at=Et(D);if(Array.isArray(at)&&at.length>0){const Nt=at.filter(lt=>lt!==C.validator);Nt.length!==at.length&&(y=!0,D.setValidators(Nt))}}if(null!==C.asyncValidator){const at=Zt(D);if(Array.isArray(at)&&at.length>0){const Nt=at.filter(lt=>lt!==C.asyncValidator);Nt.length!==at.length&&(y=!0,D.setAsyncValidators(Nt))}}}const U=()=>{};return wt(C._rawValidators,U),wt(C._rawAsyncValidators,U),y}function ri(D,C){D._pendingDirty&&D.markAsDirty(),D.setValue(D._pendingValue,{emitModelToViewChange:!1}),C.viewToModelUpdate(D._pendingValue),D._pendingChange=!1}function qt(D,C){Qt(D,C)}function Ve(D,C){if(!D.hasOwnProperty("model"))return!1;const y=D.model;return!!y.isFirstChange()||!Object.is(C,y.currentValue)}function It(D,C){D._syncPendingControls(),C.forEach(y=>{const U=y.control;"submit"===U.updateOn&&U._pendingChange&&(y.viewToModelUpdate(U._pendingValue),U._pendingChange=!1)})}function jt(D,C){if(!C)return null;let y,U,at;return Array.isArray(C),C.forEach(Nt=>{Nt.constructor===vt?y=Nt:function ht(D){return Object.getPrototypeOf(D.constructor)===B}(Nt)?U=Nt:at=Nt}),at||U||y||null}function fn(D,C){const y=D.indexOf(C);y>-1&&D.splice(y,1)}const Zn="VALID",ii="INVALID",En="PENDING",ei="DISABLED";function Tt(D){return(Te(D)?D.validators:D)||null}function rn(D){return Array.isArray(D)?_t(D):D||null}function bn(D,C){return(Te(C)?C.asyncValidators:D)||null}function Qn(D){return Array.isArray(D)?St(D):D||null}function Te(D){return null!=D&&!Array.isArray(D)&&"object"==typeof D}const Ze=D=>D instanceof $n,De=D=>D instanceof Nn,rt=D=>D instanceof Rn;function Wt(D){return Ze(D)?D.value:D.getRawValue()}function on(D,C){const y=De(D),U=D.controls;if(!(y?Object.keys(U):U).length)throw new a.vHH(1e3,"");if(!U[C])throw new a.vHH(1001,"")}function Lt(D,C){De(D),D._forEachChild((U,at)=>{if(void 0===C[at])throw new a.vHH(1002,"")})}class Un{constructor(C,y){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=C,this._rawAsyncValidators=y,this._composedValidatorFn=rn(this._rawValidators),this._composedAsyncValidatorFn=Qn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(C){this._rawValidators=this._composedValidatorFn=C}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(C){this._rawAsyncValidators=this._composedAsyncValidatorFn=C}get parent(){return this._parent}get valid(){return this.status===Zn}get invalid(){return this.status===ii}get pending(){return this.status==En}get disabled(){return this.status===ei}get enabled(){return this.status!==ei}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(C){this._rawValidators=C,this._composedValidatorFn=rn(C)}setAsyncValidators(C){this._rawAsyncValidators=C,this._composedAsyncValidatorFn=Qn(C)}addValidators(C){this.setValidators(Ut(C,this._rawValidators))}addAsyncValidators(C){this.setAsyncValidators(Ut(C,this._rawAsyncValidators))}removeValidators(C){this.setValidators(un(C,this._rawValidators))}removeAsyncValidators(C){this.setAsyncValidators(un(C,this._rawAsyncValidators))}hasValidator(C){return gn(this._rawValidators,C)}hasAsyncValidator(C){return gn(this._rawAsyncValidators,C)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(C={}){this.touched=!0,this._parent&&!C.onlySelf&&this._parent.markAsTouched(C)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(C=>C.markAllAsTouched())}markAsUntouched(C={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(y=>{y.markAsUntouched({onlySelf:!0})}),this._parent&&!C.onlySelf&&this._parent._updateTouched(C)}markAsDirty(C={}){this.pristine=!1,this._parent&&!C.onlySelf&&this._parent.markAsDirty(C)}markAsPristine(C={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(y=>{y.markAsPristine({onlySelf:!0})}),this._parent&&!C.onlySelf&&this._parent._updatePristine(C)}markAsPending(C={}){this.status=En,!1!==C.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!C.onlySelf&&this._parent.markAsPending(C)}disable(C={}){const y=this._parentMarkedDirty(C.onlySelf);this.status=ei,this.errors=null,this._forEachChild(U=>{U.disable(Object.assign(Object.assign({},C),{onlySelf:!0}))}),this._updateValue(),!1!==C.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},C),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!0))}enable(C={}){const y=this._parentMarkedDirty(C.onlySelf);this.status=Zn,this._forEachChild(U=>{U.enable(Object.assign(Object.assign({},C),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:C.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},C),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!1))}_updateAncestors(C){this._parent&&!C.onlySelf&&(this._parent.updateValueAndValidity(C),C.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(C){this._parent=C}updateValueAndValidity(C={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Zn||this.status===En)&&this._runAsyncValidator(C.emitEvent)),!1!==C.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!C.onlySelf&&this._parent.updateValueAndValidity(C)}_updateTreeValidity(C={emitEvent:!0}){this._forEachChild(y=>y._updateTreeValidity(C)),this.updateValueAndValidity({onlySelf:!0,emitEvent:C.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ei:Zn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(C){if(this.asyncValidator){this.status=En,this._hasOwnPendingAsyncValidator=!0;const y=tt(this.asyncValidator(this));this._asyncValidationSubscription=y.subscribe(U=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(U,{emitEvent:C})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(C,y={}){this.errors=C,this._updateControlsErrors(!1!==y.emitEvent)}get(C){return function Ln(D,C,y){if(null==C||(Array.isArray(C)||(C=C.split(y)),Array.isArray(C)&&0===C.length))return null;let U=D;return C.forEach(at=>{U=De(U)?U.controls.hasOwnProperty(at)?U.controls[at]:null:rt(U)&&U.at(at)||null}),U}(this,C,".")}getError(C,y){const U=y?this.get(y):this;return U&&U.errors?U.errors[C]:null}hasError(C,y){return!!this.getError(C,y)}get root(){let C=this;for(;C._parent;)C=C._parent;return C}_updateControlsErrors(C){this.status=this._calculateStatus(),C&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(C)}_initObservables(){this.valueChanges=new a.vpe,this.statusChanges=new a.vpe}_calculateStatus(){return this._allControlsDisabled()?ei:this.errors?ii:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(En)?En:this._anyControlsHaveStatus(ii)?ii:Zn}_anyControlsHaveStatus(C){return this._anyControls(y=>y.status===C)}_anyControlsDirty(){return this._anyControls(C=>C.dirty)}_anyControlsTouched(){return this._anyControls(C=>C.touched)}_updatePristine(C={}){this.pristine=!this._anyControlsDirty(),this._parent&&!C.onlySelf&&this._parent._updatePristine(C)}_updateTouched(C={}){this.touched=this._anyControlsTouched(),this._parent&&!C.onlySelf&&this._parent._updateTouched(C)}_isBoxedValue(C){return"object"==typeof C&&null!==C&&2===Object.keys(C).length&&"value"in C&&"disabled"in C}_registerOnCollectionChange(C){this._onCollectionChange=C}_setUpdateStrategy(C){Te(C)&&null!=C.updateOn&&(this._updateOn=C.updateOn)}_parentMarkedDirty(C){return!C&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class $n extends Un{constructor(C=null,y,U){super(Tt(y),bn(U,y)),this._onChange=[],this._pendingChange=!1,this._applyFormState(C),this._setUpdateStrategy(y),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(C,y={}){this.value=this._pendingValue=C,this._onChange.length&&!1!==y.emitModelToViewChange&&this._onChange.forEach(U=>U(this.value,!1!==y.emitViewToModelChange)),this.updateValueAndValidity(y)}patchValue(C,y={}){this.setValue(C,y)}reset(C=null,y={}){this._applyFormState(C),this.markAsPristine(y),this.markAsUntouched(y),this.setValue(this.value,y),this._pendingChange=!1}_updateValue(){}_anyControls(C){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(C){this._onChange.push(C)}_unregisterOnChange(C){fn(this._onChange,C)}registerOnDisabledChange(C){this._onDisabledChange.push(C)}_unregisterOnDisabledChange(C){fn(this._onDisabledChange,C)}_forEachChild(C){}_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(C){this._isBoxedValue(C)?(this.value=this._pendingValue=C.value,C.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=C}}class Nn extends Un{constructor(C,y,U){super(Tt(y),bn(U,y)),this.controls=C,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(C,y){return this.controls[C]?this.controls[C]:(this.controls[C]=y,y.setParent(this),y._registerOnCollectionChange(this._onCollectionChange),y)}addControl(C,y,U={}){this.registerControl(C,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}removeControl(C,y={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),delete this.controls[C],this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}setControl(C,y,U={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),delete this.controls[C],y&&this.registerControl(C,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}contains(C){return this.controls.hasOwnProperty(C)&&this.controls[C].enabled}setValue(C,y={}){Lt(this,C),Object.keys(C).forEach(U=>{on(this,U),this.controls[U].setValue(C[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(C,y={}){null!=C&&(Object.keys(C).forEach(U=>{this.controls[U]&&this.controls[U].patchValue(C[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(C={},y={}){this._forEachChild((U,at)=>{U.reset(C[at],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this._reduceChildren({},(C,y,U)=>(C[U]=Wt(y),C))}_syncPendingControls(){let C=this._reduceChildren(!1,(y,U)=>!!U._syncPendingControls()||y);return C&&this.updateValueAndValidity({onlySelf:!0}),C}_forEachChild(C){Object.keys(this.controls).forEach(y=>{const U=this.controls[y];U&&C(U,y)})}_setUpControls(){this._forEachChild(C=>{C.setParent(this),C._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(C){for(const y of Object.keys(this.controls)){const U=this.controls[y];if(this.contains(y)&&C(U))return!0}return!1}_reduceValue(){return this._reduceChildren({},(C,y,U)=>((y.enabled||this.disabled)&&(C[U]=y.value),C))}_reduceChildren(C,y){let U=C;return this._forEachChild((at,Nt)=>{U=y(U,at,Nt)}),U}_allControlsDisabled(){for(const C of Object.keys(this.controls))if(this.controls[C].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Rn extends Un{constructor(C,y,U){super(Tt(y),bn(U,y)),this.controls=C,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(C){return this.controls[C]}push(C,y={}){this.controls.push(C),this._registerControl(C),this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}insert(C,y,U={}){this.controls.splice(C,0,y),this._registerControl(y),this.updateValueAndValidity({emitEvent:U.emitEvent})}removeAt(C,y={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),this.controls.splice(C,1),this.updateValueAndValidity({emitEvent:y.emitEvent})}setControl(C,y,U={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),this.controls.splice(C,1),y&&(this.controls.splice(C,0,y),this._registerControl(y)),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(C,y={}){Lt(this,C),C.forEach((U,at)=>{on(this,at),this.at(at).setValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(C,y={}){null!=C&&(C.forEach((U,at)=>{this.at(at)&&this.at(at).patchValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(C=[],y={}){this._forEachChild((U,at)=>{U.reset(C[at],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this.controls.map(C=>Wt(C))}clear(C={}){this.controls.length<1||(this._forEachChild(y=>y._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:C.emitEvent}))}_syncPendingControls(){let C=this.controls.reduce((y,U)=>!!U._syncPendingControls()||y,!1);return C&&this.updateValueAndValidity({onlySelf:!0}),C}_forEachChild(C){this.controls.forEach((y,U)=>{C(y,U)})}_updateValue(){this.value=this.controls.filter(C=>C.enabled||this.disabled).map(C=>C.value)}_anyControls(C){return this.controls.some(y=>y.enabled&&C(y))}_setUpControls(){this._forEachChild(C=>this._registerControl(C))}_allControlsDisabled(){for(const C of this.controls)if(C.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(C){C.setParent(this),C._registerOnCollectionChange(this._onCollectionChange)}}const qn={provide:Dt,useExisting:(0,a.Gpc)(()=>se)},X=(()=>Promise.resolve(null))();let se=(()=>{class D extends Dt{constructor(y,U){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new a.vpe,this.form=new Nn({},_t(y),St(U))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(y){X.then(()=>{const U=this._findContainer(y.path);y.control=U.registerControl(y.name,y.control),ue(y.control,y),y.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(y)})}getControl(y){return this.form.get(y.path)}removeControl(y){X.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name),fn(this._directives,y)})}addFormGroup(y){X.then(()=>{const U=this._findContainer(y.path),at=new Nn({});qt(at,y),U.registerControl(y.name,at),at.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(y){X.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name)})}getFormGroup(y){return this.form.get(y.path)}updateModel(y,U){X.then(()=>{this.form.get(y.path).setValue(U)})}setValue(y){this.control.setValue(y)}onSubmit(y){return this.submitted=!0,It(this.form,this._directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(y){return y.pop(),y.length?this.form.get(y):this.form}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(ut,10),a.Y36(Ie,10))},D.\u0275dir=a.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(y,U){1&y&&a.NdJ("submit",function(Nt){return U.onSubmit(Nt)})("reset",function(){return U.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([qn]),a.qOj]}),D})(),k=(()=>{class D extends Dt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return $(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return D.\u0275fac=function(){let C;return function(U){return(C||(C=a.n5z(D)))(U||D)}}(),D.\u0275dir=a.lG2({type:D,features:[a.qOj]}),D})();const Vt={provide:Dt,useExisting:(0,a.Gpc)(()=>hn)};let hn=(()=>{class D extends k{constructor(y,U,at){super(),this._parent=y,this._setValidators(U),this._setAsyncValidators(at)}_checkParentType(){}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,5),a.Y36(ut,10),a.Y36(Ie,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[a._Bn([Vt]),a.qOj]}),D})();const ni={provide:Cn,useExisting:(0,a.Gpc)(()=>kn)},ai=(()=>Promise.resolve(null))();let kn=(()=>{class D extends Cn{constructor(y,U,at,Nt){super(),this.control=new $n,this._registered=!1,this.update=new a.vpe,this._parent=y,this._setValidators(U),this._setAsyncValidators(at),this.valueAccessor=jt(0,Nt)}ngOnChanges(y){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in y&&this._updateDisabled(y),Ve(y,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?$(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ue(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(y){ai.then(()=>{this.control.setValue(y,{emitViewToModelChange:!1})})}_updateDisabled(y){const U=y.isDisabled.currentValue,at=""===U||U&&"false"!==U;ai.then(()=>{at&&!this.control.disabled?this.control.disable():!at&&this.control.disabled&&this.control.enable()})}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,9),a.Y36(ut,10),a.Y36(Ie,10),a.Y36(ee,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a._Bn([ni]),a.qOj,a.TTD]}),D})(),bi=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275dir=a.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),D})(),wi=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({}),D})();const Wi=new a.OlP("NgModelWithFormControlWarning"),yo={provide:Cn,useExisting:(0,a.Gpc)(()=>_o)};let _o=(()=>{class D extends Cn{constructor(y,U,at,Nt){super(),this._ngModelWarningConfig=Nt,this.update=new a.vpe,this._ngModelWarningSent=!1,this._setValidators(y),this._setAsyncValidators(U),this.valueAccessor=jt(0,at)}set isDisabled(y){}ngOnChanges(y){if(this._isControlChanged(y)){const U=y.form.previousValue;U&&Ae(U,this,!1),ue(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ve(y,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ae(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}_isControlChanged(y){return y.hasOwnProperty("form")}}return D._ngModelWarningSentOnce=!1,D.\u0275fac=function(y){return new(y||D)(a.Y36(ut,10),a.Y36(Ie,10),a.Y36(ee,10),a.Y36(Wi,8))},D.\u0275dir=a.lG2({type:D,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a._Bn([yo]),a.qOj,a.TTD]}),D})();const sr={provide:Dt,useExisting:(0,a.Gpc)(()=>Ii)};let Ii=(()=>{class D extends Dt{constructor(y,U){super(),this.validators=y,this.asyncValidators=U,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new a.vpe,this._setValidators(y),this._setAsyncValidators(U)}ngOnChanges(y){this._checkFormPresent(),y.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(vn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(y){const U=this.form.get(y.path);return ue(U,y),U.updateValueAndValidity({emitEvent:!1}),this.directives.push(y),U}getControl(y){return this.form.get(y.path)}removeControl(y){Ae(y.control||null,y,!1),fn(this.directives,y)}addFormGroup(y){this._setUpFormContainer(y)}removeFormGroup(y){this._cleanUpFormContainer(y)}getFormGroup(y){return this.form.get(y.path)}addFormArray(y){this._setUpFormContainer(y)}removeFormArray(y){this._cleanUpFormContainer(y)}getFormArray(y){return this.form.get(y.path)}updateModel(y,U){this.form.get(y.path).setValue(U)}onSubmit(y){return this.submitted=!0,It(this.form,this.directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_updateDomValue(){this.directives.forEach(y=>{const U=y.control,at=this.form.get(y.path);U!==at&&(Ae(U||null,y),Ze(at)&&(ue(at,y),y.control=at))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(y){const U=this.form.get(y.path);qt(U,y),U.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(y){if(this.form){const U=this.form.get(y.path);U&&function Re(D,C){return vn(D,C)}(U,y)&&U.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Qt(this.form,this),this._oldForm&&vn(this._oldForm,this)}_checkFormPresent(){}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(ut,10),a.Y36(Ie,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","formGroup",""]],hostBindings:function(y,U){1&y&&a.NdJ("submit",function(Nt){return U.onSubmit(Nt)})("reset",function(){return U.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([sr]),a.qOj,a.TTD]}),D})();const Qo={provide:Cn,useExisting:(0,a.Gpc)(()=>oo)};let oo=(()=>{class D extends Cn{constructor(y,U,at,Nt,lt){super(),this._ngModelWarningConfig=lt,this._added=!1,this.update=new a.vpe,this._ngModelWarningSent=!1,this._parent=y,this._setValidators(U),this._setAsyncValidators(at),this.valueAccessor=jt(0,Nt)}set isDisabled(y){}ngOnChanges(y){this._added||this._setUpControl(),Ve(y,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}get path(){return $(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return D._ngModelWarningSentOnce=!1,D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,13),a.Y36(ut,10),a.Y36(Ie,10),a.Y36(ee,10),a.Y36(Wi,8))},D.\u0275dir=a.lG2({type:D,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[a._Bn([Qo]),a.qOj,a.TTD]}),D})();const Xo={provide:ut,useExisting:(0,a.Gpc)(()=>Pi),multi:!0};let Pi=(()=>{class D{constructor(){this._required=!1}get required(){return this._required}set required(y){this._required=null!=y&&!1!==y&&"false"!=`${y}`,this._onChange&&this._onChange()}validate(y){return this.required?J(y):null}registerOnValidatorChange(y){this._onChange=y}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275dir=a.lG2({type:D,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(y,U){2&y&&a.uIk("required",U.required?"":null)},inputs:{required:"required"},features:[a._Bn([Xo])]}),D})();const ct={provide:ut,useExisting:(0,a.Gpc)(()=>Mt),multi:!0};let Mt=(()=>{class D{constructor(){this._validator=Ue}ngOnChanges(y){"pattern"in y&&(this._createValidator(),this._onChange&&this._onChange())}validate(y){return this._validator(y)}registerOnValidatorChange(y){this._onChange=y}_createValidator(){this._validator=ie(this.pattern)}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275dir=a.lG2({type:D,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(y,U){2&y&&a.uIk("pattern",U.pattern?U.pattern:null)},inputs:{pattern:"pattern"},features:[a._Bn([ct]),a.TTD]}),D})(),Dn=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[[wi]]}),D})(),dn=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[Dn]}),D})(),Yn=(()=>{class D{static withConfig(y){return{ngModule:D,providers:[{provide:Wi,useValue:y.warnOnNgModelWithFormControl}]}}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[Dn]}),D})(),Yt=(()=>{class D{group(y,U=null){const at=this._reduceControls(y);let O,Nt=null,lt=null;return null!=U&&(function On(D){return void 0!==D.asyncValidators||void 0!==D.validators||void 0!==D.updateOn}(U)?(Nt=null!=U.validators?U.validators:null,lt=null!=U.asyncValidators?U.asyncValidators:null,O=null!=U.updateOn?U.updateOn:void 0):(Nt=null!=U.validator?U.validator:null,lt=null!=U.asyncValidator?U.asyncValidator:null)),new Nn(at,{asyncValidators:lt,updateOn:O,validators:Nt})}control(y,U,at){return new $n(y,U,at)}array(y,U,at){const Nt=y.map(lt=>this._createControl(lt));return new Rn(Nt,U,at)}_reduceControls(y){const U={};return Object.keys(y).forEach(at=>{U[at]=this._createControl(y[at])}),U}_createControl(y){return Ze(y)||De(y)||rt(y)?y:Array.isArray(y)?this.control(y[0],y.length>1?y[1]:null,y.length>2?y[2]:null):this.control(y)}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275prov=a.Yz7({token:D,factory:D.\u0275fac,providedIn:Yn}),D})()},6360:(yt,be,p)=>{p.d(be,{Qb:()=>C,PW:()=>Nt});var a=p(5e3),s=p(2313),G=p(1777);function oe(){return"undefined"!=typeof window&&void 0!==window.document}function q(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function _(O){switch(O.length){case 0:return new G.ZN;case 1:return O[0];default:return new G.ZE(O)}}function W(O,c,l,g,F={},ne={}){const ge=[],Ce=[];let Ke=-1,ft=null;if(g.forEach(Pt=>{const Bt=Pt.offset,Gt=Bt==Ke,ln=Gt&&ft||{};Object.keys(Pt).forEach(Kt=>{let Jt=Kt,pn=Pt[Kt];if("offset"!==Kt)switch(Jt=c.normalizePropertyName(Jt,ge),pn){case G.k1:pn=F[Kt];break;case G.l3:pn=ne[Kt];break;default:pn=c.normalizeStyleValue(Kt,Jt,pn,ge)}ln[Jt]=pn}),Gt||Ce.push(ln),ft=ln,Ke=Bt}),ge.length){const Pt="\n - ";throw new Error(`Unable to animate due to the following errors:${Pt}${ge.join(Pt)}`)}return Ce}function I(O,c,l,g){switch(c){case"start":O.onStart(()=>g(l&&R(l,"start",O)));break;case"done":O.onDone(()=>g(l&&R(l,"done",O)));break;case"destroy":O.onDestroy(()=>g(l&&R(l,"destroy",O)))}}function R(O,c,l){const g=l.totalTime,ne=H(O.element,O.triggerName,O.fromState,O.toState,c||O.phaseName,null==g?O.totalTime:g,!!l.disabled),ge=O._data;return null!=ge&&(ne._data=ge),ne}function H(O,c,l,g,F="",ne=0,ge){return{element:O,triggerName:c,fromState:l,toState:g,phaseName:F,totalTime:ne,disabled:!!ge}}function B(O,c,l){let g;return O instanceof Map?(g=O.get(c),g||O.set(c,g=l)):(g=O[c],g||(g=O[c]=l)),g}function ee(O){const c=O.indexOf(":");return[O.substring(1,c),O.substr(c+1)]}let ye=(O,c)=>!1,Ye=(O,c,l)=>[];(q()||"undefined"!=typeof Element)&&(ye=oe()?(O,c)=>{for(;c&&c!==document.documentElement;){if(c===O)return!0;c=c.parentNode||c.host}return!1}:(O,c)=>O.contains(c),Ye=(O,c,l)=>{if(l)return Array.from(O.querySelectorAll(c));const g=O.querySelector(c);return g?[g]:[]});let _e=null,vt=!1;function Je(O){_e||(_e=function zt(){return"undefined"!=typeof document?document.body:null}()||{},vt=!!_e.style&&"WebkitAppearance"in _e.style);let c=!0;return _e.style&&!function ze(O){return"ebkit"==O.substring(1,6)}(O)&&(c=O in _e.style,!c&&vt&&(c="Webkit"+O.charAt(0).toUpperCase()+O.substr(1)in _e.style)),c}const ut=ye,Ie=Ye;function $e(O){const c={};return Object.keys(O).forEach(l=>{const g=l.replace(/([a-z])([A-Z])/g,"$1-$2");c[g]=O[l]}),c}let et=(()=>{class O{validateStyleProperty(l){return Je(l)}matchesElement(l,g){return!1}containsElement(l,g){return ut(l,g)}query(l,g,F){return Ie(l,g,F)}computeStyle(l,g,F){return F||""}animate(l,g,F,ne,ge,Ce=[],Ke){return new G.ZN(F,ne)}}return O.\u0275fac=function(l){return new(l||O)},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})(),Se=(()=>{class O{}return O.NOOP=new et,O})();const he="ng-enter",te="ng-leave",le="ng-trigger",ie=".ng-trigger",Ue="ng-animating",je=".ng-animating";function tt(O){if("number"==typeof O)return O;const c=O.match(/^(-?[\.\d]+)(m?s)/);return!c||c.length<2?0:ke(parseFloat(c[1]),c[2])}function ke(O,c){return"s"===c?1e3*O:O}function ve(O,c,l){return O.hasOwnProperty("duration")?O:function mt(O,c,l){let F,ne=0,ge="";if("string"==typeof O){const Ce=O.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ce)return c.push(`The provided timing value "${O}" is invalid.`),{duration:0,delay:0,easing:""};F=ke(parseFloat(Ce[1]),Ce[2]);const Ke=Ce[3];null!=Ke&&(ne=ke(parseFloat(Ke),Ce[4]));const ft=Ce[5];ft&&(ge=ft)}else F=O;if(!l){let Ce=!1,Ke=c.length;F<0&&(c.push("Duration values below 0 are not allowed for this animation step."),Ce=!0),ne<0&&(c.push("Delay values below 0 are not allowed for this animation step."),Ce=!0),Ce&&c.splice(Ke,0,`The provided timing value "${O}" is invalid.`)}return{duration:F,delay:ne,easing:ge}}(O,c,l)}function Qe(O,c={}){return Object.keys(O).forEach(l=>{c[l]=O[l]}),c}function _t(O,c,l={}){if(c)for(let g in O)l[g]=O[g];else Qe(O,l);return l}function it(O,c,l){return l?c+":"+l+";":""}function St(O){let c="";for(let l=0;l{const F=Dt(g);l&&!l.hasOwnProperty(g)&&(l[g]=O.style[F]),O.style[F]=c[g]}),q()&&St(O))}function Et(O,c){O.style&&(Object.keys(c).forEach(l=>{const g=Dt(l);O.style[g]=""}),q()&&St(O))}function Zt(O){return Array.isArray(O)?1==O.length?O[0]:(0,G.vP)(O):O}const gn=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ut(O){let c=[];if("string"==typeof O){let l;for(;l=gn.exec(O);)c.push(l[1]);gn.lastIndex=0}return c}function un(O,c,l){const g=O.toString(),F=g.replace(gn,(ne,ge)=>{let Ce=c[ge];return c.hasOwnProperty(ge)||(l.push(`Please provide a value for the animation param ${ge}`),Ce=""),Ce.toString()});return F==g?O:F}function _n(O){const c=[];let l=O.next();for(;!l.done;)c.push(l.value),l=O.next();return c}const Cn=/-+([a-z0-9])/g;function Dt(O){return O.replace(Cn,(...c)=>c[1].toUpperCase())}function Sn(O){return O.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function cn(O,c){return 0===O||0===c}function Mn(O,c,l){const g=Object.keys(l);if(g.length&&c.length){let ne=c[0],ge=[];if(g.forEach(Ce=>{ne.hasOwnProperty(Ce)||ge.push(Ce),ne[Ce]=l[Ce]}),ge.length)for(var F=1;Ffunction pe(O,c,l){if(":"==O[0]){const Ke=function j(O,c){switch(O){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,g)=>parseFloat(g)>parseFloat(l);case":decrement":return(l,g)=>parseFloat(g) *"}}(O,l);if("function"==typeof Ke)return void c.push(Ke);O=Ke}const g=O.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==g||g.length<4)return l.push(`The provided transition expression "${O}" is not supported`),c;const F=g[1],ne=g[2],ge=g[3];c.push(Ge(F,ge));"<"==ne[0]&&!(F==z&&ge==z)&&c.push(Ge(ge,F))}(g,l,c)):l.push(O),l}const me=new Set(["true","1"]),He=new Set(["false","0"]);function Ge(O,c){const l=me.has(O)||He.has(O),g=me.has(c)||He.has(c);return(F,ne)=>{let ge=O==z||O==F,Ce=c==z||c==ne;return!ge&&l&&"boolean"==typeof F&&(ge=F?me.has(O):He.has(O)),!Ce&&g&&"boolean"==typeof ne&&(Ce=ne?me.has(c):He.has(c)),ge&&Ce}}const Me=new RegExp("s*:selfs*,?","g");function V(O,c,l){return new nt(O).build(c,l)}class nt{constructor(c){this._driver=c}build(c,l){const g=new L(l);return this._resetContextStyleTimingState(g),qe(this,Zt(c),g)}_resetContextStyleTimingState(c){c.currentQuerySelector="",c.collectedStyles={},c.collectedStyles[""]={},c.currentTime=0}visitTrigger(c,l){let g=l.queryCount=0,F=l.depCount=0;const ne=[],ge=[];return"@"==c.name.charAt(0)&&l.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),c.definitions.forEach(Ce=>{if(this._resetContextStyleTimingState(l),0==Ce.type){const Ke=Ce,ft=Ke.name;ft.toString().split(/\s*,\s*/).forEach(Pt=>{Ke.name=Pt,ne.push(this.visitState(Ke,l))}),Ke.name=ft}else if(1==Ce.type){const Ke=this.visitTransition(Ce,l);g+=Ke.queryCount,F+=Ke.depCount,ge.push(Ke)}else l.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:c.name,states:ne,transitions:ge,queryCount:g,depCount:F,options:null}}visitState(c,l){const g=this.visitStyle(c.styles,l),F=c.options&&c.options.params||null;if(g.containsDynamicStyles){const ne=new Set,ge=F||{};if(g.styles.forEach(Ce=>{if($(Ce)){const Ke=Ce;Object.keys(Ke).forEach(ft=>{Ut(Ke[ft]).forEach(Pt=>{ge.hasOwnProperty(Pt)||ne.add(Pt)})})}}),ne.size){const Ce=_n(ne.values());l.errors.push(`state("${c.name}", ...) must define default values for all the following style substitutions: ${Ce.join(", ")}`)}}return{type:0,name:c.name,style:g,options:F?{params:F}:null}}visitTransition(c,l){l.queryCount=0,l.depCount=0;const g=qe(this,Zt(c.animation),l);return{type:1,matchers:P(c.expr,l.errors),animation:g,queryCount:l.queryCount,depCount:l.depCount,options:Ae(c.options)}}visitSequence(c,l){return{type:2,steps:c.steps.map(g=>qe(this,g,l)),options:Ae(c.options)}}visitGroup(c,l){const g=l.currentTime;let F=0;const ne=c.steps.map(ge=>{l.currentTime=g;const Ce=qe(this,ge,l);return F=Math.max(F,l.currentTime),Ce});return l.currentTime=F,{type:3,steps:ne,options:Ae(c.options)}}visitAnimate(c,l){const g=function ue(O,c){let l=null;if(O.hasOwnProperty("duration"))l=O;else if("number"==typeof O)return wt(ve(O,c).duration,0,"");const g=O;if(g.split(/\s+/).some(ne=>"{"==ne.charAt(0)&&"{"==ne.charAt(1))){const ne=wt(0,0,"");return ne.dynamic=!0,ne.strValue=g,ne}return l=l||ve(g,c),wt(l.duration,l.delay,l.easing)}(c.timings,l.errors);l.currentAnimateTimings=g;let F,ne=c.styles?c.styles:(0,G.oB)({});if(5==ne.type)F=this.visitKeyframes(ne,l);else{let ge=c.styles,Ce=!1;if(!ge){Ce=!0;const ft={};g.easing&&(ft.easing=g.easing),ge=(0,G.oB)(ft)}l.currentTime+=g.duration+g.delay;const Ke=this.visitStyle(ge,l);Ke.isEmptyStep=Ce,F=Ke}return l.currentAnimateTimings=null,{type:4,timings:g,style:F,options:null}}visitStyle(c,l){const g=this._makeStyleAst(c,l);return this._validateStyleAst(g,l),g}_makeStyleAst(c,l){const g=[];Array.isArray(c.styles)?c.styles.forEach(ge=>{"string"==typeof ge?ge==G.l3?g.push(ge):l.errors.push(`The provided style string value ${ge} is not allowed.`):g.push(ge)}):g.push(c.styles);let F=!1,ne=null;return g.forEach(ge=>{if($(ge)){const Ce=ge,Ke=Ce.easing;if(Ke&&(ne=Ke,delete Ce.easing),!F)for(let ft in Ce)if(Ce[ft].toString().indexOf("{{")>=0){F=!0;break}}}),{type:6,styles:g,easing:ne,offset:c.offset,containsDynamicStyles:F,options:null}}_validateStyleAst(c,l){const g=l.currentAnimateTimings;let F=l.currentTime,ne=l.currentTime;g&&ne>0&&(ne-=g.duration+g.delay),c.styles.forEach(ge=>{"string"!=typeof ge&&Object.keys(ge).forEach(Ce=>{if(!this._driver.validateStyleProperty(Ce))return void l.errors.push(`The provided animation property "${Ce}" is not a supported CSS property for animations`);const Ke=l.collectedStyles[l.currentQuerySelector],ft=Ke[Ce];let Pt=!0;ft&&(ne!=F&&ne>=ft.startTime&&F<=ft.endTime&&(l.errors.push(`The CSS property "${Ce}" that exists between the times of "${ft.startTime}ms" and "${ft.endTime}ms" is also being animated in a parallel animation between the times of "${ne}ms" and "${F}ms"`),Pt=!1),ne=ft.startTime),Pt&&(Ke[Ce]={startTime:ne,endTime:F}),l.options&&function mn(O,c,l){const g=c.params||{},F=Ut(O);F.length&&F.forEach(ne=>{g.hasOwnProperty(ne)||l.push(`Unable to resolve the local animation param ${ne} in the given list of values`)})}(ge[Ce],l.options,l.errors)})})}visitKeyframes(c,l){const g={type:5,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push("keyframes() must be placed inside of a call to animate()"),g;let ne=0;const ge=[];let Ce=!1,Ke=!1,ft=0;const Pt=c.steps.map(Jn=>{const ti=this._makeStyleAst(Jn,l);let _i=null!=ti.offset?ti.offset:function E(O){if("string"==typeof O)return null;let c=null;if(Array.isArray(O))O.forEach(l=>{if($(l)&&l.hasOwnProperty("offset")){const g=l;c=parseFloat(g.offset),delete g.offset}});else if($(O)&&O.hasOwnProperty("offset")){const l=O;c=parseFloat(l.offset),delete l.offset}return c}(ti.styles),di=0;return null!=_i&&(ne++,di=ti.offset=_i),Ke=Ke||di<0||di>1,Ce=Ce||di0&&ne{const _i=Gt>0?ti==ln?1:Gt*ti:ge[ti],di=_i*pn;l.currentTime=Kt+Jt.delay+di,Jt.duration=di,this._validateStyleAst(Jn,l),Jn.offset=_i,g.styles.push(Jn)}),g}visitReference(c,l){return{type:8,animation:qe(this,Zt(c.animation),l),options:Ae(c.options)}}visitAnimateChild(c,l){return l.depCount++,{type:9,options:Ae(c.options)}}visitAnimateRef(c,l){return{type:10,animation:this.visitReference(c.animation,l),options:Ae(c.options)}}visitQuery(c,l){const g=l.currentQuerySelector,F=c.options||{};l.queryCount++,l.currentQuery=c;const[ne,ge]=function ce(O){const c=!!O.split(/\s*,\s*/).find(l=>":self"==l);return c&&(O=O.replace(Me,"")),O=O.replace(/@\*/g,ie).replace(/@\w+/g,l=>ie+"-"+l.substr(1)).replace(/:animating/g,je),[O,c]}(c.selector);l.currentQuerySelector=g.length?g+" "+ne:ne,B(l.collectedStyles,l.currentQuerySelector,{});const Ce=qe(this,Zt(c.animation),l);return l.currentQuery=null,l.currentQuerySelector=g,{type:11,selector:ne,limit:F.limit||0,optional:!!F.optional,includeSelf:ge,animation:Ce,originalSelector:c.selector,options:Ae(c.options)}}visitStagger(c,l){l.currentQuery||l.errors.push("stagger() can only be used inside of query()");const g="full"===c.timings?{duration:0,delay:0,easing:"full"}:ve(c.timings,l.errors,!0);return{type:12,animation:qe(this,Zt(c.animation),l),timings:g,options:null}}}class L{constructor(c){this.errors=c,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 $(O){return!Array.isArray(O)&&"object"==typeof O}function Ae(O){return O?(O=Qe(O)).params&&(O.params=function Ne(O){return O?Qe(O):null}(O.params)):O={},O}function wt(O,c,l){return{duration:O,delay:c,easing:l}}function At(O,c,l,g,F,ne,ge=null,Ce=!1){return{type:1,element:O,keyframes:c,preStyleProps:l,postStyleProps:g,duration:F,delay:ne,totalTime:F+ne,easing:ge,subTimeline:Ce}}class Qt{constructor(){this._map=new Map}get(c){return this._map.get(c)||[]}append(c,l){let g=this._map.get(c);g||this._map.set(c,g=[]),g.push(...l)}has(c){return this._map.has(c)}clear(){this._map.clear()}}const An=new RegExp(":enter","g"),jn=new RegExp(":leave","g");function qt(O,c,l,g,F,ne={},ge={},Ce,Ke,ft=[]){return(new Re).buildKeyframes(O,c,l,g,F,ne,ge,Ce,Ke,ft)}class Re{buildKeyframes(c,l,g,F,ne,ge,Ce,Ke,ft,Pt=[]){ft=ft||new Qt;const Bt=new ae(c,l,ft,F,ne,Pt,[]);Bt.options=Ke,Bt.currentTimeline.setStyles([ge],null,Bt.errors,Ke),qe(this,g,Bt);const Gt=Bt.timelines.filter(ln=>ln.containsAnimation());if(Object.keys(Ce).length){let ln;for(let Kt=Gt.length-1;Kt>=0;Kt--){const Jt=Gt[Kt];if(Jt.element===l){ln=Jt;break}}ln&&!ln.allowOnlyTimelineStyles()&&ln.setStyles([Ce],null,Bt.errors,Ke)}return Gt.length?Gt.map(ln=>ln.buildKeyframes()):[At(l,[],[],[],0,0,"",!1)]}visitTrigger(c,l){}visitState(c,l){}visitTransition(c,l){}visitAnimateChild(c,l){const g=l.subInstructions.get(l.element);if(g){const F=l.createSubContext(c.options),ne=l.currentTimeline.currentTime,ge=this._visitSubInstructions(g,F,F.options);ne!=ge&&l.transformIntoNewTimeline(ge)}l.previousNode=c}visitAnimateRef(c,l){const g=l.createSubContext(c.options);g.transformIntoNewTimeline(),this.visitReference(c.animation,g),l.transformIntoNewTimeline(g.currentTimeline.currentTime),l.previousNode=c}_visitSubInstructions(c,l,g){let ne=l.currentTimeline.currentTime;const ge=null!=g.duration?tt(g.duration):null,Ce=null!=g.delay?tt(g.delay):null;return 0!==ge&&c.forEach(Ke=>{const ft=l.appendInstructionToTimeline(Ke,ge,Ce);ne=Math.max(ne,ft.duration+ft.delay)}),ne}visitReference(c,l){l.updateOptions(c.options,!0),qe(this,c.animation,l),l.previousNode=c}visitSequence(c,l){const g=l.subContextCount;let F=l;const ne=c.options;if(ne&&(ne.params||ne.delay)&&(F=l.createSubContext(ne),F.transformIntoNewTimeline(),null!=ne.delay)){6==F.previousNode.type&&(F.currentTimeline.snapshotCurrentStyles(),F.previousNode=we);const ge=tt(ne.delay);F.delayNextStep(ge)}c.steps.length&&(c.steps.forEach(ge=>qe(this,ge,F)),F.currentTimeline.applyStylesToKeyframe(),F.subContextCount>g&&F.transformIntoNewTimeline()),l.previousNode=c}visitGroup(c,l){const g=[];let F=l.currentTimeline.currentTime;const ne=c.options&&c.options.delay?tt(c.options.delay):0;c.steps.forEach(ge=>{const Ce=l.createSubContext(c.options);ne&&Ce.delayNextStep(ne),qe(this,ge,Ce),F=Math.max(F,Ce.currentTimeline.currentTime),g.push(Ce.currentTimeline)}),g.forEach(ge=>l.currentTimeline.mergeTimelineCollectedStyles(ge)),l.transformIntoNewTimeline(F),l.previousNode=c}_visitTiming(c,l){if(c.dynamic){const g=c.strValue;return ve(l.params?un(g,l.params,l.errors):g,l.errors)}return{duration:c.duration,delay:c.delay,easing:c.easing}}visitAnimate(c,l){const g=l.currentAnimateTimings=this._visitTiming(c.timings,l),F=l.currentTimeline;g.delay&&(l.incrementTime(g.delay),F.snapshotCurrentStyles());const ne=c.style;5==ne.type?this.visitKeyframes(ne,l):(l.incrementTime(g.duration),this.visitStyle(ne,l),F.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=c}visitStyle(c,l){const g=l.currentTimeline,F=l.currentAnimateTimings;!F&&g.getCurrentStyleProperties().length&&g.forwardFrame();const ne=F&&F.easing||c.easing;c.isEmptyStep?g.applyEmptyStep(ne):g.setStyles(c.styles,ne,l.errors,l.options),l.previousNode=c}visitKeyframes(c,l){const g=l.currentAnimateTimings,F=l.currentTimeline.duration,ne=g.duration,Ce=l.createSubContext().currentTimeline;Ce.easing=g.easing,c.styles.forEach(Ke=>{Ce.forwardTime((Ke.offset||0)*ne),Ce.setStyles(Ke.styles,Ke.easing,l.errors,l.options),Ce.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(Ce),l.transformIntoNewTimeline(F+ne),l.previousNode=c}visitQuery(c,l){const g=l.currentTimeline.currentTime,F=c.options||{},ne=F.delay?tt(F.delay):0;ne&&(6===l.previousNode.type||0==g&&l.currentTimeline.getCurrentStyleProperties().length)&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=we);let ge=g;const Ce=l.invokeQuery(c.selector,c.originalSelector,c.limit,c.includeSelf,!!F.optional,l.errors);l.currentQueryTotal=Ce.length;let Ke=null;Ce.forEach((ft,Pt)=>{l.currentQueryIndex=Pt;const Bt=l.createSubContext(c.options,ft);ne&&Bt.delayNextStep(ne),ft===l.element&&(Ke=Bt.currentTimeline),qe(this,c.animation,Bt),Bt.currentTimeline.applyStylesToKeyframe(),ge=Math.max(ge,Bt.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(ge),Ke&&(l.currentTimeline.mergeTimelineCollectedStyles(Ke),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=c}visitStagger(c,l){const g=l.parentContext,F=l.currentTimeline,ne=c.timings,ge=Math.abs(ne.duration),Ce=ge*(l.currentQueryTotal-1);let Ke=ge*l.currentQueryIndex;switch(ne.duration<0?"reverse":ne.easing){case"reverse":Ke=Ce-Ke;break;case"full":Ke=g.currentStaggerTime}const Pt=l.currentTimeline;Ke&&Pt.delayNextStep(Ke);const Bt=Pt.currentTime;qe(this,c.animation,l),l.previousNode=c,g.currentStaggerTime=F.currentTime-Bt+(F.startTime-g.currentTimeline.startTime)}}const we={};class ae{constructor(c,l,g,F,ne,ge,Ce,Ke){this._driver=c,this.element=l,this.subInstructions=g,this._enterClassName=F,this._leaveClassName=ne,this.errors=ge,this.timelines=Ce,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=we,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ke||new Ve(this._driver,l,0),Ce.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(c,l){if(!c)return;const g=c;let F=this.options;null!=g.duration&&(F.duration=tt(g.duration)),null!=g.delay&&(F.delay=tt(g.delay));const ne=g.params;if(ne){let ge=F.params;ge||(ge=this.options.params={}),Object.keys(ne).forEach(Ce=>{(!l||!ge.hasOwnProperty(Ce))&&(ge[Ce]=un(ne[Ce],ge,this.errors))})}}_copyOptions(){const c={};if(this.options){const l=this.options.params;if(l){const g=c.params={};Object.keys(l).forEach(F=>{g[F]=l[F]})}}return c}createSubContext(c=null,l,g){const F=l||this.element,ne=new ae(this._driver,F,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(F,g||0));return ne.previousNode=this.previousNode,ne.currentAnimateTimings=this.currentAnimateTimings,ne.options=this._copyOptions(),ne.updateOptions(c),ne.currentQueryIndex=this.currentQueryIndex,ne.currentQueryTotal=this.currentQueryTotal,ne.parentContext=this,this.subContextCount++,ne}transformIntoNewTimeline(c){return this.previousNode=we,this.currentTimeline=this.currentTimeline.fork(this.element,c),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(c,l,g){const F={duration:null!=l?l:c.duration,delay:this.currentTimeline.currentTime+(null!=g?g:0)+c.delay,easing:""},ne=new ht(this._driver,c.element,c.keyframes,c.preStyleProps,c.postStyleProps,F,c.stretchStartingKeyframe);return this.timelines.push(ne),F}incrementTime(c){this.currentTimeline.forwardTime(this.currentTimeline.duration+c)}delayNextStep(c){c>0&&this.currentTimeline.delayNextStep(c)}invokeQuery(c,l,g,F,ne,ge){let Ce=[];if(F&&Ce.push(this.element),c.length>0){c=(c=c.replace(An,"."+this._enterClassName)).replace(jn,"."+this._leaveClassName);let ft=this._driver.query(this.element,c,1!=g);0!==g&&(ft=g<0?ft.slice(ft.length+g,ft.length):ft.slice(0,g)),Ce.push(...ft)}return!ne&&0==Ce.length&&ge.push(`\`query("${l}")\` returned zero elements. (Use \`query("${l}", { optional: true })\` if you wish to allow this.)`),Ce}}class Ve{constructor(c,l,g,F){this._driver=c,this.element=l,this.startTime=g,this._elementTimelineStylesLookup=F,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(l),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(l,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(c){const l=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||l?(this.forwardTime(this.currentTime+c),l&&this.snapshotCurrentStyles()):this.startTime+=c}fork(c,l){return this.applyStylesToKeyframe(),new Ve(this._driver,c,l||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(c){this.applyStylesToKeyframe(),this.duration=c,this._loadKeyframe()}_updateStyle(c,l){this._localTimelineStyles[c]=l,this._globalTimelineStyles[c]=l,this._styleSummary[c]={time:this.currentTime,value:l}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(c){c&&(this._previousKeyframe.easing=c),Object.keys(this._globalTimelineStyles).forEach(l=>{this._backFill[l]=this._globalTimelineStyles[l]||G.l3,this._currentKeyframe[l]=G.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(c,l,g,F){l&&(this._previousKeyframe.easing=l);const ne=F&&F.params||{},ge=function jt(O,c){const l={};let g;return O.forEach(F=>{"*"===F?(g=g||Object.keys(c),g.forEach(ne=>{l[ne]=G.l3})):_t(F,!1,l)}),l}(c,this._globalTimelineStyles);Object.keys(ge).forEach(Ce=>{const Ke=un(ge[Ce],ne,g);this._pendingStyles[Ce]=Ke,this._localTimelineStyles.hasOwnProperty(Ce)||(this._backFill[Ce]=this._globalTimelineStyles.hasOwnProperty(Ce)?this._globalTimelineStyles[Ce]:G.l3),this._updateStyle(Ce,Ke)})}applyStylesToKeyframe(){const c=this._pendingStyles,l=Object.keys(c);0!=l.length&&(this._pendingStyles={},l.forEach(g=>{this._currentKeyframe[g]=c[g]}),Object.keys(this._localTimelineStyles).forEach(g=>{this._currentKeyframe.hasOwnProperty(g)||(this._currentKeyframe[g]=this._localTimelineStyles[g])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(c=>{const l=this._localTimelineStyles[c];this._pendingStyles[c]=l,this._updateStyle(c,l)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const c=[];for(let l in this._currentKeyframe)c.push(l);return c}mergeTimelineCollectedStyles(c){Object.keys(c._styleSummary).forEach(l=>{const g=this._styleSummary[l],F=c._styleSummary[l];(!g||F.time>g.time)&&this._updateStyle(l,F.value)})}buildKeyframes(){this.applyStylesToKeyframe();const c=new Set,l=new Set,g=1===this._keyframes.size&&0===this.duration;let F=[];this._keyframes.forEach((Ce,Ke)=>{const ft=_t(Ce,!0);Object.keys(ft).forEach(Pt=>{const Bt=ft[Pt];Bt==G.k1?c.add(Pt):Bt==G.l3&&l.add(Pt)}),g||(ft.offset=Ke/this.duration),F.push(ft)});const ne=c.size?_n(c.values()):[],ge=l.size?_n(l.values()):[];if(g){const Ce=F[0],Ke=Qe(Ce);Ce.offset=0,Ke.offset=1,F=[Ce,Ke]}return At(this.element,F,ne,ge,this.duration,this.startTime,this.easing,!1)}}class ht extends Ve{constructor(c,l,g,F,ne,ge,Ce=!1){super(c,l,ge.delay),this.keyframes=g,this.preStyleProps=F,this.postStyleProps=ne,this._stretchStartingKeyframe=Ce,this.timings={duration:ge.duration,delay:ge.delay,easing:ge.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let c=this.keyframes,{delay:l,duration:g,easing:F}=this.timings;if(this._stretchStartingKeyframe&&l){const ne=[],ge=g+l,Ce=l/ge,Ke=_t(c[0],!1);Ke.offset=0,ne.push(Ke);const ft=_t(c[0],!1);ft.offset=It(Ce),ne.push(ft);const Pt=c.length-1;for(let Bt=1;Bt<=Pt;Bt++){let Gt=_t(c[Bt],!1);Gt.offset=It((l+Gt.offset*g)/ge),ne.push(Gt)}g=ge,l=0,F="",c=ne}return At(this.element,c,this.preStyleProps,this.postStyleProps,g,l,F,!0)}}function It(O,c=3){const l=Math.pow(10,c-1);return Math.round(O*l)/l}class Pn{}class Zn extends Pn{normalizePropertyName(c,l){return Dt(c)}normalizeStyleValue(c,l,g,F){let ne="";const ge=g.toString().trim();if(ii[l]&&0!==g&&"0"!==g)if("number"==typeof g)ne="px";else{const Ce=g.match(/^[+-]?[\d\.]+([a-z]*)$/);Ce&&0==Ce[1].length&&F.push(`Please provide a CSS unit value for ${c}:${g}`)}return ge+ne}}const ii=(()=>function En(O){const c={};return O.forEach(l=>c[l]=!0),c}("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 ei(O,c,l,g,F,ne,ge,Ce,Ke,ft,Pt,Bt,Gt){return{type:0,element:O,triggerName:c,isRemovalTransition:F,fromState:l,fromStyles:ne,toState:g,toStyles:ge,timelines:Ce,queriedElements:Ke,preStyleProps:ft,postStyleProps:Pt,totalTime:Bt,errors:Gt}}const Ln={};class Tt{constructor(c,l,g){this._triggerName=c,this.ast=l,this._stateStyles=g}match(c,l,g,F){return function rn(O,c,l,g,F){return O.some(ne=>ne(c,l,g,F))}(this.ast.matchers,c,l,g,F)}buildStyles(c,l,g){const F=this._stateStyles["*"],ne=this._stateStyles[c],ge=F?F.buildStyles(l,g):{};return ne?ne.buildStyles(l,g):ge}build(c,l,g,F,ne,ge,Ce,Ke,ft,Pt){const Bt=[],Gt=this.ast.options&&this.ast.options.params||Ln,Kt=this.buildStyles(g,Ce&&Ce.params||Ln,Bt),Jt=Ke&&Ke.params||Ln,pn=this.buildStyles(F,Jt,Bt),Jn=new Set,ti=new Map,_i=new Map,di="void"===F,qi={params:Object.assign(Object.assign({},Gt),Jt)},Oi=Pt?[]:qt(c,l,this.ast.animation,ne,ge,Kt,pn,qi,ft,Bt);let fi=0;if(Oi.forEach(Yi=>{fi=Math.max(Yi.duration+Yi.delay,fi)}),Bt.length)return ei(l,this._triggerName,g,F,di,Kt,pn,[],[],ti,_i,fi,Bt);Oi.forEach(Yi=>{const Li=Yi.element,Ho=B(ti,Li,{});Yi.preStyleProps.forEach(ao=>Ho[ao]=!0);const zo=B(_i,Li,{});Yi.postStyleProps.forEach(ao=>zo[ao]=!0),Li!==l&&Jn.add(Li)});const Bi=_n(Jn.values());return ei(l,this._triggerName,g,F,di,Kt,pn,Oi,Bi,ti,_i,fi)}}class bn{constructor(c,l,g){this.styles=c,this.defaultParams=l,this.normalizer=g}buildStyles(c,l){const g={},F=Qe(this.defaultParams);return Object.keys(c).forEach(ne=>{const ge=c[ne];null!=ge&&(F[ne]=ge)}),this.styles.styles.forEach(ne=>{if("string"!=typeof ne){const ge=ne;Object.keys(ge).forEach(Ce=>{let Ke=ge[Ce];Ke.length>1&&(Ke=un(Ke,F,l));const ft=this.normalizer.normalizePropertyName(Ce,l);Ke=this.normalizer.normalizeStyleValue(Ce,ft,Ke,l),g[ft]=Ke})}}),g}}class Te{constructor(c,l,g){this.name=c,this.ast=l,this._normalizer=g,this.transitionFactories=[],this.states={},l.states.forEach(F=>{this.states[F.name]=new bn(F.style,F.options&&F.options.params||{},g)}),De(this.states,"true","1"),De(this.states,"false","0"),l.transitions.forEach(F=>{this.transitionFactories.push(new Tt(c,F,this.states))}),this.fallbackTransition=function Ze(O,c,l){return new Tt(O,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ge,Ce)=>!0],options:null,queryCount:0,depCount:0},c)}(c,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(c,l,g,F){return this.transitionFactories.find(ge=>ge.match(c,l,g,F))||null}matchStyles(c,l,g){return this.fallbackTransition.buildStyles(c,l,g)}}function De(O,c,l){O.hasOwnProperty(c)?O.hasOwnProperty(l)||(O[l]=O[c]):O.hasOwnProperty(l)&&(O[c]=O[l])}const rt=new Qt;class Wt{constructor(c,l,g){this.bodyNode=c,this._driver=l,this._normalizer=g,this._animations={},this._playersById={},this.players=[]}register(c,l){const g=[],F=V(this._driver,l,g);if(g.length)throw new Error(`Unable to build the animation due to the following errors: ${g.join("\n")}`);this._animations[c]=F}_buildPlayer(c,l,g){const F=c.element,ne=W(0,this._normalizer,0,c.keyframes,l,g);return this._driver.animate(F,ne,c.duration,c.delay,c.easing,[],!0)}create(c,l,g={}){const F=[],ne=this._animations[c];let ge;const Ce=new Map;if(ne?(ge=qt(this._driver,l,ne,he,te,{},{},g,rt,F),ge.forEach(Pt=>{const Bt=B(Ce,Pt.element,{});Pt.postStyleProps.forEach(Gt=>Bt[Gt]=null)})):(F.push("The requested animation doesn't exist or has already been destroyed"),ge=[]),F.length)throw new Error(`Unable to create the animation due to the following errors: ${F.join("\n")}`);Ce.forEach((Pt,Bt)=>{Object.keys(Pt).forEach(Gt=>{Pt[Gt]=this._driver.computeStyle(Bt,Gt,G.l3)})});const ft=_(ge.map(Pt=>{const Bt=Ce.get(Pt.element);return this._buildPlayer(Pt,{},Bt)}));return this._playersById[c]=ft,ft.onDestroy(()=>this.destroy(c)),this.players.push(ft),ft}destroy(c){const l=this._getPlayer(c);l.destroy(),delete this._playersById[c];const g=this.players.indexOf(l);g>=0&&this.players.splice(g,1)}_getPlayer(c){const l=this._playersById[c];if(!l)throw new Error(`Unable to find the timeline player referenced by ${c}`);return l}listen(c,l,g,F){const ne=H(l,"","","");return I(this._getPlayer(c),g,ne,F),()=>{}}command(c,l,g,F){if("register"==g)return void this.register(c,F[0]);if("create"==g)return void this.create(c,l,F[0]||{});const ne=this._getPlayer(c);switch(g){case"play":ne.play();break;case"pause":ne.pause();break;case"reset":ne.reset();break;case"restart":ne.restart();break;case"finish":ne.finish();break;case"init":ne.init();break;case"setPosition":ne.setPosition(parseFloat(F[0]));break;case"destroy":this.destroy(c)}}}const on="ng-animate-queued",Un="ng-animate-disabled",qn=[],X={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},se={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},k="__ng_removed";class Ee{constructor(c,l=""){this.namespaceId=l;const g=c&&c.hasOwnProperty("value");if(this.value=function ai(O){return null!=O?O:null}(g?c.value:c),g){const ne=Qe(c);delete ne.value,this.options=ne}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(c){const l=c.params;if(l){const g=this.options.params;Object.keys(l).forEach(F=>{null==g[F]&&(g[F]=l[F])})}}}const st="void",Ct=new Ee(st);class Ot{constructor(c,l,g){this.id=c,this.hostElement=l,this._engine=g,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+c,ui(l,this._hostClassName)}listen(c,l,g,F){if(!this._triggers.hasOwnProperty(l))throw new Error(`Unable to listen on the animation trigger event "${g}" because the animation trigger "${l}" doesn't exist!`);if(null==g||0==g.length)throw new Error(`Unable to listen on the animation trigger "${l}" because the provided event is undefined!`);if(!function bi(O){return"start"==O||"done"==O}(g))throw new Error(`The provided animation trigger event "${g}" for the animation trigger "${l}" is not supported!`);const ne=B(this._elementListeners,c,[]),ge={name:l,phase:g,callback:F};ne.push(ge);const Ce=B(this._engine.statesByElement,c,{});return Ce.hasOwnProperty(l)||(ui(c,le),ui(c,le+"-"+l),Ce[l]=Ct),()=>{this._engine.afterFlush(()=>{const Ke=ne.indexOf(ge);Ke>=0&&ne.splice(Ke,1),this._triggers[l]||delete Ce[l]})}}register(c,l){return!this._triggers[c]&&(this._triggers[c]=l,!0)}_getTrigger(c){const l=this._triggers[c];if(!l)throw new Error(`The provided animation trigger "${c}" has not been registered!`);return l}trigger(c,l,g,F=!0){const ne=this._getTrigger(l),ge=new hn(this.id,l,c);let Ce=this._engine.statesByElement.get(c);Ce||(ui(c,le),ui(c,le+"-"+l),this._engine.statesByElement.set(c,Ce={}));let Ke=Ce[l];const ft=new Ee(g,this.id);if(!(g&&g.hasOwnProperty("value"))&&Ke&&ft.absorbOptions(Ke.options),Ce[l]=ft,Ke||(Ke=Ct),ft.value!==st&&Ke.value===ft.value){if(!function Zo(O,c){const l=Object.keys(O),g=Object.keys(c);if(l.length!=g.length)return!1;for(let F=0;F{Et(c,pn),ot(c,Jn)})}return}const Gt=B(this._engine.playersByElement,c,[]);Gt.forEach(Jt=>{Jt.namespaceId==this.id&&Jt.triggerName==l&&Jt.queued&&Jt.destroy()});let ln=ne.matchTransition(Ke.value,ft.value,c,ft.params),Kt=!1;if(!ln){if(!F)return;ln=ne.fallbackTransition,Kt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:l,transition:ln,fromState:Ke,toState:ft,player:ge,isFallbackTransition:Kt}),Kt||(ui(c,on),ge.onStart(()=>{wi(c,on)})),ge.onDone(()=>{let Jt=this.players.indexOf(ge);Jt>=0&&this.players.splice(Jt,1);const pn=this._engine.playersByElement.get(c);if(pn){let Jn=pn.indexOf(ge);Jn>=0&&pn.splice(Jn,1)}}),this.players.push(ge),Gt.push(ge),ge}deregister(c){delete this._triggers[c],this._engine.statesByElement.forEach((l,g)=>{delete l[c]}),this._elementListeners.forEach((l,g)=>{this._elementListeners.set(g,l.filter(F=>F.name!=c))})}clearElementCache(c){this._engine.statesByElement.delete(c),this._elementListeners.delete(c);const l=this._engine.playersByElement.get(c);l&&(l.forEach(g=>g.destroy()),this._engine.playersByElement.delete(c))}_signalRemovalForInnerTriggers(c,l){const g=this._engine.driver.query(c,ie,!0);g.forEach(F=>{if(F[k])return;const ne=this._engine.fetchNamespacesByElement(F);ne.size?ne.forEach(ge=>ge.triggerLeaveAnimation(F,l,!1,!0)):this.clearElementCache(F)}),this._engine.afterFlushAnimationsDone(()=>g.forEach(F=>this.clearElementCache(F)))}triggerLeaveAnimation(c,l,g,F){const ne=this._engine.statesByElement.get(c),ge=new Map;if(ne){const Ce=[];if(Object.keys(ne).forEach(Ke=>{if(ge.set(Ke,ne[Ke].value),this._triggers[Ke]){const ft=this.trigger(c,Ke,st,F);ft&&Ce.push(ft)}}),Ce.length)return this._engine.markElementAsRemoved(this.id,c,!0,l,ge),g&&_(Ce).onDone(()=>this._engine.processLeaveNode(c)),!0}return!1}prepareLeaveAnimationListeners(c){const l=this._elementListeners.get(c),g=this._engine.statesByElement.get(c);if(l&&g){const F=new Set;l.forEach(ne=>{const ge=ne.name;if(F.has(ge))return;F.add(ge);const Ke=this._triggers[ge].fallbackTransition,ft=g[ge]||Ct,Pt=new Ee(st),Bt=new hn(this.id,ge,c);this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:ge,transition:Ke,fromState:ft,toState:Pt,player:Bt,isFallbackTransition:!0})})}}removeNode(c,l){const g=this._engine;if(c.childElementCount&&this._signalRemovalForInnerTriggers(c,l),this.triggerLeaveAnimation(c,l,!0))return;let F=!1;if(g.totalAnimations){const ne=g.players.length?g.playersByQueriedElement.get(c):[];if(ne&&ne.length)F=!0;else{let ge=c;for(;ge=ge.parentNode;)if(g.statesByElement.get(ge)){F=!0;break}}}if(this.prepareLeaveAnimationListeners(c),F)g.markElementAsRemoved(this.id,c,!1,l);else{const ne=c[k];(!ne||ne===X)&&(g.afterFlush(()=>this.clearElementCache(c)),g.destroyInnerAnimations(c),g._onRemovalComplete(c,l))}}insertNode(c,l){ui(c,this._hostClassName)}drainQueuedTransitions(c){const l=[];return this._queue.forEach(g=>{const F=g.player;if(F.destroyed)return;const ne=g.element,ge=this._elementListeners.get(ne);ge&&ge.forEach(Ce=>{if(Ce.name==g.triggerName){const Ke=H(ne,g.triggerName,g.fromState.value,g.toState.value);Ke._data=c,I(g.player,Ce.phase,Ke,Ce.callback)}}),F.markedForDestroy?this._engine.afterFlush(()=>{F.destroy()}):l.push(g)}),this._queue=[],l.sort((g,F)=>{const ne=g.transition.ast.depCount,ge=F.transition.ast.depCount;return 0==ne||0==ge?ne-ge:this._engine.driver.containsElement(g.element,F.element)?1:-1})}destroy(c){this.players.forEach(l=>l.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,c)}elementContainsData(c){let l=!1;return this._elementListeners.has(c)&&(l=!0),l=!!this._queue.find(g=>g.element===c)||l,l}}class Vt{constructor(c,l,g){this.bodyNode=c,this.driver=l,this._normalizer=g,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=(F,ne)=>{}}_onRemovalComplete(c,l){this.onRemovalComplete(c,l)}get queuedPlayers(){const c=[];return this._namespaceList.forEach(l=>{l.players.forEach(g=>{g.queued&&c.push(g)})}),c}createNamespace(c,l){const g=new Ot(c,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(g,l):(this.newHostElements.set(l,g),this.collectEnterElement(l)),this._namespaceLookup[c]=g}_balanceNamespaceList(c,l){const g=this._namespaceList.length-1;if(g>=0){let F=!1;for(let ne=g;ne>=0;ne--)if(this.driver.containsElement(this._namespaceList[ne].hostElement,l)){this._namespaceList.splice(ne+1,0,c),F=!0;break}F||this._namespaceList.splice(0,0,c)}else this._namespaceList.push(c);return this.namespacesByHostElement.set(l,c),c}register(c,l){let g=this._namespaceLookup[c];return g||(g=this.createNamespace(c,l)),g}registerTrigger(c,l,g){let F=this._namespaceLookup[c];F&&F.register(l,g)&&this.totalAnimations++}destroy(c,l){if(!c)return;const g=this._fetchNamespace(c);this.afterFlush(()=>{this.namespacesByHostElement.delete(g.hostElement),delete this._namespaceLookup[c];const F=this._namespaceList.indexOf(g);F>=0&&this._namespaceList.splice(F,1)}),this.afterFlushAnimationsDone(()=>g.destroy(l))}_fetchNamespace(c){return this._namespaceLookup[c]}fetchNamespacesByElement(c){const l=new Set,g=this.statesByElement.get(c);if(g){const F=Object.keys(g);for(let ne=0;ne=0&&this.collectedLeaveElements.splice(ge,1)}if(c){const ge=this._fetchNamespace(c);ge&&ge.insertNode(l,g)}F&&this.collectEnterElement(l)}collectEnterElement(c){this.collectedEnterElements.push(c)}markElementAsDisabled(c,l){l?this.disabledNodes.has(c)||(this.disabledNodes.add(c),ui(c,Un)):this.disabledNodes.has(c)&&(this.disabledNodes.delete(c),wi(c,Un))}removeNode(c,l,g,F){if(kn(l)){const ne=c?this._fetchNamespace(c):null;if(ne?ne.removeNode(l,F):this.markElementAsRemoved(c,l,!1,F),g){const ge=this.namespacesByHostElement.get(l);ge&&ge.id!==c&&ge.removeNode(l,F)}}else this._onRemovalComplete(l,F)}markElementAsRemoved(c,l,g,F,ne){this.collectedLeaveElements.push(l),l[k]={namespaceId:c,setForRemoval:F,hasAnimation:g,removedBeforeQueried:!1,previousTriggersValues:ne}}listen(c,l,g,F,ne){return kn(l)?this._fetchNamespace(c).listen(l,g,F,ne):()=>{}}_buildInstruction(c,l,g,F,ne){return c.transition.build(this.driver,c.element,c.fromState.value,c.toState.value,g,F,c.fromState.options,c.toState.options,l,ne)}destroyInnerAnimations(c){let l=this.driver.query(c,ie,!0);l.forEach(g=>this.destroyActiveAnimationsForElement(g)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(c,je,!0),l.forEach(g=>this.finishActiveQueriedAnimationOnElement(g)))}destroyActiveAnimationsForElement(c){const l=this.playersByElement.get(c);l&&l.forEach(g=>{g.queued?g.markedForDestroy=!0:g.destroy()})}finishActiveQueriedAnimationOnElement(c){const l=this.playersByQueriedElement.get(c);l&&l.forEach(g=>g.finish())}whenRenderingDone(){return new Promise(c=>{if(this.players.length)return _(this.players).onDone(()=>c());c()})}processLeaveNode(c){var l;const g=c[k];if(g&&g.setForRemoval){if(c[k]=X,g.namespaceId){this.destroyInnerAnimations(c);const F=this._fetchNamespace(g.namespaceId);F&&F.clearElementCache(c)}this._onRemovalComplete(c,g.setForRemoval)}(null===(l=c.classList)||void 0===l?void 0:l.contains(Un))&&this.markElementAsDisabled(c,!1),this.driver.query(c,".ng-animate-disabled",!0).forEach(F=>{this.markElementAsDisabled(F,!1)})}flush(c=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((g,F)=>this._balanceNamespaceList(g,F)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let g=0;gg()),this._flushFns=[],this._whenQuietFns.length){const g=this._whenQuietFns;this._whenQuietFns=[],l.length?_(l).onDone(()=>{g.forEach(F=>F())}):g.forEach(F=>F())}}reportError(c){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${c.join("\n")}`)}_flushAnimations(c,l){const g=new Qt,F=[],ne=new Map,ge=[],Ce=new Map,Ke=new Map,ft=new Map,Pt=new Set;this.disabledNodes.forEach(Rt=>{Pt.add(Rt);const Xt=this.driver.query(Rt,".ng-animate-queued",!0);for(let en=0;en{const en=he+Jt++;Kt.set(Xt,en),Rt.forEach(sn=>ui(sn,en))});const pn=[],Jn=new Set,ti=new Set;for(let Rt=0;RtJn.add(sn)):ti.add(Xt))}const _i=new Map,di=vi(Gt,Array.from(Jn));di.forEach((Rt,Xt)=>{const en=te+Jt++;_i.set(Xt,en),Rt.forEach(sn=>ui(sn,en))}),c.push(()=>{ln.forEach((Rt,Xt)=>{const en=Kt.get(Xt);Rt.forEach(sn=>wi(sn,en))}),di.forEach((Rt,Xt)=>{const en=_i.get(Xt);Rt.forEach(sn=>wi(sn,en))}),pn.forEach(Rt=>{this.processLeaveNode(Rt)})});const qi=[],Oi=[];for(let Rt=this._namespaceList.length-1;Rt>=0;Rt--)this._namespaceList[Rt].drainQueuedTransitions(l).forEach(en=>{const sn=en.player,Gn=en.element;if(qi.push(sn),this.collectedEnterElements.length){const Ci=Gn[k];if(Ci&&Ci.setForMove){if(Ci.previousTriggersValues&&Ci.previousTriggersValues.has(en.triggerName)){const Hi=Ci.previousTriggersValues.get(en.triggerName),Ni=this.statesByElement.get(en.element);Ni&&Ni[en.triggerName]&&(Ni[en.triggerName].value=Hi)}return void sn.destroy()}}const xn=!Bt||!this.driver.containsElement(Bt,Gn),pi=_i.get(Gn),Ji=Kt.get(Gn),Xn=this._buildInstruction(en,g,Ji,pi,xn);if(Xn.errors&&Xn.errors.length)return void Oi.push(Xn);if(xn)return sn.onStart(()=>Et(Gn,Xn.fromStyles)),sn.onDestroy(()=>ot(Gn,Xn.toStyles)),void F.push(sn);if(en.isFallbackTransition)return sn.onStart(()=>Et(Gn,Xn.fromStyles)),sn.onDestroy(()=>ot(Gn,Xn.toStyles)),void F.push(sn);const mr=[];Xn.timelines.forEach(Ci=>{Ci.stretchStartingKeyframe=!0,this.disabledNodes.has(Ci.element)||mr.push(Ci)}),Xn.timelines=mr,g.append(Gn,Xn.timelines),ge.push({instruction:Xn,player:sn,element:Gn}),Xn.queriedElements.forEach(Ci=>B(Ce,Ci,[]).push(sn)),Xn.preStyleProps.forEach((Ci,Hi)=>{const Ni=Object.keys(Ci);if(Ni.length){let ji=Ke.get(Hi);ji||Ke.set(Hi,ji=new Set),Ni.forEach(ci=>ji.add(ci))}}),Xn.postStyleProps.forEach((Ci,Hi)=>{const Ni=Object.keys(Ci);let ji=ft.get(Hi);ji||ft.set(Hi,ji=new Set),Ni.forEach(ci=>ji.add(ci))})});if(Oi.length){const Rt=[];Oi.forEach(Xt=>{Rt.push(`@${Xt.triggerName} has failed due to:\n`),Xt.errors.forEach(en=>Rt.push(`- ${en}\n`))}),qi.forEach(Xt=>Xt.destroy()),this.reportError(Rt)}const fi=new Map,Bi=new Map;ge.forEach(Rt=>{const Xt=Rt.element;g.has(Xt)&&(Bi.set(Xt,Xt),this._beforeAnimationBuild(Rt.player.namespaceId,Rt.instruction,fi))}),F.forEach(Rt=>{const Xt=Rt.element;this._getPreviousPlayers(Xt,!1,Rt.namespaceId,Rt.triggerName,null).forEach(sn=>{B(fi,Xt,[]).push(sn),sn.destroy()})});const Yi=pn.filter(Rt=>Wi(Rt,Ke,ft)),Li=new Map;Ao(Li,this.driver,ti,ft,G.l3).forEach(Rt=>{Wi(Rt,Ke,ft)&&Yi.push(Rt)});const zo=new Map;ln.forEach((Rt,Xt)=>{Ao(zo,this.driver,new Set(Rt),Ke,G.k1)}),Yi.forEach(Rt=>{const Xt=Li.get(Rt),en=zo.get(Rt);Li.set(Rt,Object.assign(Object.assign({},Xt),en))});const ao=[],fr=[],pr={};ge.forEach(Rt=>{const{element:Xt,player:en,instruction:sn}=Rt;if(g.has(Xt)){if(Pt.has(Xt))return en.onDestroy(()=>ot(Xt,sn.toStyles)),en.disabled=!0,en.overrideTotalTime(sn.totalTime),void F.push(en);let Gn=pr;if(Bi.size>1){let pi=Xt;const Ji=[];for(;pi=pi.parentNode;){const Xn=Bi.get(pi);if(Xn){Gn=Xn;break}Ji.push(pi)}Ji.forEach(Xn=>Bi.set(Xn,Gn))}const xn=this._buildAnimation(en.namespaceId,sn,fi,ne,zo,Li);if(en.setRealPlayer(xn),Gn===pr)ao.push(en);else{const pi=this.playersByElement.get(Gn);pi&&pi.length&&(en.parentPlayer=_(pi)),F.push(en)}}else Et(Xt,sn.fromStyles),en.onDestroy(()=>ot(Xt,sn.toStyles)),fr.push(en),Pt.has(Xt)&&F.push(en)}),fr.forEach(Rt=>{const Xt=ne.get(Rt.element);if(Xt&&Xt.length){const en=_(Xt);Rt.setRealPlayer(en)}}),F.forEach(Rt=>{Rt.parentPlayer?Rt.syncPlayerEvents(Rt.parentPlayer):Rt.destroy()});for(let Rt=0;Rt!xn.destroyed);Gn.length?ko(this,Xt,Gn):this.processLeaveNode(Xt)}return pn.length=0,ao.forEach(Rt=>{this.players.push(Rt),Rt.onDone(()=>{Rt.destroy();const Xt=this.players.indexOf(Rt);this.players.splice(Xt,1)}),Rt.play()}),ao}elementContainsData(c,l){let g=!1;const F=l[k];return F&&F.setForRemoval&&(g=!0),this.playersByElement.has(l)&&(g=!0),this.playersByQueriedElement.has(l)&&(g=!0),this.statesByElement.has(l)&&(g=!0),this._fetchNamespace(c).elementContainsData(l)||g}afterFlush(c){this._flushFns.push(c)}afterFlushAnimationsDone(c){this._whenQuietFns.push(c)}_getPreviousPlayers(c,l,g,F,ne){let ge=[];if(l){const Ce=this.playersByQueriedElement.get(c);Ce&&(ge=Ce)}else{const Ce=this.playersByElement.get(c);if(Ce){const Ke=!ne||ne==st;Ce.forEach(ft=>{ft.queued||!Ke&&ft.triggerName!=F||ge.push(ft)})}}return(g||F)&&(ge=ge.filter(Ce=>!(g&&g!=Ce.namespaceId||F&&F!=Ce.triggerName))),ge}_beforeAnimationBuild(c,l,g){const ne=l.element,ge=l.isRemovalTransition?void 0:c,Ce=l.isRemovalTransition?void 0:l.triggerName;for(const Ke of l.timelines){const ft=Ke.element,Pt=ft!==ne,Bt=B(g,ft,[]);this._getPreviousPlayers(ft,Pt,ge,Ce,l.toState).forEach(ln=>{const Kt=ln.getRealPlayer();Kt.beforeDestroy&&Kt.beforeDestroy(),ln.destroy(),Bt.push(ln)})}Et(ne,l.fromStyles)}_buildAnimation(c,l,g,F,ne,ge){const Ce=l.triggerName,Ke=l.element,ft=[],Pt=new Set,Bt=new Set,Gt=l.timelines.map(Kt=>{const Jt=Kt.element;Pt.add(Jt);const pn=Jt[k];if(pn&&pn.removedBeforeQueried)return new G.ZN(Kt.duration,Kt.delay);const Jn=Jt!==Ke,ti=function Fo(O){const c=[];return vo(O,c),c}((g.get(Jt)||qn).map(fi=>fi.getRealPlayer())).filter(fi=>!!fi.element&&fi.element===Jt),_i=ne.get(Jt),di=ge.get(Jt),qi=W(0,this._normalizer,0,Kt.keyframes,_i,di),Oi=this._buildPlayer(Kt,qi,ti);if(Kt.subTimeline&&F&&Bt.add(Jt),Jn){const fi=new hn(c,Ce,Jt);fi.setRealPlayer(Oi),ft.push(fi)}return Oi});ft.forEach(Kt=>{B(this.playersByQueriedElement,Kt.element,[]).push(Kt),Kt.onDone(()=>function ni(O,c,l){let g;if(O instanceof Map){if(g=O.get(c),g){if(g.length){const F=g.indexOf(l);g.splice(F,1)}0==g.length&&O.delete(c)}}else if(g=O[c],g){if(g.length){const F=g.indexOf(l);g.splice(F,1)}0==g.length&&delete O[c]}return g}(this.playersByQueriedElement,Kt.element,Kt))}),Pt.forEach(Kt=>ui(Kt,Ue));const ln=_(Gt);return ln.onDestroy(()=>{Pt.forEach(Kt=>wi(Kt,Ue)),ot(Ke,l.toStyles)}),Bt.forEach(Kt=>{B(F,Kt,[]).push(ln)}),ln}_buildPlayer(c,l,g){return l.length>0?this.driver.animate(c.element,l,c.duration,c.delay,c.easing,g):new G.ZN(c.duration,c.delay)}}class hn{constructor(c,l,g){this.namespaceId=c,this.triggerName=l,this.element=g,this._player=new G.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(c){this._containsRealPlayer||(this._player=c,Object.keys(this._queuedCallbacks).forEach(l=>{this._queuedCallbacks[l].forEach(g=>I(c,l,void 0,g))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(c.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(c){this.totalTime=c}syncPlayerEvents(c){const l=this._player;l.triggerCallback&&c.onStart(()=>l.triggerCallback("start")),c.onDone(()=>this.finish()),c.onDestroy(()=>this.destroy())}_queueEvent(c,l){B(this._queuedCallbacks,c,[]).push(l)}onDone(c){this.queued&&this._queueEvent("done",c),this._player.onDone(c)}onStart(c){this.queued&&this._queueEvent("start",c),this._player.onStart(c)}onDestroy(c){this.queued&&this._queueEvent("destroy",c),this._player.onDestroy(c)}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(c){this.queued||this._player.setPosition(c)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(c){const l=this._player;l.triggerCallback&&l.triggerCallback(c)}}function kn(O){return O&&1===O.nodeType}function io(O,c){const l=O.style.display;return O.style.display=null!=c?c:"none",l}function Ao(O,c,l,g,F){const ne=[];l.forEach(Ke=>ne.push(io(Ke)));const ge=[];g.forEach((Ke,ft)=>{const Pt={};Ke.forEach(Bt=>{const Gt=Pt[Bt]=c.computeStyle(ft,Bt,F);(!Gt||0==Gt.length)&&(ft[k]=se,ge.push(ft))}),O.set(ft,Pt)});let Ce=0;return l.forEach(Ke=>io(Ke,ne[Ce++])),ge}function vi(O,c){const l=new Map;if(O.forEach(Ce=>l.set(Ce,[])),0==c.length)return l;const F=new Set(c),ne=new Map;function ge(Ce){if(!Ce)return 1;let Ke=ne.get(Ce);if(Ke)return Ke;const ft=Ce.parentNode;return Ke=l.has(ft)?ft:F.has(ft)?1:ge(ft),ne.set(Ce,Ke),Ke}return c.forEach(Ce=>{const Ke=ge(Ce);1!==Ke&&l.get(Ke).push(Ce)}),l}function ui(O,c){var l;null===(l=O.classList)||void 0===l||l.add(c)}function wi(O,c){var l;null===(l=O.classList)||void 0===l||l.remove(c)}function ko(O,c,l){_(l).onDone(()=>O.processLeaveNode(c))}function vo(O,c){for(let l=0;lF.add(ne)):c.set(O,g),l.delete(O),!0}class yo{constructor(c,l,g){this.bodyNode=c,this._driver=l,this._normalizer=g,this._triggerCache={},this.onRemovalComplete=(F,ne)=>{},this._transitionEngine=new Vt(c,l,g),this._timelineEngine=new Wt(c,l,g),this._transitionEngine.onRemovalComplete=(F,ne)=>this.onRemovalComplete(F,ne)}registerTrigger(c,l,g,F,ne){const ge=c+"-"+F;let Ce=this._triggerCache[ge];if(!Ce){const Ke=[],ft=V(this._driver,ne,Ke);if(Ke.length)throw new Error(`The animation trigger "${F}" has failed to build due to the following errors:\n - ${Ke.join("\n - ")}`);Ce=function Qn(O,c,l){return new Te(O,c,l)}(F,ft,this._normalizer),this._triggerCache[ge]=Ce}this._transitionEngine.registerTrigger(l,F,Ce)}register(c,l){this._transitionEngine.register(c,l)}destroy(c,l){this._transitionEngine.destroy(c,l)}onInsert(c,l,g,F){this._transitionEngine.insertNode(c,l,g,F)}onRemove(c,l,g,F){this._transitionEngine.removeNode(c,l,F||!1,g)}disableAnimations(c,l){this._transitionEngine.markElementAsDisabled(c,l)}process(c,l,g,F){if("@"==g.charAt(0)){const[ne,ge]=ee(g);this._timelineEngine.command(ne,l,ge,F)}else this._transitionEngine.trigger(c,l,g,F)}listen(c,l,g,F,ne){if("@"==g.charAt(0)){const[ge,Ce]=ee(g);return this._timelineEngine.listen(ge,l,Ce,ne)}return this._transitionEngine.listen(c,l,g,F,ne)}flush(c=-1){this._transitionEngine.flush(c)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function _o(O,c){let l=null,g=null;return Array.isArray(c)&&c.length?(l=Ii(c[0]),c.length>1&&(g=Ii(c[c.length-1]))):c&&(l=Ii(c)),l||g?new sr(O,l,g):null}let sr=(()=>{class O{constructor(l,g,F){this._element=l,this._startStyles=g,this._endStyles=F,this._state=0;let ne=O.initialStylesByElement.get(l);ne||O.initialStylesByElement.set(l,ne={}),this._initialStyles=ne}start(){this._state<1&&(this._startStyles&&ot(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ot(this._element,this._initialStyles),this._endStyles&&(ot(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(O.initialStylesByElement.delete(this._element),this._startStyles&&(Et(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Et(this._element,this._endStyles),this._endStyles=null),ot(this._element,this._initialStyles),this._state=3)}}return O.initialStylesByElement=new WeakMap,O})();function Ii(O){let c=null;const l=Object.keys(O);for(let g=0;gthis._handleCallback(Ke)}apply(){(function qo(O,c){const l=bo(O,"").trim();let g=0;l.length&&(g=function Vo(O,c){let l=0;for(let g=0;g=this._delay&&g>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Zi(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function Ti(O,c){const g=bo(O,"").split(","),F=oi(g,c);F>=0&&(g.splice(F,1),Di(O,"",g.join(",")))}(this._element,this._name))}}function oo(O,c,l){Di(O,"PlayState",l,ro(O,c))}function ro(O,c){const l=bo(O,"");return l.indexOf(",")>0?oi(l.split(","),c):oi([l],c)}function oi(O,c){for(let l=0;l=0)return l;return-1}function Zi(O,c,l){l?O.removeEventListener(Gi,c):O.addEventListener(Gi,c)}function Di(O,c,l,g){const F=Mo+c;if(null!=g){const ne=O.style[F];if(ne.length){const ge=ne.split(",");ge[g]=l,l=ge.join(",")}}O.style[F]=l}function bo(O,c){return O.style[Mo+c]||""}class xi{constructor(c,l,g,F,ne,ge,Ce,Ke){this.element=c,this.keyframes=l,this.animationName=g,this._duration=F,this._delay=ne,this._finalStyles=Ce,this._specialStyles=Ke,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=ge||"linear",this.totalTime=F+ne,this._buildStyler()}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(c=>c()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(c=>c()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(c=>c()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(c){this._styler.setPosition(c)}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 Qo(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(c){const l="start"==c?this._onStartFns:this._onDoneFns;l.forEach(g=>g()),l.length=0}beforeDestroy(){this.init();const c={};if(this.hasStarted()){const l=this._state>=3;Object.keys(this._finalStyles).forEach(g=>{"offset"!=g&&(c[g]=l?this._finalStyles[g]:x(this.element,g))})}this.currentSnapshot=c}}class Vi extends G.ZN{constructor(c,l){super(),this.element=c,this._startingStyles={},this.__initialized=!1,this._styles=$e(l)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(c=>{this._startingStyles[c]=this.element.style[c]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(c=>this.element.style.setProperty(c,this._styles[c])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(c=>{const l=this._startingStyles[c];l?this.element.style.setProperty(c,l):this.element.style.removeProperty(c)}),this._startingStyles=null,super.destroy())}}class so{constructor(){this._count=0}validateStyleProperty(c){return Je(c)}matchesElement(c,l){return!1}containsElement(c,l){return ut(c,l)}query(c,l,g){return Ie(c,l,g)}computeStyle(c,l,g){return window.getComputedStyle(c)[l]}buildKeyframeElement(c,l,g){g=g.map(Ce=>$e(Ce));let F=`@keyframes ${l} {\n`,ne="";g.forEach(Ce=>{ne=" ";const Ke=parseFloat(Ce.offset);F+=`${ne}${100*Ke}% {\n`,ne+=" ",Object.keys(Ce).forEach(ft=>{const Pt=Ce[ft];switch(ft){case"offset":return;case"easing":return void(Pt&&(F+=`${ne}animation-timing-function: ${Pt};\n`));default:return void(F+=`${ne}${ft}: ${Pt};\n`)}}),F+=`${ne}}\n`}),F+="}\n";const ge=document.createElement("style");return ge.textContent=F,ge}animate(c,l,g,F,ne,ge=[],Ce){const Ke=ge.filter(pn=>pn instanceof xi),ft={};cn(g,F)&&Ke.forEach(pn=>{let Jn=pn.currentSnapshot;Object.keys(Jn).forEach(ti=>ft[ti]=Jn[ti])});const Pt=function Jo(O){let c={};return O&&(Array.isArray(O)?O:[O]).forEach(g=>{Object.keys(g).forEach(F=>{"offset"==F||"easing"==F||(c[F]=g[F])})}),c}(l=Mn(c,l,ft));if(0==g)return new Vi(c,Pt);const Bt="gen_css_kf_"+this._count++,Gt=this.buildKeyframeElement(c,Bt,l);(function Do(O){var c;const l=null===(c=O.getRootNode)||void 0===c?void 0:c.call(O);return"undefined"!=typeof ShadowRoot&&l instanceof ShadowRoot?l:document.head})(c).appendChild(Gt);const Kt=_o(c,l),Jt=new xi(c,l,Bt,g,F,ne,Pt,Kt);return Jt.onDestroy(()=>function Qi(O){O.parentNode.removeChild(O)}(Gt)),Jt}}class Pi{constructor(c,l,g,F){this.element=c,this.keyframes=l,this.options=g,this._specialStyles=F,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=g.duration,this._delay=g.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(c=>c()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const c=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,c,this.options),this._finalKeyframe=c.length?c[c.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(c,l,g){return c.animate(l,g)}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(c=>c()),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(c=>c()),this._onDestroyFns=[])}setPosition(c){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=c*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const c={};if(this.hasStarted()){const l=this._finalKeyframe;Object.keys(l).forEach(g=>{"offset"!=g&&(c[g]=this._finished?l[g]:x(this.element,g))})}this.currentSnapshot=c}triggerCallback(c){const l="start"==c?this._onStartFns:this._onDoneFns;l.forEach(g=>g()),l.length=0}}class yi{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(b().toString()),this._cssKeyframesDriver=new so}validateStyleProperty(c){return Je(c)}matchesElement(c,l){return!1}containsElement(c,l){return ut(c,l)}query(c,l,g){return Ie(c,l,g)}computeStyle(c,l,g){return window.getComputedStyle(c)[l]}overrideWebAnimationsSupport(c){this._isNativeImpl=c}animate(c,l,g,F,ne,ge=[],Ce){if(!Ce&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(c,l,g,F,ne,ge);const Pt={duration:g,delay:F,fill:0==F?"both":"forwards"};ne&&(Pt.easing=ne);const Bt={},Gt=ge.filter(Kt=>Kt instanceof Pi);cn(g,F)&&Gt.forEach(Kt=>{let Jt=Kt.currentSnapshot;Object.keys(Jt).forEach(pn=>Bt[pn]=Jt[pn])});const ln=_o(c,l=Mn(c,l=l.map(Kt=>_t(Kt,!1)),Bt));return new Pi(c,l,Pt,ln)}}function b(){return oe()&&Element.prototype.animate||{}}var Y=p(9808);let w=(()=>{class O extends G._j{constructor(l,g){super(),this._nextAnimationId=0,this._renderer=l.createRenderer(g.body,{id:"0",encapsulation:a.ifc.None,styles:[],data:{animation:[]}})}build(l){const g=this._nextAnimationId.toString();this._nextAnimationId++;const F=Array.isArray(l)?(0,G.vP)(l):l;return ct(this._renderer,null,g,"register",[F]),new Q(g,this._renderer)}}return O.\u0275fac=function(l){return new(l||O)(a.LFG(a.FYo),a.LFG(Y.K0))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();class Q extends G.LC{constructor(c,l){super(),this._id=c,this._renderer=l}create(c,l){return new xe(this._id,c,l||{},this._renderer)}}class xe{constructor(c,l,g,F){this.id=c,this.element=l,this._renderer=F,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",g)}_listen(c,l){return this._renderer.listen(this.element,`@@${this.id}:${c}`,l)}_command(c,...l){return ct(this._renderer,this.element,this.id,c,l)}onDone(c){this._listen("done",c)}onStart(c){this._listen("start",c)}onDestroy(c){this._listen("destroy",c)}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(c){this._command("setPosition",c)}getPosition(){var c,l;return null!==(l=null===(c=this._renderer.engine.players[+this.id])||void 0===c?void 0:c.getPosition())&&void 0!==l?l:0}}function ct(O,c,l,g,F){return O.setProperty(c,`@@${l}:${g}`,F)}const kt="@.disabled";let Fn=(()=>{class O{constructor(l,g,F){this.delegate=l,this.engine=g,this._zone=F,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),g.onRemovalComplete=(ne,ge)=>{const Ce=null==ge?void 0:ge.parentNode(ne);Ce&&ge.removeChild(Ce,ne)}}createRenderer(l,g){const ne=this.delegate.createRenderer(l,g);if(!(l&&g&&g.data&&g.data.animation)){let Pt=this._rendererCache.get(ne);return Pt||(Pt=new Tn("",ne,this.engine),this._rendererCache.set(ne,Pt)),Pt}const ge=g.id,Ce=g.id+"-"+this._currentId;this._currentId++,this.engine.register(Ce,l);const Ke=Pt=>{Array.isArray(Pt)?Pt.forEach(Ke):this.engine.registerTrigger(ge,Ce,l,Pt.name,Pt)};return g.data.animation.forEach(Ke),new Dn(this,Ce,ne,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(l,g,F){l>=0&&lg(F)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ne=>{const[ge,Ce]=ne;ge(Ce)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([g,F]))}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 O.\u0275fac=function(l){return new(l||O)(a.LFG(a.FYo),a.LFG(yo),a.LFG(a.R0b))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();class Tn{constructor(c,l,g){this.namespaceId=c,this.delegate=l,this.engine=g,this.destroyNode=this.delegate.destroyNode?F=>l.destroyNode(F):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(c,l){return this.delegate.createElement(c,l)}createComment(c){return this.delegate.createComment(c)}createText(c){return this.delegate.createText(c)}appendChild(c,l){this.delegate.appendChild(c,l),this.engine.onInsert(this.namespaceId,l,c,!1)}insertBefore(c,l,g,F=!0){this.delegate.insertBefore(c,l,g),this.engine.onInsert(this.namespaceId,l,c,F)}removeChild(c,l,g){this.engine.onRemove(this.namespaceId,l,this.delegate,g)}selectRootElement(c,l){return this.delegate.selectRootElement(c,l)}parentNode(c){return this.delegate.parentNode(c)}nextSibling(c){return this.delegate.nextSibling(c)}setAttribute(c,l,g,F){this.delegate.setAttribute(c,l,g,F)}removeAttribute(c,l,g){this.delegate.removeAttribute(c,l,g)}addClass(c,l){this.delegate.addClass(c,l)}removeClass(c,l){this.delegate.removeClass(c,l)}setStyle(c,l,g,F){this.delegate.setStyle(c,l,g,F)}removeStyle(c,l,g){this.delegate.removeStyle(c,l,g)}setProperty(c,l,g){"@"==l.charAt(0)&&l==kt?this.disableAnimations(c,!!g):this.delegate.setProperty(c,l,g)}setValue(c,l){this.delegate.setValue(c,l)}listen(c,l,g){return this.delegate.listen(c,l,g)}disableAnimations(c,l){this.engine.disableAnimations(c,l)}}class Dn extends Tn{constructor(c,l,g,F){super(l,g,F),this.factory=c,this.namespaceId=l}setProperty(c,l,g){"@"==l.charAt(0)?"."==l.charAt(1)&&l==kt?this.disableAnimations(c,g=void 0===g||!!g):this.engine.process(this.namespaceId,c,l.substr(1),g):this.delegate.setProperty(c,l,g)}listen(c,l,g){if("@"==l.charAt(0)){const F=function dn(O){switch(O){case"body":return document.body;case"document":return document;case"window":return window;default:return O}}(c);let ne=l.substr(1),ge="";return"@"!=ne.charAt(0)&&([ne,ge]=function Yn(O){const c=O.indexOf(".");return[O.substring(0,c),O.substr(c+1)]}(ne)),this.engine.listen(this.namespaceId,F,ne,ge,Ce=>{this.factory.scheduleListenerCallback(Ce._data||-1,g,Ce)})}return this.delegate.listen(c,l,g)}}let On=(()=>{class O extends yo{constructor(l,g,F){super(l.body,g,F)}ngOnDestroy(){this.flush()}}return O.\u0275fac=function(l){return new(l||O)(a.LFG(Y.K0),a.LFG(Se),a.LFG(Pn))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();const C=new a.OlP("AnimationModuleType"),y=[{provide:G._j,useClass:w},{provide:Pn,useFactory:function Eo(){return new Zn}},{provide:yo,useClass:On},{provide:a.FYo,useFactory:function D(O,c,l){return new Fn(O,c,l)},deps:[s.se,yo,a.R0b]}],U=[{provide:Se,useFactory:function Yt(){return function Wn(){return"function"==typeof b()}()?new yi:new so}},{provide:C,useValue:"BrowserAnimations"},...y],at=[{provide:Se,useClass:et},{provide:C,useValue:"NoopAnimations"},...y];let Nt=(()=>{class O{static withConfig(l){return{ngModule:O,providers:l.disableAnimations?at:U}}}return O.\u0275fac=function(l){return new(l||O)},O.\u0275mod=a.oAB({type:O}),O.\u0275inj=a.cJS({providers:U,imports:[s.b2]}),O})()},2313:(yt,be,p)=>{p.d(be,{b2:()=>_n,H7:()=>An,q6:()=>Ut,se:()=>le});var a=p(9808),s=p(5e3);class G extends a.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class oe extends G{static makeCurrent(){(0,a.HT)(new oe)}onAndCancel(we,ae,Ve){return we.addEventListener(ae,Ve,!1),()=>{we.removeEventListener(ae,Ve,!1)}}dispatchEvent(we,ae){we.dispatchEvent(ae)}remove(we){we.parentNode&&we.parentNode.removeChild(we)}createElement(we,ae){return(ae=ae||this.getDefaultDocument()).createElement(we)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(we){return we.nodeType===Node.ELEMENT_NODE}isShadowRoot(we){return we instanceof DocumentFragment}getGlobalEventTarget(we,ae){return"window"===ae?window:"document"===ae?we:"body"===ae?we.body:null}getBaseHref(we){const ae=function _(){return q=q||document.querySelector("base"),q?q.getAttribute("href"):null}();return null==ae?null:function I(Re){W=W||document.createElement("a"),W.setAttribute("href",Re);const we=W.pathname;return"/"===we.charAt(0)?we:`/${we}`}(ae)}resetBaseElement(){q=null}getUserAgent(){return window.navigator.userAgent}getCookie(we){return(0,a.Mx)(document.cookie,we)}}let W,q=null;const R=new s.OlP("TRANSITION_ID"),B=[{provide:s.ip1,useFactory:function H(Re,we,ae){return()=>{ae.get(s.CZH).donePromise.then(()=>{const Ve=(0,a.q)(),ht=we.querySelectorAll(`style[ng-transition="${Re}"]`);for(let It=0;It{const It=we.findTestabilityInTree(Ve,ht);if(null==It)throw new Error("Could not find testability for element.");return It},s.dqk.getAllAngularTestabilities=()=>we.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>we.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(Ve=>{const ht=s.dqk.getAllAngularTestabilities();let It=ht.length,jt=!1;const fn=function(Pn){jt=jt||Pn,It--,0==It&&Ve(jt)};ht.forEach(function(Pn){Pn.whenStable(fn)})})}findTestabilityInTree(we,ae,Ve){if(null==ae)return null;const ht=we.getTestability(ae);return null!=ht?ht:Ve?(0,a.q)().isShadowRoot(ae)?this.findTestabilityInTree(we,ae.host,!0):this.findTestabilityInTree(we,ae.parentElement,!0):null}}let ye=(()=>{class Re{build(){return new XMLHttpRequest}}return Re.\u0275fac=function(ae){return new(ae||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Ye=new s.OlP("EventManagerPlugins");let Fe=(()=>{class Re{constructor(ae,Ve){this._zone=Ve,this._eventNameToPlugin=new Map,ae.forEach(ht=>ht.manager=this),this._plugins=ae.slice().reverse()}addEventListener(ae,Ve,ht){return this._findPluginFor(Ve).addEventListener(ae,Ve,ht)}addGlobalEventListener(ae,Ve,ht){return this._findPluginFor(Ve).addGlobalEventListener(ae,Ve,ht)}getZone(){return this._zone}_findPluginFor(ae){const Ve=this._eventNameToPlugin.get(ae);if(Ve)return Ve;const ht=this._plugins;for(let It=0;It{class Re{constructor(){this._stylesSet=new Set}addStyles(ae){const Ve=new Set;ae.forEach(ht=>{this._stylesSet.has(ht)||(this._stylesSet.add(ht),Ve.add(ht))}),this.onStylesAdded(Ve)}onStylesAdded(ae){}getAllStyles(){return Array.from(this._stylesSet)}}return Re.\u0275fac=function(ae){return new(ae||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),vt=(()=>{class Re extends _e{constructor(ae){super(),this._doc=ae,this._hostNodes=new Map,this._hostNodes.set(ae.head,[])}_addStylesToHost(ae,Ve,ht){ae.forEach(It=>{const jt=this._doc.createElement("style");jt.textContent=It,ht.push(Ve.appendChild(jt))})}addHost(ae){const Ve=[];this._addStylesToHost(this._stylesSet,ae,Ve),this._hostNodes.set(ae,Ve)}removeHost(ae){const Ve=this._hostNodes.get(ae);Ve&&Ve.forEach(Je),this._hostNodes.delete(ae)}onStylesAdded(ae){this._hostNodes.forEach((Ve,ht)=>{this._addStylesToHost(ae,ht,Ve)})}ngOnDestroy(){this._hostNodes.forEach(ae=>ae.forEach(Je))}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();function Je(Re){(0,a.q)().remove(Re)}const zt={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/"},ut=/%COMP%/g;function fe(Re,we,ae){for(let Ve=0;Ve{if("__ngUnwrap__"===we)return Re;!1===Re(we)&&(we.preventDefault(),we.returnValue=!1)}}let le=(()=>{class Re{constructor(ae,Ve,ht){this.eventManager=ae,this.sharedStylesHost=Ve,this.appId=ht,this.rendererByCompId=new Map,this.defaultRenderer=new ie(ae)}createRenderer(ae,Ve){if(!ae||!Ve)return this.defaultRenderer;switch(Ve.encapsulation){case s.ifc.Emulated:{let ht=this.rendererByCompId.get(Ve.id);return ht||(ht=new tt(this.eventManager,this.sharedStylesHost,Ve,this.appId),this.rendererByCompId.set(Ve.id,ht)),ht.applyToHost(ae),ht}case 1:case s.ifc.ShadowDom:return new ke(this.eventManager,this.sharedStylesHost,ae,Ve);default:if(!this.rendererByCompId.has(Ve.id)){const ht=fe(Ve.id,Ve.styles,[]);this.sharedStylesHost.addStyles(ht),this.rendererByCompId.set(Ve.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(Fe),s.LFG(vt),s.LFG(s.AFp))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();class ie{constructor(we){this.eventManager=we,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(we,ae){return ae?document.createElementNS(zt[ae]||ae,we):document.createElement(we)}createComment(we){return document.createComment(we)}createText(we){return document.createTextNode(we)}appendChild(we,ae){we.appendChild(ae)}insertBefore(we,ae,Ve){we&&we.insertBefore(ae,Ve)}removeChild(we,ae){we&&we.removeChild(ae)}selectRootElement(we,ae){let Ve="string"==typeof we?document.querySelector(we):we;if(!Ve)throw new Error(`The selector "${we}" did not match any elements`);return ae||(Ve.textContent=""),Ve}parentNode(we){return we.parentNode}nextSibling(we){return we.nextSibling}setAttribute(we,ae,Ve,ht){if(ht){ae=ht+":"+ae;const It=zt[ht];It?we.setAttributeNS(It,ae,Ve):we.setAttribute(ae,Ve)}else we.setAttribute(ae,Ve)}removeAttribute(we,ae,Ve){if(Ve){const ht=zt[Ve];ht?we.removeAttributeNS(ht,ae):we.removeAttribute(`${Ve}:${ae}`)}else we.removeAttribute(ae)}addClass(we,ae){we.classList.add(ae)}removeClass(we,ae){we.classList.remove(ae)}setStyle(we,ae,Ve,ht){ht&(s.JOm.DashCase|s.JOm.Important)?we.style.setProperty(ae,Ve,ht&s.JOm.Important?"important":""):we.style[ae]=Ve}removeStyle(we,ae,Ve){Ve&s.JOm.DashCase?we.style.removeProperty(ae):we.style[ae]=""}setProperty(we,ae,Ve){we[ae]=Ve}setValue(we,ae){we.nodeValue=ae}listen(we,ae,Ve){return"string"==typeof we?this.eventManager.addGlobalEventListener(we,ae,he(Ve)):this.eventManager.addEventListener(we,ae,he(Ve))}}class tt extends ie{constructor(we,ae,Ve,ht){super(we),this.component=Ve;const It=fe(ht+"-"+Ve.id,Ve.styles,[]);ae.addStyles(It),this.contentAttr=function Xe(Re){return"_ngcontent-%COMP%".replace(ut,Re)}(ht+"-"+Ve.id),this.hostAttr=function J(Re){return"_nghost-%COMP%".replace(ut,Re)}(ht+"-"+Ve.id)}applyToHost(we){super.setAttribute(we,this.hostAttr,"")}createElement(we,ae){const Ve=super.createElement(we,ae);return super.setAttribute(Ve,this.contentAttr,""),Ve}}class ke extends ie{constructor(we,ae,Ve,ht){super(we),this.sharedStylesHost=ae,this.hostEl=Ve,this.shadowRoot=Ve.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const It=fe(ht.id,ht.styles,[]);for(let jt=0;jt{class Re extends ze{constructor(ae){super(ae)}supports(ae){return!0}addEventListener(ae,Ve,ht){return ae.addEventListener(Ve,ht,!1),()=>this.removeEventListener(ae,Ve,ht)}removeEventListener(ae,Ve,ht){return ae.removeEventListener(Ve,ht)}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const mt=["alt","control","meta","shift"],dt={"\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"},_t={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"},it={alt:Re=>Re.altKey,control:Re=>Re.ctrlKey,meta:Re=>Re.metaKey,shift:Re=>Re.shiftKey};let St=(()=>{class Re extends ze{constructor(ae){super(ae)}supports(ae){return null!=Re.parseEventName(ae)}addEventListener(ae,Ve,ht){const It=Re.parseEventName(Ve),jt=Re.eventCallback(It.fullKey,ht,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,a.q)().onAndCancel(ae,It.domEventName,jt))}static parseEventName(ae){const Ve=ae.toLowerCase().split("."),ht=Ve.shift();if(0===Ve.length||"keydown"!==ht&&"keyup"!==ht)return null;const It=Re._normalizeKey(Ve.pop());let jt="";if(mt.forEach(Pn=>{const si=Ve.indexOf(Pn);si>-1&&(Ve.splice(si,1),jt+=Pn+".")}),jt+=It,0!=Ve.length||0===It.length)return null;const fn={};return fn.domEventName=ht,fn.fullKey=jt,fn}static getEventFullKey(ae){let Ve="",ht=function ot(Re){let we=Re.key;if(null==we){if(we=Re.keyIdentifier,null==we)return"Unidentified";we.startsWith("U+")&&(we=String.fromCharCode(parseInt(we.substring(2),16)),3===Re.location&&_t.hasOwnProperty(we)&&(we=_t[we]))}return dt[we]||we}(ae);return ht=ht.toLowerCase()," "===ht?ht="space":"."===ht&&(ht="dot"),mt.forEach(It=>{It!=ht&&it[It](ae)&&(Ve+=It+".")}),Ve+=ht,Ve}static eventCallback(ae,Ve,ht){return It=>{Re.getEventFullKey(It)===ae&&ht.runGuarded(()=>Ve(It))}}static _normalizeKey(ae){return"esc"===ae?"escape":ae}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Ut=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:a.bD},{provide:s.g9A,useValue:function Et(){oe.makeCurrent(),ee.init()},multi:!0},{provide:a.K0,useFactory:function mn(){return(0,s.RDi)(document),document},deps:[]}]),un=[{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function Zt(){return new s.qLn},deps:[]},{provide:Ye,useClass:ve,multi:!0,deps:[a.K0,s.R0b,s.Lbi]},{provide:Ye,useClass:St,multi:!0,deps:[a.K0]},{provide:le,useClass:le,deps:[Fe,vt,s.AFp]},{provide:s.FYo,useExisting:le},{provide:_e,useExisting:vt},{provide:vt,useClass:vt,deps:[a.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:Fe,useClass:Fe,deps:[Ye,s.R0b]},{provide:a.JF,useClass:ye,deps:[]}];let _n=(()=>{class Re{constructor(ae){if(ae)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(ae){return{ngModule:Re,providers:[{provide:s.AFp,useValue:ae.appId},{provide:R,useExisting:s.AFp},B]}}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(Re,12))},Re.\u0275mod=s.oAB({type:Re}),Re.\u0275inj=s.cJS({providers:un,imports:[a.ez,s.hGG]}),Re})();"undefined"!=typeof window&&window;let An=(()=>{class Re{}return Re.\u0275fac=function(ae){return new(ae||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:function(ae){let Ve=null;return Ve=ae?new(ae||Re):s.LFG(jn),Ve},providedIn:"root"}),Re})(),jn=(()=>{class Re extends An{constructor(ae){super(),this._doc=ae}sanitize(ae,Ve){if(null==Ve)return null;switch(ae){case s.q3G.NONE:return Ve;case s.q3G.HTML:return(0,s.qzn)(Ve,"HTML")?(0,s.z3N)(Ve):(0,s.EiD)(this._doc,String(Ve)).toString();case s.q3G.STYLE:return(0,s.qzn)(Ve,"Style")?(0,s.z3N)(Ve):Ve;case s.q3G.SCRIPT:if((0,s.qzn)(Ve,"Script"))return(0,s.z3N)(Ve);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(Ve),(0,s.qzn)(Ve,"URL")?(0,s.z3N)(Ve):(0,s.mCW)(String(Ve));case s.q3G.RESOURCE_URL:if((0,s.qzn)(Ve,"ResourceURL"))return(0,s.z3N)(Ve);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ae} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ae){return(0,s.JVY)(ae)}bypassSecurityTrustStyle(ae){return(0,s.L6k)(ae)}bypassSecurityTrustScript(ae){return(0,s.eBb)(ae)}bypassSecurityTrustUrl(ae){return(0,s.LAX)(ae)}bypassSecurityTrustResourceUrl(ae){return(0,s.pB0)(ae)}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:function(ae){let Ve=null;return Ve=ae?new ae:function ri(Re){return new jn(Re.get(a.K0))}(s.LFG(s.zs3)),Ve},providedIn:"root"}),Re})()},2302:(yt,be,p)=>{p.d(be,{gz:()=>k,m2:()=>Et,OD:()=>ot,wm:()=>Is,F0:()=>ci,rH:()=>Xi,yS:()=>No,Bz:()=>Hs,lC:()=>so});var a=p(5e3);const G=(()=>{function m(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return m.prototype=Object.create(Error.prototype),m})();var oe=p(5254),q=p(1086),_=p(591),W=p(6053),I=p(6498),R=p(1961),H=p(8514),B=p(8896),ee=p(1762),ye=p(8929),Ye=p(2198),Fe=p(3489),ze=p(4231);function _e(m){return function(h){return 0===m?(0,B.c)():h.lift(new vt(m))}}class vt{constructor(d){if(this.total=d,this.total<0)throw new ze.W}call(d,h){return h.subscribe(new Je(d,this.total))}}class Je extends Fe.L{constructor(d,h){super(d),this.total=h,this.ring=new Array,this.count=0}_next(d){const h=this.ring,M=this.total,S=this.count++;h.length0){const M=this.count>=this.total?this.total:this.count,S=this.ring;for(let K=0;Kd.lift(new ut(m))}class ut{constructor(d){this.errorFactory=d}call(d,h){return h.subscribe(new Ie(d,this.errorFactory))}}class Ie extends Fe.L{constructor(d,h){super(d),this.errorFactory=h,this.hasValue=!1}_next(d){this.hasValue=!0,this.destination.next(d)}_complete(){if(this.hasValue)return this.destination.complete();{let d;try{d=this.errorFactory()}catch(h){d=h}this.destination.error(d)}}}function $e(){return new G}function et(m=null){return d=>d.lift(new Se(m))}class Se{constructor(d){this.defaultValue=d}call(d,h){return h.subscribe(new Xe(d,this.defaultValue))}}class Xe extends Fe.L{constructor(d,h){super(d),this.defaultValue=h,this.isEmpty=!0}_next(d){this.isEmpty=!1,this.destination.next(d)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var J=p(5379),he=p(2986);function te(m,d){const h=arguments.length>=2;return M=>M.pipe(m?(0,Ye.h)((S,K)=>m(S,K,M)):J.y,(0,he.q)(1),h?et(d):zt(()=>new G))}var le=p(4850),ie=p(7545),Ue=p(1059),je=p(2014),tt=p(7221),ke=p(1406),ve=p(1709),mt=p(2994),Qe=p(4327),dt=p(537),_t=p(9146),it=p(9808);class St{constructor(d,h){this.id=d,this.url=h}}class ot extends St{constructor(d,h,M="imperative",S=null){super(d,h),this.navigationTrigger=M,this.restoredState=S}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Et extends St{constructor(d,h,M){super(d,h),this.urlAfterRedirects=M}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Zt extends St{constructor(d,h,M){super(d,h),this.reason=M}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class mn extends St{constructor(d,h,M){super(d,h),this.error=M}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class gn extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ut extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class un extends St{constructor(d,h,M,S,K){super(d,h),this.urlAfterRedirects=M,this.state=S,this.shouldActivate=K}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class _n extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cn extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dt{constructor(d){this.route=d}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Sn{constructor(d){this.route=d}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class cn{constructor(d){this.snapshot=d}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mn{constructor(d){this.snapshot=d}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qe{constructor(d){this.snapshot=d}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class x{constructor(d){this.snapshot=d}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class z{constructor(d,h,M){this.routerEvent=d,this.position=h,this.anchor=M}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const P="primary";class pe{constructor(d){this.params=d||{}}has(d){return Object.prototype.hasOwnProperty.call(this.params,d)}get(d){if(this.has(d)){const h=this.params[d];return Array.isArray(h)?h[0]:h}return null}getAll(d){if(this.has(d)){const h=this.params[d];return Array.isArray(h)?h:[h]}return[]}get keys(){return Object.keys(this.params)}}function j(m){return new pe(m)}const me="ngNavigationCancelingError";function He(m){const d=Error("NavigationCancelingError: "+m);return d[me]=!0,d}function Le(m,d,h){const M=h.path.split("/");if(M.length>m.length||"full"===h.pathMatch&&(d.hasChildren()||M.lengthM[K]===S)}return m===d}function nt(m){return Array.prototype.concat.apply([],m)}function ce(m){return m.length>0?m[m.length-1]:null}function L(m,d){for(const h in m)m.hasOwnProperty(h)&&d(m[h],h)}function E(m){return(0,a.CqO)(m)?m:(0,a.QGY)(m)?(0,oe.D)(Promise.resolve(m)):(0,q.of)(m)}const ue={exact:function Qt(m,d,h){if(!ae(m.segments,d.segments)||!ri(m.segments,d.segments,h)||m.numberOfChildren!==d.numberOfChildren)return!1;for(const M in d.children)if(!m.children[M]||!Qt(m.children[M],d.children[M],h))return!1;return!0},subset:Vn},Ae={exact:function At(m,d){return V(m,d)},subset:function vn(m,d){return Object.keys(d).length<=Object.keys(m).length&&Object.keys(d).every(h=>Be(m[h],d[h]))},ignored:()=>!0};function wt(m,d,h){return ue[h.paths](m.root,d.root,h.matrixParams)&&Ae[h.queryParams](m.queryParams,d.queryParams)&&!("exact"===h.fragment&&m.fragment!==d.fragment)}function Vn(m,d,h){return An(m,d,d.segments,h)}function An(m,d,h,M){if(m.segments.length>h.length){const S=m.segments.slice(0,h.length);return!(!ae(S,h)||d.hasChildren()||!ri(S,h,M))}if(m.segments.length===h.length){if(!ae(m.segments,h)||!ri(m.segments,h,M))return!1;for(const S in d.children)if(!m.children[S]||!Vn(m.children[S],d.children[S],M))return!1;return!0}{const S=h.slice(0,m.segments.length),K=h.slice(m.segments.length);return!!(ae(m.segments,S)&&ri(m.segments,S,M)&&m.children[P])&&An(m.children[P],d,K,M)}}function ri(m,d,h){return d.every((M,S)=>Ae[h](m[S].parameters,M.parameters))}class jn{constructor(d,h,M){this.root=d,this.queryParams=h,this.fragment=M}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=j(this.queryParams)),this._queryParamMap}toString(){return jt.serialize(this)}}class qt{constructor(d,h){this.segments=d,this.children=h,this.parent=null,L(h,(M,S)=>M.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fn(this)}}class Re{constructor(d,h){this.path=d,this.parameters=h}get parameterMap(){return this._parameterMap||(this._parameterMap=j(this.parameters)),this._parameterMap}toString(){return Tt(this)}}function ae(m,d){return m.length===d.length&&m.every((h,M)=>h.path===d[M].path)}class ht{}class It{parse(d){const h=new on(d);return new jn(h.parseRootSegment(),h.parseQueryParams(),h.parseFragment())}serialize(d){const h=`/${Pn(d.root,!0)}`,M=function bn(m){const d=Object.keys(m).map(h=>{const M=m[h];return Array.isArray(M)?M.map(S=>`${Zn(h)}=${Zn(S)}`).join("&"):`${Zn(h)}=${Zn(M)}`}).filter(h=>!!h);return d.length?`?${d.join("&")}`:""}(d.queryParams);return`${h}${M}${"string"==typeof d.fragment?`#${function ii(m){return encodeURI(m)}(d.fragment)}`:""}`}}const jt=new It;function fn(m){return m.segments.map(d=>Tt(d)).join("/")}function Pn(m,d){if(!m.hasChildren())return fn(m);if(d){const h=m.children[P]?Pn(m.children[P],!1):"",M=[];return L(m.children,(S,K)=>{K!==P&&M.push(`${K}:${Pn(S,!1)}`)}),M.length>0?`${h}(${M.join("//")})`:h}{const h=function Ve(m,d){let h=[];return L(m.children,(M,S)=>{S===P&&(h=h.concat(d(M,S)))}),L(m.children,(M,S)=>{S!==P&&(h=h.concat(d(M,S)))}),h}(m,(M,S)=>S===P?[Pn(m.children[P],!1)]:[`${S}:${Pn(M,!1)}`]);return 1===Object.keys(m.children).length&&null!=m.children[P]?`${fn(m)}/${h[0]}`:`${fn(m)}/(${h.join("//")})`}}function si(m){return encodeURIComponent(m).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zn(m){return si(m).replace(/%3B/gi,";")}function En(m){return si(m).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ei(m){return decodeURIComponent(m)}function Ln(m){return ei(m.replace(/\+/g,"%20"))}function Tt(m){return`${En(m.path)}${function rn(m){return Object.keys(m).map(d=>`;${En(d)}=${En(m[d])}`).join("")}(m.parameters)}`}const Qn=/^[^\/()?;=#]+/;function Te(m){const d=m.match(Qn);return d?d[0]:""}const Ze=/^[^=?&#]+/,rt=/^[^&#]+/;class on{constructor(d){this.url=d,this.remaining=d}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new qt([],{}):new qt([],this.parseChildren())}parseQueryParams(){const d={};if(this.consumeOptional("?"))do{this.parseQueryParam(d)}while(this.consumeOptional("&"));return d}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const d=[];for(this.peekStartsWith("(")||d.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),d.push(this.parseSegment());let h={};this.peekStartsWith("/(")&&(this.capture("/"),h=this.parseParens(!0));let M={};return this.peekStartsWith("(")&&(M=this.parseParens(!1)),(d.length>0||Object.keys(h).length>0)&&(M[P]=new qt(d,h)),M}parseSegment(){const d=Te(this.remaining);if(""===d&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(d),new Re(ei(d),this.parseMatrixParams())}parseMatrixParams(){const d={};for(;this.consumeOptional(";");)this.parseParam(d);return d}parseParam(d){const h=Te(this.remaining);if(!h)return;this.capture(h);let M="";if(this.consumeOptional("=")){const S=Te(this.remaining);S&&(M=S,this.capture(M))}d[ei(h)]=ei(M)}parseQueryParam(d){const h=function De(m){const d=m.match(Ze);return d?d[0]:""}(this.remaining);if(!h)return;this.capture(h);let M="";if(this.consumeOptional("=")){const de=function Wt(m){const d=m.match(rt);return d?d[0]:""}(this.remaining);de&&(M=de,this.capture(M))}const S=Ln(h),K=Ln(M);if(d.hasOwnProperty(S)){let de=d[S];Array.isArray(de)||(de=[de],d[S]=de),de.push(K)}else d[S]=K}parseParens(d){const h={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const M=Te(this.remaining),S=this.remaining[M.length];if("/"!==S&&")"!==S&&";"!==S)throw new Error(`Cannot parse url '${this.url}'`);let K;M.indexOf(":")>-1?(K=M.substr(0,M.indexOf(":")),this.capture(K),this.capture(":")):d&&(K=P);const de=this.parseChildren();h[K]=1===Object.keys(de).length?de[P]:new qt([],de),this.consumeOptional("//")}return h}peekStartsWith(d){return this.remaining.startsWith(d)}consumeOptional(d){return!!this.peekStartsWith(d)&&(this.remaining=this.remaining.substring(d.length),!0)}capture(d){if(!this.consumeOptional(d))throw new Error(`Expected "${d}".`)}}class Lt{constructor(d){this._root=d}get root(){return this._root.value}parent(d){const h=this.pathFromRoot(d);return h.length>1?h[h.length-2]:null}children(d){const h=Un(d,this._root);return h?h.children.map(M=>M.value):[]}firstChild(d){const h=Un(d,this._root);return h&&h.children.length>0?h.children[0].value:null}siblings(d){const h=$n(d,this._root);return h.length<2?[]:h[h.length-2].children.map(S=>S.value).filter(S=>S!==d)}pathFromRoot(d){return $n(d,this._root).map(h=>h.value)}}function Un(m,d){if(m===d.value)return d;for(const h of d.children){const M=Un(m,h);if(M)return M}return null}function $n(m,d){if(m===d.value)return[d];for(const h of d.children){const M=$n(m,h);if(M.length)return M.unshift(d),M}return[]}class Nn{constructor(d,h){this.value=d,this.children=h}toString(){return`TreeNode(${this.value})`}}function Rn(m){const d={};return m&&m.children.forEach(h=>d[h.value.outlet]=h),d}class qn extends Lt{constructor(d,h){super(d),this.snapshot=h,Vt(this,d)}toString(){return this.snapshot.toString()}}function X(m,d){const h=function se(m,d){const de=new Ct([],{},{},"",{},P,d,null,m.root,-1,{});return new Ot("",new Nn(de,[]))}(m,d),M=new _.X([new Re("",{})]),S=new _.X({}),K=new _.X({}),de=new _.X({}),Oe=new _.X(""),pt=new k(M,S,de,Oe,K,P,d,h.root);return pt.snapshot=h.root,new qn(new Nn(pt,[]),h)}class k{constructor(d,h,M,S,K,de,Oe,pt){this.url=d,this.params=h,this.queryParams=M,this.fragment=S,this.data=K,this.outlet=de,this.component=Oe,this._futureSnapshot=pt}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,le.U)(d=>j(d)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,le.U)(d=>j(d)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ee(m,d="emptyOnly"){const h=m.pathFromRoot;let M=0;if("always"!==d)for(M=h.length-1;M>=1;){const S=h[M],K=h[M-1];if(S.routeConfig&&""===S.routeConfig.path)M--;else{if(K.component)break;M--}}return function st(m){return m.reduce((d,h)=>({params:Object.assign(Object.assign({},d.params),h.params),data:Object.assign(Object.assign({},d.data),h.data),resolve:Object.assign(Object.assign({},d.resolve),h._resolvedData)}),{params:{},data:{},resolve:{}})}(h.slice(M))}class Ct{constructor(d,h,M,S,K,de,Oe,pt,Ht,wn,tn){this.url=d,this.params=h,this.queryParams=M,this.fragment=S,this.data=K,this.outlet=de,this.component=Oe,this.routeConfig=pt,this._urlSegment=Ht,this._lastPathIndex=wn,this._resolve=tn}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=j(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=j(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(M=>M.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ot extends Lt{constructor(d,h){super(h),this.url=d,Vt(this,h)}toString(){return hn(this._root)}}function Vt(m,d){d.value._routerState=m,d.children.forEach(h=>Vt(m,h))}function hn(m){const d=m.children.length>0?` { ${m.children.map(hn).join(", ")} } `:"";return`${m.value}${d}`}function ni(m){if(m.snapshot){const d=m.snapshot,h=m._futureSnapshot;m.snapshot=h,V(d.queryParams,h.queryParams)||m.queryParams.next(h.queryParams),d.fragment!==h.fragment&&m.fragment.next(h.fragment),V(d.params,h.params)||m.params.next(h.params),function Me(m,d){if(m.length!==d.length)return!1;for(let h=0;hV(h.parameters,d[M].parameters))}(m.url,d.url);return h&&!(!m.parent!=!d.parent)&&(!m.parent||ai(m.parent,d.parent))}function bi(m,d,h){if(h&&m.shouldReuseRoute(d.value,h.value.snapshot)){const M=h.value;M._futureSnapshot=d.value;const S=function io(m,d,h){return d.children.map(M=>{for(const S of h.children)if(m.shouldReuseRoute(M.value,S.value.snapshot))return bi(m,M,S);return bi(m,M)})}(m,d,h);return new Nn(M,S)}{if(m.shouldAttach(d.value)){const K=m.retrieve(d.value);if(null!==K){const de=K.route;return de.value._futureSnapshot=d.value,de.children=d.children.map(Oe=>bi(m,Oe)),de}}const M=function Ao(m){return new k(new _.X(m.url),new _.X(m.params),new _.X(m.queryParams),new _.X(m.fragment),new _.X(m.data),m.outlet,m.component,m)}(d.value),S=d.children.map(K=>bi(m,K));return new Nn(M,S)}}function ui(m){return"object"==typeof m&&null!=m&&!m.outlets&&!m.segmentPath}function wi(m){return"object"==typeof m&&null!=m&&m.outlets}function ko(m,d,h,M,S){let K={};return M&&L(M,(de,Oe)=>{K[Oe]=Array.isArray(de)?de.map(pt=>`${pt}`):`${de}`}),new jn(h.root===m?d:Fo(h.root,m,d),K,S)}function Fo(m,d,h){const M={};return L(m.children,(S,K)=>{M[K]=S===d?h:Fo(S,d,h)}),new qt(m.segments,M)}class vo{constructor(d,h,M){if(this.isAbsolute=d,this.numberOfDoubleDots=h,this.commands=M,d&&M.length>0&&ui(M[0]))throw new Error("Root segment cannot have matrix parameters");const S=M.find(wi);if(S&&S!==ce(M))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Wi{constructor(d,h,M){this.segmentGroup=d,this.processChildren=h,this.index=M}}function Ii(m,d,h){if(m||(m=new qt([],{})),0===m.segments.length&&m.hasChildren())return Co(m,d,h);const M=function Io(m,d,h){let M=0,S=d;const K={match:!1,pathIndex:0,commandIndex:0};for(;S=h.length)return K;const de=m.segments[S],Oe=h[M];if(wi(Oe))break;const pt=`${Oe}`,Ht=M0&&void 0===pt)break;if(pt&&Ht&&"object"==typeof Ht&&void 0===Ht.outlets){if(!Qo(pt,Ht,de))return K;M+=2}else{if(!Qo(pt,{},de))return K;M++}S++}return{match:!0,pathIndex:S,commandIndex:M}}(m,d,h),S=h.slice(M.commandIndex);if(M.match&&M.pathIndex{"string"==typeof K&&(K=[K]),null!==K&&(S[de]=Ii(m.children[de],d,K))}),L(m.children,(K,de)=>{void 0===M[de]&&(S[de]=K)}),new qt(m.segments,S)}}function Mo(m,d,h){const M=m.segments.slice(0,d);let S=0;for(;S{"string"==typeof h&&(h=[h]),null!==h&&(d[M]=Mo(new qt([],{}),0,h))}),d}function Ki(m){const d={};return L(m,(h,M)=>d[M]=`${h}`),d}function Qo(m,d,h){return m==h.path&&V(d,h.parameters)}class qo{constructor(d,h,M,S){this.routeReuseStrategy=d,this.futureState=h,this.currState=M,this.forwardEvent=S}activate(d){const h=this.futureState._root,M=this.currState?this.currState._root:null;this.deactivateChildRoutes(h,M,d),ni(this.futureState.root),this.activateChildRoutes(h,M,d)}deactivateChildRoutes(d,h,M){const S=Rn(h);d.children.forEach(K=>{const de=K.value.outlet;this.deactivateRoutes(K,S[de],M),delete S[de]}),L(S,(K,de)=>{this.deactivateRouteAndItsChildren(K,M)})}deactivateRoutes(d,h,M){const S=d.value,K=h?h.value:null;if(S===K)if(S.component){const de=M.getContext(S.outlet);de&&this.deactivateChildRoutes(d,h,de.children)}else this.deactivateChildRoutes(d,h,M);else K&&this.deactivateRouteAndItsChildren(h,M)}deactivateRouteAndItsChildren(d,h){d.value.component&&this.routeReuseStrategy.shouldDetach(d.value.snapshot)?this.detachAndStoreRouteSubtree(d,h):this.deactivateRouteAndOutlet(d,h)}detachAndStoreRouteSubtree(d,h){const M=h.getContext(d.value.outlet),S=M&&d.value.component?M.children:h,K=Rn(d);for(const de of Object.keys(K))this.deactivateRouteAndItsChildren(K[de],S);if(M&&M.outlet){const de=M.outlet.detach(),Oe=M.children.onOutletDeactivated();this.routeReuseStrategy.store(d.value.snapshot,{componentRef:de,route:d,contexts:Oe})}}deactivateRouteAndOutlet(d,h){const M=h.getContext(d.value.outlet),S=M&&d.value.component?M.children:h,K=Rn(d);for(const de of Object.keys(K))this.deactivateRouteAndItsChildren(K[de],S);M&&M.outlet&&(M.outlet.deactivate(),M.children.onOutletDeactivated(),M.attachRef=null,M.resolver=null,M.route=null)}activateChildRoutes(d,h,M){const S=Rn(h);d.children.forEach(K=>{this.activateRoutes(K,S[K.value.outlet],M),this.forwardEvent(new x(K.value.snapshot))}),d.children.length&&this.forwardEvent(new Mn(d.value.snapshot))}activateRoutes(d,h,M){const S=d.value,K=h?h.value:null;if(ni(S),S===K)if(S.component){const de=M.getOrCreateContext(S.outlet);this.activateChildRoutes(d,h,de.children)}else this.activateChildRoutes(d,h,M);else if(S.component){const de=M.getOrCreateContext(S.outlet);if(this.routeReuseStrategy.shouldAttach(S.snapshot)){const Oe=this.routeReuseStrategy.retrieve(S.snapshot);this.routeReuseStrategy.store(S.snapshot,null),de.children.onOutletReAttached(Oe.contexts),de.attachRef=Oe.componentRef,de.route=Oe.route.value,de.outlet&&de.outlet.attach(Oe.componentRef,Oe.route.value),ni(Oe.route.value),this.activateChildRoutes(d,null,de.children)}else{const Oe=function Ti(m){for(let d=m.parent;d;d=d.parent){const h=d.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig;if(h&&h.component)return null}return null}(S.snapshot),pt=Oe?Oe.module.componentFactoryResolver:null;de.attachRef=null,de.route=S,de.resolver=pt,de.outlet&&de.outlet.activateWith(S,pt),this.activateChildRoutes(d,null,de.children)}}else this.activateChildRoutes(d,null,M)}}class ro{constructor(d,h){this.routes=d,this.module=h}}function oi(m){return"function"==typeof m}function Di(m){return m instanceof jn}const xi=Symbol("INITIAL_VALUE");function Vi(){return(0,ie.w)(m=>(0,W.aj)(m.map(d=>d.pipe((0,he.q)(1),(0,Ue.O)(xi)))).pipe((0,je.R)((d,h)=>{let M=!1;return h.reduce((S,K,de)=>S!==xi?S:(K===xi&&(M=!0),M||!1!==K&&de!==h.length-1&&!Di(K)?S:K),d)},xi),(0,Ye.h)(d=>d!==xi),(0,le.U)(d=>Di(d)?d:!0===d),(0,he.q)(1)))}class hi{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ei,this.attachRef=null}}class Ei{constructor(){this.contexts=new Map}onChildOutletCreated(d,h){const M=this.getOrCreateContext(d);M.outlet=h,this.contexts.set(d,M)}onChildOutletDestroyed(d){const h=this.getContext(d);h&&(h.outlet=null,h.attachRef=null)}onOutletDeactivated(){const d=this.contexts;return this.contexts=new Map,d}onOutletReAttached(d){this.contexts=d}getOrCreateContext(d){let h=this.getContext(d);return h||(h=new hi,this.contexts.set(d,h)),h}getContext(d){return this.contexts.get(d)||null}}let so=(()=>{class m{constructor(h,M,S,K,de){this.parentContexts=h,this.location=M,this.resolver=S,this.changeDetector=de,this.activated=null,this._activatedRoute=null,this.activateEvents=new a.vpe,this.deactivateEvents=new a.vpe,this.attachEvents=new a.vpe,this.detachEvents=new a.vpe,this.name=K||P,h.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const h=this.parentContexts.getContext(this.name);h&&h.route&&(h.attachRef?this.attach(h.attachRef,h.route):this.activateWith(h.route,h.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 h=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(h.instance),h}attach(h,M){this.activated=h,this._activatedRoute=M,this.location.insert(h.hostView),this.attachEvents.emit(h.instance)}deactivate(){if(this.activated){const h=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(h)}}activateWith(h,M){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=h;const de=(M=M||this.resolver).resolveComponentFactory(h._futureSnapshot.routeConfig.component),Oe=this.parentContexts.getOrCreateContext(this.name).children,pt=new Do(h,Oe,this.location.injector);this.activated=this.location.createComponent(de,this.location.length,pt),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return m.\u0275fac=function(h){return new(h||m)(a.Y36(Ei),a.Y36(a.s_b),a.Y36(a._Vd),a.$8M("name"),a.Y36(a.sBO))},m.\u0275dir=a.lG2({type:m,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),m})();class Do{constructor(d,h,M){this.route=d,this.childContexts=h,this.parent=M}get(d,h){return d===k?this.route:d===Ei?this.childContexts:this.parent.get(d,h)}}let Jo=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275cmp=a.Xpm({type:m,selectors:[["ng-component"]],decls:1,vars:0,template:function(h,M){1&h&&a._UZ(0,"router-outlet")},directives:[so],encapsulation:2}),m})();function Qi(m,d=""){for(let h=0;hyi(M)===d);return h.push(...m.filter(M=>yi(M)!==d)),h}const b={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Y(m,d,h){var M;if(""===d.path)return"full"===d.pathMatch&&(m.hasChildren()||h.length>0)?Object.assign({},b):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const K=(d.matcher||Le)(h,m,d);if(!K)return Object.assign({},b);const de={};L(K.posParams,(pt,Ht)=>{de[Ht]=pt.path});const Oe=K.consumed.length>0?Object.assign(Object.assign({},de),K.consumed[K.consumed.length-1].parameters):de;return{matched:!0,consumedSegments:K.consumed,lastChild:K.consumed.length,parameters:Oe,positionalParamSegments:null!==(M=K.posParams)&&void 0!==M?M:{}}}function w(m,d,h,M,S="corrected"){if(h.length>0&&function ct(m,d,h){return h.some(M=>kt(m,d,M)&&yi(M)!==P)}(m,h,M)){const de=new qt(d,function xe(m,d,h,M){const S={};S[P]=M,M._sourceSegment=m,M._segmentIndexShift=d.length;for(const K of h)if(""===K.path&&yi(K)!==P){const de=new qt([],{});de._sourceSegment=m,de._segmentIndexShift=d.length,S[yi(K)]=de}return S}(m,d,M,new qt(h,m.children)));return de._sourceSegment=m,de._segmentIndexShift=d.length,{segmentGroup:de,slicedSegments:[]}}if(0===h.length&&function Mt(m,d,h){return h.some(M=>kt(m,d,M))}(m,h,M)){const de=new qt(m.segments,function Q(m,d,h,M,S,K){const de={};for(const Oe of M)if(kt(m,h,Oe)&&!S[yi(Oe)]){const pt=new qt([],{});pt._sourceSegment=m,pt._segmentIndexShift="legacy"===K?m.segments.length:d.length,de[yi(Oe)]=pt}return Object.assign(Object.assign({},S),de)}(m,d,h,M,m.children,S));return de._sourceSegment=m,de._segmentIndexShift=d.length,{segmentGroup:de,slicedSegments:h}}const K=new qt(m.segments,m.children);return K._sourceSegment=m,K._segmentIndexShift=d.length,{segmentGroup:K,slicedSegments:h}}function kt(m,d,h){return(!(m.hasChildren()||d.length>0)||"full"!==h.pathMatch)&&""===h.path}function Fn(m,d,h,M){return!!(yi(m)===M||M!==P&&kt(d,h,m))&&("**"===m.path||Y(d,m,h).matched)}function Tn(m,d,h){return 0===d.length&&!m.children[h]}class Dn{constructor(d){this.segmentGroup=d||null}}class dn{constructor(d){this.urlTree=d}}function Yn(m){return new I.y(d=>d.error(new Dn(m)))}function On(m){return new I.y(d=>d.error(new dn(m)))}function Yt(m){return new I.y(d=>d.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${m}'`)))}class C{constructor(d,h,M,S,K){this.configLoader=h,this.urlSerializer=M,this.urlTree=S,this.config=K,this.allowRedirects=!0,this.ngModule=d.get(a.h0i)}apply(){const d=w(this.urlTree.root,[],[],this.config).segmentGroup,h=new qt(d.segments,d.children);return this.expandSegmentGroup(this.ngModule,this.config,h,P).pipe((0,le.U)(K=>this.createUrlTree(U(K),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,tt.K)(K=>{if(K instanceof dn)return this.allowRedirects=!1,this.match(K.urlTree);throw K instanceof Dn?this.noMatchError(K):K}))}match(d){return this.expandSegmentGroup(this.ngModule,this.config,d.root,P).pipe((0,le.U)(S=>this.createUrlTree(U(S),d.queryParams,d.fragment))).pipe((0,tt.K)(S=>{throw S instanceof Dn?this.noMatchError(S):S}))}noMatchError(d){return new Error(`Cannot match any routes. URL Segment: '${d.segmentGroup}'`)}createUrlTree(d,h,M){const S=d.segments.length>0?new qt([],{[P]:d}):d;return new jn(S,h,M)}expandSegmentGroup(d,h,M,S){return 0===M.segments.length&&M.hasChildren()?this.expandChildren(d,h,M).pipe((0,le.U)(K=>new qt([],K))):this.expandSegment(d,M,h,M.segments,S,!0)}expandChildren(d,h,M){const S=[];for(const K of Object.keys(M.children))"primary"===K?S.unshift(K):S.push(K);return(0,oe.D)(S).pipe((0,ke.b)(K=>{const de=M.children[K],Oe=Wn(h,K);return this.expandSegmentGroup(d,Oe,de,K).pipe((0,le.U)(pt=>({segment:pt,outlet:K})))}),(0,je.R)((K,de)=>(K[de.outlet]=de.segment,K),{}),function fe(m,d){const h=arguments.length>=2;return M=>M.pipe(m?(0,Ye.h)((S,K)=>m(S,K,M)):J.y,_e(1),h?et(d):zt(()=>new G))}())}expandSegment(d,h,M,S,K,de){return(0,oe.D)(M).pipe((0,ke.b)(Oe=>this.expandSegmentAgainstRoute(d,h,M,Oe,S,K,de).pipe((0,tt.K)(Ht=>{if(Ht instanceof Dn)return(0,q.of)(null);throw Ht}))),te(Oe=>!!Oe),(0,tt.K)((Oe,pt)=>{if(Oe instanceof G||"EmptyError"===Oe.name){if(Tn(h,S,K))return(0,q.of)(new qt([],{}));throw new Dn(h)}throw Oe}))}expandSegmentAgainstRoute(d,h,M,S,K,de,Oe){return Fn(S,h,K,de)?void 0===S.redirectTo?this.matchSegmentAgainstRoute(d,h,S,K,de):Oe&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de):Yn(h):Yn(h)}expandSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de){return"**"===S.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(d,M,S,de):this.expandRegularSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de)}expandWildCardWithParamsAgainstRouteUsingRedirect(d,h,M,S){const K=this.applyRedirectCommands([],M.redirectTo,{});return M.redirectTo.startsWith("/")?On(K):this.lineralizeSegments(M,K).pipe((0,ve.zg)(de=>{const Oe=new qt(de,{});return this.expandSegment(d,Oe,h,de,S,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de){const{matched:Oe,consumedSegments:pt,lastChild:Ht,positionalParamSegments:wn}=Y(h,S,K);if(!Oe)return Yn(h);const tn=this.applyRedirectCommands(pt,S.redirectTo,wn);return S.redirectTo.startsWith("/")?On(tn):this.lineralizeSegments(S,tn).pipe((0,ve.zg)(In=>this.expandSegment(d,h,M,In.concat(K.slice(Ht)),de,!1)))}matchSegmentAgainstRoute(d,h,M,S,K){if("**"===M.path)return M.loadChildren?(M._loadedConfig?(0,q.of)(M._loadedConfig):this.configLoader.load(d.injector,M)).pipe((0,le.U)(In=>(M._loadedConfig=In,new qt(S,{})))):(0,q.of)(new qt(S,{}));const{matched:de,consumedSegments:Oe,lastChild:pt}=Y(h,M,S);if(!de)return Yn(h);const Ht=S.slice(pt);return this.getChildConfig(d,M,S).pipe((0,ve.zg)(tn=>{const In=tn.module,Hn=tn.routes,{segmentGroup:co,slicedSegments:lo}=w(h,Oe,Ht,Hn),Ui=new qt(co.segments,co.children);if(0===lo.length&&Ui.hasChildren())return this.expandChildren(In,Hn,Ui).pipe((0,le.U)(eo=>new qt(Oe,eo)));if(0===Hn.length&&0===lo.length)return(0,q.of)(new qt(Oe,{}));const uo=yi(M)===K;return this.expandSegment(In,Ui,Hn,lo,uo?P:K,!0).pipe((0,le.U)(Ai=>new qt(Oe.concat(Ai.segments),Ai.children)))}))}getChildConfig(d,h,M){return h.children?(0,q.of)(new ro(h.children,d)):h.loadChildren?void 0!==h._loadedConfig?(0,q.of)(h._loadedConfig):this.runCanLoadGuards(d.injector,h,M).pipe((0,ve.zg)(S=>S?this.configLoader.load(d.injector,h).pipe((0,le.U)(K=>(h._loadedConfig=K,K))):function Eo(m){return new I.y(d=>d.error(He(`Cannot load children because the guard of the route "path: '${m.path}'" returned false`)))}(h))):(0,q.of)(new ro([],d))}runCanLoadGuards(d,h,M){const S=h.canLoad;if(!S||0===S.length)return(0,q.of)(!0);const K=S.map(de=>{const Oe=d.get(de);let pt;if(function bo(m){return m&&oi(m.canLoad)}(Oe))pt=Oe.canLoad(h,M);else{if(!oi(Oe))throw new Error("Invalid CanLoad guard");pt=Oe(h,M)}return E(pt)});return(0,q.of)(K).pipe(Vi(),(0,mt.b)(de=>{if(!Di(de))return;const Oe=He(`Redirecting to "${this.urlSerializer.serialize(de)}"`);throw Oe.url=de,Oe}),(0,le.U)(de=>!0===de))}lineralizeSegments(d,h){let M=[],S=h.root;for(;;){if(M=M.concat(S.segments),0===S.numberOfChildren)return(0,q.of)(M);if(S.numberOfChildren>1||!S.children[P])return Yt(d.redirectTo);S=S.children[P]}}applyRedirectCommands(d,h,M){return this.applyRedirectCreatreUrlTree(h,this.urlSerializer.parse(h),d,M)}applyRedirectCreatreUrlTree(d,h,M,S){const K=this.createSegmentGroup(d,h.root,M,S);return new jn(K,this.createQueryParams(h.queryParams,this.urlTree.queryParams),h.fragment)}createQueryParams(d,h){const M={};return L(d,(S,K)=>{if("string"==typeof S&&S.startsWith(":")){const Oe=S.substring(1);M[K]=h[Oe]}else M[K]=S}),M}createSegmentGroup(d,h,M,S){const K=this.createSegments(d,h.segments,M,S);let de={};return L(h.children,(Oe,pt)=>{de[pt]=this.createSegmentGroup(d,Oe,M,S)}),new qt(K,de)}createSegments(d,h,M,S){return h.map(K=>K.path.startsWith(":")?this.findPosParam(d,K,S):this.findOrReturn(K,M))}findPosParam(d,h,M){const S=M[h.path.substring(1)];if(!S)throw new Error(`Cannot redirect to '${d}'. Cannot find '${h.path}'.`);return S}findOrReturn(d,h){let M=0;for(const S of h){if(S.path===d.path)return h.splice(M),S;M++}return d}}function U(m){const d={};for(const M of Object.keys(m.children)){const K=U(m.children[M]);(K.segments.length>0||K.hasChildren())&&(d[M]=K)}return function y(m){if(1===m.numberOfChildren&&m.children[P]){const d=m.children[P];return new qt(m.segments.concat(d.segments),d.children)}return m}(new qt(m.segments,d))}class Nt{constructor(d){this.path=d,this.route=this.path[this.path.length-1]}}class lt{constructor(d,h){this.component=d,this.route=h}}function O(m,d,h){const M=m._root;return F(M,d?d._root:null,h,[M.value])}function l(m,d,h){const M=function g(m){if(!m)return null;for(let d=m.parent;d;d=d.parent){const h=d.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig}return null}(d);return(M?M.module.injector:h).get(m)}function F(m,d,h,M,S={canDeactivateChecks:[],canActivateChecks:[]}){const K=Rn(d);return m.children.forEach(de=>{(function ne(m,d,h,M,S={canDeactivateChecks:[],canActivateChecks:[]}){const K=m.value,de=d?d.value:null,Oe=h?h.getContext(m.value.outlet):null;if(de&&K.routeConfig===de.routeConfig){const pt=function ge(m,d,h){if("function"==typeof h)return h(m,d);switch(h){case"pathParamsChange":return!ae(m.url,d.url);case"pathParamsOrQueryParamsChange":return!ae(m.url,d.url)||!V(m.queryParams,d.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ai(m,d)||!V(m.queryParams,d.queryParams);default:return!ai(m,d)}}(de,K,K.routeConfig.runGuardsAndResolvers);pt?S.canActivateChecks.push(new Nt(M)):(K.data=de.data,K._resolvedData=de._resolvedData),F(m,d,K.component?Oe?Oe.children:null:h,M,S),pt&&Oe&&Oe.outlet&&Oe.outlet.isActivated&&S.canDeactivateChecks.push(new lt(Oe.outlet.component,de))}else de&&Ce(d,Oe,S),S.canActivateChecks.push(new Nt(M)),F(m,null,K.component?Oe?Oe.children:null:h,M,S)})(de,K[de.value.outlet],h,M.concat([de.value]),S),delete K[de.value.outlet]}),L(K,(de,Oe)=>Ce(de,h.getContext(Oe),S)),S}function Ce(m,d,h){const M=Rn(m),S=m.value;L(M,(K,de)=>{Ce(K,S.component?d?d.children.getContext(de):null:d,h)}),h.canDeactivateChecks.push(new lt(S.component&&d&&d.outlet&&d.outlet.isActivated?d.outlet.component:null,S))}class pn{}function Jn(m){return new I.y(d=>d.error(m))}class _i{constructor(d,h,M,S,K,de){this.rootComponentType=d,this.config=h,this.urlTree=M,this.url=S,this.paramsInheritanceStrategy=K,this.relativeLinkResolution=de}recognize(){const d=w(this.urlTree.root,[],[],this.config.filter(de=>void 0===de.redirectTo),this.relativeLinkResolution).segmentGroup,h=this.processSegmentGroup(this.config,d,P);if(null===h)return null;const M=new Ct([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},P,this.rootComponentType,null,this.urlTree.root,-1,{}),S=new Nn(M,h),K=new Ot(this.url,S);return this.inheritParamsAndData(K._root),K}inheritParamsAndData(d){const h=d.value,M=Ee(h,this.paramsInheritanceStrategy);h.params=Object.freeze(M.params),h.data=Object.freeze(M.data),d.children.forEach(S=>this.inheritParamsAndData(S))}processSegmentGroup(d,h,M){return 0===h.segments.length&&h.hasChildren()?this.processChildren(d,h):this.processSegment(d,h,h.segments,M)}processChildren(d,h){const M=[];for(const K of Object.keys(h.children)){const de=h.children[K],Oe=Wn(d,K),pt=this.processSegmentGroup(Oe,de,K);if(null===pt)return null;M.push(...pt)}const S=fi(M);return function di(m){m.sort((d,h)=>d.value.outlet===P?-1:h.value.outlet===P?1:d.value.outlet.localeCompare(h.value.outlet))}(S),S}processSegment(d,h,M,S){for(const K of d){const de=this.processSegmentAgainstRoute(K,h,M,S);if(null!==de)return de}return Tn(h,M,S)?[]:null}processSegmentAgainstRoute(d,h,M,S){if(d.redirectTo||!Fn(d,h,M,S))return null;let K,de=[],Oe=[];if("**"===d.path){const Hn=M.length>0?ce(M).parameters:{};K=new Ct(M,Hn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ho(d),yi(d),d.component,d,Yi(h),Li(h)+M.length,zo(d))}else{const Hn=Y(h,d,M);if(!Hn.matched)return null;de=Hn.consumedSegments,Oe=M.slice(Hn.lastChild),K=new Ct(de,Hn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ho(d),yi(d),d.component,d,Yi(h),Li(h)+de.length,zo(d))}const pt=function qi(m){return m.children?m.children:m.loadChildren?m._loadedConfig.routes:[]}(d),{segmentGroup:Ht,slicedSegments:wn}=w(h,de,Oe,pt.filter(Hn=>void 0===Hn.redirectTo),this.relativeLinkResolution);if(0===wn.length&&Ht.hasChildren()){const Hn=this.processChildren(pt,Ht);return null===Hn?null:[new Nn(K,Hn)]}if(0===pt.length&&0===wn.length)return[new Nn(K,[])];const tn=yi(d)===S,In=this.processSegment(pt,Ht,wn,tn?P:S);return null===In?null:[new Nn(K,In)]}}function Oi(m){const d=m.value.routeConfig;return d&&""===d.path&&void 0===d.redirectTo}function fi(m){const d=[],h=new Set;for(const M of m){if(!Oi(M)){d.push(M);continue}const S=d.find(K=>M.value.routeConfig===K.value.routeConfig);void 0!==S?(S.children.push(...M.children),h.add(S)):d.push(M)}for(const M of h){const S=fi(M.children);d.push(new Nn(M.value,S))}return d.filter(M=>!h.has(M))}function Yi(m){let d=m;for(;d._sourceSegment;)d=d._sourceSegment;return d}function Li(m){let d=m,h=d._segmentIndexShift?d._segmentIndexShift:0;for(;d._sourceSegment;)d=d._sourceSegment,h+=d._segmentIndexShift?d._segmentIndexShift:0;return h-1}function Ho(m){return m.data||{}}function zo(m){return m.resolve||{}}function en(m){return(0,ie.w)(d=>{const h=m(d);return h?(0,oe.D)(h).pipe((0,le.U)(()=>d)):(0,q.of)(d)})}class xn extends class Gn{shouldDetach(d){return!1}store(d,h){}shouldAttach(d){return!1}retrieve(d){return null}shouldReuseRoute(d,h){return d.routeConfig===h.routeConfig}}{}const pi=new a.OlP("ROUTES");class Ji{constructor(d,h,M,S){this.injector=d,this.compiler=h,this.onLoadStartListener=M,this.onLoadEndListener=S}load(d,h){if(h._loader$)return h._loader$;this.onLoadStartListener&&this.onLoadStartListener(h);const S=this.loadModuleFactory(h.loadChildren).pipe((0,le.U)(K=>{this.onLoadEndListener&&this.onLoadEndListener(h);const de=K.create(d);return new ro(nt(de.injector.get(pi,void 0,a.XFs.Self|a.XFs.Optional)).map(Pi),de)}),(0,tt.K)(K=>{throw h._loader$=void 0,K}));return h._loader$=new ee.c(S,()=>new ye.xQ).pipe((0,Qe.x)()),h._loader$}loadModuleFactory(d){return E(d()).pipe((0,ve.zg)(h=>h instanceof a.YKP?(0,q.of)(h):(0,oe.D)(this.compiler.compileModuleAsync(h))))}}class mr{shouldProcessUrl(d){return!0}extract(d){return d}merge(d,h){return d}}function ts(m){throw m}function Ci(m,d,h){return d.parse("/")}function Hi(m,d){return(0,q.of)(null)}const Ni={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ji={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ci=(()=>{class m{constructor(h,M,S,K,de,Oe,pt){this.rootComponentType=h,this.urlSerializer=M,this.rootContexts=S,this.location=K,this.config=pt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ye.xQ,this.errorHandler=ts,this.malformedUriErrorHandler=Ci,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Hi,afterPreactivation:Hi},this.urlHandlingStrategy=new mr,this.routeReuseStrategy=new xn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=de.get(a.h0i),this.console=de.get(a.c2e);const tn=de.get(a.R0b);this.isNgZoneEnabled=tn instanceof a.R0b&&a.R0b.isInAngularZone(),this.resetConfig(pt),this.currentUrlTree=function $(){return new jn(new qt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ji(de,Oe,In=>this.triggerEvent(new Dt(In)),In=>this.triggerEvent(new Sn(In))),this.routerState=X(this.currentUrlTree,this.rootComponentType),this.transitions=new _.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 h;return null===(h=this.location.getState())||void 0===h?void 0:h.\u0275routerPageId}setupNavigations(h){const M=this.events;return h.pipe((0,Ye.h)(S=>0!==S.id),(0,le.U)(S=>Object.assign(Object.assign({},S),{extractedUrl:this.urlHandlingStrategy.extract(S.rawUrl)})),(0,ie.w)(S=>{let K=!1,de=!1;return(0,q.of)(S).pipe((0,mt.b)(Oe=>{this.currentNavigation={id:Oe.id,initialUrl:Oe.currentRawUrl,extractedUrl:Oe.extractedUrl,trigger:Oe.source,extras:Oe.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,ie.w)(Oe=>{const pt=this.browserUrlTree.toString(),Ht=!this.navigated||Oe.extractedUrl.toString()!==pt||pt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ht)&&this.urlHandlingStrategy.shouldProcessUrl(Oe.rawUrl))return gr(Oe.source)&&(this.browserUrlTree=Oe.extractedUrl),(0,q.of)(Oe).pipe((0,ie.w)(tn=>{const In=this.transitions.getValue();return M.next(new ot(tn.id,this.serializeUrl(tn.extractedUrl),tn.source,tn.restoredState)),In!==this.transitions.getValue()?B.E:Promise.resolve(tn)}),function at(m,d,h,M){return(0,ie.w)(S=>function D(m,d,h,M,S){return new C(m,d,h,M,S).apply()}(m,d,h,S.extractedUrl,M).pipe((0,le.U)(K=>Object.assign(Object.assign({},S),{urlAfterRedirects:K}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,mt.b)(tn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:tn.urlAfterRedirects})}),function ao(m,d,h,M,S){return(0,ve.zg)(K=>function ti(m,d,h,M,S="emptyOnly",K="legacy"){try{const de=new _i(m,d,h,M,S,K).recognize();return null===de?Jn(new pn):(0,q.of)(de)}catch(de){return Jn(de)}}(m,d,K.urlAfterRedirects,h(K.urlAfterRedirects),M,S).pipe((0,le.U)(de=>Object.assign(Object.assign({},K),{targetSnapshot:de}))))}(this.rootComponentType,this.config,tn=>this.serializeUrl(tn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,mt.b)(tn=>{if("eager"===this.urlUpdateStrategy){if(!tn.extras.skipLocationChange){const Hn=this.urlHandlingStrategy.merge(tn.urlAfterRedirects,tn.rawUrl);this.setBrowserUrl(Hn,tn)}this.browserUrlTree=tn.urlAfterRedirects}const In=new gn(tn.id,this.serializeUrl(tn.extractedUrl),this.serializeUrl(tn.urlAfterRedirects),tn.targetSnapshot);M.next(In)}));if(Ht&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:In,extractedUrl:Hn,source:co,restoredState:lo,extras:Ui}=Oe,uo=new ot(In,this.serializeUrl(Hn),co,lo);M.next(uo);const So=X(Hn,this.rootComponentType).snapshot;return(0,q.of)(Object.assign(Object.assign({},Oe),{targetSnapshot:So,urlAfterRedirects:Hn,extras:Object.assign(Object.assign({},Ui),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=Oe.rawUrl,Oe.resolve(null),B.E}),en(Oe=>{const{targetSnapshot:pt,id:Ht,extractedUrl:wn,rawUrl:tn,extras:{skipLocationChange:In,replaceUrl:Hn}}=Oe;return this.hooks.beforePreactivation(pt,{navigationId:Ht,appliedUrlTree:wn,rawUrlTree:tn,skipLocationChange:!!In,replaceUrl:!!Hn})}),(0,mt.b)(Oe=>{const pt=new Ut(Oe.id,this.serializeUrl(Oe.extractedUrl),this.serializeUrl(Oe.urlAfterRedirects),Oe.targetSnapshot);this.triggerEvent(pt)}),(0,le.U)(Oe=>Object.assign(Object.assign({},Oe),{guards:O(Oe.targetSnapshot,Oe.currentSnapshot,this.rootContexts)})),function Ke(m,d){return(0,ve.zg)(h=>{const{targetSnapshot:M,currentSnapshot:S,guards:{canActivateChecks:K,canDeactivateChecks:de}}=h;return 0===de.length&&0===K.length?(0,q.of)(Object.assign(Object.assign({},h),{guardsResult:!0})):function ft(m,d,h,M){return(0,oe.D)(m).pipe((0,ve.zg)(S=>function Jt(m,d,h,M,S){const K=d&&d.routeConfig?d.routeConfig.canDeactivate:null;if(!K||0===K.length)return(0,q.of)(!0);const de=K.map(Oe=>{const pt=l(Oe,d,S);let Ht;if(function wo(m){return m&&oi(m.canDeactivate)}(pt))Ht=E(pt.canDeactivate(m,d,h,M));else{if(!oi(pt))throw new Error("Invalid CanDeactivate guard");Ht=E(pt(m,d,h,M))}return Ht.pipe(te())});return(0,q.of)(de).pipe(Vi())}(S.component,S.route,h,d,M)),te(S=>!0!==S,!0))}(de,M,S,m).pipe((0,ve.zg)(Oe=>Oe&&function Zi(m){return"boolean"==typeof m}(Oe)?function Pt(m,d,h,M){return(0,oe.D)(d).pipe((0,ke.b)(S=>(0,R.z)(function Gt(m,d){return null!==m&&d&&d(new cn(m)),(0,q.of)(!0)}(S.route.parent,M),function Bt(m,d){return null!==m&&d&&d(new qe(m)),(0,q.of)(!0)}(S.route,M),function Kt(m,d,h){const M=d[d.length-1],K=d.slice(0,d.length-1).reverse().map(de=>function c(m){const d=m.routeConfig?m.routeConfig.canActivateChild:null;return d&&0!==d.length?{node:m,guards:d}:null}(de)).filter(de=>null!==de).map(de=>(0,H.P)(()=>{const Oe=de.guards.map(pt=>{const Ht=l(pt,de.node,h);let wn;if(function Lo(m){return m&&oi(m.canActivateChild)}(Ht))wn=E(Ht.canActivateChild(M,m));else{if(!oi(Ht))throw new Error("Invalid CanActivateChild guard");wn=E(Ht(M,m))}return wn.pipe(te())});return(0,q.of)(Oe).pipe(Vi())}));return(0,q.of)(K).pipe(Vi())}(m,S.path,h),function ln(m,d,h){const M=d.routeConfig?d.routeConfig.canActivate:null;if(!M||0===M.length)return(0,q.of)(!0);const S=M.map(K=>(0,H.P)(()=>{const de=l(K,d,h);let Oe;if(function Vo(m){return m&&oi(m.canActivate)}(de))Oe=E(de.canActivate(d,m));else{if(!oi(de))throw new Error("Invalid CanActivate guard");Oe=E(de(d,m))}return Oe.pipe(te())}));return(0,q.of)(S).pipe(Vi())}(m,S.route,h))),te(S=>!0!==S,!0))}(M,K,m,d):(0,q.of)(Oe)),(0,le.U)(Oe=>Object.assign(Object.assign({},h),{guardsResult:Oe})))})}(this.ngModule.injector,Oe=>this.triggerEvent(Oe)),(0,mt.b)(Oe=>{if(Di(Oe.guardsResult)){const Ht=He(`Redirecting to "${this.serializeUrl(Oe.guardsResult)}"`);throw Ht.url=Oe.guardsResult,Ht}const pt=new un(Oe.id,this.serializeUrl(Oe.extractedUrl),this.serializeUrl(Oe.urlAfterRedirects),Oe.targetSnapshot,!!Oe.guardsResult);this.triggerEvent(pt)}),(0,Ye.h)(Oe=>!!Oe.guardsResult||(this.restoreHistory(Oe),this.cancelNavigationTransition(Oe,""),!1)),en(Oe=>{if(Oe.guards.canActivateChecks.length)return(0,q.of)(Oe).pipe((0,mt.b)(pt=>{const Ht=new _n(pt.id,this.serializeUrl(pt.extractedUrl),this.serializeUrl(pt.urlAfterRedirects),pt.targetSnapshot);this.triggerEvent(Ht)}),(0,ie.w)(pt=>{let Ht=!1;return(0,q.of)(pt).pipe(function fr(m,d){return(0,ve.zg)(h=>{const{targetSnapshot:M,guards:{canActivateChecks:S}}=h;if(!S.length)return(0,q.of)(h);let K=0;return(0,oe.D)(S).pipe((0,ke.b)(de=>function pr(m,d,h,M){return function Rt(m,d,h,M){const S=Object.keys(m);if(0===S.length)return(0,q.of)({});const K={};return(0,oe.D)(S).pipe((0,ve.zg)(de=>function Xt(m,d,h,M){const S=l(m,d,M);return E(S.resolve?S.resolve(d,h):S(d,h))}(m[de],d,h,M).pipe((0,mt.b)(Oe=>{K[de]=Oe}))),_e(1),(0,ve.zg)(()=>Object.keys(K).length===S.length?(0,q.of)(K):B.E))}(m._resolve,m,d,M).pipe((0,le.U)(K=>(m._resolvedData=K,m.data=Object.assign(Object.assign({},m.data),Ee(m,h).resolve),null)))}(de.route,M,m,d)),(0,mt.b)(()=>K++),_e(1),(0,ve.zg)(de=>K===S.length?(0,q.of)(h):B.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,mt.b)({next:()=>Ht=!0,complete:()=>{Ht||(this.restoreHistory(pt),this.cancelNavigationTransition(pt,"At least one route resolver didn't emit any value."))}}))}),(0,mt.b)(pt=>{const Ht=new Cn(pt.id,this.serializeUrl(pt.extractedUrl),this.serializeUrl(pt.urlAfterRedirects),pt.targetSnapshot);this.triggerEvent(Ht)}))}),en(Oe=>{const{targetSnapshot:pt,id:Ht,extractedUrl:wn,rawUrl:tn,extras:{skipLocationChange:In,replaceUrl:Hn}}=Oe;return this.hooks.afterPreactivation(pt,{navigationId:Ht,appliedUrlTree:wn,rawUrlTree:tn,skipLocationChange:!!In,replaceUrl:!!Hn})}),(0,le.U)(Oe=>{const pt=function kn(m,d,h){const M=bi(m,d._root,h?h._root:void 0);return new qn(M,d)}(this.routeReuseStrategy,Oe.targetSnapshot,Oe.currentRouterState);return Object.assign(Object.assign({},Oe),{targetRouterState:pt})}),(0,mt.b)(Oe=>{this.currentUrlTree=Oe.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Oe.urlAfterRedirects,Oe.rawUrl),this.routerState=Oe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Oe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Oe),this.browserUrlTree=Oe.urlAfterRedirects)}),((m,d,h)=>(0,le.U)(M=>(new qo(d,M.targetRouterState,M.currentRouterState,h).activate(m),M)))(this.rootContexts,this.routeReuseStrategy,Oe=>this.triggerEvent(Oe)),(0,mt.b)({next(){K=!0},complete(){K=!0}}),(0,dt.x)(()=>{var Oe;K||de||this.cancelNavigationTransition(S,`Navigation ID ${S.id} is not equal to the current navigation id ${this.navigationId}`),(null===(Oe=this.currentNavigation)||void 0===Oe?void 0:Oe.id)===S.id&&(this.currentNavigation=null)}),(0,tt.K)(Oe=>{if(de=!0,function Ge(m){return m&&m[me]}(Oe)){const pt=Di(Oe.url);pt||(this.navigated=!0,this.restoreHistory(S,!0));const Ht=new Zt(S.id,this.serializeUrl(S.extractedUrl),Oe.message);M.next(Ht),pt?setTimeout(()=>{const wn=this.urlHandlingStrategy.merge(Oe.url,this.rawUrlTree),tn={skipLocationChange:S.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||gr(S.source)};this.scheduleNavigation(wn,"imperative",null,tn,{resolve:S.resolve,reject:S.reject,promise:S.promise})},0):S.resolve(!1)}else{this.restoreHistory(S,!0);const pt=new mn(S.id,this.serializeUrl(S.extractedUrl),Oe);M.next(pt);try{S.resolve(this.errorHandler(Oe))}catch(Ht){S.reject(Ht)}}return B.E}))}))}resetRootComponentType(h){this.rootComponentType=h,this.routerState.root.component=this.rootComponentType}setTransition(h){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),h))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(h=>{const M="popstate"===h.type?"popstate":"hashchange";"popstate"===M&&setTimeout(()=>{var S;const K={replaceUrl:!0},de=(null===(S=h.state)||void 0===S?void 0:S.navigationId)?h.state:null;if(de){const pt=Object.assign({},de);delete pt.navigationId,delete pt.\u0275routerPageId,0!==Object.keys(pt).length&&(K.state=pt)}const Oe=this.parseUrl(h.url);this.scheduleNavigation(Oe,M,de,K)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(h){this.events.next(h)}resetConfig(h){Qi(h),this.config=h.map(Pi),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(h,M={}){const{relativeTo:S,queryParams:K,fragment:de,queryParamsHandling:Oe,preserveFragment:pt}=M,Ht=S||this.routerState.root,wn=pt?this.currentUrlTree.fragment:de;let tn=null;switch(Oe){case"merge":tn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),K);break;case"preserve":tn=this.currentUrlTree.queryParams;break;default:tn=K||null}return null!==tn&&(tn=this.removeEmptyProps(tn)),function vi(m,d,h,M,S){if(0===h.length)return ko(d.root,d.root,d,M,S);const K=function Zo(m){if("string"==typeof m[0]&&1===m.length&&"/"===m[0])return new vo(!0,0,m);let d=0,h=!1;const M=m.reduce((S,K,de)=>{if("object"==typeof K&&null!=K){if(K.outlets){const Oe={};return L(K.outlets,(pt,Ht)=>{Oe[Ht]="string"==typeof pt?pt.split("/"):pt}),[...S,{outlets:Oe}]}if(K.segmentPath)return[...S,K.segmentPath]}return"string"!=typeof K?[...S,K]:0===de?(K.split("/").forEach((Oe,pt)=>{0==pt&&"."===Oe||(0==pt&&""===Oe?h=!0:".."===Oe?d++:""!=Oe&&S.push(Oe))}),S):[...S,K]},[]);return new vo(h,d,M)}(h);if(K.toRoot())return ko(d.root,new qt([],{}),d,M,S);const de=function yo(m,d,h){if(m.isAbsolute)return new Wi(d.root,!0,0);if(-1===h.snapshot._lastPathIndex){const K=h.snapshot._urlSegment;return new Wi(K,K===d.root,0)}const M=ui(m.commands[0])?0:1;return function _o(m,d,h){let M=m,S=d,K=h;for(;K>S;){if(K-=S,M=M.parent,!M)throw new Error("Invalid number of '../'");S=M.segments.length}return new Wi(M,!1,S-K)}(h.snapshot._urlSegment,h.snapshot._lastPathIndex+M,m.numberOfDoubleDots)}(K,d,m),Oe=de.processChildren?Co(de.segmentGroup,de.index,K.commands):Ii(de.segmentGroup,de.index,K.commands);return ko(de.segmentGroup,Oe,d,M,S)}(Ht,this.currentUrlTree,h,tn,null!=wn?wn:null)}navigateByUrl(h,M={skipLocationChange:!1}){const S=Di(h)?h:this.parseUrl(h),K=this.urlHandlingStrategy.merge(S,this.rawUrlTree);return this.scheduleNavigation(K,"imperative",null,M)}navigate(h,M={skipLocationChange:!1}){return function Fs(m){for(let d=0;d{const K=h[S];return null!=K&&(M[S]=K),M},{})}processNavigations(){this.navigations.subscribe(h=>{this.navigated=!0,this.lastSuccessfulId=h.id,this.currentPageId=h.targetPageId,this.events.next(new Et(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,h.resolve(!0)},h=>{this.console.warn(`Unhandled Navigation Error: ${h}`)})}scheduleNavigation(h,M,S,K,de){var Oe,pt,Ht;if(this.disposed)return Promise.resolve(!1);const wn=this.transitions.value,tn=gr(M)&&wn&&!gr(wn.source),In=wn.rawUrl.toString()===h.toString(),Hn=wn.id===(null===(Oe=this.currentNavigation)||void 0===Oe?void 0:Oe.id);if(tn&&In&&Hn)return Promise.resolve(!0);let lo,Ui,uo;de?(lo=de.resolve,Ui=de.reject,uo=de.promise):uo=new Promise((eo,Bs)=>{lo=eo,Ui=Bs});const So=++this.navigationId;let Ai;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(S=this.location.getState()),Ai=S&&S.\u0275routerPageId?S.\u0275routerPageId:K.replaceUrl||K.skipLocationChange?null!==(pt=this.browserPageId)&&void 0!==pt?pt:0:(null!==(Ht=this.browserPageId)&&void 0!==Ht?Ht:0)+1):Ai=0,this.setTransition({id:So,targetPageId:Ai,source:M,restoredState:S,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:h,extras:K,resolve:lo,reject:Ui,promise:uo,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),uo.catch(eo=>Promise.reject(eo))}setBrowserUrl(h,M){const S=this.urlSerializer.serialize(h),K=Object.assign(Object.assign({},M.extras.state),this.generateNgRouterState(M.id,M.targetPageId));this.location.isCurrentPathEqualTo(S)||M.extras.replaceUrl?this.location.replaceState(S,"",K):this.location.go(S,"",K)}restoreHistory(h,M=!1){var S,K;if("computed"===this.canceledNavigationResolution){const de=this.currentPageId-h.targetPageId;"popstate"!==h.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(S=this.currentNavigation)||void 0===S?void 0:S.finalUrl)||0===de?this.currentUrlTree===(null===(K=this.currentNavigation)||void 0===K?void 0:K.finalUrl)&&0===de&&(this.resetState(h),this.browserUrlTree=h.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(de)}else"replace"===this.canceledNavigationResolution&&(M&&this.resetState(h),this.resetUrlToCurrentUrlTree())}resetState(h){this.routerState=h.currentRouterState,this.currentUrlTree=h.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,h.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(h,M){const S=new Zt(h.id,this.serializeUrl(h.extractedUrl),M);this.triggerEvent(S),h.resolve(!1)}generateNgRouterState(h,M){return"computed"===this.canceledNavigationResolution?{navigationId:h,\u0275routerPageId:M}:{navigationId:h}}}return m.\u0275fac=function(h){a.$Z()},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})();function gr(m){return"imperative"!==m}let Xi=(()=>{class m{constructor(h,M,S,K,de){this.router=h,this.route=M,this.tabIndexAttribute=S,this.renderer=K,this.el=de,this.commands=null,this.onChanges=new ye.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(h){if(null!=this.tabIndexAttribute)return;const M=this.renderer,S=this.el.nativeElement;null!==h?M.setAttribute(S,"tabindex",h):M.removeAttribute(S,"tabindex")}ngOnChanges(h){this.onChanges.next(this)}set routerLink(h){null!=h?(this.commands=Array.isArray(h)?h:[h],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const h={skipLocationChange:ar(this.skipLocationChange),replaceUrl:ar(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,h),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ar(this.preserveFragment)})}}return m.\u0275fac=function(h){return new(h||m)(a.Y36(ci),a.Y36(k),a.$8M("tabindex"),a.Y36(a.Qsj),a.Y36(a.SBq))},m.\u0275dir=a.lG2({type:m,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(h,M){1&h&&a.NdJ("click",function(){return M.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[a.TTD]}),m})(),No=(()=>{class m{constructor(h,M,S){this.router=h,this.route=M,this.locationStrategy=S,this.commands=null,this.href=null,this.onChanges=new ye.xQ,this.subscription=h.events.subscribe(K=>{K instanceof Et&&this.updateTargetUrlAndHref()})}set routerLink(h){this.commands=null!=h?Array.isArray(h)?h:[h]:null}ngOnChanges(h){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(h,M,S,K,de){if(0!==h||M||S||K||de||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Oe={skipLocationChange:ar(this.skipLocationChange),replaceUrl:ar(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Oe),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ar(this.preserveFragment)})}}return m.\u0275fac=function(h){return new(h||m)(a.Y36(ci),a.Y36(k),a.Y36(it.S$))},m.\u0275dir=a.lG2({type:m,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(h,M){1&h&&a.NdJ("click",function(K){return M.onClick(K.button,K.ctrlKey,K.shiftKey,K.altKey,K.metaKey)}),2&h&&a.uIk("target",M.target)("href",M.href,a.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[a.TTD]}),m})();function ar(m){return""===m||!!m}class Er{}class Is{preload(d,h){return h().pipe((0,tt.K)(()=>(0,q.of)(null)))}}class Vs{preload(d,h){return(0,q.of)(null)}}let wa=(()=>{class m{constructor(h,M,S,K){this.router=h,this.injector=S,this.preloadingStrategy=K,this.loader=new Ji(S,M,pt=>h.triggerEvent(new Dt(pt)),pt=>h.triggerEvent(new Sn(pt)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ye.h)(h=>h instanceof Et),(0,ke.b)(()=>this.preload())).subscribe(()=>{})}preload(){const h=this.injector.get(a.h0i);return this.processRoutes(h,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(h,M){const S=[];for(const K of M)if(K.loadChildren&&!K.canLoad&&K._loadedConfig){const de=K._loadedConfig;S.push(this.processRoutes(de.module,de.routes))}else K.loadChildren&&!K.canLoad?S.push(this.preloadConfig(h,K)):K.children&&S.push(this.processRoutes(h,K.children));return(0,oe.D)(S).pipe((0,_t.J)(),(0,le.U)(K=>{}))}preloadConfig(h,M){return this.preloadingStrategy.preload(M,()=>(M._loadedConfig?(0,q.of)(M._loadedConfig):this.loader.load(h.injector,M)).pipe((0,ve.zg)(K=>(M._loadedConfig=K,this.processRoutes(K.module,K.routes)))))}}return m.\u0275fac=function(h){return new(h||m)(a.LFG(ci),a.LFG(a.Sil),a.LFG(a.zs3),a.LFG(Er))},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})(),ns=(()=>{class m{constructor(h,M,S={}){this.router=h,this.viewportScroller=M,this.options=S,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},S.scrollPositionRestoration=S.scrollPositionRestoration||"disabled",S.anchorScrolling=S.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(h=>{h instanceof ot?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=h.navigationTrigger,this.restoredId=h.restoredState?h.restoredState.navigationId:0):h instanceof Et&&(this.lastId=h.id,this.scheduleScrollEvent(h,this.router.parseUrl(h.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(h=>{h instanceof z&&(h.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(h.position):h.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(h.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(h,M){this.router.triggerEvent(new z(h,"popstate"===this.lastSource?this.store[this.restoredId]:null,M))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return m.\u0275fac=function(h){a.$Z()},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})();const Ro=new a.OlP("ROUTER_CONFIGURATION"),zr=new a.OlP("ROUTER_FORROOT_GUARD"),Sr=[it.Ye,{provide:ht,useClass:It},{provide:ci,useFactory:function Tr(m,d,h,M,S,K,de={},Oe,pt){const Ht=new ci(null,m,d,h,M,S,nt(K));return Oe&&(Ht.urlHandlingStrategy=Oe),pt&&(Ht.routeReuseStrategy=pt),function ec(m,d){m.errorHandler&&(d.errorHandler=m.errorHandler),m.malformedUriErrorHandler&&(d.malformedUriErrorHandler=m.malformedUriErrorHandler),m.onSameUrlNavigation&&(d.onSameUrlNavigation=m.onSameUrlNavigation),m.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=m.paramsInheritanceStrategy),m.relativeLinkResolution&&(d.relativeLinkResolution=m.relativeLinkResolution),m.urlUpdateStrategy&&(d.urlUpdateStrategy=m.urlUpdateStrategy),m.canceledNavigationResolution&&(d.canceledNavigationResolution=m.canceledNavigationResolution)}(de,Ht),de.enableTracing&&Ht.events.subscribe(wn=>{var tn,In;null===(tn=console.group)||void 0===tn||tn.call(console,`Router Event: ${wn.constructor.name}`),console.log(wn.toString()),console.log(wn),null===(In=console.groupEnd)||void 0===In||In.call(console)}),Ht},deps:[ht,Ei,it.Ye,a.zs3,a.Sil,pi,Ro,[class Xn{},new a.FiY],[class sn{},new a.FiY]]},Ei,{provide:k,useFactory:function Ns(m){return m.routerState.root},deps:[ci]},wa,Vs,Is,{provide:Ro,useValue:{enableTracing:!1}}];function Ls(){return new a.PXZ("Router",ci)}let Hs=(()=>{class m{constructor(h,M){}static forRoot(h,M){return{ngModule:m,providers:[Sr,yr(h),{provide:zr,useFactory:lr,deps:[[ci,new a.FiY,new a.tp0]]},{provide:Ro,useValue:M||{}},{provide:it.S$,useFactory:Da,deps:[it.lw,[new a.tBr(it.mr),new a.FiY],Ro]},{provide:ns,useFactory:cr,deps:[ci,it.EM,Ro]},{provide:Er,useExisting:M&&M.preloadingStrategy?M.preloadingStrategy:Vs},{provide:a.PXZ,multi:!0,useFactory:Ls},[xr,{provide:a.ip1,multi:!0,useFactory:Ea,deps:[xr]},{provide:ur,useFactory:za,deps:[xr]},{provide:a.tb,multi:!0,useExisting:ur}]]}}static forChild(h){return{ngModule:m,providers:[yr(h)]}}}return m.\u0275fac=function(h){return new(h||m)(a.LFG(zr,8),a.LFG(ci,8))},m.\u0275mod=a.oAB({type:m}),m.\u0275inj=a.cJS({}),m})();function cr(m,d,h){return h.scrollOffset&&d.setOffset(h.scrollOffset),new ns(m,d,h)}function Da(m,d,h={}){return h.useHash?new it.Do(m,d):new it.b0(m,d)}function lr(m){return"guarded"}function yr(m){return[{provide:a.deG,multi:!0,useValue:m},{provide:pi,multi:!0,useValue:m}]}let xr=(()=>{class m{constructor(h){this.injector=h,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new ye.xQ}appInitializer(){return this.injector.get(it.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let M=null;const S=new Promise(Oe=>M=Oe),K=this.injector.get(ci),de=this.injector.get(Ro);return"disabled"===de.initialNavigation?(K.setUpLocationChangeListener(),M(!0)):"enabled"===de.initialNavigation||"enabledBlocking"===de.initialNavigation?(K.hooks.afterPreactivation=()=>this.initNavigation?(0,q.of)(null):(this.initNavigation=!0,M(!0),this.resultOfPreactivationDone),K.initialNavigation()):M(!0),S})}bootstrapListener(h){const M=this.injector.get(Ro),S=this.injector.get(wa),K=this.injector.get(ns),de=this.injector.get(ci),Oe=this.injector.get(a.z2F);h===Oe.components[0]&&(("enabledNonBlocking"===M.initialNavigation||void 0===M.initialNavigation)&&de.initialNavigation(),S.setUpPreloading(),K.init(),de.resetRootComponentType(Oe.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return m.\u0275fac=function(h){return new(h||m)(a.LFG(a.zs3))},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})();function Ea(m){return m.appInitializer.bind(m)}function za(m){return m.bootstrapListener.bind(m)}const ur=new a.OlP("Router Initializer")},9193:(yt,be,p)=>{p.d(be,{V65:()=>mn,ud1:()=>qt,Hkd:()=>jt,XuQ:()=>Pn,bBn:()=>ei,BOg:()=>st,Rfq:()=>Ot,yQU:()=>rn,U2Q:()=>Wt,UKj:()=>kn,BXH:()=>k,OYp:()=>bi,eLU:()=>ai,x0x:()=>Vi,Ej7:()=>Yn,VWu:()=>qi,rMt:()=>Jt,vEg:()=>mr,RIp:()=>ns,RU0:()=>pi,M8e:()=>gr,ssy:()=>m,Z5F:()=>yr,iUK:()=>Ht,LJh:()=>Ui,NFG:()=>To,WH2:()=>Us,UTl:()=>vc,nrZ:()=>Vr,gvV:()=>Fc,d2H:()=>Tc,LBP:()=>qs,_ry:()=>Ic,eFY:()=>Qc,sZJ:()=>e1,np6:()=>ml,UY$:()=>v8,w1L:()=>Nr,rHg:()=>Il,v6v:()=>v1,cN2:()=>Cs,FsU:()=>Zl,s_U:()=>p6,TSL:()=>P1,uIz:()=>wr,d_$:()=>Dr});const mn={name:"bars",theme:"outline",icon:''},qt={name:"calendar",theme:"outline",icon:''},jt={name:"caret-down",theme:"fill",icon:''},Pn={name:"caret-down",theme:"outline",icon:''},ei={name:"caret-up",theme:"fill",icon:''},rn={name:"check-circle",theme:"outline",icon:''},Wt={name:"check",theme:"outline",icon:''},k={name:"close-circle",theme:"fill",icon:''},st={name:"caret-up",theme:"outline",icon:''},Ot={name:"check-circle",theme:"fill",icon:''},ai={name:"close",theme:"outline",icon:''},kn={name:"clock-circle",theme:"outline",icon:''},bi={name:"close-circle",theme:"outline",icon:''},Vi={name:"copy",theme:"outline",icon:''},Yn={name:"dashboard",theme:"outline",icon:''},Jt={name:"double-right",theme:"outline",icon:''},qi={name:"double-left",theme:"outline",icon:''},pi={name:"ellipsis",theme:"outline",icon:''},mr={name:"down",theme:"outline",icon:''},gr={name:"exclamation-circle",theme:"fill",icon:''},ns={name:"edit",theme:"outline",icon:''},yr={name:"eye",theme:"outline",icon:''},m={name:"exclamation-circle",theme:"outline",icon:''},Ht={name:"file",theme:"fill",icon:''},Ui={name:"file",theme:"outline",icon:''},To={name:"filter",theme:"fill",icon:''},Us={name:"form",theme:"outline",icon:''},vc={name:"info-circle",theme:"fill",icon:''},Vr={name:"info-circle",theme:"outline",icon:''},Tc={name:"loading",theme:"outline",icon:''},Fc={name:"left",theme:"outline",icon:''},Ic={name:"menu-unfold",theme:"outline",icon:''},qs={name:"menu-fold",theme:"outline",icon:''},Qc={name:"paper-clip",theme:"outline",icon:''},e1={name:"question-circle",theme:"outline",icon:''},ml={name:"right",theme:"outline",icon:''},v8={name:"rotate-left",theme:"outline",icon:''},Nr={name:"rotate-right",theme:"outline",icon:''},v1={name:"star",theme:"fill",icon:''},Il={name:"search",theme:"outline",icon:''},Cs={name:"swap-right",theme:"outline",icon:''},Zl={name:"up",theme:"outline",icon:''},p6={name:"upload",theme:"outline",icon:''},P1={name:"vertical-align-top",theme:"outline",icon:''},wr={name:"zoom-in",theme:"outline",icon:''},Dr={name:"zoom-out",theme:"outline",icon:''}},8076:(yt,be,p)=>{p.d(be,{J_:()=>oe,c8:()=>W,YK:()=>I,LU:()=>R,Rq:()=>ye,mF:()=>ee,$C:()=>Ye});var a=p(1777);let s=(()=>{class ze{}return ze.SLOW="0.3s",ze.BASE="0.2s",ze.FAST="0.1s",ze})(),G=(()=>{class ze{}return ze.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",ze.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",ze.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",ze.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",ze.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",ze.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",ze.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",ze.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",ze.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",ze.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",ze.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",ze.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",ze.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",ze.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)",ze})();const oe=(0,a.X$)("collapseMotion",[(0,a.SB)("expanded",(0,a.oB)({height:"*"})),(0,a.SB)("collapsed",(0,a.oB)({height:0,overflow:"hidden"})),(0,a.SB)("hidden",(0,a.oB)({height:0,overflow:"hidden",borderTopWidth:"0"})),(0,a.eR)("expanded => collapsed",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`)),(0,a.eR)("expanded => hidden",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`)),(0,a.eR)("collapsed => expanded",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`)),(0,a.eR)("hidden => expanded",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`))]),W=((0,a.X$)("treeCollapseMotion",[(0,a.eR)("* => *",[(0,a.IO)("nz-tree-node:leave,nz-tree-builtin-node:leave",[(0,a.oB)({overflow:"hidden"}),(0,a.EY)(0,[(0,a.jt)(`150ms ${G.EASE_IN_OUT}`,(0,a.oB)({height:0,opacity:0,"padding-bottom":0}))])],{optional:!0}),(0,a.IO)("nz-tree-node:enter,nz-tree-builtin-node:enter",[(0,a.oB)({overflow:"hidden",height:0,opacity:0,"padding-bottom":0}),(0,a.EY)(0,[(0,a.jt)(`150ms ${G.EASE_IN_OUT}`,(0,a.oB)({overflow:"hidden",height:"*",opacity:"*","padding-bottom":"*"}))])],{optional:!0})])]),(0,a.X$)("fadeMotion",[(0,a.eR)(":enter",[(0,a.oB)({opacity:0}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({opacity:1}))]),(0,a.eR)(":leave",[(0,a.oB)({opacity:1}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({opacity:0}))])]),(0,a.X$)("helpMotion",[(0,a.eR)(":enter",[(0,a.oB)({opacity:0,transform:"translateY(-5px)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_OUT}`,(0,a.oB)({opacity:1,transform:"translateY(0)"}))]),(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"translateY(0)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_OUT}`,(0,a.oB)({opacity:0,transform:"translateY(-5px)"}))])])),I=(0,a.X$)("moveUpMotion",[(0,a.eR)("* => enter",[(0,a.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),(0,a.eR)("* => leave",[(0,a.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),R=(0,a.X$)("notificationMotion",[(0,a.SB)("enterRight",(0,a.oB)({opacity:1,transform:"translateX(0)"})),(0,a.eR)("* => enterRight",[(0,a.oB)({opacity:0,transform:"translateX(5%)"}),(0,a.jt)("100ms linear")]),(0,a.SB)("enterLeft",(0,a.oB)({opacity:1,transform:"translateX(0)"})),(0,a.eR)("* => enterLeft",[(0,a.oB)({opacity:0,transform:"translateX(-5%)"}),(0,a.jt)("100ms linear")]),(0,a.SB)("leave",(0,a.oB)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),(0,a.eR)("* => leave",[(0,a.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,a.jt)("100ms linear")])]),H=`${s.BASE} ${G.EASE_OUT_QUINT}`,B=`${s.BASE} ${G.EASE_IN_QUINT}`,ee=(0,a.X$)("slideMotion",[(0,a.SB)("void",(0,a.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,a.SB)("enter",(0,a.oB)({opacity:1,transform:"scaleY(1)"})),(0,a.eR)("void => *",[(0,a.jt)(H)]),(0,a.eR)("* => void",[(0,a.jt)(B)])]),ye=(0,a.X$)("slideAlertMotion",[(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_OUT_CIRC}`,(0,a.oB)({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),Ye=(0,a.X$)("zoomBigMotion",[(0,a.eR)("void => active",[(0,a.oB)({opacity:0,transform:"scale(0.8)"}),(0,a.jt)(`${s.BASE} ${G.EASE_OUT_CIRC}`,(0,a.oB)({opacity:1,transform:"scale(1)"}))]),(0,a.eR)("active => void",[(0,a.oB)({opacity:1,transform:"scale(1)"}),(0,a.jt)(`${s.BASE} ${G.EASE_IN_OUT_CIRC}`,(0,a.oB)({opacity:0,transform:"scale(0.8)"}))])]);(0,a.X$)("zoomBadgeMotion",[(0,a.eR)(":enter",[(0,a.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_OUT_BACK}`,(0,a.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_BACK}`,(0,a.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])])},8693:(yt,be,p)=>{p.d(be,{o2:()=>G,M8:()=>oe,uf:()=>s,Bh:()=>a});const a=["success","processing","error","default","warning"],s=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];function G(q){return-1!==s.indexOf(q)}function oe(q){return-1!==a.indexOf(q)}},9439:(yt,be,p)=>{p.d(be,{jY:()=>W,oS:()=>I});var a=p(5e3),s=p(8929),G=p(2198),oe=p(7604);const q=new a.OlP("nz-config"),_=function(R){return void 0!==R};let W=(()=>{class R{constructor(B){this.configUpdated$=new s.xQ,this.config=B||{}}getConfig(){return this.config}getConfigForComponent(B){return this.config[B]}getConfigChangeEventForComponent(B){return this.configUpdated$.pipe((0,G.h)(ee=>ee===B),(0,oe.h)(void 0))}set(B,ee){this.config[B]=Object.assign(Object.assign({},this.config[B]),ee),this.configUpdated$.next(B)}}return R.\u0275fac=function(B){return new(B||R)(a.LFG(q,8))},R.\u0275prov=a.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();function I(){return function(H,B,ee){const ye=`$$__zorroConfigDecorator__${B}`;return Object.defineProperty(H,ye,{configurable:!0,writable:!0,enumerable:!1}),{get(){var Ye,Fe;const ze=(null==ee?void 0:ee.get)?ee.get.bind(this)():this[ye],_e=((null===(Ye=this.propertyAssignCounter)||void 0===Ye?void 0:Ye[B])||0)>1,vt=null===(Fe=this.nzConfigService.getConfigForComponent(this._nzModuleName))||void 0===Fe?void 0:Fe[B];return _e&&_(ze)?ze:_(vt)?vt:ze},set(Ye){this.propertyAssignCounter=this.propertyAssignCounter||{},this.propertyAssignCounter[B]=(this.propertyAssignCounter[B]||0)+1,(null==ee?void 0:ee.set)?ee.set.bind(this)(Ye):this[ye]=Ye},configurable:!0,enumerable:!0}}}},4351:(yt,be,p)=>{p.d(be,{N:()=>a});const a={isTestMode:!1}},6947:(yt,be,p)=>{p.d(be,{Bq:()=>oe,ZK:()=>W});var a=p(5e3),s=p(4351);const G={},oe="[NG-ZORRO]:";const W=(...H)=>function _(H,...B){(s.N.isTestMode||(0,a.X6Q)()&&function q(...H){const B=H.reduce((ee,ye)=>ee+ye.toString(),"");return!G[B]&&(G[B]=!0,!0)}(...B))&&H(...B)}((...B)=>console.warn(oe,...B),...H)},4832:(yt,be,p)=>{p.d(be,{P:()=>I,g:()=>R});var a=p(9808),s=p(5e3),G=p(655),oe=p(3191),q=p(6360),_=p(1721);const W="nz-animate-disabled";let I=(()=>{class H{constructor(ee,ye,Ye){this.element=ee,this.renderer=ye,this.animationType=Ye,this.nzNoAnimation=!1}ngOnChanges(){this.updateClass()}ngAfterViewInit(){this.updateClass()}updateClass(){const ee=(0,oe.fI)(this.element);!ee||(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(ee,W):this.renderer.removeClass(ee,W))}}return H.\u0275fac=function(ee){return new(ee||H)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(q.Qb,8))},H.\u0275dir=s.lG2({type:H,selectors:[["","nzNoAnimation",""]],inputs:{nzNoAnimation:"nzNoAnimation"},exportAs:["nzNoAnimation"],features:[s.TTD]}),(0,G.gn)([(0,_.yF)()],H.prototype,"nzNoAnimation",void 0),H})(),R=(()=>{class H{}return H.\u0275fac=function(ee){return new(ee||H)},H.\u0275mod=s.oAB({type:H}),H.\u0275inj=s.cJS({imports:[[a.ez]]}),H})()},969:(yt,be,p)=>{p.d(be,{T:()=>q,f:()=>G});var a=p(9808),s=p(5e3);let G=(()=>{class _{constructor(I,R){this.viewContainer=I,this.templateRef=R,this.embeddedViewRef=null,this.context=new oe,this.nzStringTemplateOutletContext=null,this.nzStringTemplateOutlet=null}static ngTemplateContextGuard(I,R){return!0}recreateView(){this.viewContainer.clear();const I=this.nzStringTemplateOutlet instanceof s.Rgc;this.embeddedViewRef=this.viewContainer.createEmbeddedView(I?this.nzStringTemplateOutlet:this.templateRef,I?this.nzStringTemplateOutletContext:this.context)}updateContext(){const R=this.nzStringTemplateOutlet instanceof s.Rgc?this.nzStringTemplateOutletContext:this.context,H=this.embeddedViewRef.context;if(R)for(const B of Object.keys(R))H[B]=R[B]}ngOnChanges(I){const{nzStringTemplateOutletContext:R,nzStringTemplateOutlet:H}=I;H&&(this.context.$implicit=H.currentValue),(()=>{let ye=!1;if(H)if(H.firstChange)ye=!0;else{const _e=H.currentValue instanceof s.Rgc;ye=H.previousValue instanceof s.Rgc||_e}return R&&(ze=>{const _e=Object.keys(ze.previousValue||{}),vt=Object.keys(ze.currentValue||{});if(_e.length===vt.length){for(const Je of vt)if(-1===_e.indexOf(Je))return!0;return!1}return!0})(R)||ye})()?this.recreateView():this.updateContext()}}return _.\u0275fac=function(I){return new(I||_)(s.Y36(s.s_b),s.Y36(s.Rgc))},_.\u0275dir=s.lG2({type:_,selectors:[["","nzStringTemplateOutlet",""]],inputs:{nzStringTemplateOutletContext:"nzStringTemplateOutletContext",nzStringTemplateOutlet:"nzStringTemplateOutlet"},exportAs:["nzStringTemplateOutlet"],features:[s.TTD]}),_})();class oe{}let q=(()=>{class _{}return _.\u0275fac=function(I){return new(I||_)},_.\u0275mod=s.oAB({type:_}),_.\u0275inj=s.cJS({imports:[[a.ez]]}),_})()},6950:(yt,be,p)=>{p.d(be,{Ek:()=>I,hQ:()=>ye,e4:()=>Ye,yW:()=>W,d_:()=>ee});var a=p(655),s=p(2845),G=p(5e3),oe=p(7625),q=p(4090),_=p(1721);const W={top:new s.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new s.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new s.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new s.tR({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new s.tR({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new s.tR({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new s.tR({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new s.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new s.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new s.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new s.tR({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new s.tR({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new s.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new s.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},I=[W.top,W.right,W.bottom,W.left];function ee(Fe){for(const ze in W)if(Fe.connectionPair.originX===W[ze].originX&&Fe.connectionPair.originY===W[ze].originY&&Fe.connectionPair.overlayX===W[ze].overlayX&&Fe.connectionPair.overlayY===W[ze].overlayY)return ze}new s.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),new s.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"}),new s.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"top"});let ye=(()=>{class Fe{constructor(_e,vt){this.cdkConnectedOverlay=_e,this.nzDestroyService=vt,this.nzArrowPointAtCenter=!1,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop",this.cdkConnectedOverlay.positionChange.pipe((0,oe.R)(this.nzDestroyService)).subscribe(Je=>{this.nzArrowPointAtCenter&&this.updateArrowPosition(Je)})}updateArrowPosition(_e){const vt=this.getOriginRect(),Je=ee(_e);let zt=0,ut=0;"topLeft"===Je||"bottomLeft"===Je?zt=vt.width/2-14:"topRight"===Je||"bottomRight"===Je?zt=-(vt.width/2-14):"leftTop"===Je||"rightTop"===Je?ut=vt.height/2-10:("leftBottom"===Je||"rightBottom"===Je)&&(ut=-(vt.height/2-10)),(this.cdkConnectedOverlay.offsetX!==zt||this.cdkConnectedOverlay.offsetY!==ut)&&(this.cdkConnectedOverlay.offsetY=ut,this.cdkConnectedOverlay.offsetX=zt,this.cdkConnectedOverlay.overlayRef.updatePosition())}getFlexibleConnectedPositionStrategyOrigin(){return this.cdkConnectedOverlay.origin instanceof s.xu?this.cdkConnectedOverlay.origin.elementRef:this.cdkConnectedOverlay.origin}getOriginRect(){const _e=this.getFlexibleConnectedPositionStrategyOrigin();if(_e instanceof G.SBq)return _e.nativeElement.getBoundingClientRect();if(_e instanceof Element)return _e.getBoundingClientRect();const vt=_e.width||0,Je=_e.height||0;return{top:_e.y,bottom:_e.y+Je,left:_e.x,right:_e.x+vt,height:Je,width:vt}}}return Fe.\u0275fac=function(_e){return new(_e||Fe)(G.Y36(s.pI),G.Y36(q.kn))},Fe.\u0275dir=G.lG2({type:Fe,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],inputs:{nzArrowPointAtCenter:"nzArrowPointAtCenter"},exportAs:["nzConnectedOverlay"],features:[G._Bn([q.kn])]}),(0,a.gn)([(0,_.yF)()],Fe.prototype,"nzArrowPointAtCenter",void 0),Fe})(),Ye=(()=>{class Fe{}return Fe.\u0275fac=function(_e){return new(_e||Fe)},Fe.\u0275mod=G.oAB({type:Fe}),Fe.\u0275inj=G.cJS({}),Fe})()},4090:(yt,be,p)=>{p.d(be,{G_:()=>Je,r3:()=>Ie,kn:()=>$e,rI:()=>ee,KV:()=>Ye,WV:()=>zt,ow:()=>ut});var a=p(5e3),s=p(8929),G=p(7138),oe=p(537),q=p(7625),_=p(4850),W=p(1059),I=p(5778),R=p(4351),H=p(5113);const B=()=>{};let ee=(()=>{class Se{constructor(J,fe){this.ngZone=J,this.rendererFactory2=fe,this.resizeSource$=new s.xQ,this.listeners=0,this.disposeHandle=B,this.handler=()=>{this.ngZone.run(()=>{this.resizeSource$.next()})},this.renderer=this.rendererFactory2.createRenderer(null,null)}ngOnDestroy(){this.handler=B}subscribe(){return this.registerListener(),this.resizeSource$.pipe((0,G.e)(16),(0,oe.x)(()=>this.unregisterListener()))}unsubscribe(){this.unregisterListener()}registerListener(){0===this.listeners&&this.ngZone.runOutsideAngular(()=>{this.disposeHandle=this.renderer.listen("window","resize",this.handler)}),this.listeners+=1}unregisterListener(){this.listeners-=1,0===this.listeners&&(this.disposeHandle(),this.disposeHandle=B)}}return Se.\u0275fac=function(J){return new(J||Se)(a.LFG(a.R0b),a.LFG(a.FYo))},Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();const ye=new Map;let Ye=(()=>{class Se{constructor(){this._singletonRegistry=new Map}get singletonRegistry(){return R.N.isTestMode?ye:this._singletonRegistry}registerSingletonWithKey(J,fe){const he=this.singletonRegistry.has(J),te=he?this.singletonRegistry.get(J):this.withNewTarget(fe);he||this.singletonRegistry.set(J,te)}getSingletonWithKey(J){return this.singletonRegistry.has(J)?this.singletonRegistry.get(J).target:null}withNewTarget(J){return{target:J}}}return Se.\u0275fac=function(J){return new(J||Se)},Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();var Je=(()=>{return(Se=Je||(Je={})).xxl="xxl",Se.xl="xl",Se.lg="lg",Se.md="md",Se.sm="sm",Se.xs="xs",Je;var Se})();const zt={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},ut={xs:"(max-width: 479.98px)",sm:"(max-width: 575.98px)",md:"(max-width: 767.98px)",lg:"(max-width: 991.98px)",xl:"(max-width: 1199.98px)",xxl:"(max-width: 1599.98px)"};let Ie=(()=>{class Se{constructor(J,fe){this.resizeService=J,this.mediaMatcher=fe,this.destroy$=new s.xQ,this.resizeService.subscribe().pipe((0,q.R)(this.destroy$)).subscribe(()=>{})}ngOnDestroy(){this.destroy$.next()}subscribe(J,fe){if(fe){const he=()=>this.matchMedia(J,!0);return this.resizeService.subscribe().pipe((0,_.U)(he),(0,W.O)(he()),(0,I.x)((te,le)=>te[0]===le[0]),(0,_.U)(te=>te[1]))}{const he=()=>this.matchMedia(J);return this.resizeService.subscribe().pipe((0,_.U)(he),(0,W.O)(he()),(0,I.x)())}}matchMedia(J,fe){let he=Je.md;const te={};return Object.keys(J).map(le=>{const ie=le,Ue=this.mediaMatcher.matchMedia(zt[ie]).matches;te[le]=Ue,Ue&&(he=ie)}),fe?[he,te]:he}}return Se.\u0275fac=function(J){return new(J||Se)(a.LFG(ee),a.LFG(H.vx))},Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),$e=(()=>{class Se extends s.xQ{ngOnDestroy(){this.next(),this.complete()}}return Se.\u0275fac=function(){let Xe;return function(fe){return(Xe||(Xe=a.n5z(Se)))(fe||Se)}}(),Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac}),Se})()},1721:(yt,be,p)=>{p.d(be,{yF:()=>vt,Rn:()=>zt,cO:()=>_,pW:()=>Ie,ov:()=>P,kK:()=>R,DX:()=>I,ui:()=>je,tI:()=>te,D8:()=>x,Sm:()=>ke,sw:()=>ye,WX:()=>Fe,YM:()=>tt,He:()=>Ye});var a=p(3191),s=p(6947),G=p(8929),oe=p(2986);function _(j,me){if(!j||!me||j.length!==me.length)return!1;const He=j.length;for(let Ge=0;GeYe(me,j))}function Ie(j){if(!j.getClientRects().length)return{top:0,left:0};const me=j.getBoundingClientRect(),He=j.ownerDocument.defaultView;return{top:me.top+He.pageYOffset,left:me.left+He.pageXOffset}}function te(j){return!!j&&"function"==typeof j.then&&"function"==typeof j.catch}function je(j){return"number"==typeof j&&isFinite(j)}function tt(j,me){return Math.round(j*Math.pow(10,me))/Math.pow(10,me)}function ke(j,me=0){return j.reduce((He,Ge)=>He+Ge,me)}let cn,Mn;"undefined"!=typeof window&&window;const qe={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function x(j="vertical",me="ant"){if("undefined"==typeof document||"undefined"==typeof window)return 0;const He="vertical"===j;if(He&&cn)return cn;if(!He&&Mn)return Mn;const Ge=document.createElement("div");Object.keys(qe).forEach(Me=>{Ge.style[Me]=qe[Me]}),Ge.className=`${me}-hide-scrollbar scroll-div-append-to-body`,He?Ge.style.overflowY="scroll":Ge.style.overflowX="scroll",document.body.appendChild(Ge);let Le=0;return He?(Le=Ge.offsetWidth-Ge.clientWidth,cn=Le):(Le=Ge.offsetHeight-Ge.clientHeight,Mn=Le),document.body.removeChild(Ge),Le}function P(){const j=new G.xQ;return Promise.resolve().then(()=>j.next()),j.pipe((0,oe.q)(1))}},4147:(yt,be,p)=>{p.d(be,{Vz:()=>ve,SQ:()=>Ue,BL:()=>Qe});var a=p(655),s=p(1159),G=p(2845),oe=p(7429),q=p(9808),_=p(5e3),W=p(8929),I=p(7625),R=p(9439),H=p(1721),B=p(5664),ee=p(226),ye=p(4832),Ye=p(969),Fe=p(647);const ze=["drawerTemplate"];function _e(it,St){if(1&it){const ot=_.EpF();_.TgZ(0,"div",11),_.NdJ("click",function(){return _.CHM(ot),_.oxw(2).maskClick()}),_.qZA()}if(2&it){const ot=_.oxw(2);_.Q6J("ngStyle",ot.nzMaskStyle)}}function vt(it,St){if(1&it&&(_.ynx(0),_._UZ(1,"i",18),_.BQk()),2&it){const ot=St.$implicit;_.xp6(1),_.Q6J("nzType",ot)}}function Je(it,St){if(1&it){const ot=_.EpF();_.TgZ(0,"button",16),_.NdJ("click",function(){return _.CHM(ot),_.oxw(3).closeClick()}),_.YNc(1,vt,2,1,"ng-container",17),_.qZA()}if(2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("nzStringTemplateOutlet",ot.nzCloseIcon)}}function zt(it,St){if(1&it&&(_.ynx(0),_._UZ(1,"div",20),_.BQk()),2&it){const ot=_.oxw(4);_.xp6(1),_.Q6J("innerHTML",ot.nzTitle,_.oJD)}}function ut(it,St){if(1&it&&(_.TgZ(0,"div",19),_.YNc(1,zt,2,1,"ng-container",17),_.qZA()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("nzStringTemplateOutlet",ot.nzTitle)}}function Ie(it,St){if(1&it&&(_.TgZ(0,"div",12),_.TgZ(1,"div",13),_.YNc(2,Je,2,1,"button",14),_.YNc(3,ut,2,1,"div",15),_.qZA(),_.qZA()),2&it){const ot=_.oxw(2);_.ekj("ant-drawer-header-close-only",!ot.nzTitle),_.xp6(2),_.Q6J("ngIf",ot.nzClosable),_.xp6(1),_.Q6J("ngIf",ot.nzTitle)}}function $e(it,St){}function et(it,St){1&it&&_.GkF(0)}function Se(it,St){if(1&it&&(_.ynx(0),_.YNc(1,et,1,0,"ng-container",22),_.BQk()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("ngTemplateOutlet",ot.nzContent)("ngTemplateOutletContext",ot.templateContext)}}function Xe(it,St){if(1&it&&(_.ynx(0),_.YNc(1,Se,2,2,"ng-container",21),_.BQk()),2&it){const ot=_.oxw(2);_.xp6(1),_.Q6J("ngIf",ot.isTemplateRef(ot.nzContent))}}function J(it,St){}function fe(it,St){if(1&it&&(_.ynx(0),_.YNc(1,J,0,0,"ng-template",23),_.BQk()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("ngTemplateOutlet",ot.contentFromContentChild)}}function he(it,St){if(1&it&&_.YNc(0,fe,2,1,"ng-container",21),2&it){const ot=_.oxw(2);_.Q6J("ngIf",ot.contentFromContentChild&&(ot.isOpen||ot.inAnimation))}}function te(it,St){if(1&it&&(_.ynx(0),_._UZ(1,"div",20),_.BQk()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("innerHTML",ot.nzFooter,_.oJD)}}function le(it,St){if(1&it&&(_.TgZ(0,"div",24),_.YNc(1,te,2,1,"ng-container",17),_.qZA()),2&it){const ot=_.oxw(2);_.xp6(1),_.Q6J("nzStringTemplateOutlet",ot.nzFooter)}}function ie(it,St){if(1&it&&(_.TgZ(0,"div",1),_.YNc(1,_e,1,1,"div",2),_.TgZ(2,"div"),_.TgZ(3,"div",3),_.TgZ(4,"div",4),_.YNc(5,Ie,4,4,"div",5),_.TgZ(6,"div",6),_.YNc(7,$e,0,0,"ng-template",7),_.YNc(8,Xe,2,1,"ng-container",8),_.YNc(9,he,1,1,"ng-template",null,9,_.W1O),_.qZA(),_.YNc(11,le,2,1,"div",10),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&it){const ot=_.MAs(10),Et=_.oxw();_.Udp("transform",Et.offsetTransform)("transition",Et.placementChanging?"none":null)("z-index",Et.nzZIndex),_.ekj("ant-drawer-rtl","rtl"===Et.dir)("ant-drawer-open",Et.isOpen)("no-mask",!Et.nzMask)("ant-drawer-top","top"===Et.nzPlacement)("ant-drawer-bottom","bottom"===Et.nzPlacement)("ant-drawer-right","right"===Et.nzPlacement)("ant-drawer-left","left"===Et.nzPlacement),_.Q6J("nzNoAnimation",Et.nzNoAnimation),_.xp6(1),_.Q6J("ngIf",Et.nzMask),_.xp6(1),_.Gre("ant-drawer-content-wrapper ",Et.nzWrapClassName,""),_.Udp("width",Et.width)("height",Et.height)("transform",Et.transform)("transition",Et.placementChanging?"none":null),_.xp6(2),_.Udp("height",Et.isLeftOrRight?"100%":null),_.xp6(1),_.Q6J("ngIf",Et.nzTitle||Et.nzClosable),_.xp6(1),_.Q6J("ngStyle",Et.nzBodyStyle),_.xp6(2),_.Q6J("ngIf",Et.nzContent)("ngIfElse",ot),_.xp6(3),_.Q6J("ngIf",Et.nzFooter)}}let Ue=(()=>{class it{constructor(ot){this.templateRef=ot}}return it.\u0275fac=function(ot){return new(ot||it)(_.Y36(_.Rgc))},it.\u0275dir=_.lG2({type:it,selectors:[["","nzDrawerContent",""]],exportAs:["nzDrawerContent"]}),it})();class je{}let ve=(()=>{class it extends je{constructor(ot,Et,Zt,mn,gn,Ut,un,_n,Cn,Dt,Sn){super(),this.cdr=ot,this.document=Et,this.nzConfigService=Zt,this.renderer=mn,this.overlay=gn,this.injector=Ut,this.changeDetectorRef=un,this.focusTrapFactory=_n,this.viewContainerRef=Cn,this.overlayKeyboardDispatcher=Dt,this.directionality=Sn,this._nzModuleName="drawer",this.nzCloseIcon="close",this.nzClosable=!0,this.nzMaskClosable=!0,this.nzMask=!0,this.nzCloseOnNavigation=!0,this.nzNoAnimation=!1,this.nzKeyboard=!0,this.nzPlacement="right",this.nzMaskStyle={},this.nzBodyStyle={},this.nzWidth=256,this.nzHeight=256,this.nzZIndex=1e3,this.nzOffsetX=0,this.nzOffsetY=0,this.componentInstance=null,this.nzOnViewInit=new _.vpe,this.nzOnClose=new _.vpe,this.nzVisibleChange=new _.vpe,this.destroy$=new W.xQ,this.placementChanging=!1,this.placementChangeTimeoutId=-1,this.isOpen=!1,this.inAnimation=!1,this.templateContext={$implicit:void 0,drawerRef:this},this.nzAfterOpen=new W.xQ,this.nzAfterClose=new W.xQ,this.nzDirection=void 0,this.dir="ltr"}set nzVisible(ot){this.isOpen=ot}get nzVisible(){return this.isOpen}get offsetTransform(){if(!this.isOpen||this.nzOffsetX+this.nzOffsetY===0)return null;switch(this.nzPlacement){case"left":return`translateX(${this.nzOffsetX}px)`;case"right":return`translateX(-${this.nzOffsetX}px)`;case"top":return`translateY(${this.nzOffsetY}px)`;case"bottom":return`translateY(-${this.nzOffsetY}px)`}}get transform(){if(this.isOpen)return null;switch(this.nzPlacement){case"left":return"translateX(-100%)";case"right":return"translateX(100%)";case"top":return"translateY(-100%)";case"bottom":return"translateY(100%)"}}get width(){return this.isLeftOrRight?(0,H.WX)(this.nzWidth):null}get height(){return this.isLeftOrRight?null:(0,H.WX)(this.nzHeight)}get isLeftOrRight(){return"left"===this.nzPlacement||"right"===this.nzPlacement}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}isTemplateRef(ot){return ot instanceof _.Rgc}ngOnInit(){var ot;null===(ot=this.directionality.change)||void 0===ot||ot.pipe((0,I.R)(this.destroy$)).subscribe(Et=>{this.dir=Et,this.cdr.detectChanges()}),this.dir=this.nzDirection||this.directionality.value,this.attachOverlay(),this.updateOverlayStyle(),this.updateBodyOverflow(),this.templateContext={$implicit:this.nzContentParams,drawerRef:this},this.changeDetectorRef.detectChanges()}ngAfterViewInit(){this.attachBodyContent(),this.nzOnViewInit.observers.length&&setTimeout(()=>{this.nzOnViewInit.emit()})}ngOnChanges(ot){const{nzPlacement:Et,nzVisible:Zt}=ot;Zt&&(ot.nzVisible.currentValue?this.open():this.close()),Et&&!Et.isFirstChange()&&this.triggerPlacementChangeCycleOnce()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),clearTimeout(this.placementChangeTimeoutId),this.disposeOverlay()}getAnimationDuration(){return this.nzNoAnimation?0:300}triggerPlacementChangeCycleOnce(){this.nzNoAnimation||(this.placementChanging=!0,this.changeDetectorRef.markForCheck(),clearTimeout(this.placementChangeTimeoutId),this.placementChangeTimeoutId=setTimeout(()=>{this.placementChanging=!1,this.changeDetectorRef.markForCheck()},this.getAnimationDuration()))}close(ot){this.isOpen=!1,this.inAnimation=!0,this.nzVisibleChange.emit(!1),this.updateOverlayStyle(),this.overlayKeyboardDispatcher.remove(this.overlayRef),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.updateBodyOverflow(),this.restoreFocus(),this.inAnimation=!1,this.nzAfterClose.next(ot),this.nzAfterClose.complete(),this.componentInstance=null},this.getAnimationDuration())}open(){this.attachOverlay(),this.isOpen=!0,this.inAnimation=!0,this.nzVisibleChange.emit(!0),this.overlayKeyboardDispatcher.add(this.overlayRef),this.updateOverlayStyle(),this.updateBodyOverflow(),this.savePreviouslyFocusedElement(),this.trapFocus(),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.inAnimation=!1,this.changeDetectorRef.detectChanges(),this.nzAfterOpen.next()},this.getAnimationDuration())}getContentComponent(){return this.componentInstance}closeClick(){this.nzOnClose.emit()}maskClick(){this.nzMaskClosable&&this.nzMask&&this.nzOnClose.emit()}attachBodyContent(){if(this.bodyPortalOutlet.dispose(),this.nzContent instanceof _.DyG){const ot=_.zs3.create({parent:this.injector,providers:[{provide:je,useValue:this}]}),Et=new oe.C5(this.nzContent,null,ot),Zt=this.bodyPortalOutlet.attachComponentPortal(Et);this.componentInstance=Zt.instance,Object.assign(Zt.instance,this.nzContentParams),Zt.changeDetectorRef.detectChanges()}}attachOverlay(){this.overlayRef||(this.portal=new oe.UE(this.drawerTemplate,this.viewContainerRef),this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayRef.keydownEvents().pipe((0,I.R)(this.destroy$)).subscribe(ot=>{ot.keyCode===s.hY&&this.isOpen&&this.nzKeyboard&&this.nzOnClose.emit()}),this.overlayRef.detachments().pipe((0,I.R)(this.destroy$)).subscribe(()=>{this.disposeOverlay()}))}disposeOverlay(){var ot;null===(ot=this.overlayRef)||void 0===ot||ot.dispose(),this.overlayRef=null}getOverlayConfig(){return new G.X_({disposeOnNavigation:this.nzCloseOnNavigation,positionStrategy:this.overlay.position().global(),scrollStrategy:this.overlay.scrollStrategies.block()})}updateOverlayStyle(){this.overlayRef&&this.overlayRef.overlayElement&&this.renderer.setStyle(this.overlayRef.overlayElement,"pointer-events",this.isOpen?"auto":"none")}updateBodyOverflow(){this.overlayRef&&(this.isOpen?this.overlayRef.getConfig().scrollStrategy.enable():this.overlayRef.getConfig().scrollStrategy.disable())}savePreviouslyFocusedElement(){this.document&&!this.previouslyFocusedElement&&(this.previouslyFocusedElement=this.document.activeElement,this.previouslyFocusedElement&&"function"==typeof this.previouslyFocusedElement.blur&&this.previouslyFocusedElement.blur())}trapFocus(){!this.focusTrap&&this.overlayRef&&this.overlayRef.overlayElement&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.overlayElement),this.focusTrap.focusInitialElement())}restoreFocus(){this.previouslyFocusedElement&&"function"==typeof this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus(),this.focusTrap&&this.focusTrap.destroy()}}return it.\u0275fac=function(ot){return new(ot||it)(_.Y36(_.sBO),_.Y36(q.K0,8),_.Y36(R.jY),_.Y36(_.Qsj),_.Y36(G.aV),_.Y36(_.zs3),_.Y36(_.sBO),_.Y36(B.qV),_.Y36(_.s_b),_.Y36(G.Vs),_.Y36(ee.Is,8))},it.\u0275cmp=_.Xpm({type:it,selectors:[["nz-drawer"]],contentQueries:function(ot,Et,Zt){if(1&ot&&_.Suo(Zt,Ue,7,_.Rgc),2&ot){let mn;_.iGM(mn=_.CRH())&&(Et.contentFromContentChild=mn.first)}},viewQuery:function(ot,Et){if(1&ot&&(_.Gf(ze,7),_.Gf(oe.Pl,5)),2&ot){let Zt;_.iGM(Zt=_.CRH())&&(Et.drawerTemplate=Zt.first),_.iGM(Zt=_.CRH())&&(Et.bodyPortalOutlet=Zt.first)}},inputs:{nzContent:"nzContent",nzCloseIcon:"nzCloseIcon",nzClosable:"nzClosable",nzMaskClosable:"nzMaskClosable",nzMask:"nzMask",nzCloseOnNavigation:"nzCloseOnNavigation",nzNoAnimation:"nzNoAnimation",nzKeyboard:"nzKeyboard",nzTitle:"nzTitle",nzFooter:"nzFooter",nzPlacement:"nzPlacement",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzWrapClassName:"nzWrapClassName",nzWidth:"nzWidth",nzHeight:"nzHeight",nzZIndex:"nzZIndex",nzOffsetX:"nzOffsetX",nzOffsetY:"nzOffsetY",nzVisible:"nzVisible"},outputs:{nzOnViewInit:"nzOnViewInit",nzOnClose:"nzOnClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzDrawer"],features:[_.qOj,_.TTD],decls:2,vars:0,consts:[["drawerTemplate",""],[1,"ant-drawer",3,"nzNoAnimation"],["class","ant-drawer-mask",3,"ngStyle","click",4,"ngIf"],[1,"ant-drawer-content"],[1,"ant-drawer-wrapper-body"],["class","ant-drawer-header",3,"ant-drawer-header-close-only",4,"ngIf"],[1,"ant-drawer-body",3,"ngStyle"],["cdkPortalOutlet",""],[4,"ngIf","ngIfElse"],["contentElseTemp",""],["class","ant-drawer-footer",4,"ngIf"],[1,"ant-drawer-mask",3,"ngStyle","click"],[1,"ant-drawer-header"],[1,"ant-drawer-header-title"],["aria-label","Close","class","ant-drawer-close","style","--scroll-bar: 0px;",3,"click",4,"ngIf"],["class","ant-drawer-title",4,"ngIf"],["aria-label","Close",1,"ant-drawer-close",2,"--scroll-bar","0px",3,"click"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"],[1,"ant-drawer-title"],[3,"innerHTML"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"],[1,"ant-drawer-footer"]],template:function(ot,Et){1&ot&&_.YNc(0,ie,12,40,"ng-template",null,0,_.W1O)},directives:[ye.P,q.O5,q.PC,Ye.f,Fe.Ls,oe.Pl,q.tP],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,H.yF)()],it.prototype,"nzClosable",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],it.prototype,"nzMaskClosable",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],it.prototype,"nzMask",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],it.prototype,"nzCloseOnNavigation",void 0),(0,a.gn)([(0,H.yF)()],it.prototype,"nzNoAnimation",void 0),(0,a.gn)([(0,H.yF)()],it.prototype,"nzKeyboard",void 0),(0,a.gn)([(0,R.oS)()],it.prototype,"nzDirection",void 0),it})(),mt=(()=>{class it{}return it.\u0275fac=function(ot){return new(ot||it)},it.\u0275mod=_.oAB({type:it}),it.\u0275inj=_.cJS({}),it})(),Qe=(()=>{class it{}return it.\u0275fac=function(ot){return new(ot||it)},it.\u0275mod=_.oAB({type:it}),it.\u0275inj=_.cJS({imports:[[ee.vT,q.ez,G.U8,oe.eL,Fe.PV,Ye.T,ye.g,mt]]}),it})()},4170:(yt,be,p)=>{p.d(be,{u7:()=>_,YI:()=>H,wi:()=>I,bF:()=>q});var a=p(5e3),s=p(591),G=p(6947),oe={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},DatePicker:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},TimePicker:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Calendar:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click sort by descend",triggerAsc:"Click sort by ascend",cancelSort:"Click to cancel sort"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"}},q={locale:"zh-cn",Pagination:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875"},DatePicker:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},TimePicker:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]},Calendar:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},global:{placeholder:"\u8bf7\u9009\u62e9"},Table:{filterTitle:"\u7b5b\u9009",filterConfirm:"\u786e\u5b9a",filterReset:"\u91cd\u7f6e",filterEmptyText:"\u65e0\u7b5b\u9009\u9879",selectAll:"\u5168\u9009\u5f53\u9875",selectInvert:"\u53cd\u9009\u5f53\u9875",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5e8f",expand:"\u5c55\u5f00\u884c",collapse:"\u5173\u95ed\u884c",triggerDesc:"\u70b9\u51fb\u964d\u5e8f",triggerAsc:"\u70b9\u51fb\u5347\u5e8f",cancelSort:"\u53d6\u6d88\u6392\u5e8f"},Modal:{okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",justOkText:"\u77e5\u9053\u4e86"},Popconfirm:{cancelText:"\u53d6\u6d88",okText:"\u786e\u5b9a"},Transfer:{searchPlaceholder:"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5f53\u9875",removeCurrent:"\u5220\u9664\u5f53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90e8",selectInvert:"\u53cd\u9009\u5f53\u9875"},Upload:{uploading:"\u6587\u4ef6\u4e0a\u4f20\u4e2d",removeFile:"\u5220\u9664\u6587\u4ef6",uploadError:"\u4e0a\u4f20\u9519\u8bef",previewFile:"\u9884\u89c8\u6587\u4ef6",downloadFile:"\u4e0b\u8f7d\u6587\u4ef6"},Empty:{description:"\u6682\u65e0\u6570\u636e"},Icon:{icon:"\u56fe\u6807"},Text:{edit:"\u7f16\u8f91",copy:"\u590d\u5236",copied:"\u590d\u5236\u6210\u529f",expand:"\u5c55\u5f00"},PageHeader:{back:"\u8fd4\u56de"}};const _=new a.OlP("nz-i18n"),W=new a.OlP("nz-date-locale");let I=(()=>{class ${constructor(Ae,wt){this._change=new s.X(this._locale),this.setLocale(Ae||q),this.setDateLocale(wt||null)}get localeChange(){return this._change.asObservable()}translate(Ae,wt){let At=this._getObjectPath(this._locale,Ae);return"string"==typeof At?(wt&&Object.keys(wt).forEach(Qt=>At=At.replace(new RegExp(`%${Qt}%`,"g"),wt[Qt])),At):Ae}setLocale(Ae){this._locale&&this._locale.locale===Ae.locale||(this._locale=Ae,this._change.next(Ae))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(Ae){this.dateLocale=Ae}getDateLocale(){return this.dateLocale}getLocaleData(Ae,wt){const At=Ae?this._getObjectPath(this._locale,Ae):this._locale;return!At&&!wt&&(0,G.ZK)(`Missing translations for "${Ae}" in language "${this._locale.locale}".\nYou can use "NzI18nService.setLocale" as a temporary fix.\nWelcome to submit a pull request to help us optimize the translations!\nhttps://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md`),At||wt||this._getObjectPath(oe,Ae)||{}}_getObjectPath(Ae,wt){let At=Ae;const Qt=wt.split("."),vn=Qt.length;let Vn=0;for(;At&&Vn{class ${}return $.\u0275fac=function(Ae){return new(Ae||$)},$.\u0275mod=a.oAB({type:$}),$.\u0275inj=a.cJS({}),$})();new a.OlP("date-config")},647:(yt,be,p)=>{p.d(be,{sV:()=>Wt,Ls:()=>Rn,PV:()=>qn});var a=p(925),s=p(5e3),G=p(655),oe=p(8929),q=p(5254),_=p(7625),W=p(9808);function I(X,se){(function H(X){return"string"==typeof X&&-1!==X.indexOf(".")&&1===parseFloat(X)})(X)&&(X="100%");var k=function B(X){return"string"==typeof X&&-1!==X.indexOf("%")}(X);return X=360===se?X:Math.min(se,Math.max(0,parseFloat(X))),k&&(X=parseInt(String(X*se),10)/100),Math.abs(X-se)<1e-6?1:X=360===se?(X<0?X%se+se:X%se)/parseFloat(String(se)):X%se/parseFloat(String(se))}function R(X){return Math.min(1,Math.max(0,X))}function ee(X){return X=parseFloat(X),(isNaN(X)||X<0||X>1)&&(X=1),X}function ye(X){return X<=1?100*Number(X)+"%":X}function Ye(X){return 1===X.length?"0"+X:String(X)}function ze(X,se,k){X=I(X,255),se=I(se,255),k=I(k,255);var Ee=Math.max(X,se,k),st=Math.min(X,se,k),Ct=0,Ot=0,Vt=(Ee+st)/2;if(Ee===st)Ot=0,Ct=0;else{var hn=Ee-st;switch(Ot=Vt>.5?hn/(2-Ee-st):hn/(Ee+st),Ee){case X:Ct=(se-k)/hn+(se1&&(k-=1),k<1/6?X+6*k*(se-X):k<.5?se:k<2/3?X+(se-X)*(2/3-k)*6:X}function Je(X,se,k){X=I(X,255),se=I(se,255),k=I(k,255);var Ee=Math.max(X,se,k),st=Math.min(X,se,k),Ct=0,Ot=Ee,Vt=Ee-st,hn=0===Ee?0:Vt/Ee;if(Ee===st)Ct=0;else{switch(Ee){case X:Ct=(se-k)/Vt+(se>16,g:(65280&X)>>8,b:255&X}}(se)),this.originalInput=se;var st=function he(X){var se={r:0,g:0,b:0},k=1,Ee=null,st=null,Ct=null,Ot=!1,Vt=!1;return"string"==typeof X&&(X=function ke(X){if(0===(X=X.trim().toLowerCase()).length)return!1;var se=!1;if(fe[X])X=fe[X],se=!0;else if("transparent"===X)return{r:0,g:0,b:0,a:0,format:"name"};var k=tt.rgb.exec(X);return k?{r:k[1],g:k[2],b:k[3]}:(k=tt.rgba.exec(X))?{r:k[1],g:k[2],b:k[3],a:k[4]}:(k=tt.hsl.exec(X))?{h:k[1],s:k[2],l:k[3]}:(k=tt.hsla.exec(X))?{h:k[1],s:k[2],l:k[3],a:k[4]}:(k=tt.hsv.exec(X))?{h:k[1],s:k[2],v:k[3]}:(k=tt.hsva.exec(X))?{h:k[1],s:k[2],v:k[3],a:k[4]}:(k=tt.hex8.exec(X))?{r:Xe(k[1]),g:Xe(k[2]),b:Xe(k[3]),a:Se(k[4]),format:se?"name":"hex8"}:(k=tt.hex6.exec(X))?{r:Xe(k[1]),g:Xe(k[2]),b:Xe(k[3]),format:se?"name":"hex"}:(k=tt.hex4.exec(X))?{r:Xe(k[1]+k[1]),g:Xe(k[2]+k[2]),b:Xe(k[3]+k[3]),a:Se(k[4]+k[4]),format:se?"name":"hex8"}:!!(k=tt.hex3.exec(X))&&{r:Xe(k[1]+k[1]),g:Xe(k[2]+k[2]),b:Xe(k[3]+k[3]),format:se?"name":"hex"}}(X)),"object"==typeof X&&(ve(X.r)&&ve(X.g)&&ve(X.b)?(se=function Fe(X,se,k){return{r:255*I(X,255),g:255*I(se,255),b:255*I(k,255)}}(X.r,X.g,X.b),Ot=!0,Vt="%"===String(X.r).substr(-1)?"prgb":"rgb"):ve(X.h)&&ve(X.s)&&ve(X.v)?(Ee=ye(X.s),st=ye(X.v),se=function zt(X,se,k){X=6*I(X,360),se=I(se,100),k=I(k,100);var Ee=Math.floor(X),st=X-Ee,Ct=k*(1-se),Ot=k*(1-st*se),Vt=k*(1-(1-st)*se),hn=Ee%6;return{r:255*[k,Ot,Ct,Ct,Vt,k][hn],g:255*[Vt,k,k,Ot,Ct,Ct][hn],b:255*[Ct,Ct,Vt,k,k,Ot][hn]}}(X.h,Ee,st),Ot=!0,Vt="hsv"):ve(X.h)&&ve(X.s)&&ve(X.l)&&(Ee=ye(X.s),Ct=ye(X.l),se=function vt(X,se,k){var Ee,st,Ct;if(X=I(X,360),se=I(se,100),k=I(k,100),0===se)st=k,Ct=k,Ee=k;else{var Ot=k<.5?k*(1+se):k+se-k*se,Vt=2*k-Ot;Ee=_e(Vt,Ot,X+1/3),st=_e(Vt,Ot,X),Ct=_e(Vt,Ot,X-1/3)}return{r:255*Ee,g:255*st,b:255*Ct}}(X.h,Ee,Ct),Ot=!0,Vt="hsl"),Object.prototype.hasOwnProperty.call(X,"a")&&(k=X.a)),k=ee(k),{ok:Ot,format:X.format||Vt,r:Math.min(255,Math.max(se.r,0)),g:Math.min(255,Math.max(se.g,0)),b:Math.min(255,Math.max(se.b,0)),a:k}}(se);this.originalInput=se,this.r=st.r,this.g=st.g,this.b=st.b,this.a=st.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(Ee=k.format)&&void 0!==Ee?Ee:st.format,this.gradientType=k.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=st.ok}return X.prototype.isDark=function(){return this.getBrightness()<128},X.prototype.isLight=function(){return!this.isDark()},X.prototype.getBrightness=function(){var se=this.toRgb();return(299*se.r+587*se.g+114*se.b)/1e3},X.prototype.getLuminance=function(){var se=this.toRgb(),Ct=se.r/255,Ot=se.g/255,Vt=se.b/255;return.2126*(Ct<=.03928?Ct/12.92:Math.pow((Ct+.055)/1.055,2.4))+.7152*(Ot<=.03928?Ot/12.92:Math.pow((Ot+.055)/1.055,2.4))+.0722*(Vt<=.03928?Vt/12.92:Math.pow((Vt+.055)/1.055,2.4))},X.prototype.getAlpha=function(){return this.a},X.prototype.setAlpha=function(se){return this.a=ee(se),this.roundA=Math.round(100*this.a)/100,this},X.prototype.toHsv=function(){var se=Je(this.r,this.g,this.b);return{h:360*se.h,s:se.s,v:se.v,a:this.a}},X.prototype.toHsvString=function(){var se=Je(this.r,this.g,this.b),k=Math.round(360*se.h),Ee=Math.round(100*se.s),st=Math.round(100*se.v);return 1===this.a?"hsv("+k+", "+Ee+"%, "+st+"%)":"hsva("+k+", "+Ee+"%, "+st+"%, "+this.roundA+")"},X.prototype.toHsl=function(){var se=ze(this.r,this.g,this.b);return{h:360*se.h,s:se.s,l:se.l,a:this.a}},X.prototype.toHslString=function(){var se=ze(this.r,this.g,this.b),k=Math.round(360*se.h),Ee=Math.round(100*se.s),st=Math.round(100*se.l);return 1===this.a?"hsl("+k+", "+Ee+"%, "+st+"%)":"hsla("+k+", "+Ee+"%, "+st+"%, "+this.roundA+")"},X.prototype.toHex=function(se){return void 0===se&&(se=!1),ut(this.r,this.g,this.b,se)},X.prototype.toHexString=function(se){return void 0===se&&(se=!1),"#"+this.toHex(se)},X.prototype.toHex8=function(se){return void 0===se&&(se=!1),function Ie(X,se,k,Ee,st){var Ct=[Ye(Math.round(X).toString(16)),Ye(Math.round(se).toString(16)),Ye(Math.round(k).toString(16)),Ye(et(Ee))];return st&&Ct[0].startsWith(Ct[0].charAt(1))&&Ct[1].startsWith(Ct[1].charAt(1))&&Ct[2].startsWith(Ct[2].charAt(1))&&Ct[3].startsWith(Ct[3].charAt(1))?Ct[0].charAt(0)+Ct[1].charAt(0)+Ct[2].charAt(0)+Ct[3].charAt(0):Ct.join("")}(this.r,this.g,this.b,this.a,se)},X.prototype.toHex8String=function(se){return void 0===se&&(se=!1),"#"+this.toHex8(se)},X.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},X.prototype.toRgbString=function(){var se=Math.round(this.r),k=Math.round(this.g),Ee=Math.round(this.b);return 1===this.a?"rgb("+se+", "+k+", "+Ee+")":"rgba("+se+", "+k+", "+Ee+", "+this.roundA+")"},X.prototype.toPercentageRgb=function(){var se=function(k){return Math.round(100*I(k,255))+"%"};return{r:se(this.r),g:se(this.g),b:se(this.b),a:this.a}},X.prototype.toPercentageRgbString=function(){var se=function(k){return Math.round(100*I(k,255))};return 1===this.a?"rgb("+se(this.r)+"%, "+se(this.g)+"%, "+se(this.b)+"%)":"rgba("+se(this.r)+"%, "+se(this.g)+"%, "+se(this.b)+"%, "+this.roundA+")"},X.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var se="#"+ut(this.r,this.g,this.b,!1),k=0,Ee=Object.entries(fe);k=0&&(se.startsWith("hex")||"name"===se)?"name"===se&&0===this.a?this.toName():this.toRgbString():("rgb"===se&&(Ee=this.toRgbString()),"prgb"===se&&(Ee=this.toPercentageRgbString()),("hex"===se||"hex6"===se)&&(Ee=this.toHexString()),"hex3"===se&&(Ee=this.toHexString(!0)),"hex4"===se&&(Ee=this.toHex8String(!0)),"hex8"===se&&(Ee=this.toHex8String()),"name"===se&&(Ee=this.toName()),"hsl"===se&&(Ee=this.toHslString()),"hsv"===se&&(Ee=this.toHsvString()),Ee||this.toHexString())},X.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},X.prototype.clone=function(){return new X(this.toString())},X.prototype.lighten=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.l+=se/100,k.l=R(k.l),new X(k)},X.prototype.brighten=function(se){void 0===se&&(se=10);var k=this.toRgb();return k.r=Math.max(0,Math.min(255,k.r-Math.round(-se/100*255))),k.g=Math.max(0,Math.min(255,k.g-Math.round(-se/100*255))),k.b=Math.max(0,Math.min(255,k.b-Math.round(-se/100*255))),new X(k)},X.prototype.darken=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.l-=se/100,k.l=R(k.l),new X(k)},X.prototype.tint=function(se){return void 0===se&&(se=10),this.mix("white",se)},X.prototype.shade=function(se){return void 0===se&&(se=10),this.mix("black",se)},X.prototype.desaturate=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.s-=se/100,k.s=R(k.s),new X(k)},X.prototype.saturate=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.s+=se/100,k.s=R(k.s),new X(k)},X.prototype.greyscale=function(){return this.desaturate(100)},X.prototype.spin=function(se){var k=this.toHsl(),Ee=(k.h+se)%360;return k.h=Ee<0?360+Ee:Ee,new X(k)},X.prototype.mix=function(se,k){void 0===k&&(k=50);var Ee=this.toRgb(),st=new X(se).toRgb(),Ct=k/100;return new X({r:(st.r-Ee.r)*Ct+Ee.r,g:(st.g-Ee.g)*Ct+Ee.g,b:(st.b-Ee.b)*Ct+Ee.b,a:(st.a-Ee.a)*Ct+Ee.a})},X.prototype.analogous=function(se,k){void 0===se&&(se=6),void 0===k&&(k=30);var Ee=this.toHsl(),st=360/k,Ct=[this];for(Ee.h=(Ee.h-(st*se>>1)+720)%360;--se;)Ee.h=(Ee.h+st)%360,Ct.push(new X(Ee));return Ct},X.prototype.complement=function(){var se=this.toHsl();return se.h=(se.h+180)%360,new X(se)},X.prototype.monochromatic=function(se){void 0===se&&(se=6);for(var k=this.toHsv(),Ee=k.h,st=k.s,Ct=k.v,Ot=[],Vt=1/se;se--;)Ot.push(new X({h:Ee,s:st,v:Ct})),Ct=(Ct+Vt)%1;return Ot},X.prototype.splitcomplement=function(){var se=this.toHsl(),k=se.h;return[this,new X({h:(k+72)%360,s:se.s,l:se.l}),new X({h:(k+216)%360,s:se.s,l:se.l})]},X.prototype.onBackground=function(se){var k=this.toRgb(),Ee=new X(se).toRgb();return new X({r:Ee.r+(k.r-Ee.r)*k.a,g:Ee.g+(k.g-Ee.g)*k.a,b:Ee.b+(k.b-Ee.b)*k.a})},X.prototype.triad=function(){return this.polyad(3)},X.prototype.tetrad=function(){return this.polyad(4)},X.prototype.polyad=function(se){for(var k=this.toHsl(),Ee=k.h,st=[this],Ct=360/se,Ot=1;Ot=60&&Math.round(X.h)<=240?k?Math.round(X.h)-2*se:Math.round(X.h)+2*se:k?Math.round(X.h)+2*se:Math.round(X.h)-2*se)<0?Ee+=360:Ee>=360&&(Ee-=360),Ee}function Ut(X,se,k){return 0===X.h&&0===X.s?X.s:((Ee=k?X.s-.16*se:4===se?X.s+.16:X.s+.05*se)>1&&(Ee=1),k&&5===se&&Ee>.1&&(Ee=.1),Ee<.06&&(Ee=.06),Number(Ee.toFixed(2)));var Ee}function un(X,se,k){var Ee;return(Ee=k?X.v+.05*se:X.v-.15*se)>1&&(Ee=1),Number(Ee.toFixed(2))}function _n(X){for(var se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},k=[],Ee=new mt(X),st=5;st>0;st-=1){var Ct=Ee.toHsv(),Ot=new mt({h:gn(Ct,st,!0),s:Ut(Ct,st,!0),v:un(Ct,st,!0)}).toHexString();k.push(Ot)}k.push(Ee.toHexString());for(var Vt=1;Vt<=4;Vt+=1){var hn=Ee.toHsv(),ni=new mt({h:gn(hn,Vt),s:Ut(hn,Vt),v:un(hn,Vt)}).toHexString();k.push(ni)}return"dark"===se.theme?mn.map(function(ai){var kn=ai.index,bi=ai.opacity;return new mt(se.backgroundColor||"#141414").mix(k[kn],100*bi).toHexString()}):k}var Cn={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Dt={},Sn={};Object.keys(Cn).forEach(function(X){Dt[X]=_n(Cn[X]),Dt[X].primary=Dt[X][5],Sn[X]=_n(Cn[X],{theme:"dark",backgroundColor:"#141414"}),Sn[X].primary=Sn[X][5]});var V=p(520),Be=p(1086),nt=p(6498),ce=p(4850),Ne=p(2994),L=p(537),E=p(7221),$=p(8117),ue=p(2198),Ae=p(2986),wt=p(2313);const At="[@ant-design/icons-angular]:";function vn(X){(0,s.X6Q)()&&console.warn(`${At} ${X}.`)}function Vn(X){return _n(X)[0]}function An(X,se){switch(se){case"fill":return`${X}-fill`;case"outline":return`${X}-o`;case"twotone":return`${X}-twotone`;case void 0:return X;default:throw new Error(`${At}Theme "${se}" is not a recognized theme!`)}}function Re(X){return"object"==typeof X&&"string"==typeof X.name&&("string"==typeof X.theme||void 0===X.theme)&&"string"==typeof X.icon}function ht(X){const se=X.split(":");switch(se.length){case 1:return[X,""];case 2:return[se[1],se[0]];default:throw new Error(`${At}The icon type ${X} is not valid!`)}}function Zn(){return new Error(`${At} tag not found.`)}let ei=(()=>{class X{constructor(k,Ee,st,Ct){this._rendererFactory=k,this._handler=Ee,this._document=st,this.sanitizer=Ct,this.defaultTheme="outline",this._svgDefinitions=new Map,this._svgRenderedDefinitions=new Map,this._inProgressFetches=new Map,this._assetsUrlRoot="",this._twoToneColorPalette={primaryColor:"#333333",secondaryColor:"#E6E6E6"},this._enableJsonpLoading=!1,this._jsonpIconLoad$=new oe.xQ,this._renderer=this._rendererFactory.createRenderer(null,null),this._handler&&(this._http=new V.eN(this._handler))}set twoToneColor({primaryColor:k,secondaryColor:Ee}){this._twoToneColorPalette.primaryColor=k,this._twoToneColorPalette.secondaryColor=Ee||Vn(k)}get twoToneColor(){return Object.assign({},this._twoToneColorPalette)}useJsonpLoading(){this._enableJsonpLoading?vn("You are already using jsonp loading."):(this._enableJsonpLoading=!0,window.__ant_icon_load=k=>{this._jsonpIconLoad$.next(k)})}changeAssetsSource(k){this._assetsUrlRoot=k.endsWith("/")?k:k+"/"}addIcon(...k){k.forEach(Ee=>{this._svgDefinitions.set(An(Ee.name,Ee.theme),Ee)})}addIconLiteral(k,Ee){const[st,Ct]=ht(k);if(!Ct)throw function jt(){return new Error(`${At}Type should have a namespace. Try "namespace:${name}".`)}();this.addIcon({name:k,icon:Ee})}clear(){this._svgDefinitions.clear(),this._svgRenderedDefinitions.clear()}getRenderedContent(k,Ee){const st=Re(k)?k:this._svgDefinitions.get(k)||null;return(st?(0,Be.of)(st):this._loadIconDynamically(k)).pipe((0,ce.U)(Ot=>{if(!Ot)throw function fn(X){return new Error(`${At}the icon ${X} does not exist or is not registered.`)}(k);return this._loadSVGFromCacheOrCreateNew(Ot,Ee)}))}getCachedIcons(){return this._svgDefinitions}_loadIconDynamically(k){if(!this._http&&!this._enableJsonpLoading)return(0,Be.of)(function Pn(){return function Qt(X){console.error(`${At} ${X}.`)}('you need to import "HttpClientModule" to use dynamic importing.'),null}());let Ee=this._inProgressFetches.get(k);if(!Ee){const[st,Ct]=ht(k),Ot=Ct?{name:k,icon:""}:function we(X){const se=X.split("-"),k=function jn(X){return"o"===X?"outline":X}(se.splice(se.length-1,1)[0]);return{name:se.join("-"),theme:k,icon:""}}(st),hn=(Ct?`${this._assetsUrlRoot}assets/${Ct}/${st}`:`${this._assetsUrlRoot}assets/${Ot.theme}/${Ot.name}`)+(this._enableJsonpLoading?".js":".svg"),ni=this.sanitizer.sanitize(s.q3G.URL,hn);if(!ni)throw function si(X){return new Error(`${At}The url "${X}" is unsafe.`)}(hn);Ee=(this._enableJsonpLoading?this._loadIconDynamicallyWithJsonp(Ot,ni):this._http.get(ni,{responseType:"text"}).pipe((0,ce.U)(kn=>Object.assign(Object.assign({},Ot),{icon:kn})))).pipe((0,Ne.b)(kn=>this.addIcon(kn)),(0,L.x)(()=>this._inProgressFetches.delete(k)),(0,E.K)(()=>(0,Be.of)(null)),(0,$.B)()),this._inProgressFetches.set(k,Ee)}return Ee}_loadIconDynamicallyWithJsonp(k,Ee){return new nt.y(st=>{const Ct=this._document.createElement("script"),Ot=setTimeout(()=>{Vt(),st.error(function ii(){return new Error(`${At}Importing timeout error.`)}())},6e3);function Vt(){Ct.parentNode.removeChild(Ct),clearTimeout(Ot)}Ct.src=Ee,this._document.body.appendChild(Ct),this._jsonpIconLoad$.pipe((0,ue.h)(hn=>hn.name===k.name&&hn.theme===k.theme),(0,Ae.q)(1)).subscribe(hn=>{st.next(hn),Vt()})})}_loadSVGFromCacheOrCreateNew(k,Ee){let st;const Ct=Ee||this._twoToneColorPalette.primaryColor,Ot=Vn(Ct)||this._twoToneColorPalette.secondaryColor,Vt="twotone"===k.theme?function ri(X,se,k,Ee){return`${An(X,se)}-${k}-${Ee}`}(k.name,k.theme,Ct,Ot):void 0===k.theme?k.name:An(k.name,k.theme),hn=this._svgRenderedDefinitions.get(Vt);return hn?st=hn.icon:(st=this._setSVGAttribute(this._colorizeSVGIcon(this._createSVGElementFromString(function It(X){return""!==ht(X)[1]}(k.name)?k.icon:function Ve(X){return X.replace(/['"]#333['"]/g,'"primaryColor"').replace(/['"]#E6E6E6['"]/g,'"secondaryColor"').replace(/['"]#D9D9D9['"]/g,'"secondaryColor"').replace(/['"]#D8D8D8['"]/g,'"secondaryColor"')}(k.icon)),"twotone"===k.theme,Ct,Ot)),this._svgRenderedDefinitions.set(Vt,Object.assign(Object.assign({},k),{icon:st}))),function ae(X){return X.cloneNode(!0)}(st)}_createSVGElementFromString(k){const Ee=this._document.createElement("div");Ee.innerHTML=k;const st=Ee.querySelector("svg");if(!st)throw Zn;return st}_setSVGAttribute(k){return this._renderer.setAttribute(k,"width","1em"),this._renderer.setAttribute(k,"height","1em"),k}_colorizeSVGIcon(k,Ee,st,Ct){if(Ee){const Ot=k.childNodes,Vt=Ot.length;for(let hn=0;hn{class X{constructor(k,Ee,st){this._iconService=k,this._elementRef=Ee,this._renderer=st}ngOnChanges(k){(k.type||k.theme||k.twoToneColor)&&this._changeIcon()}_changeIcon(){return new Promise(k=>{if(this.type){const Ee=this._getSelfRenderMeta();this._iconService.getRenderedContent(this._parseIconType(this.type,this.theme),this.twoToneColor).subscribe(st=>{!function Ln(X,se){return X.type===se.type&&X.theme===se.theme&&X.twoToneColor===se.twoToneColor}(Ee,this._getSelfRenderMeta())?k(null):(this._setSVGElement(st),k(st))})}else this._clearSVGElement(),k(null)})}_getSelfRenderMeta(){return{type:this.type,theme:this.theme,twoToneColor:this.twoToneColor}}_parseIconType(k,Ee){if(Re(k))return k;{const[st,Ct]=ht(k);return Ct?k:function qt(X){return X.endsWith("-fill")||X.endsWith("-o")||X.endsWith("-twotone")}(st)?(Ee&&vn(`'type' ${st} already gets a theme inside so 'theme' ${Ee} would be ignored`),st):An(st,Ee||this._iconService.defaultTheme)}}_setSVGElement(k){this._clearSVGElement(),this._renderer.appendChild(this._elementRef.nativeElement,k)}_clearSVGElement(){var k;const Ee=this._elementRef.nativeElement,st=Ee.childNodes;for(let Ot=st.length-1;Ot>=0;Ot--){const Vt=st[Ot];"svg"===(null===(k=Vt.tagName)||void 0===k?void 0:k.toLowerCase())&&this._renderer.removeChild(Ee,Vt)}}}return X.\u0275fac=function(k){return new(k||X)(s.Y36(ei),s.Y36(s.SBq),s.Y36(s.Qsj))},X.\u0275dir=s.lG2({type:X,selectors:[["","antIcon",""]],inputs:{type:"type",theme:"theme",twoToneColor:"twoToneColor"},features:[s.TTD]}),X})();var Qn=p(1721),Te=p(6947),Ze=p(9193),De=p(9439);const rt=[Ze.V65,Ze.ud1,Ze.bBn,Ze.BOg,Ze.Hkd,Ze.XuQ,Ze.Rfq,Ze.yQU,Ze.U2Q,Ze.UKj,Ze.OYp,Ze.BXH,Ze.eLU,Ze.x0x,Ze.VWu,Ze.rMt,Ze.vEg,Ze.RIp,Ze.RU0,Ze.M8e,Ze.ssy,Ze.Z5F,Ze.iUK,Ze.LJh,Ze.NFG,Ze.UTl,Ze.nrZ,Ze.gvV,Ze.d2H,Ze.eFY,Ze.sZJ,Ze.np6,Ze.w1L,Ze.UY$,Ze.v6v,Ze.rHg,Ze.v6v,Ze.s_U,Ze.TSL,Ze.FsU,Ze.cN2,Ze.uIz,Ze.d_$],Wt=new s.OlP("nz_icons"),Lt=(new s.OlP("nz_icon_default_twotone_color"),"#1890ff");let Un=(()=>{class X extends ei{constructor(k,Ee,st,Ct,Ot,Vt){super(k,Ct,Ot,Ee),this.nzConfigService=st,this.configUpdated$=new oe.xQ,this.iconfontCache=new Set,this.subscription=null,this.onConfigChange(),this.addIcon(...rt,...Vt||[]),this.configDefaultTwotoneColor(),this.configDefaultTheme()}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}normalizeSvgElement(k){k.getAttribute("viewBox")||this._renderer.setAttribute(k,"viewBox","0 0 1024 1024"),(!k.getAttribute("width")||!k.getAttribute("height"))&&(this._renderer.setAttribute(k,"width","1em"),this._renderer.setAttribute(k,"height","1em")),k.getAttribute("fill")||this._renderer.setAttribute(k,"fill","currentColor")}fetchFromIconfont(k){const{scriptUrl:Ee}=k;if(this._document&&!this.iconfontCache.has(Ee)){const st=this._renderer.createElement("script");this._renderer.setAttribute(st,"src",Ee),this._renderer.setAttribute(st,"data-namespace",Ee.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,st),this.iconfontCache.add(Ee)}}createIconfontIcon(k){return this._createSVGElementFromString(``)}onConfigChange(){this.subscription=this.nzConfigService.getConfigChangeEventForComponent("icon").subscribe(()=>{this.configDefaultTwotoneColor(),this.configDefaultTheme(),this.configUpdated$.next()})}configDefaultTheme(){const k=this.getConfig();this.defaultTheme=k.nzTheme||"outline"}configDefaultTwotoneColor(){const Ee=this.getConfig().nzTwotoneColor||Lt;let st=Lt;Ee&&(Ee.startsWith("#")?st=Ee:(0,Te.ZK)("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:st}}getConfig(){return this.nzConfigService.getConfigForComponent("icon")||{}}}return X.\u0275fac=function(k){return new(k||X)(s.LFG(s.FYo),s.LFG(wt.H7),s.LFG(De.jY),s.LFG(V.jN,8),s.LFG(W.K0,8),s.LFG(Wt,8))},X.\u0275prov=s.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();const $n=new s.OlP("nz_icons_patch");let Nn=(()=>{class X{constructor(k,Ee){this.extraIcons=k,this.rootIconService=Ee,this.patched=!1}doPatch(){this.patched||(this.extraIcons.forEach(k=>this.rootIconService.addIcon(k)),this.patched=!0)}}return X.\u0275fac=function(k){return new(k||X)(s.LFG($n,2),s.LFG(Un))},X.\u0275prov=s.Yz7({token:X,factory:X.\u0275fac}),X})(),Rn=(()=>{class X extends Tt{constructor(k,Ee,st,Ct,Ot,Vt){super(Ct,st,Ot),this.ngZone=k,this.changeDetectorRef=Ee,this.iconService=Ct,this.renderer=Ot,this.cacheClassName=null,this.nzRotate=0,this.spin=!1,this.destroy$=new oe.xQ,Vt&&Vt.doPatch(),this.el=st.nativeElement}set nzSpin(k){this.spin=k}set nzType(k){this.type=k}set nzTheme(k){this.theme=k}set nzTwotoneColor(k){this.twoToneColor=k}set nzIconfont(k){this.iconfont=k}ngOnChanges(k){const{nzType:Ee,nzTwotoneColor:st,nzSpin:Ct,nzTheme:Ot,nzRotate:Vt}=k;Ee||st||Ct||Ot?this.changeIcon2():Vt?this.handleRotate(this.el.firstChild):this._setSVGElement(this.iconService.createIconfontIcon(`#${this.iconfont}`))}ngOnInit(){this.renderer.setAttribute(this.el,"class",`anticon ${this.el.className}`.trim())}ngAfterContentChecked(){if(!this.type){const k=this.el.children;let Ee=k.length;if(!this.type&&k.length)for(;Ee--;){const st=k[Ee];"svg"===st.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(st)}}}ngOnDestroy(){this.destroy$.next()}changeIcon2(){this.setClassName(),this.ngZone.runOutsideAngular(()=>{(0,q.D)(this._changeIcon()).pipe((0,_.R)(this.destroy$)).subscribe(k=>{this.changeDetectorRef.detectChanges(),k&&(this.setSVGData(k),this.handleSpin(k),this.handleRotate(k))})})}handleSpin(k){this.spin||"loading"===this.type?this.renderer.addClass(k,"anticon-spin"):this.renderer.removeClass(k,"anticon-spin")}handleRotate(k){this.nzRotate?this.renderer.setAttribute(k,"style",`transform: rotate(${this.nzRotate}deg)`):this.renderer.removeAttribute(k,"style")}setClassName(){this.cacheClassName&&this.renderer.removeClass(this.el,this.cacheClassName),this.cacheClassName=`anticon-${this.type}`,this.renderer.addClass(this.el,this.cacheClassName)}setSVGData(k){this.renderer.setAttribute(k,"data-icon",this.type),this.renderer.setAttribute(k,"aria-hidden","true")}}return X.\u0275fac=function(k){return new(k||X)(s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(Un),s.Y36(s.Qsj),s.Y36(Nn,8))},X.\u0275dir=s.lG2({type:X,selectors:[["","nz-icon",""]],hostVars:2,hostBindings:function(k,Ee){2&k&&s.ekj("anticon",!0)},inputs:{nzSpin:"nzSpin",nzRotate:"nzRotate",nzType:"nzType",nzTheme:"nzTheme",nzTwotoneColor:"nzTwotoneColor",nzIconfont:"nzIconfont"},exportAs:["nzIcon"],features:[s.qOj,s.TTD]}),(0,G.gn)([(0,Qn.yF)()],X.prototype,"nzSpin",null),X})(),qn=(()=>{class X{static forRoot(k){return{ngModule:X,providers:[{provide:Wt,useValue:k}]}}static forChild(k){return{ngModule:X,providers:[Nn,{provide:$n,useValue:k}]}}}return X.\u0275fac=function(k){return new(k||X)},X.\u0275mod=s.oAB({type:X}),X.\u0275inj=s.cJS({imports:[[a.ud]]}),X})()},4219:(yt,be,p)=>{p.d(be,{hl:()=>cn,Cc:()=>Dt,wO:()=>Le,YV:()=>Be,r9:()=>qe,ip:()=>nt});var a=p(655),s=p(5e3),G=p(8929),oe=p(591),q=p(6787),_=p(6053),W=p(4850),I=p(1709),R=p(2198),H=p(7604),B=p(7138),ee=p(5778),ye=p(7625),Ye=p(1059),Fe=p(7545),ze=p(1721),_e=p(2302),vt=p(226),Je=p(2845),zt=p(6950),ut=p(925),Ie=p(4832),$e=p(9808),et=p(647),Se=p(969),Xe=p(8076);const J=["nz-submenu-title",""];function fe(ce,Ne){if(1&ce&&s._UZ(0,"i",4),2&ce){const L=s.oxw();s.Q6J("nzType",L.nzIcon)}}function he(ce,Ne){if(1&ce&&(s.ynx(0),s.TgZ(1,"span"),s._uU(2),s.qZA(),s.BQk()),2&ce){const L=s.oxw();s.xp6(2),s.Oqu(L.nzTitle)}}function te(ce,Ne){1&ce&&s._UZ(0,"i",8)}function le(ce,Ne){1&ce&&s._UZ(0,"i",9)}function ie(ce,Ne){if(1&ce&&(s.TgZ(0,"span",5),s.YNc(1,te,1,0,"i",6),s.YNc(2,le,1,0,"i",7),s.qZA()),2&ce){const L=s.oxw();s.Q6J("ngSwitch",L.dir),s.xp6(1),s.Q6J("ngSwitchCase","rtl")}}function Ue(ce,Ne){1&ce&&s._UZ(0,"i",10)}const je=["*"],tt=["nz-submenu-inline-child",""];function ke(ce,Ne){}const ve=["nz-submenu-none-inline-child",""];function mt(ce,Ne){}const Qe=["nz-submenu",""];function dt(ce,Ne){1&ce&&s.Hsn(0,0,["*ngIf","!nzTitle"])}function _t(ce,Ne){if(1&ce&&s._UZ(0,"div",6),2&ce){const L=s.oxw(),E=s.MAs(7);s.Q6J("mode",L.mode)("nzOpen",L.nzOpen)("@.disabled",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)("nzNoAnimation",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)("menuClass",L.nzMenuClassName)("templateOutlet",E)}}function it(ce,Ne){if(1&ce){const L=s.EpF();s.TgZ(0,"div",8),s.NdJ("subMenuMouseState",function($){return s.CHM(L),s.oxw(2).setMouseEnterState($)}),s.qZA()}if(2&ce){const L=s.oxw(2),E=s.MAs(7);s.Q6J("theme",L.theme)("mode",L.mode)("nzOpen",L.nzOpen)("position",L.position)("nzDisabled",L.nzDisabled)("isMenuInsideDropDown",L.isMenuInsideDropDown)("templateOutlet",E)("menuClass",L.nzMenuClassName)("@.disabled",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)("nzNoAnimation",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)}}function St(ce,Ne){if(1&ce){const L=s.EpF();s.YNc(0,it,1,10,"ng-template",7),s.NdJ("positionChange",function($){return s.CHM(L),s.oxw().onPositionChange($)})}if(2&ce){const L=s.oxw(),E=s.MAs(1);s.Q6J("cdkConnectedOverlayPositions",L.overlayPositions)("cdkConnectedOverlayOrigin",E)("cdkConnectedOverlayWidth",L.triggerWidth)("cdkConnectedOverlayOpen",L.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function ot(ce,Ne){1&ce&&s.Hsn(0,1)}const Et=[[["","title",""]],"*"],Zt=["[title]","*"],Dt=new s.OlP("NzIsInDropDownMenuToken"),Sn=new s.OlP("NzMenuServiceLocalToken");let cn=(()=>{class ce{constructor(){this.descendantMenuItemClick$=new G.xQ,this.childMenuItemClick$=new G.xQ,this.theme$=new oe.X("light"),this.mode$=new oe.X("vertical"),this.inlineIndent$=new oe.X(24),this.isChildSubMenuOpen$=new oe.X(!1)}onDescendantMenuItemClick(L){this.descendantMenuItemClick$.next(L)}onChildMenuItemClick(L){this.childMenuItemClick$.next(L)}setMode(L){this.mode$.next(L)}setTheme(L){this.theme$.next(L)}setInlineIndent(L){this.inlineIndent$.next(L)}}return ce.\u0275fac=function(L){return new(L||ce)},ce.\u0275prov=s.Yz7({token:ce,factory:ce.\u0275fac}),ce})(),Mn=(()=>{class ce{constructor(L,E,$){this.nzHostSubmenuService=L,this.nzMenuService=E,this.isMenuInsideDropDown=$,this.mode$=this.nzMenuService.mode$.pipe((0,W.U)(At=>"inline"===At?"inline":"vertical"===At||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new oe.X(!1),this.isChildSubMenuOpen$=new oe.X(!1),this.isMouseEnterTitleOrOverlay$=new G.xQ,this.childMenuItemClick$=new G.xQ,this.destroy$=new G.xQ,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const ue=this.childMenuItemClick$.pipe((0,I.zg)(()=>this.mode$),(0,R.h)(At=>"inline"!==At||this.isMenuInsideDropDown),(0,H.h)(!1)),Ae=(0,q.T)(this.isMouseEnterTitleOrOverlay$,ue);(0,_.aj)([this.isChildSubMenuOpen$,Ae]).pipe((0,W.U)(([At,Qt])=>At||Qt),(0,B.e)(150),(0,ee.x)(),(0,ye.R)(this.destroy$)).pipe((0,ee.x)()).subscribe(At=>{this.setOpenStateWithoutDebounce(At),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(At):this.nzMenuService.isChildSubMenuOpen$.next(At)})}onChildMenuItemClick(L){this.childMenuItemClick$.next(L)}setOpenStateWithoutDebounce(L){this.isCurrentSubMenuOpen$.next(L)}setMouseEnterTitleOrOverlayState(L){this.isMouseEnterTitleOrOverlay$.next(L)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.LFG(ce,12),s.LFG(cn),s.LFG(Dt))},ce.\u0275prov=s.Yz7({token:ce,factory:ce.\u0275fac}),ce})(),qe=(()=>{class ce{constructor(L,E,$,ue,Ae,wt,At,Qt){this.nzMenuService=L,this.cdr=E,this.nzSubmenuService=$,this.isMenuInsideDropDown=ue,this.directionality=Ae,this.routerLink=wt,this.routerLinkWithHref=At,this.router=Qt,this.destroy$=new G.xQ,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new G.xQ,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,Qt&&this.router.events.pipe((0,ye.R)(this.destroy$),(0,R.h)(vn=>vn instanceof _e.m2)).subscribe(()=>{this.updateRouterActive()})}clickMenuItem(L){this.nzDisabled?(L.preventDefault(),L.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(L){this.nzSelected=L,this.selected$.next(L)}updateRouterActive(){!this.listOfRouterLink||!this.listOfRouterLinkWithHref||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{const L=this.hasActiveLinks();this.nzSelected!==L&&(this.nzSelected=L,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){const L=this.isLinkActive(this.router);return this.routerLink&&L(this.routerLink)||this.routerLinkWithHref&&L(this.routerLinkWithHref)||this.listOfRouterLink.some(L)||this.listOfRouterLinkWithHref.some(L)}isLinkActive(L){return E=>L.isActive(E.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}ngOnInit(){var L;(0,_.aj)([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,ye.R)(this.destroy$)).subscribe(([E,$])=>{this.inlinePaddingLeft="inline"===E?this.level*$:null}),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,ye.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.listOfRouterLinkWithHref.changes.pipe((0,ye.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(L){L.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(cn),s.Y36(s.sBO),s.Y36(Mn,8),s.Y36(Dt),s.Y36(vt.Is,8),s.Y36(_e.rH,8),s.Y36(_e.yS,8),s.Y36(_e.F0,8))},ce.\u0275dir=s.lG2({type:ce,selectors:[["","nz-menu-item",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,_e.rH,5),s.Suo($,_e.yS,5)),2&L){let ue;s.iGM(ue=s.CRH())&&(E.listOfRouterLink=ue),s.iGM(ue=s.CRH())&&(E.listOfRouterLinkWithHref=ue)}},hostVars:20,hostBindings:function(L,E){1&L&&s.NdJ("click",function(ue){return E.clickMenuItem(ue)}),2&L&&(s.Udp("padding-left","rtl"===E.dir?null:E.nzPaddingLeft||E.inlinePaddingLeft,"px")("padding-right","rtl"===E.dir?E.nzPaddingLeft||E.inlinePaddingLeft:null,"px"),s.ekj("ant-dropdown-menu-item",E.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",E.isMenuInsideDropDown&&E.nzSelected)("ant-dropdown-menu-item-danger",E.isMenuInsideDropDown&&E.nzDanger)("ant-dropdown-menu-item-disabled",E.isMenuInsideDropDown&&E.nzDisabled)("ant-menu-item",!E.isMenuInsideDropDown)("ant-menu-item-selected",!E.isMenuInsideDropDown&&E.nzSelected)("ant-menu-item-danger",!E.isMenuInsideDropDown&&E.nzDanger)("ant-menu-item-disabled",!E.isMenuInsideDropDown&&E.nzDisabled))},inputs:{nzPaddingLeft:"nzPaddingLeft",nzDisabled:"nzDisabled",nzSelected:"nzSelected",nzDanger:"nzDanger",nzMatchRouterExact:"nzMatchRouterExact",nzMatchRouter:"nzMatchRouter"},exportAs:["nzMenuItem"],features:[s.TTD]}),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzDisabled",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzSelected",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzDanger",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzMatchRouterExact",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzMatchRouter",void 0),ce})(),x=(()=>{class ce{constructor(L,E){this.cdr=L,this.directionality=E,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new s.vpe,this.subMenuMouseState=new s.vpe,this.dir="ltr",this.destroy$=new G.xQ}ngOnInit(){var L;this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(L){this.nzDisabled||this.subMenuMouseState.next(L)}clickTitle(){"inline"===this.mode&&!this.nzDisabled&&this.toggleSubMenu.emit()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(s.sBO),s.Y36(vt.Is,8))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(L,E){1&L&&s.NdJ("click",function(){return E.clickTitle()})("mouseenter",function(){return E.setMouseState(!0)})("mouseleave",function(){return E.setMouseState(!1)}),2&L&&(s.Udp("padding-left","rtl"===E.dir?null:E.paddingLeft,"px")("padding-right","rtl"===E.dir?E.paddingLeft:null,"px"),s.ekj("ant-dropdown-menu-submenu-title",E.isMenuInsideDropDown)("ant-menu-submenu-title",!E.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],attrs:J,ngContentSelectors:je,decls:6,vars:4,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch",4,"ngIf","ngIfElse"],["notDropdownTpl",""],["nz-icon","",3,"nzType"],[1,"ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch"],["nz-icon","","nzType","left","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchCase"],["nz-icon","","nzType","right","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nz-icon","","nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"],[1,"ant-menu-submenu-arrow"]],template:function(L,E){if(1&L&&(s.F$t(),s.YNc(0,fe,1,1,"i",0),s.YNc(1,he,3,1,"ng-container",1),s.Hsn(2),s.YNc(3,ie,3,2,"span",2),s.YNc(4,Ue,1,0,"ng-template",null,3,s.W1O)),2&L){const $=s.MAs(5);s.Q6J("ngIf",E.nzIcon),s.xp6(1),s.Q6J("nzStringTemplateOutlet",E.nzTitle),s.xp6(2),s.Q6J("ngIf",E.isMenuInsideDropDown)("ngIfElse",$)}},directives:[$e.O5,et.Ls,Se.f,$e.RF,$e.n9,$e.ED],encapsulation:2,changeDetection:0}),ce})(),z=(()=>{class ce{constructor(L,E,$){this.elementRef=L,this.renderer=E,this.directionality=$,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new G.xQ}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){var L;this.calcMotionState(),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngOnChanges(L){const{mode:E,nzOpen:$,menuClass:ue}=L;(E||$)&&this.calcMotionState(),ue&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(Ae=>!!Ae).forEach(Ae=>{this.renderer.removeClass(this.elementRef.nativeElement,Ae)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(Ae=>!!Ae).forEach(Ae=>{this.renderer.addClass(this.elementRef.nativeElement,Ae)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(vt.Is,8))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(L,E){2&L&&(s.d8E("@collapseMotion",E.expandState),s.ekj("ant-menu-rtl","rtl"===E.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],features:[s.TTD],attrs:tt,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(L,E){1&L&&s.YNc(0,ke,0,0,"ng-template",0),2&L&&s.Q6J("ngTemplateOutlet",E.templateOutlet)},directives:[$e.tP],encapsulation:2,data:{animation:[Xe.J_]},changeDetection:0}),ce})(),P=(()=>{class ce{constructor(L){this.directionality=L,this.menuClass="",this.theme="light",this.templateOutlet=null,this.isMenuInsideDropDown=!1,this.mode="vertical",this.position="right",this.nzDisabled=!1,this.nzOpen=!1,this.subMenuMouseState=new s.vpe,this.expandState="collapsed",this.dir="ltr",this.destroy$=new G.xQ}setMouseState(L){this.nzDisabled||this.subMenuMouseState.next(L)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}calcMotionState(){this.nzOpen?"horizontal"===this.mode?this.expandState="bottom":"vertical"===this.mode&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){var L;this.calcMotionState(),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngOnChanges(L){const{mode:E,nzOpen:$}=L;(E||$)&&this.calcMotionState()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(vt.Is,8))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(L,E){1&L&&s.NdJ("mouseenter",function(){return E.setMouseState(!0)})("mouseleave",function(){return E.setMouseState(!1)}),2&L&&(s.d8E("@slideMotion",E.expandState)("@zoomBigMotion",E.expandState),s.ekj("ant-menu-light","light"===E.theme)("ant-menu-dark","dark"===E.theme)("ant-menu-submenu-placement-bottom","horizontal"===E.mode)("ant-menu-submenu-placement-right","vertical"===E.mode&&"right"===E.position)("ant-menu-submenu-placement-left","vertical"===E.mode&&"left"===E.position)("ant-menu-submenu-rtl","rtl"===E.dir))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],features:[s.TTD],attrs:ve,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(L,E){1&L&&(s.TgZ(0,"div",0),s.YNc(1,mt,0,0,"ng-template",1),s.qZA()),2&L&&(s.ekj("ant-dropdown-menu",E.isMenuInsideDropDown)("ant-menu",!E.isMenuInsideDropDown)("ant-dropdown-menu-vertical",E.isMenuInsideDropDown)("ant-menu-vertical",!E.isMenuInsideDropDown)("ant-dropdown-menu-sub",E.isMenuInsideDropDown)("ant-menu-sub",!E.isMenuInsideDropDown)("ant-menu-rtl","rtl"===E.dir),s.Q6J("ngClass",E.menuClass),s.xp6(1),s.Q6J("ngTemplateOutlet",E.templateOutlet))},directives:[$e.mk,$e.tP],encapsulation:2,data:{animation:[Xe.$C,Xe.mF]},changeDetection:0}),ce})();const pe=[zt.yW.rightTop,zt.yW.right,zt.yW.rightBottom,zt.yW.leftTop,zt.yW.left,zt.yW.leftBottom],j=[zt.yW.bottomLeft];let me=(()=>{class ce{constructor(L,E,$,ue,Ae,wt,At){this.nzMenuService=L,this.cdr=E,this.nzSubmenuService=$,this.platform=ue,this.isMenuInsideDropDown=Ae,this.directionality=wt,this.noAnimation=At,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzOpenChange=new s.vpe,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new G.xQ,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=pe,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}setOpenStateWithoutDebounce(L){this.nzSubmenuService.setOpenStateWithoutDebounce(L)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(L){this.isActive=L,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(L)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(L){const E=(0,zt.d_)(L);"rightTop"===E||"rightBottom"===E||"right"===E?this.position="right":("leftTop"===E||"leftBottom"===E||"left"===E)&&(this.position="left")}ngOnInit(){var L;this.nzMenuService.theme$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.theme=E,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.mode=E,"horizontal"===E?this.overlayPositions=j:"vertical"===E&&(this.overlayPositions=pe),this.cdr.markForCheck()}),(0,_.aj)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,ye.R)(this.destroy$)).subscribe(([E,$])=>{this.inlinePaddingLeft="inline"===E?this.level*$:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.isActive=E,E!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=E,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const L=this.listOfNzMenuItemDirective,E=L.changes,$=(0,q.T)(E,...L.map(ue=>ue.selected$));E.pipe((0,Ye.O)(L),(0,Fe.w)(()=>$),(0,Ye.O)(!0),(0,W.U)(()=>L.some(ue=>ue.nzSelected)),(0,ye.R)(this.destroy$)).subscribe(ue=>{this.isSelected=ue,this.cdr.markForCheck()})}ngOnChanges(L){const{nzOpen:E}=L;E&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(cn),s.Y36(s.sBO),s.Y36(Mn),s.Y36(ut.t4),s.Y36(Dt),s.Y36(vt.Is,8),s.Y36(Ie.P,9))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,ce,5),s.Suo($,qe,5)),2&L){let ue;s.iGM(ue=s.CRH())&&(E.listOfNzSubMenuComponent=ue),s.iGM(ue=s.CRH())&&(E.listOfNzMenuItemDirective=ue)}},viewQuery:function(L,E){if(1&L&&s.Gf(Je.xu,7,s.SBq),2&L){let $;s.iGM($=s.CRH())&&(E.cdkOverlayOrigin=$.first)}},hostVars:34,hostBindings:function(L,E){2&L&&s.ekj("ant-dropdown-menu-submenu",E.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",E.isMenuInsideDropDown&&E.nzDisabled)("ant-dropdown-menu-submenu-open",E.isMenuInsideDropDown&&E.nzOpen)("ant-dropdown-menu-submenu-selected",E.isMenuInsideDropDown&&E.isSelected)("ant-dropdown-menu-submenu-vertical",E.isMenuInsideDropDown&&"vertical"===E.mode)("ant-dropdown-menu-submenu-horizontal",E.isMenuInsideDropDown&&"horizontal"===E.mode)("ant-dropdown-menu-submenu-inline",E.isMenuInsideDropDown&&"inline"===E.mode)("ant-dropdown-menu-submenu-active",E.isMenuInsideDropDown&&E.isActive)("ant-menu-submenu",!E.isMenuInsideDropDown)("ant-menu-submenu-disabled",!E.isMenuInsideDropDown&&E.nzDisabled)("ant-menu-submenu-open",!E.isMenuInsideDropDown&&E.nzOpen)("ant-menu-submenu-selected",!E.isMenuInsideDropDown&&E.isSelected)("ant-menu-submenu-vertical",!E.isMenuInsideDropDown&&"vertical"===E.mode)("ant-menu-submenu-horizontal",!E.isMenuInsideDropDown&&"horizontal"===E.mode)("ant-menu-submenu-inline",!E.isMenuInsideDropDown&&"inline"===E.mode)("ant-menu-submenu-active",!E.isMenuInsideDropDown&&E.isActive)("ant-menu-submenu-rtl","rtl"===E.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:"nzOpen",nzDisabled:"nzDisabled"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[s._Bn([Mn]),s.TTD],attrs:Qe,ngContentSelectors:Zt,decls:8,vars:9,consts:[["nz-submenu-title","","cdkOverlayOrigin","",3,"nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft","subMenuMouseState","toggleSubMenu"],["origin","cdkOverlayOrigin"],[4,"ngIf"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet",4,"ngIf","ngIfElse"],["nonInlineTemplate",""],["subMenuTemplate",""],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn","positionChange"],["nz-submenu-none-inline-child","",3,"theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","templateOutlet","menuClass","nzNoAnimation","subMenuMouseState"]],template:function(L,E){if(1&L&&(s.F$t(Et),s.TgZ(0,"div",0,1),s.NdJ("subMenuMouseState",function(ue){return E.setMouseEnterState(ue)})("toggleSubMenu",function(){return E.toggleSubMenu()}),s.YNc(2,dt,1,0,"ng-content",2),s.qZA(),s.YNc(3,_t,1,6,"div",3),s.YNc(4,St,1,5,"ng-template",null,4,s.W1O),s.YNc(6,ot,1,0,"ng-template",null,5,s.W1O)),2&L){const $=s.MAs(5);s.Q6J("nzIcon",E.nzIcon)("nzTitle",E.nzTitle)("mode",E.mode)("nzDisabled",E.nzDisabled)("isMenuInsideDropDown",E.isMenuInsideDropDown)("paddingLeft",E.nzPaddingLeft||E.inlinePaddingLeft),s.xp6(2),s.Q6J("ngIf",!E.nzTitle),s.xp6(1),s.Q6J("ngIf","inline"===E.mode)("ngIfElse",$)}},directives:[x,z,P,Je.xu,$e.O5,Ie.P,Je.pI],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzOpen",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzDisabled",void 0),ce})();function He(ce,Ne){return ce||Ne}function Ge(ce){return ce||!1}let Le=(()=>{class ce{constructor(L,E,$,ue){this.nzMenuService=L,this.isMenuInsideDropDown=E,this.cdr=$,this.directionality=ue,this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new s.vpe,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new oe.X(this.nzInlineCollapsed),this.mode$=new oe.X(this.nzMode),this.destroy$=new G.xQ,this.listOfOpenedNzSubMenuComponent=[]}setInlineCollapsed(L){this.nzInlineCollapsed=L,this.inlineCollapsed$.next(L)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(L=>L.nzOpen),this.listOfNzSubMenuComponent.forEach(L=>L.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(L=>L.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}ngOnInit(){var L;(0,_.aj)([this.inlineCollapsed$,this.mode$]).pipe((0,ye.R)(this.destroy$)).subscribe(([E,$])=>{this.actualMode=E?"vertical":$,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.nzClick.emit(E),this.nzSelectable&&!E.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach($=>$.setSelectedState($===E))}),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,ye.R)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(L){const{nzInlineCollapsed:E,nzInlineIndent:$,nzTheme:ue,nzMode:Ae}=L;E&&this.inlineCollapsed$.next(this.nzInlineCollapsed),$&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),ue&&this.nzMenuService.setTheme(this.nzTheme),Ae&&(this.mode$.next(this.nzMode),!L.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(wt=>wt.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(cn),s.Y36(Dt),s.Y36(s.sBO),s.Y36(vt.Is,8))},ce.\u0275dir=s.lG2({type:ce,selectors:[["","nz-menu",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,qe,5),s.Suo($,me,5)),2&L){let ue;s.iGM(ue=s.CRH())&&(E.listOfNzMenuItemDirective=ue),s.iGM(ue=s.CRH())&&(E.listOfNzSubMenuComponent=ue)}},hostVars:34,hostBindings:function(L,E){2&L&&s.ekj("ant-dropdown-menu",E.isMenuInsideDropDown)("ant-dropdown-menu-root",E.isMenuInsideDropDown)("ant-dropdown-menu-light",E.isMenuInsideDropDown&&"light"===E.nzTheme)("ant-dropdown-menu-dark",E.isMenuInsideDropDown&&"dark"===E.nzTheme)("ant-dropdown-menu-vertical",E.isMenuInsideDropDown&&"vertical"===E.actualMode)("ant-dropdown-menu-horizontal",E.isMenuInsideDropDown&&"horizontal"===E.actualMode)("ant-dropdown-menu-inline",E.isMenuInsideDropDown&&"inline"===E.actualMode)("ant-dropdown-menu-inline-collapsed",E.isMenuInsideDropDown&&E.nzInlineCollapsed)("ant-menu",!E.isMenuInsideDropDown)("ant-menu-root",!E.isMenuInsideDropDown)("ant-menu-light",!E.isMenuInsideDropDown&&"light"===E.nzTheme)("ant-menu-dark",!E.isMenuInsideDropDown&&"dark"===E.nzTheme)("ant-menu-vertical",!E.isMenuInsideDropDown&&"vertical"===E.actualMode)("ant-menu-horizontal",!E.isMenuInsideDropDown&&"horizontal"===E.actualMode)("ant-menu-inline",!E.isMenuInsideDropDown&&"inline"===E.actualMode)("ant-menu-inline-collapsed",!E.isMenuInsideDropDown&&E.nzInlineCollapsed)("ant-menu-rtl","rtl"===E.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:"nzInlineCollapsed",nzSelectable:"nzSelectable"},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[s._Bn([{provide:Sn,useClass:cn},{provide:cn,useFactory:He,deps:[[new s.tp0,new s.FiY,cn],Sn]},{provide:Dt,useFactory:Ge,deps:[[new s.tp0,new s.FiY,Dt]]}]),s.TTD]}),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzInlineCollapsed",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzSelectable",void 0),ce})(),Be=(()=>{class ce{constructor(L,E){this.elementRef=L,this.renderer=E,this.renderer.addClass(L.nativeElement,"ant-dropdown-menu-item-divider")}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(s.SBq),s.Y36(s.Qsj))},ce.\u0275dir=s.lG2({type:ce,selectors:[["","nz-menu-divider",""]],exportAs:["nzMenuDivider"]}),ce})(),nt=(()=>{class ce{}return ce.\u0275fac=function(L){return new(L||ce)},ce.\u0275mod=s.oAB({type:ce}),ce.\u0275inj=s.cJS({imports:[[vt.vT,$e.ez,ut.ud,Je.U8,et.PV,Ie.g,Se.T]]}),ce})()},9727:(yt,be,p)=>{p.d(be,{Ay:()=>Xe,Gm:()=>Se,XJ:()=>et,gR:()=>Ue,dD:()=>ie});var a=p(7429),s=p(5e3),G=p(8929),oe=p(2198),q=p(2986),_=p(7625),W=p(9439),I=p(1721),R=p(8076),H=p(9808),B=p(647),ee=p(969),ye=p(4090),Ye=p(2845),Fe=p(226);function ze(je,tt){1&je&&s._UZ(0,"i",10)}function _e(je,tt){1&je&&s._UZ(0,"i",11)}function vt(je,tt){1&je&&s._UZ(0,"i",12)}function Je(je,tt){1&je&&s._UZ(0,"i",13)}function zt(je,tt){1&je&&s._UZ(0,"i",14)}function ut(je,tt){if(1&je&&(s.ynx(0),s._UZ(1,"span",15),s.BQk()),2&je){const ke=s.oxw();s.xp6(1),s.Q6J("innerHTML",ke.instance.content,s.oJD)}}function Ie(je,tt){if(1&je){const ke=s.EpF();s.TgZ(0,"nz-message",2),s.NdJ("destroyed",function(mt){return s.CHM(ke),s.oxw().remove(mt.id,mt.userAction)}),s.qZA()}2&je&&s.Q6J("instance",tt.$implicit)}let $e=0;class et{constructor(tt,ke,ve){this.nzSingletonService=tt,this.overlay=ke,this.injector=ve}remove(tt){this.container&&(tt?this.container.remove(tt):this.container.removeAll())}getInstanceId(){return`${this.componentPrefix}-${$e++}`}withContainer(tt){let ke=this.nzSingletonService.getSingletonWithKey(this.componentPrefix);if(ke)return ke;const ve=this.overlay.create({hasBackdrop:!1,scrollStrategy:this.overlay.scrollStrategies.noop(),positionStrategy:this.overlay.position().global()}),mt=new a.C5(tt,null,this.injector),Qe=ve.attach(mt);return ve.overlayElement.style.zIndex="1010",ke||(this.container=ke=Qe.instance,this.nzSingletonService.registerSingletonWithKey(this.componentPrefix,ke)),ke}}let Se=(()=>{class je{constructor(ke,ve){this.cdr=ke,this.nzConfigService=ve,this.instances=[],this.destroy$=new G.xQ,this.updateConfig()}ngOnInit(){this.subscribeConfigChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}create(ke){const ve=this.onCreate(ke);return this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,ve],this.readyInstances(),ve}remove(ke,ve=!1){this.instances.some((mt,Qe)=>mt.messageId===ke&&(this.instances.splice(Qe,1),this.instances=[...this.instances],this.onRemove(mt,ve),this.readyInstances(),!0))}removeAll(){this.instances.forEach(ke=>this.onRemove(ke,!1)),this.instances=[],this.readyInstances()}onCreate(ke){return ke.options=this.mergeOptions(ke.options),ke.onClose=new G.xQ,ke}onRemove(ke,ve){ke.onClose.next(ve),ke.onClose.complete()}readyInstances(){this.cdr.detectChanges()}mergeOptions(ke){const{nzDuration:ve,nzAnimate:mt,nzPauseOnHover:Qe}=this.config;return Object.assign({nzDuration:ve,nzAnimate:mt,nzPauseOnHover:Qe},ke)}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO),s.Y36(W.jY))},je.\u0275dir=s.lG2({type:je}),je})(),Xe=(()=>{class je{constructor(ke){this.cdr=ke,this.destroyed=new s.vpe,this.animationStateChanged=new G.xQ,this.userAction=!1,this.eraseTimer=null}ngOnInit(){this.options=this.instance.options,this.options.nzAnimate&&(this.instance.state="enter",this.animationStateChanged.pipe((0,oe.h)(ke=>"done"===ke.phaseName&&"leave"===ke.toState),(0,q.q)(1)).subscribe(()=>{clearTimeout(this.closeTimer),this.destroyed.next({id:this.instance.messageId,userAction:this.userAction})})),this.autoClose=this.options.nzDuration>0,this.autoClose&&(this.initErase(),this.startEraseTimeout())}ngOnDestroy(){this.autoClose&&this.clearEraseTimeout(),this.animationStateChanged.complete()}onEnter(){this.autoClose&&this.options.nzPauseOnHover&&(this.clearEraseTimeout(),this.updateTTL())}onLeave(){this.autoClose&&this.options.nzPauseOnHover&&this.startEraseTimeout()}destroy(ke=!1){this.userAction=ke,this.options.nzAnimate?(this.instance.state="leave",this.cdr.detectChanges(),this.closeTimer=setTimeout(()=>{this.closeTimer=void 0,this.destroyed.next({id:this.instance.messageId,userAction:ke})},200)):this.destroyed.next({id:this.instance.messageId,userAction:ke})}initErase(){this.eraseTTL=this.options.nzDuration,this.eraseTimingStart=Date.now()}updateTTL(){this.autoClose&&(this.eraseTTL-=Date.now()-this.eraseTimingStart)}startEraseTimeout(){this.eraseTTL>0?(this.clearEraseTimeout(),this.eraseTimer=setTimeout(()=>this.destroy(),this.eraseTTL),this.eraseTimingStart=Date.now()):this.destroy()}clearEraseTimeout(){null!==this.eraseTimer&&(clearTimeout(this.eraseTimer),this.eraseTimer=null)}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO))},je.\u0275dir=s.lG2({type:je}),je})(),J=(()=>{class je extends Xe{constructor(ke){super(ke),this.destroyed=new s.vpe}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO))},je.\u0275cmp=s.Xpm({type:je,selectors:[["nz-message"]],inputs:{instance:"instance"},outputs:{destroyed:"destroyed"},exportAs:["nzMessage"],features:[s.qOj],decls:10,vars:9,consts:[[1,"ant-message-notice",3,"mouseenter","mouseleave"],[1,"ant-message-notice-content"],[1,"ant-message-custom-content",3,"ngClass"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle",4,"ngSwitchCase"],["nz-icon","","nzType","info-circle",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle",4,"ngSwitchCase"],["nz-icon","","nzType","loading",4,"ngSwitchCase"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzType","check-circle"],["nz-icon","","nzType","info-circle"],["nz-icon","","nzType","exclamation-circle"],["nz-icon","","nzType","close-circle"],["nz-icon","","nzType","loading"],[3,"innerHTML"]],template:function(ke,ve){1&ke&&(s.TgZ(0,"div",0),s.NdJ("@moveUpMotion.done",function(Qe){return ve.animationStateChanged.next(Qe)})("mouseenter",function(){return ve.onEnter()})("mouseleave",function(){return ve.onLeave()}),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.ynx(3,3),s.YNc(4,ze,1,0,"i",4),s.YNc(5,_e,1,0,"i",5),s.YNc(6,vt,1,0,"i",6),s.YNc(7,Je,1,0,"i",7),s.YNc(8,zt,1,0,"i",8),s.BQk(),s.YNc(9,ut,2,1,"ng-container",9),s.qZA(),s.qZA(),s.qZA()),2&ke&&(s.Q6J("@moveUpMotion",ve.instance.state),s.xp6(2),s.Q6J("ngClass","ant-message-"+ve.instance.type),s.xp6(1),s.Q6J("ngSwitch",ve.instance.type),s.xp6(1),s.Q6J("ngSwitchCase","success"),s.xp6(1),s.Q6J("ngSwitchCase","info"),s.xp6(1),s.Q6J("ngSwitchCase","warning"),s.xp6(1),s.Q6J("ngSwitchCase","error"),s.xp6(1),s.Q6J("ngSwitchCase","loading"),s.xp6(1),s.Q6J("nzStringTemplateOutlet",ve.instance.content))},directives:[H.mk,H.RF,H.n9,B.Ls,ee.f],encapsulation:2,data:{animation:[R.YK]},changeDetection:0}),je})();const fe="message",he={nzAnimate:!0,nzDuration:3e3,nzMaxStack:7,nzPauseOnHover:!0,nzTop:24,nzDirection:"ltr"};let te=(()=>{class je extends Se{constructor(ke,ve){super(ke,ve),this.dir="ltr";const mt=this.nzConfigService.getConfigForComponent(fe);this.dir=(null==mt?void 0:mt.nzDirection)||"ltr"}subscribeConfigChange(){this.nzConfigService.getConfigChangeEventForComponent(fe).pipe((0,_.R)(this.destroy$)).subscribe(()=>{this.updateConfig();const ke=this.nzConfigService.getConfigForComponent(fe);if(ke){const{nzDirection:ve}=ke;this.dir=ve||this.dir}})}updateConfig(){this.config=Object.assign(Object.assign(Object.assign({},he),this.config),this.nzConfigService.getConfigForComponent(fe)),this.top=(0,I.WX)(this.config.nzTop),this.cdr.markForCheck()}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO),s.Y36(W.jY))},je.\u0275cmp=s.Xpm({type:je,selectors:[["nz-message-container"]],exportAs:["nzMessageContainer"],features:[s.qOj],decls:2,vars:5,consts:[[1,"ant-message"],[3,"instance","destroyed",4,"ngFor","ngForOf"],[3,"instance","destroyed"]],template:function(ke,ve){1&ke&&(s.TgZ(0,"div",0),s.YNc(1,Ie,1,1,"nz-message",1),s.qZA()),2&ke&&(s.Udp("top",ve.top),s.ekj("ant-message-rtl","rtl"===ve.dir),s.xp6(1),s.Q6J("ngForOf",ve.instances))},directives:[J,H.sg],encapsulation:2,changeDetection:0}),je})(),le=(()=>{class je{}return je.\u0275fac=function(ke){return new(ke||je)},je.\u0275mod=s.oAB({type:je}),je.\u0275inj=s.cJS({}),je})(),ie=(()=>{class je extends et{constructor(ke,ve,mt){super(ke,ve,mt),this.componentPrefix="message-"}success(ke,ve){return this.createInstance({type:"success",content:ke},ve)}error(ke,ve){return this.createInstance({type:"error",content:ke},ve)}info(ke,ve){return this.createInstance({type:"info",content:ke},ve)}warning(ke,ve){return this.createInstance({type:"warning",content:ke},ve)}loading(ke,ve){return this.createInstance({type:"loading",content:ke},ve)}create(ke,ve,mt){return this.createInstance({type:ke,content:ve},mt)}createInstance(ke,ve){return this.container=this.withContainer(te),this.container.create(Object.assign(Object.assign({},ke),{createdAt:new Date,messageId:this.getInstanceId(),options:ve}))}}return je.\u0275fac=function(ke){return new(ke||je)(s.LFG(ye.KV),s.LFG(Ye.aV),s.LFG(s.zs3))},je.\u0275prov=s.Yz7({token:je,factory:je.\u0275fac,providedIn:le}),je})(),Ue=(()=>{class je{}return je.\u0275fac=function(ke){return new(ke||je)},je.\u0275mod=s.oAB({type:je}),je.\u0275inj=s.cJS({imports:[[Fe.vT,H.ez,Ye.U8,B.PV,ee.T,le]]}),je})()},5278:(yt,be,p)=>{p.d(be,{L8:()=>je,zb:()=>ke});var a=p(5e3),s=p(8076),G=p(9727),oe=p(9808),q=p(647),_=p(969),W=p(226),I=p(2845),R=p(8929),H=p(7625),B=p(1721),ee=p(9439),ye=p(4090);function Ye(ve,mt){1&ve&&a._UZ(0,"i",16)}function Fe(ve,mt){1&ve&&a._UZ(0,"i",17)}function ze(ve,mt){1&ve&&a._UZ(0,"i",18)}function _e(ve,mt){1&ve&&a._UZ(0,"i",19)}const vt=function(ve){return{"ant-notification-notice-with-icon":ve}};function Je(ve,mt){if(1&ve&&(a.TgZ(0,"div",7),a.TgZ(1,"div",8),a.TgZ(2,"div"),a.ynx(3,9),a.YNc(4,Ye,1,0,"i",10),a.YNc(5,Fe,1,0,"i",11),a.YNc(6,ze,1,0,"i",12),a.YNc(7,_e,1,0,"i",13),a.BQk(),a._UZ(8,"div",14),a._UZ(9,"div",15),a.qZA(),a.qZA(),a.qZA()),2&ve){const Qe=a.oxw();a.xp6(1),a.Q6J("ngClass",a.VKq(10,vt,"blank"!==Qe.instance.type)),a.xp6(1),a.ekj("ant-notification-notice-with-icon","blank"!==Qe.instance.type),a.xp6(1),a.Q6J("ngSwitch",Qe.instance.type),a.xp6(1),a.Q6J("ngSwitchCase","success"),a.xp6(1),a.Q6J("ngSwitchCase","info"),a.xp6(1),a.Q6J("ngSwitchCase","warning"),a.xp6(1),a.Q6J("ngSwitchCase","error"),a.xp6(1),a.Q6J("innerHTML",Qe.instance.title,a.oJD),a.xp6(1),a.Q6J("innerHTML",Qe.instance.content,a.oJD)}}function zt(ve,mt){}function ut(ve,mt){if(1&ve&&(a.ynx(0),a._UZ(1,"i",21),a.BQk()),2&ve){const Qe=mt.$implicit;a.xp6(1),a.Q6J("nzType",Qe)}}function Ie(ve,mt){if(1&ve&&(a.ynx(0),a.YNc(1,ut,2,1,"ng-container",20),a.BQk()),2&ve){const Qe=a.oxw();a.xp6(1),a.Q6J("nzStringTemplateOutlet",null==Qe.instance.options?null:Qe.instance.options.nzCloseIcon)}}function $e(ve,mt){1&ve&&a._UZ(0,"i",22)}const et=function(ve,mt){return{$implicit:ve,data:mt}};function Se(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}function Xe(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}function J(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}function fe(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}let he=(()=>{class ve extends G.Ay{constructor(Qe){super(Qe),this.destroyed=new a.vpe}ngOnDestroy(){super.ngOnDestroy(),this.instance.onClick.complete()}onClick(Qe){this.instance.onClick.next(Qe)}close(){this.destroy(!0)}get state(){return"enter"===this.instance.state?"topLeft"===this.placement||"bottomLeft"===this.placement?"enterLeft":"enterRight":this.instance.state}}return ve.\u0275fac=function(Qe){return new(Qe||ve)(a.Y36(a.sBO))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["nz-notification"]],inputs:{instance:"instance",index:"index",placement:"placement"},outputs:{destroyed:"destroyed"},exportAs:["nzNotification"],features:[a.qOj],decls:8,vars:12,consts:[[1,"ant-notification-notice","ant-notification-notice-closable",3,"ngStyle","ngClass","click","mouseenter","mouseleave"],["class","ant-notification-notice-content",4,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","0",1,"ant-notification-notice-close",3,"click"],[1,"ant-notification-notice-close-x"],[4,"ngIf","ngIfElse"],["iconTpl",""],[1,"ant-notification-notice-content"],[1,"ant-notification-notice-content",3,"ngClass"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle","class","ant-notification-notice-icon ant-notification-notice-icon-success",4,"ngSwitchCase"],["nz-icon","","nzType","info-circle","class","ant-notification-notice-icon ant-notification-notice-icon-info",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle","class","ant-notification-notice-icon ant-notification-notice-icon-warning",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle","class","ant-notification-notice-icon ant-notification-notice-icon-error",4,"ngSwitchCase"],[1,"ant-notification-notice-message",3,"innerHTML"],[1,"ant-notification-notice-description",3,"innerHTML"],["nz-icon","","nzType","check-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-success"],["nz-icon","","nzType","info-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-info"],["nz-icon","","nzType","exclamation-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-warning"],["nz-icon","","nzType","close-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-error"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","close",1,"ant-notification-close-icon"]],template:function(Qe,dt){if(1&Qe&&(a.TgZ(0,"div",0),a.NdJ("@notificationMotion.done",function(it){return dt.animationStateChanged.next(it)})("click",function(it){return dt.onClick(it)})("mouseenter",function(){return dt.onEnter()})("mouseleave",function(){return dt.onLeave()}),a.YNc(1,Je,10,12,"div",1),a.YNc(2,zt,0,0,"ng-template",2),a.TgZ(3,"a",3),a.NdJ("click",function(){return dt.close()}),a.TgZ(4,"span",4),a.YNc(5,Ie,2,1,"ng-container",5),a.YNc(6,$e,1,0,"ng-template",null,6,a.W1O),a.qZA(),a.qZA(),a.qZA()),2&Qe){const _t=a.MAs(7);a.Q6J("ngStyle",(null==dt.instance.options?null:dt.instance.options.nzStyle)||null)("ngClass",(null==dt.instance.options?null:dt.instance.options.nzClass)||"")("@notificationMotion",dt.state),a.xp6(1),a.Q6J("ngIf",!dt.instance.template),a.xp6(1),a.Q6J("ngIf",dt.instance.template)("ngTemplateOutlet",dt.instance.template)("ngTemplateOutletContext",a.WLB(9,et,dt,null==dt.instance.options?null:dt.instance.options.nzData)),a.xp6(3),a.Q6J("ngIf",null==dt.instance.options?null:dt.instance.options.nzCloseIcon)("ngIfElse",_t)}},directives:[oe.PC,oe.mk,oe.O5,oe.RF,oe.n9,q.Ls,oe.tP,_.f],encapsulation:2,data:{animation:[s.LU]}}),ve})();const te="notification",le={nzTop:"24px",nzBottom:"24px",nzPlacement:"topRight",nzDuration:4500,nzMaxStack:7,nzPauseOnHover:!0,nzAnimate:!0,nzDirection:"ltr"};let ie=(()=>{class ve extends G.Gm{constructor(Qe,dt){super(Qe,dt),this.dir="ltr",this.instances=[],this.topLeftInstances=[],this.topRightInstances=[],this.bottomLeftInstances=[],this.bottomRightInstances=[];const _t=this.nzConfigService.getConfigForComponent(te);this.dir=(null==_t?void 0:_t.nzDirection)||"ltr"}create(Qe){const dt=this.onCreate(Qe),_t=dt.options.nzKey,it=this.instances.find(St=>St.options.nzKey===Qe.options.nzKey);return _t&&it?this.replaceNotification(it,dt):(this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,dt]),this.readyInstances(),dt}onCreate(Qe){return Qe.options=this.mergeOptions(Qe.options),Qe.onClose=new R.xQ,Qe.onClick=new R.xQ,Qe}subscribeConfigChange(){this.nzConfigService.getConfigChangeEventForComponent(te).pipe((0,H.R)(this.destroy$)).subscribe(()=>{this.updateConfig();const Qe=this.nzConfigService.getConfigForComponent(te);if(Qe){const{nzDirection:dt}=Qe;this.dir=dt||this.dir}})}updateConfig(){this.config=Object.assign(Object.assign(Object.assign({},le),this.config),this.nzConfigService.getConfigForComponent(te)),this.top=(0,B.WX)(this.config.nzTop),this.bottom=(0,B.WX)(this.config.nzBottom),this.cdr.markForCheck()}replaceNotification(Qe,dt){Qe.title=dt.title,Qe.content=dt.content,Qe.template=dt.template,Qe.type=dt.type,Qe.options=dt.options}readyInstances(){this.topLeftInstances=this.instances.filter(Qe=>"topLeft"===Qe.options.nzPlacement),this.topRightInstances=this.instances.filter(Qe=>"topRight"===Qe.options.nzPlacement||!Qe.options.nzPlacement),this.bottomLeftInstances=this.instances.filter(Qe=>"bottomLeft"===Qe.options.nzPlacement),this.bottomRightInstances=this.instances.filter(Qe=>"bottomRight"===Qe.options.nzPlacement),this.cdr.detectChanges()}mergeOptions(Qe){const{nzDuration:dt,nzAnimate:_t,nzPauseOnHover:it,nzPlacement:St}=this.config;return Object.assign({nzDuration:dt,nzAnimate:_t,nzPauseOnHover:it,nzPlacement:St},Qe)}}return ve.\u0275fac=function(Qe){return new(Qe||ve)(a.Y36(a.sBO),a.Y36(ee.jY))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["nz-notification-container"]],exportAs:["nzNotificationContainer"],features:[a.qOj],decls:8,vars:28,consts:[[1,"ant-notification","ant-notification-topLeft"],[3,"instance","placement","destroyed",4,"ngFor","ngForOf"],[1,"ant-notification","ant-notification-topRight"],[1,"ant-notification","ant-notification-bottomLeft"],[1,"ant-notification","ant-notification-bottomRight"],[3,"instance","placement","destroyed"]],template:function(Qe,dt){1&Qe&&(a.TgZ(0,"div",0),a.YNc(1,Se,1,2,"nz-notification",1),a.qZA(),a.TgZ(2,"div",2),a.YNc(3,Xe,1,2,"nz-notification",1),a.qZA(),a.TgZ(4,"div",3),a.YNc(5,J,1,2,"nz-notification",1),a.qZA(),a.TgZ(6,"div",4),a.YNc(7,fe,1,2,"nz-notification",1),a.qZA()),2&Qe&&(a.Udp("top",dt.top)("left","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.topLeftInstances),a.xp6(1),a.Udp("top",dt.top)("right","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.topRightInstances),a.xp6(1),a.Udp("bottom",dt.bottom)("left","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.bottomLeftInstances),a.xp6(1),a.Udp("bottom",dt.bottom)("right","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.bottomRightInstances))},directives:[he,oe.sg],encapsulation:2,changeDetection:0}),ve})(),Ue=(()=>{class ve{}return ve.\u0275fac=function(Qe){return new(Qe||ve)},ve.\u0275mod=a.oAB({type:ve}),ve.\u0275inj=a.cJS({}),ve})(),je=(()=>{class ve{}return ve.\u0275fac=function(Qe){return new(Qe||ve)},ve.\u0275mod=a.oAB({type:ve}),ve.\u0275inj=a.cJS({imports:[[W.vT,oe.ez,I.U8,q.PV,_.T,Ue]]}),ve})(),tt=0,ke=(()=>{class ve extends G.XJ{constructor(Qe,dt,_t){super(Qe,dt,_t),this.componentPrefix="notification-"}success(Qe,dt,_t){return this.createInstance({type:"success",title:Qe,content:dt},_t)}error(Qe,dt,_t){return this.createInstance({type:"error",title:Qe,content:dt},_t)}info(Qe,dt,_t){return this.createInstance({type:"info",title:Qe,content:dt},_t)}warning(Qe,dt,_t){return this.createInstance({type:"warning",title:Qe,content:dt},_t)}blank(Qe,dt,_t){return this.createInstance({type:"blank",title:Qe,content:dt},_t)}create(Qe,dt,_t,it){return this.createInstance({type:Qe,title:dt,content:_t},it)}template(Qe,dt){return this.createInstance({template:Qe},dt)}generateMessageId(){return`${this.componentPrefix}-${tt++}`}createInstance(Qe,dt){return this.container=this.withContainer(ie),this.container.create(Object.assign(Object.assign({},Qe),{createdAt:new Date,messageId:this.generateMessageId(),options:dt}))}}return ve.\u0275fac=function(Qe){return new(Qe||ve)(a.LFG(ye.KV),a.LFG(I.aV),a.LFG(a.zs3))},ve.\u0275prov=a.Yz7({token:ve,factory:ve.\u0275fac,providedIn:Ue}),ve})()},7525:(yt,be,p)=>{p.d(be,{W:()=>J,j:()=>fe});var a=p(655),s=p(5e3),G=p(8929),oe=p(591),q=p(5647),_=p(8723),W=p(1177);class R{constructor(te){this.durationSelector=te}call(te,le){return le.subscribe(new H(te,this.durationSelector))}}class H extends W.Ds{constructor(te,le){super(te),this.durationSelector=le,this.hasValue=!1}_next(te){try{const le=this.durationSelector.call(this,te);le&&this._tryNext(te,le)}catch(le){this.destination.error(le)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(te,le){let ie=this.durationSubscription;this.value=te,this.hasValue=!0,ie&&(ie.unsubscribe(),this.remove(ie)),ie=(0,W.ft)(le,new W.IY(this)),ie&&!ie.closed&&this.add(this.durationSubscription=ie)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const te=this.value,le=this.durationSubscription;le&&(this.durationSubscription=void 0,le.unsubscribe(),this.remove(le)),this.value=void 0,this.hasValue=!1,super._next(te)}}}var B=p(1059),ee=p(5778),ye=p(7545),Ye=p(7625),Fe=p(9439),ze=p(1721),_e=p(226),vt=p(9808),Je=p(7144);function zt(he,te){1&he&&(s.TgZ(0,"span",3),s._UZ(1,"i",4),s._UZ(2,"i",4),s._UZ(3,"i",4),s._UZ(4,"i",4),s.qZA())}function ut(he,te){}function Ie(he,te){if(1&he&&(s.TgZ(0,"div",8),s._uU(1),s.qZA()),2&he){const le=s.oxw(2);s.xp6(1),s.Oqu(le.nzTip)}}function $e(he,te){if(1&he&&(s.TgZ(0,"div"),s.TgZ(1,"div",5),s.YNc(2,ut,0,0,"ng-template",6),s.YNc(3,Ie,2,1,"div",7),s.qZA(),s.qZA()),2&he){const le=s.oxw(),ie=s.MAs(1);s.xp6(1),s.ekj("ant-spin-rtl","rtl"===le.dir)("ant-spin-spinning",le.isLoading)("ant-spin-lg","large"===le.nzSize)("ant-spin-sm","small"===le.nzSize)("ant-spin-show-text",le.nzTip),s.xp6(1),s.Q6J("ngTemplateOutlet",le.nzIndicator||ie),s.xp6(1),s.Q6J("ngIf",le.nzTip)}}function et(he,te){if(1&he&&(s.TgZ(0,"div",9),s.Hsn(1),s.qZA()),2&he){const le=s.oxw();s.ekj("ant-spin-blur",le.isLoading)}}const Se=["*"];let J=(()=>{class he{constructor(le,ie,Ue){this.nzConfigService=le,this.cdr=ie,this.directionality=Ue,this._nzModuleName="spin",this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new G.xQ,this.spinning$=new oe.X(this.nzSpinning),this.delay$=new q.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){var le;this.delay$.pipe((0,B.O)(this.nzDelay),(0,ee.x)(),(0,ye.w)(Ue=>0===Ue?this.spinning$:this.spinning$.pipe(function I(he){return te=>te.lift(new R(he))}(je=>(0,_.H)(je?Ue:0)))),(0,Ye.R)(this.destroy$)).subscribe(Ue=>{this.isLoading=Ue,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent("spin").pipe((0,Ye.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),null===(le=this.directionality.change)||void 0===le||le.pipe((0,Ye.R)(this.destroy$)).subscribe(Ue=>{this.dir=Ue,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(le){const{nzSpinning:ie,nzDelay:Ue}=le;ie&&this.spinning$.next(this.nzSpinning),Ue&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return he.\u0275fac=function(le){return new(le||he)(s.Y36(Fe.jY),s.Y36(s.sBO),s.Y36(_e.Is,8))},he.\u0275cmp=s.Xpm({type:he,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(le,ie){2&le&&s.ekj("ant-spin-nested-loading",!ie.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[s.TTD],ngContentSelectors:Se,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(le,ie){1&le&&(s.F$t(),s.YNc(0,zt,5,0,"ng-template",null,0,s.W1O),s.YNc(2,$e,4,12,"div",1),s.YNc(3,et,2,2,"div",2)),2&le&&(s.xp6(2),s.Q6J("ngIf",ie.isLoading),s.xp6(1),s.Q6J("ngIf",!ie.nzSimple))},directives:[vt.O5,vt.tP],encapsulation:2}),(0,a.gn)([(0,Fe.oS)()],he.prototype,"nzIndicator",void 0),(0,a.gn)([(0,ze.Rn)()],he.prototype,"nzDelay",void 0),(0,a.gn)([(0,ze.yF)()],he.prototype,"nzSimple",void 0),(0,a.gn)([(0,ze.yF)()],he.prototype,"nzSpinning",void 0),he})(),fe=(()=>{class he{}return he.\u0275fac=function(le){return new(le||he)},he.\u0275mod=s.oAB({type:he}),he.\u0275inj=s.cJS({imports:[[_e.vT,vt.ez,Je.Q8]]}),he})()},404:(yt,be,p)=>{p.d(be,{cg:()=>et,SY:()=>Ie});var a=p(655),s=p(5e3),G=p(8076),oe=p(8693),q=p(1721),_=p(8929),W=p(5778),I=p(7625),R=p(6950),H=p(4832),B=p(9439),ee=p(226),ye=p(2845),Ye=p(9808),Fe=p(969);const ze=["overlay"];function _e(Se,Xe){if(1&Se&&(s.ynx(0),s._uU(1),s.BQk()),2&Se){const J=s.oxw(2);s.xp6(1),s.Oqu(J.nzTitle)}}function vt(Se,Xe){if(1&Se&&(s.TgZ(0,"div",2),s.TgZ(1,"div",3),s.TgZ(2,"div",4),s._UZ(3,"span",5),s.qZA(),s.TgZ(4,"div",6),s.YNc(5,_e,2,1,"ng-container",7),s.qZA(),s.qZA(),s.qZA()),2&Se){const J=s.oxw();s.ekj("ant-tooltip-rtl","rtl"===J.dir),s.Q6J("ngClass",J._classMap)("ngStyle",J.nzOverlayStyle)("@.disabled",null==J.noAnimation?null:J.noAnimation.nzNoAnimation)("nzNoAnimation",null==J.noAnimation?null:J.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),s.xp6(3),s.Q6J("ngStyle",J._contentStyleMap),s.xp6(1),s.Q6J("ngStyle",J._contentStyleMap),s.xp6(1),s.Q6J("nzStringTemplateOutlet",J.nzTitle)("nzStringTemplateOutletContext",J.nzTitleContext)}}let Je=(()=>{class Se{constructor(J,fe,he,te,le,ie){this.elementRef=J,this.hostView=fe,this.resolver=he,this.renderer=te,this.noAnimation=le,this.nzConfigService=ie,this.visibleChange=new s.vpe,this.internalVisible=!1,this.destroy$=new _.xQ,this.triggerDisposables=[]}get _title(){return this.title||this.directiveTitle||null}get _content(){return this.content||this.directiveContent||null}get _trigger(){return void 0!==this.trigger?this.trigger:"hover"}get _placement(){const J=this.placement;return Array.isArray(J)&&J.length>0?J:"string"==typeof J&&J?[J]:["top"]}get _visible(){return(void 0!==this.visible?this.visible:this.internalVisible)||!1}get _mouseEnterDelay(){return this.mouseEnterDelay||.15}get _mouseLeaveDelay(){return this.mouseLeaveDelay||.1}get _overlayClassName(){return this.overlayClassName||null}get _overlayStyle(){return this.overlayStyle||null}getProxyPropertyMap(){return{noAnimation:["noAnimation",()=>!!this.noAnimation]}}ngOnChanges(J){const{trigger:fe}=J;fe&&!fe.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(J)}ngAfterViewInit(){this.createComponent(),this.registerTriggers()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.clearTogglingTimer(),this.removeTriggerListeners()}show(){var J;null===(J=this.component)||void 0===J||J.show()}hide(){var J;null===(J=this.component)||void 0===J||J.hide()}updatePosition(){this.component&&this.component.updatePosition()}createComponent(){const J=this.componentRef;this.component=J.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),J.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties(),this.component.nzVisibleChange.pipe((0,W.x)(),(0,I.R)(this.destroy$)).subscribe(fe=>{this.internalVisible=fe,this.visibleChange.emit(fe)})}registerTriggers(){const J=this.elementRef.nativeElement,fe=this.trigger;if(this.removeTriggerListeners(),"hover"===fe){let he;this.triggerDisposables.push(this.renderer.listen(J,"mouseenter",()=>{this.delayEnterLeave(!0,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(J,"mouseleave",()=>{var te;this.delayEnterLeave(!0,!1,this._mouseLeaveDelay),(null===(te=this.component)||void 0===te?void 0:te.overlay.overlayRef)&&!he&&(he=this.component.overlay.overlayRef.overlayElement,this.triggerDisposables.push(this.renderer.listen(he,"mouseenter",()=>{this.delayEnterLeave(!1,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(he,"mouseleave",()=>{this.delayEnterLeave(!1,!1,this._mouseLeaveDelay)})))}))}else"focus"===fe?(this.triggerDisposables.push(this.renderer.listen(J,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(J,"focusout",()=>this.hide()))):"click"===fe&&this.triggerDisposables.push(this.renderer.listen(J,"click",he=>{he.preventDefault(),this.show()}))}updatePropertiesByChanges(J){this.updatePropertiesByKeys(Object.keys(J))}updatePropertiesByKeys(J){var fe;const he=Object.assign({title:["nzTitle",()=>this._title],directiveTitle:["nzTitle",()=>this._title],content:["nzContent",()=>this._content],directiveContent:["nzContent",()=>this._content],trigger:["nzTrigger",()=>this._trigger],placement:["nzPlacement",()=>this._placement],visible:["nzVisible",()=>this._visible],mouseEnterDelay:["nzMouseEnterDelay",()=>this._mouseEnterDelay],mouseLeaveDelay:["nzMouseLeaveDelay",()=>this._mouseLeaveDelay],overlayClassName:["nzOverlayClassName",()=>this._overlayClassName],overlayStyle:["nzOverlayStyle",()=>this._overlayStyle],arrowPointAtCenter:["nzArrowPointAtCenter",()=>this.arrowPointAtCenter]},this.getProxyPropertyMap());(J||Object.keys(he).filter(te=>!te.startsWith("directive"))).forEach(te=>{if(he[te]){const[le,ie]=he[te];this.updateComponentValue(le,ie())}}),null===(fe=this.component)||void 0===fe||fe.updateByDirective()}initProperties(){this.updatePropertiesByKeys()}updateComponentValue(J,fe){void 0!==fe&&(this.component[J]=fe)}delayEnterLeave(J,fe,he=-1){this.delayTimer?this.clearTogglingTimer():he>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,fe?this.show():this.hide()},1e3*he):fe&&J?this.show():this.hide()}removeTriggerListeners(){this.triggerDisposables.forEach(J=>J()),this.triggerDisposables.length=0}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(s._Vd),s.Y36(s.Qsj),s.Y36(H.P),s.Y36(B.jY))},Se.\u0275dir=s.lG2({type:Se,features:[s.TTD]}),Se})(),zt=(()=>{class Se{constructor(J,fe,he){this.cdr=J,this.directionality=fe,this.noAnimation=he,this.nzTitle=null,this.nzContent=null,this.nzArrowPointAtCenter=!1,this.nzOverlayStyle={},this.nzBackdrop=!1,this.nzVisibleChange=new _.xQ,this._visible=!1,this._trigger="hover",this.preferredPlacement="top",this.dir="ltr",this._classMap={},this._prefix="ant-tooltip",this._positions=[...R.Ek],this.destroy$=new _.xQ}set nzVisible(J){const fe=(0,q.sw)(J);this._visible!==fe&&(this._visible=fe,this.nzVisibleChange.next(fe))}get nzVisible(){return this._visible}set nzTrigger(J){this._trigger=J}get nzTrigger(){return this._trigger}set nzPlacement(J){const fe=J.map(he=>R.yW[he]);this._positions=[...fe,...R.Ek]}ngOnInit(){var J;null===(J=this.directionality.change)||void 0===J||J.pipe((0,I.R)(this.destroy$)).subscribe(fe=>{this.dir=fe,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.nzVisibleChange.complete(),this.destroy$.next(),this.destroy$.complete()}show(){this.nzVisible||(this.isEmpty()||(this.nzVisible=!0,this.nzVisibleChange.next(!0),this.cdr.detectChanges()),this.origin&&this.overlay&&this.overlay.overlayRef&&"rtl"===this.overlay.overlayRef.getDirection()&&this.overlay.overlayRef.setDirection("ltr"))}hide(){!this.nzVisible||(this.nzVisible=!1,this.nzVisibleChange.next(!1),this.cdr.detectChanges())}updateByDirective(){this.updateStyles(),this.cdr.detectChanges(),Promise.resolve().then(()=>{this.updatePosition(),this.updateVisibilityByTitle()})}updatePosition(){this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.updatePosition()}onPositionChange(J){this.preferredPlacement=(0,R.d_)(J),this.updateStyles(),this.cdr.detectChanges()}setOverlayOrigin(J){this.origin=J,this.cdr.markForCheck()}onClickOutside(J){!this.origin.nativeElement.contains(J.target)&&null!==this.nzTrigger&&this.hide()}updateVisibilityByTitle(){this.isEmpty()&&this.hide()}updateStyles(){this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0}}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.sBO),s.Y36(ee.Is,8),s.Y36(H.P))},Se.\u0275dir=s.lG2({type:Se,viewQuery:function(J,fe){if(1&J&&s.Gf(ze,5),2&J){let he;s.iGM(he=s.CRH())&&(fe.overlay=he.first)}}}),Se})(),Ie=(()=>{class Se extends Je{constructor(J,fe,he,te,le){super(J,fe,he,te,le),this.titleContext=null,this.trigger="hover",this.placement="top",this.visibleChange=new s.vpe,this.componentRef=this.hostView.createComponent($e)}getProxyPropertyMap(){return Object.assign(Object.assign({},super.getProxyPropertyMap()),{nzTooltipColor:["nzColor",()=>this.nzTooltipColor],nzTooltipTitleContext:["nzTitleContext",()=>this.titleContext]})}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(s._Vd),s.Y36(s.Qsj),s.Y36(H.P,9))},Se.\u0275dir=s.lG2({type:Se,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(J,fe){2&J&&s.ekj("ant-tooltip-open",fe.visible)},inputs:{title:["nzTooltipTitle","title"],titleContext:["nzTooltipTitleContext","titleContext"],directiveTitle:["nz-tooltip","directiveTitle"],trigger:["nzTooltipTrigger","trigger"],placement:["nzTooltipPlacement","placement"],origin:["nzTooltipOrigin","origin"],visible:["nzTooltipVisible","visible"],mouseEnterDelay:["nzTooltipMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:["nzTooltipMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:["nzTooltipOverlayClassName","overlayClassName"],overlayStyle:["nzTooltipOverlayStyle","overlayStyle"],arrowPointAtCenter:["nzTooltipArrowPointAtCenter","arrowPointAtCenter"],nzTooltipColor:"nzTooltipColor"},outputs:{visibleChange:"nzTooltipVisibleChange"},exportAs:["nzTooltip"],features:[s.qOj]}),(0,a.gn)([(0,q.yF)()],Se.prototype,"arrowPointAtCenter",void 0),Se})(),$e=(()=>{class Se extends zt{constructor(J,fe,he){super(J,fe,he),this.nzTitle=null,this.nzTitleContext=null,this._contentStyleMap={}}isEmpty(){return function ut(Se){return!(Se instanceof s.Rgc||""!==Se&&(0,q.DX)(Se))}(this.nzTitle)}updateStyles(){const J=this.nzColor&&(0,oe.o2)(this.nzColor);this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0,[`${this._prefix}-${this.nzColor}`]:J},this._contentStyleMap={backgroundColor:this.nzColor&&!J?this.nzColor:null}}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.sBO),s.Y36(ee.Is,8),s.Y36(H.P,9))},Se.\u0275cmp=s.Xpm({type:Se,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],features:[s.qOj],decls:2,vars:5,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayPush","nzArrowPointAtCenter","overlayOutsideClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-tooltip",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-tooltip-content"],[1,"ant-tooltip-arrow"],[1,"ant-tooltip-arrow-content",3,"ngStyle"],[1,"ant-tooltip-inner",3,"ngStyle"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"]],template:function(J,fe){1&J&&(s.YNc(0,vt,6,11,"ng-template",0,1,s.W1O),s.NdJ("overlayOutsideClick",function(te){return fe.onClickOutside(te)})("detach",function(){return fe.hide()})("positionChange",function(te){return fe.onPositionChange(te)})),2&J&&s.Q6J("cdkConnectedOverlayOrigin",fe.origin)("cdkConnectedOverlayOpen",fe._visible)("cdkConnectedOverlayPositions",fe._positions)("cdkConnectedOverlayPush",!0)("nzArrowPointAtCenter",fe.nzArrowPointAtCenter)},directives:[ye.pI,R.hQ,Ye.mk,Ye.PC,H.P,Fe.f],encapsulation:2,data:{animation:[G.$C]},changeDetection:0}),Se})(),et=(()=>{class Se{}return Se.\u0275fac=function(J){return new(J||Se)},Se.\u0275mod=s.oAB({type:Se}),Se.\u0275inj=s.cJS({imports:[[ee.vT,Ye.ez,ye.U8,Fe.T,R.e4,H.g]]}),Se})()}},yt=>{yt(yt.s=434)}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/ngsw.json b/src/blrec/data/webapp/ngsw.json index 71095c3..4f33e16 100644 --- a/src/blrec/data/webapp/ngsw.json +++ b/src/blrec/data/webapp/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1653113686866, + "timestamp": 1654687612398, "index": "/index.html", "assetGroups": [ { @@ -13,16 +13,16 @@ "urls": [ "/103.5b5d2a6e5a8a7479.js", "/146.92e3b29c4c754544.js", + "/183.b24b23ce9efcd26f.js", "/45.c90c3cea2bf1a66e.js", "/474.7f6529972e383566.js", "/66.31f5b9ae46ae9005.js", - "/869.0ab6b8a3f466df77.js", "/common.858f777e9296e6f2.js", "/index.html", - "/main.b9234f0840c7101a.js", + "/main.411b4a979eb179f8.js", "/manifest.webmanifest", "/polyfills.4b08448aee19bb22.js", - "/runtime.8ba8344712d0946d.js", + "/runtime.4a35817fcd0b6f13.js", "/styles.1f581691b230dc4d.css" ], "patterns": [] @@ -1636,10 +1636,10 @@ "hashTable": { "/103.5b5d2a6e5a8a7479.js": "cc0240f217015b6d4ddcc14f31fcc42e1c1c282a", "/146.92e3b29c4c754544.js": "3824de681dd1f982ea69a065cdf54d7a1e781f4d", + "/183.b24b23ce9efcd26f.js": "e0f6f72a02aaf70fde1de9f8b2f9e0eea908c5c5", "/45.c90c3cea2bf1a66e.js": "e5bfb8cf3803593e6b8ea14c90b3d3cb6a066764", "/474.7f6529972e383566.js": "1c74b5c6379705a3110c99767f97feddc42a0d54", "/66.31f5b9ae46ae9005.js": "cc22d2582d8e4c2a83e089d5a1ec32619e439ccd", - "/869.0ab6b8a3f466df77.js": "fd3e32d78790ec916177aa38b49ca32bfe62d0d4", "/assets/animal/panda.js": "fec2868bb3053dd2da45f96bbcb86d5116ed72b1", "/assets/animal/panda.svg": "bebd302cdc601e0ead3a6d2710acf8753f3d83b1", "/assets/fill/.gitkeep": "da39a3ee5e6b4b0d3255bfef95601890afd80709", @@ -3234,11 +3234,11 @@ "/assets/twotone/warning.js": "fb2d7ea232f3a99bf8f080dbc94c65699232ac01", "/assets/twotone/warning.svg": "8c7a2d3e765a2e7dd58ac674870c6655cecb0068", "/common.858f777e9296e6f2.js": "b68ca68e1e214a2537d96935c23410126cc564dd", - "/index.html": "da07776fe6f05347b1b8360f61b81c59734dcc54", - "/main.b9234f0840c7101a.js": "c8c7b588c070b957a2659f62d6a77de284aa2233", + "/index.html": "c756360e1bb95916aafb1adbc94838f09028ce0e", + "/main.411b4a979eb179f8.js": "4c5e77b0589a77410f84441d0877c1d18cb1357f", "/manifest.webmanifest": "62c1cb8c5ad2af551a956b97013ab55ce77dd586", "/polyfills.4b08448aee19bb22.js": "8e73f2d42cc13ca353cea5c886d930bd6da08d0d", - "/runtime.8ba8344712d0946d.js": "264d0e7e1e88dd1a4383d73d401f5ccd51e40eb7", + "/runtime.4a35817fcd0b6f13.js": "5c1f850331e4731999af02f1067b589ef3e99d3c", "/styles.1f581691b230dc4d.css": "6f5befbbad57c2b2e80aae855139744b8010d150" }, "navigationUrls": [ diff --git a/src/blrec/data/webapp/runtime.8ba8344712d0946d.js b/src/blrec/data/webapp/runtime.4a35817fcd0b6f13.js similarity index 95% rename from src/blrec/data/webapp/runtime.8ba8344712d0946d.js rename to src/blrec/data/webapp/runtime.4a35817fcd0b6f13.js index 6a3807f..d4406e6 100644 --- a/src/blrec/data/webapp/runtime.8ba8344712d0946d.js +++ b/src/blrec/data/webapp/runtime.4a35817fcd0b6f13.js @@ -1 +1 @@ -(()=>{"use strict";var e,v={},m={};function r(e){var i=m[e];if(void 0!==i)return i.exports;var t=m[e]={exports:{}};return v[e].call(t.exports,t,t.exports,r),t.exports}r.m=v,e=[],r.O=(i,t,o,f)=>{if(!t){var a=1/0;for(n=0;n=f)&&Object.keys(r.O).every(b=>r.O[b](t[l]))?t.splice(l--,1):(c=!1,f0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[t,o,f]},r.n=e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return r.d(i,{a:i}),i},r.d=(e,i)=>{for(var t in i)r.o(i,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:i[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((i,t)=>(r.f[t](e,i),i),[])),r.u=e=>(592===e?"common":e)+"."+{45:"c90c3cea2bf1a66e",66:"31f5b9ae46ae9005",103:"5b5d2a6e5a8a7479",146:"92e3b29c4c754544",474:"7f6529972e383566",592:"858f777e9296e6f2",869:"0ab6b8a3f466df77"}[e]+".js",r.miniCssF=e=>{},r.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={},i="blrec:";r.l=(t,o,f,n)=>{if(e[t])e[t].push(o);else{var a,c;if(void 0!==f)for(var l=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(p);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(b)),g)return g(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tu=i=>(void 0===e&&(e={createScriptURL:t=>t},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(i))})(),r.p="",(()=>{var e={666:0};r.f.j=(o,f)=>{var n=r.o(e,o)?e[o]:void 0;if(0!==n)if(n)f.push(n[2]);else if(666!=o){var a=new Promise((u,s)=>n=e[o]=[u,s]);f.push(n[2]=a);var c=r.p+r.u(o),l=new Error;r.l(c,u=>{if(r.o(e,o)&&(0!==(n=e[o])&&(e[o]=void 0),n)){var s=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;l.message="Loading chunk "+o+" failed.\n("+s+": "+p+")",l.name="ChunkLoadError",l.type=s,l.request=p,n[1](l)}},"chunk-"+o,o)}else e[o]=0},r.O.j=o=>0===e[o];var i=(o,f)=>{var l,d,[n,a,c]=f,u=0;if(n.some(p=>0!==e[p])){for(l in a)r.o(a,l)&&(r.m[l]=a[l]);if(c)var s=c(r)}for(o&&o(f);u{"use strict";var e,v={},m={};function r(e){var i=m[e];if(void 0!==i)return i.exports;var t=m[e]={exports:{}};return v[e].call(t.exports,t,t.exports,r),t.exports}r.m=v,e=[],r.O=(i,t,o,f)=>{if(!t){var a=1/0;for(n=0;n=f)&&Object.keys(r.O).every(b=>r.O[b](t[l]))?t.splice(l--,1):(c=!1,f0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[t,o,f]},r.n=e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return r.d(i,{a:i}),i},r.d=(e,i)=>{for(var t in i)r.o(i,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:i[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((i,t)=>(r.f[t](e,i),i),[])),r.u=e=>(592===e?"common":e)+"."+{45:"c90c3cea2bf1a66e",66:"31f5b9ae46ae9005",103:"5b5d2a6e5a8a7479",146:"92e3b29c4c754544",183:"b24b23ce9efcd26f",474:"7f6529972e383566",592:"858f777e9296e6f2"}[e]+".js",r.miniCssF=e=>{},r.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={},i="blrec:";r.l=(t,o,f,n)=>{if(e[t])e[t].push(o);else{var a,c;if(void 0!==f)for(var l=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(p);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(b)),g)return g(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tu=i=>(void 0===e&&(e={createScriptURL:t=>t},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(i))})(),r.p="",(()=>{var e={666:0};r.f.j=(o,f)=>{var n=r.o(e,o)?e[o]:void 0;if(0!==n)if(n)f.push(n[2]);else if(666!=o){var a=new Promise((u,s)=>n=e[o]=[u,s]);f.push(n[2]=a);var c=r.p+r.u(o),l=new Error;r.l(c,u=>{if(r.o(e,o)&&(0!==(n=e[o])&&(e[o]=void 0),n)){var s=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;l.message="Loading chunk "+o+" failed.\n("+s+": "+p+")",l.name="ChunkLoadError",l.type=s,l.request=p,n[1](l)}},"chunk-"+o,o)}else e[o]=0},r.O.j=o=>0===e[o];var i=(o,f)=>{var l,d,[n,a,c]=f,u=0;if(n.some(p=>0!==e[p])){for(l in a)r.o(a,l)&&(r.m[l]=a[l]);if(c)var s=c(r)}for(o&&o(f);u {{ profile.streams[0]?.width }}x{{ profile.streams[0]?.height }} - {{ profile.streams[0]?.r_frame_rate!.split("/")[0] }} fps + {{ fps }} fps