����JFIF��x�x����'403WebShell
403Webshell
Server IP : 78.140.185.180  /  Your IP : 3.141.107.132
Web Server : LiteSpeed
System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : builderbox ( 1072)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/builderbox/public_html/public/client/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/builderbox/public_html/public/client/main.2e5f2397dbfdb7fb8b15.js
(self.webpackChunkcli=self.webpackChunkcli||[]).push([[179],{8255:t=>{function e(t){return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=()=>[],e.resolve=e,e.id=8255,t.exports=e},7238:(t,e,n)=>{"use strict";n.d(e,{l3:()=>r,_j:()=>i,LC:()=>s,ZN:()=>g,jt:()=>a,F4:()=>h,vP:()=>l,SB:()=>u,oB:()=>c,eR:()=>d,X$:()=>o,ZE:()=>m,k1:()=>f});class i{}class s{}const r="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function u(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t){return{type:5,steps:t}}function d(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function p(t){Promise.resolve(null).then(t)}class g{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){p(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class m{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?p(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const f="!"},9238:(t,e,n)=>{"use strict";n.d(e,{rt:()=>Q,s1:()=>S,$s:()=>C,Qr:()=>N,kH:()=>Y,mK:()=>M,Em:()=>T,tE:()=>z,qV:()=>F,qm:()=>J,Kd:()=>L,X6:()=>U,yG:()=>q});var i=n(8583),s=n(7716),r=n(9765),o=n(5319),a=n(5917),l=n(6461),c=n(3342),u=n(4395),h=n(5435),d=n(8002),p=n(5257),g=n(9490),m=n(521),f=n(8553);function _(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const b="cdk-describedby-message-container",v="cdk-describedby-host";let y=0;const w=new Map;let x=null,C=(()=>{class t{constructor(t){this._document=t}describe(t,e,n){if(!this._canBeDescribed(t,e))return;const i=k(e,n);"string"!=typeof e?(A(e),w.set(i,{messageElement:e,referenceCount:0})):w.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}removeDescription(t,e,n){if(!e||!this._isElementNode(t))return;const i=k(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){const t=w.get(i);t&&0===t.referenceCount&&this._deleteMessageElement(i)}x&&0===x.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute(v);x&&this._deleteMessagesContainer(),w.clear()}_createMessageElement(t,e){const n=this._document.createElement("div");A(n),n.textContent=t,e&&n.setAttribute("role",e),this._createMessagesContainer(),x.appendChild(n),w.set(k(t,e),{messageElement:n,referenceCount:0})}_deleteMessageElement(t){const e=w.get(t),n=e&&e.messageElement;x&&n&&x.removeChild(n),w.delete(t)}_createMessagesContainer(){if(!x){const t=this._document.getElementById(b);t&&t.parentNode&&t.parentNode.removeChild(t),x=this._document.createElement("div"),x.id=b,x.style.visibility="hidden",x.classList.add("cdk-visually-hidden"),this._document.body.appendChild(x)}}_deleteMessagesContainer(){x&&x.parentNode&&(x.parentNode.removeChild(x),x=null)}_removeCdkDescribedByReferenceIds(t){const e=_(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=w.get(e);!function(t,e,n){const i=_(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute(v,""),n.referenceCount++}_removeMessageReference(t,e){const n=w.get(e);n.referenceCount--,function(t,e,n){const i=_(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(v)}_isElementDescribedByMessage(t,e){const n=_(t,"aria-describedby"),i=w.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":`${e}`.trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(i.K0))},token:t,providedIn:"root"}),t})();function k(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function A(t){t.id||(t.id="cdk-describedby-message-"+y++)}class E{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new r.xQ,this._typeaheadSubscription=o.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new r.xQ,this.change=new r.xQ,t instanceof s.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,c.b)(t=>this._pressedLetters.push(t)),(0,u.b)(t),(0,h.h)(()=>this._pressedLetters.length>0),(0,d.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n<e.length+1;n++){const i=(this._activeItemIndex+n)%e.length,s=e[i];if(!this._skipPredicateFn(s)&&0===s.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(i);break}}this._pressedLetters=[]}),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(e=>!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case l.Mf:return void this.tabOut.next();case l.JH:if(this._vertical&&n){this.setNextItemActive();break}return;case l.LH:if(this._vertical&&n){this.setPreviousItemActive();break}return;case l.SV:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.oh:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.Sd:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case l.uR:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||(0,l.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=l.A&&e<=l.Z||e>=l.xE&&e<=l.aO)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class S extends E{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class T extends E{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let O=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===P(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),s=P(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==s:"video"===i?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||I(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(m.t4))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(m.t4))},token:t,providedIn:"root"}),t})();function I(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function P(t){if(!I(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class D{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n<e.length;n++)e[n].hasAttribute(`cdk-focus-${t}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]):e[n].hasAttribute(`cdk-focus-region-${t}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",t),!this._checker.isFocusable(t)){const e=this._getFirstTabbableElement(t);return null==e||e.focus(),!!e}return t.focus(),!0}return this.focusFirstTabbableElement()}focusFirstTabbableElement(){const t=this._getRegionBoundary("start");return t&&t.focus(),!!t}focusLastTabbableElement(){const t=this._getRegionBoundary("end");return t&&t.focus(),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=0;n<e.length;n++){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(t)return t}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=e.length-1;n>=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(t)}}let F=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new D(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(O),s.LFG(s.R0b),s.LFG(i.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(O),(0,s.LFG)(s.R0b),(0,s.LFG)(i.K0))},token:t,providedIn:"root"}),t})(),M=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=(0,g.Ig)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=(0,g.Ig)(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){var t,e;const n=null===(t=this._document)||void 0===t?void 0:t.activeElement;this._previouslyFocusedElement=(null===(e=null==n?void 0:n.shadowRoot)||void 0===e?void 0:e.activeElement)||n,this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(F),s.Y36(i.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[s.TTD]}),t})();"undefined"!=typeof Element&&Element;const Z=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),R=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let L=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),n=this._document.createElement("div");for(let i=0;i<e.length;i++)e[i].parentNode.removeChild(e[i]);return n.classList.add(t),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),this._document.body.appendChild(n),n}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Z,8),s.LFG(s.R0b),s.LFG(i.K0),s.LFG(R,8))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(Z,8),(0,s.LFG)(s.R0b),(0,s.LFG)(i.K0),(0,s.LFG)(R,8))},token:t,providedIn:"root"}),t})(),N=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=n,this._ngZone=i,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(L),s.Y36(f.yq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function U(t){return 0===t.buttons}function q(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const B=new s.OlP("cdk-focus-monitor-default-options"),j=(0,m.i$)({passive:!0,capture:!0});let z=(()=>{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=U(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{q(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=$(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=$(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){const n=(0,g.fI)(t);if(!this._platform.isBrowser||1!==n.nodeType)return(0,a.of)(null);const i=(0,m.kV)(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const o={checkChildren:e,subject:new r.xQ,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=(0,g.fI)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=(0,g.fI)(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=$(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);n&&(n.checkChildren||e===$(t))&&this._originChanged(e,this._getFocusOrigin(t),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,j),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,j)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,j),t.addEventListener("mousedown",this._documentMousedownListener,j),t.addEventListener("touchstart",this._documentTouchstartListener,j),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,j),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,j),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,j),t.removeEventListener("mousedown",this._documentMousedownListener,j),t.removeEventListener("touchstart",this._documentTouchstartListener,j),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(m.t4),s.LFG(i.K0,8),s.LFG(B,8))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(s.R0b),(0,s.LFG)(m.t4),(0,s.LFG)(i.K0,8),(0,s.LFG)(B,8))},token:t,providedIn:"root"}),t})();function $(t){return t.composedPath?t.composedPath()[0]:t.target}let Y=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new s.vpe}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(z))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const V="cdk-high-contrast-black-on-white",H="cdk-high-contrast-white-on-black",G="cdk-high-contrast-active";let J=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(G),t.remove(V),t.remove(H);const e=this.getHighContrastMode();1===e?(t.add(G),t.add(V)):2===e&&(t.add(G),t.add(H))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(m.t4),s.LFG(i.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(m.t4),(0,s.LFG)(i.K0))},token:t,providedIn:"root"}),t})(),Q=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(J))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[m.ud,f.Q8]]}),t})()},946:(t,e,n)=>{"use strict";n.d(e,{vT:()=>a,Is:()=>o});var i=n(7716),s=n(8583);const r=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,i.f3M)(s.K0)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.vpe,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(r,8))},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t((0,i.LFG)(r,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},8345:(t,e,n)=>{"use strict";n.d(e,{P3:()=>l,Ov:()=>u,A8:()=>h,eX:()=>c,k:()=>d,Z9:()=>a});var i=n(5639),s=n(5917),r=n(9765),o=n(7716);function a(t){return t&&"function"==typeof t.connect}class l extends class{}{constructor(t){super(),this._data=t}connect(){return(0,i.b)(this._data)?this._data:(0,s.of)(this._data)}disconnect(){}}class c{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,i,s){t.forEachOperation((t,r,o)=>{let a,l;null==t.previousIndex?(a=this._insertView(()=>n(t,r,o),o,e,i(t)),l=a?1:0):null==o?(this._detachAndCacheView(r,e),l=3):(a=this._moveView(r,o,e,i(t)),l=2),s&&s({context:null==a?void 0:a.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,n,i){const s=this._insertViewFromCache(e,n);if(s)return void(s.context.$implicit=i);const r=t();return n.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(t,e){const n=e.detach(t);this._maybeCacheView(n,e)}_moveView(t,e,n,i){const s=n.get(t);return n.move(s,e),s.context.$implicit=i,s}_maybeCacheView(t,e){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(t);else{const n=e.indexOf(t);-1===n?t.destroy():e.remove(n)}}_insertViewFromCache(t,e){const n=this._viewCache.pop();return n&&e.insert(n,t),n||null}}class u{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new r.xQ,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let h=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,o.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const d=new o.OlP("_ViewRepeater")},6461:(t,e,n)=>{"use strict";n.d(e,{A:()=>v,ZH:()=>i,yY:()=>f,JH:()=>m,uR:()=>u,K5:()=>r,hY:()=>o,Sd:()=>h,oh:()=>d,aO:()=>b,VM:()=>c,Ku:()=>l,SV:()=>g,L_:()=>a,Mf:()=>s,LH:()=>p,Z:()=>y,xE:()=>_,Vb:()=>w});const i=8,s=9,r=13,o=27,a=32,l=33,c=34,u=35,h=36,d=37,p=38,g=39,m=40,f=46,_=48,b=57,v=65,y=90;function w(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},5072:(t,e,n)=>{"use strict";n.d(e,{Yg:()=>y,u3:()=>x});var i=n(7716),s=n(9490),r=n(9765),o=n(739),a=n(8071),l=n(7574),c=n(5257),u=n(3653),h=n(4395),d=n(8002),p=n(9761),g=n(6782),m=n(521);const f=new Set;let _,b=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):v}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!f.has(t))try{_||(_=document.createElement("style"),_.setAttribute("type","text/css"),document.head.appendChild(_)),_.sheet&&(_.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),f.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(m.t4))},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t((0,i.LFG)(m.t4))},token:t,providedIn:"root"}),t})();function v(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let y=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new r.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return w((0,s.Eq)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=w((0,s.Eq)(t)).map(t=>this._registerQuery(t).observable);let n=(0,o.aj)(e);return n=(0,a.z)(n.pipe((0,c.q)(1)),n.pipe((0,u.T)(1),(0,h.b)(0))),n.pipe((0,d.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new l.y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe((0,p.O)(e),(0,d.U)(({matches:e})=>({query:t,matches:e})),(0,g.R)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(b),i.LFG(i.R0b))},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t((0,i.LFG)(b),(0,i.LFG)(i.R0b))},token:t,providedIn:"root"}),t})();function w(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const x={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)"}},8553:(t,e,n)=>{"use strict";n.d(e,{wD:()=>u,yq:()=>c,Q8:()=>h});var i=n(9490),s=n(7716),r=n(7574),o=n(9765),a=n(4395);let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=(0,i.fI)(t);return new r.y(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.xQ,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(l))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(l))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,i.Ig)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=(0,i.su)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,a.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[l]}),t})()},625:(t,e,n)=>{"use strict";n.d(e,{aV:()=>z,X_:()=>C,Xj:()=>I,U8:()=>Y});var i=n(3416),s=n(7716),r=n(521),o=n(946),a=n(8583),l=n(9490),c=n(7636),u=n(9765),h=n(5319),d=n(6682);n(7393);var p=n(5257),g=n(6782);n(6461);const m=(0,r.Mq)();class f{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=(0,l.HM)(-this._previousScrollPosition.left),t.style.top=(0,l.HM)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),m&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),m&&(e.scrollBehavior=i,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class _{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class b{enable(){}disable(){}attach(){}}function v(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function y(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class w{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();v(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let x=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new b,this.close=t=>new _(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new f(this._viewportRuler,this._document),this.reposition=t=>new w(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.mF),s.LFG(i.rL),s.LFG(s.R0b),s.LFG(a.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(i.mF),(0,s.LFG)(i.rL),(0,s.LFG)(s.R0b),(0,s.LFG)(a.K0))},token:t,providedIn:"root"}),t})();class C{constructor(t){if(this.scrollStrategy=new b,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class k{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class A{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let E=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(a.K0))},token:t,providedIn:"root"}),t})(),S=(()=>{class t extends E{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(a.K0))},token:t,providedIn:"root"}),t})(),T=(()=>{class t extends E{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0),s.LFG(r.t4))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(a.K0),(0,s.LFG)(r.t4))},token:t,providedIn:"root"}),t})();const O=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let I=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||O){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}const e=this._document.createElement("div");e.classList.add(t),O?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0),s.LFG(r.t4))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(a.K0),(0,s.LFG)(r.t4))},token:t,providedIn:"root"}),t})();class P{constructor(t,e,n,i,s,r,o,a,l){this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=s,this._keyboardDispatcher=r,this._document=o,this._location=a,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new u.xQ,this._attachments=new u.xQ,this._detachments=new u.xQ,this._locationChanges=h.w.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new u.xQ,this._outsidePointerEvents=new u.xQ,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=(0,l.HM)(this._config.width),t.height=(0,l.HM)(this._config.height),t.minWidth=(0,l.HM)(this._config.minWidth),t.minHeight=(0,l.HM)(this._config.minHeight),t.maxWidth=(0,l.HM)(this._config.maxWidth),t.maxHeight=(0,l.HM)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;(0,l.Eq)(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe((0,g.R)((0,d.T)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const D="cdk-overlay-connected-position-bounding-box",F=/([A-Za-z%]+)$/;class M{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new u.xQ,this._resizeSubscription=h.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(D),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleArea<l.visibleArea)&&(s={overlayFit:l,overlayPoint:a,originPoint:o,position:r,overlayRect:e})}if(i.length){let t=null,e=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>e&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Z(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(D),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){const s=L(e);let{x:r,y:o}=t,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(r+=a),l&&(o+=l);let c=0-o,u=o+s.height-n.height,h=this._subtractOverflows(s.width,0-r,r+s.width-n.width),d=this._subtractOverflows(s.height,c,u),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=R(this._overlayRef.getConfig().minHeight),o=R(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=L(e),s=this._viewportRect,r=Math.max(t.x+i.width-s.width,0),o=Math.max(t.y+i.height-s.height,0),a=Math.max(s.top-n.top-t.y,0),l=Math.max(s.left-n.left-t.x,0);let c=0,u=0;return c=i.width<=s.width?l||-r:t.x<this._viewportMargin?s.left-n.left-t.x:0,u=i.height<=s.height?a||-o:t.y<this._viewportMargin?s.top-n.top-t.y:0,this._previousPushAmount={x:c,y:u},{x:t.x+c,y:t.y+u}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new A(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,i=this._isRtl();let s,r,o,a,l,c;if("top"===e.overlayY)r=t.y,s=n.height-r+this._viewportMargin;else if("bottom"===e.overlayY)o=n.height-t.y+2*this._viewportMargin,s=n.height-o+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),i=this._lastBoundingBoxSize.height;s=2*e,r=t.y-e,s>i&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=(0,l.HM)(n.height),i.top=(0,l.HM)(n.top),i.bottom=(0,l.HM)(n.bottom),i.width=(0,l.HM)(n.width),i.left=(0,l.HM)(n.left),i.right=(0,l.HM)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=(0,l.HM)(t)),s&&(i.maxWidth=(0,l.HM)(s))}this._lastBoundingBoxSize=n,Z(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Z(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Z(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();Z(n,this._getExactOverlayY(e,t,i)),Z(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=(0,l.HM)(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=(0,l.HM)(r.maxWidth):s&&(n.maxWidth="")),Z(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=(0,l.HM)(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=(0,l.HM)(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:y(t,n),isOriginOutsideView:v(t,n),isOverlayClipped:y(e,n),isOverlayOutsideView:v(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&(0,l.Eq)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function Z(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function R(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(F);return n&&"px"!==n?null:parseFloat(e)}return t||null}function L(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class N{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new M(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new k(t,e,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const U="cdk-global-overlay-wrapper";class q{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(U),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(U),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let B=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new q}connectedTo(t,e,n){return new N(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new M(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.rL),s.LFG(a.K0),s.LFG(r.t4),s.LFG(I))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(i.rL),(0,s.LFG)(a.K0),(0,s.LFG)(r.t4),(0,s.LFG)(I))},token:t,providedIn:"root"}),t})(),j=0,z=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new C(t);return s.direction=s.direction||this._directionality.value,new P(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+j++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new c.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(x),s.LFG(I),s.LFG(s._Vd),s.LFG(B),s.LFG(S),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(a.K0),s.LFG(o.Is),s.LFG(a.Ye),s.LFG(T))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const $={provide:new s.OlP("cdk-connected-overlay-scroll-strategy"),deps:[z],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[z,$],imports:[[o.vT,c.eL,i.Cl],i.Cl]}),t})()},521:(t,e,n)=>{"use strict";n.d(e,{t4:()=>a,ud:()=>l,kV:()=>b,_i:()=>_,qK:()=>u,i$:()=>m,Mq:()=>f});var i=n(7716),s=n(8583);let r;try{r="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(v){r=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,s.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!r)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.Lbi))},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t((0,i.LFG)(i.Lbi))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(c),o;let t=document.createElement("input");return o=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let h,d,p,g;function m(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function f(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if("scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return p}function _(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function b(t){if(function(){if(null==g){const t="undefined"!=typeof document?document.head:null;g=!(!t||!t.createShadowRoot&&!t.attachShadow)}return g}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},7636:(t,e,n)=>{"use strict";n.d(e,{en:()=>c,ig:()=>h,Pl:()=>d,C5:()=>o,u0:()=>u,nK:()=>g,eL:()=>p,UE:()=>a});var i=n(7716),s=n(8583);class r{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class o extends r{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class a extends r{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class l extends r{constructor(t){super(),this.element=t instanceof i.SBq?t.nativeElement:t}}class c{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof o?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class u extends c{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let h=(()=>{class t extends a{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Rgc),i.Y36(i.s_b))},t.\u0275dir=i.lG2({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.qOj]}),t})(),d=(()=>{class t extends c{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(s.K0))},t.\u0275dir=i.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();class g{constructor(t,e){this._parentInjector=t,this._customTokens=e}get(t,e){const n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)}}},3416:(t,e,n)=>{"use strict";n.d(e,{ZD:()=>f,mF:()=>g,Cl:()=>_,rL:()=>m});var i=n(9490),s=n(7716),r=n(9765),o=n(5917),a=n(7574),l=n(2759);n(1927),n(4581),n(5319),n(5639),n(2298),n(7519);var c=n(13),u=n(5435),h=(n(6782),n(9761),n(9328),n(3190),n(521)),d=n(8583),p=n(946);n(8345);let g=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new r.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new a.y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe((0,c.e)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,o.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,u.h)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=(0,i.fI)(e),s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return(0,l.R)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(h.t4),s.LFG(d.K0,8))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(s.R0b),(0,s.LFG)(h.t4),(0,s.LFG)(d.K0,8))},token:t,providedIn:"root"}),t})(),m=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new r.xQ,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe((0,c.e)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h.t4),s.LFG(s.R0b),s.LFG(d.K0,8))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(h.t4),(0,s.LFG)(s.R0b),(0,s.LFG)(d.K0,8))},token:t,providedIn:"root"}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[p.vT,h.ud,f],p.vT,f]}),t})()},9490:(t,e,n)=>{"use strict";n.d(e,{t6:()=>o,Eq:()=>a,Ig:()=>s,HM:()=>l,fI:()=>c,su:()=>r,du:()=>u});var i=n(7716);function s(t){return null!=t&&"false"!=`${t}`}function r(t,e=0){return o(t)?Number(t):e}function o(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function a(t){return Array.isArray(t)?t:[t]}function l(t){return null==t?"":"string"==typeof t?t:`${t}px`}function c(t){return t instanceof i.SBq?t.nativeElement:t}function u(t,e=/\s+/){const n=[];if(null!=t){const i=Array.isArray(t)?t:`${t}`.split(e);for(const t of i){const e=`${t}`.trim();e&&n.push(e)}}return n}},8583:(t,e,n)=>{"use strict";n.d(e,{mr:()=>y,Ov:()=>Zt,ez:()=>Yt,H9:()=>jt,K0:()=>l,uU:()=>Nt,JJ:()=>Bt,Do:()=>x,Nd:()=>Ut,V_:()=>h,Ye:()=>C,S$:()=>b,mk:()=>_t,sg:()=>vt,O5:()=>wt,PC:()=>Tt,RF:()=>At,n9:()=>Et,ED:()=>St,tP:()=>Ot,b0:()=>w,lw:()=>c,rS:()=>Lt,EM:()=>Gt,JF:()=>Wt,NF:()=>Ht,w_:()=>a,bD:()=>Vt,q:()=>r,Mx:()=>ft,HT:()=>o});var i=n(7716);let s=null;function r(){return s}function o(t){s||(s=t)}class a{}const l=new i.OlP("DocumentToken");let c=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return(0,i.LFG)(d)}const h=new i.OlP("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return r().getBaseHref(this._doc)}onPopState(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(l))},t.\u0275prov=(0,i.Yz7)({factory:g,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function g(){return new d((0,i.LFG)(l))}function m(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function f(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function _(t){return t&&"?"!==t[0]?"?"+t:t}let b=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:v,token:t,providedIn:"root"}),t})();function v(t){const e=(0,i.LFG)(l).location;return new w((0,i.LFG)(c),e&&e.origin||"")}const y=new i.OlP("appBaseHref");let w=(()=>{class t extends b{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+_(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+_(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+_(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(y,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t extends b{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+_(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+_(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(y,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(t,e){this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=f(A(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+_(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,A(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(b),i.LFG(c))},t.normalizeQueryParams=_,t.joinWithSlash=m,t.stripTrailingSlash=f,t.\u0275prov=(0,i.Yz7)({factory:k,token:t,providedIn:"root"}),t})();function k(){return new C((0,i.LFG)(b),(0,i.LFG)(c))}function A(t){return t.replace(/\/index.html$/,"")}const E={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var S=(()=>((S=S||{})[S.Decimal=0]="Decimal",S[S.Percent=1]="Percent",S[S.Currency=2]="Currency",S[S.Scientific=3]="Scientific",S))(),T=(()=>((T=T||{})[T.Zero=0]="Zero",T[T.One=1]="One",T[T.Two=2]="Two",T[T.Few=3]="Few",T[T.Many=4]="Many",T[T.Other=5]="Other",T))(),O=(()=>((O=O||{})[O.Format=0]="Format",O[O.Standalone=1]="Standalone",O))(),I=(()=>((I=I||{})[I.Narrow=0]="Narrow",I[I.Abbreviated=1]="Abbreviated",I[I.Wide=2]="Wide",I[I.Short=3]="Short",I))(),P=(()=>((P=P||{})[P.Short=0]="Short",P[P.Medium=1]="Medium",P[P.Long=2]="Long",P[P.Full=3]="Full",P))(),D=(()=>((D=D||{})[D.Decimal=0]="Decimal",D[D.Group=1]="Group",D[D.List=2]="List",D[D.PercentSign=3]="PercentSign",D[D.PlusSign=4]="PlusSign",D[D.MinusSign=5]="MinusSign",D[D.Exponential=6]="Exponential",D[D.SuperscriptingExponent=7]="SuperscriptingExponent",D[D.PerMille=8]="PerMille",D[D[1/0]=9]="Infinity",D[D.NaN=10]="NaN",D[D.TimeSeparator=11]="TimeSeparator",D[D.CurrencyDecimal=12]="CurrencyDecimal",D[D.CurrencyGroup=13]="CurrencyGroup",D))();function F(t,e){return q((0,i.cg1)(t)[i.wAp.DateFormat],e)}function M(t,e){return q((0,i.cg1)(t)[i.wAp.TimeFormat],e)}function Z(t,e){return q((0,i.cg1)(t)[i.wAp.DateTimeFormat],e)}function R(t,e){const n=(0,i.cg1)(t),s=n[i.wAp.NumberSymbols][e];if(void 0===s){if(e===D.CurrencyDecimal)return n[i.wAp.NumberSymbols][D.Decimal];if(e===D.CurrencyGroup)return n[i.wAp.NumberSymbols][D.Group]}return s}function L(t,e){return(0,i.cg1)(t)[i.wAp.NumberFormats][e]}const N=i.kL8;function U(t){if(!t[i.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[i.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function q(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function B(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const j=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,z={},$=/((?:[^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 Y=(()=>((Y=Y||{})[Y.Short=0]="Short",Y[Y.ShortGMT=1]="ShortGMT",Y[Y.Long=2]="Long",Y[Y.Extended=3]="Extended",Y))(),V=(()=>((V=V||{})[V.FullYear=0]="FullYear",V[V.Month=1]="Month",V[V.Date=2]="Date",V[V.Hours=3]="Hours",V[V.Minutes=4]="Minutes",V[V.Seconds=5]="Seconds",V[V.FractionalSeconds=6]="FractionalSeconds",V[V.Day=7]="Day",V))(),H=(()=>((H=H||{})[H.DayPeriods=0]="DayPeriods",H[H.Days=1]="Days",H[H.Months=2]="Months",H[H.Eras=3]="Eras",H))();function G(t,e,n,i){let s=function(t){if(at(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,n=1,i=1]=t.split("-").map(t=>+t);return J(e,n-1,i)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(j))return function(t){const e=new Date(0);let n=0,i=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-n,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,o,a,l,c),e}(n)}const e=new Date(t);if(!at(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=Q(n,e)||e;let r,o=[];for(;e;){if(r=$.exec(e),!r){o.push(e);break}{o=o.concat(r.slice(1));const t=o.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();i&&(a=ot(i,a),s=function(t,e,n){const i=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(ot(e,i)-i))}(s,i));let l="";return o.forEach(t=>{const e=function(t){if(rt[t])return rt[t];let e;switch(t){case"G":case"GG":case"GGG":e=tt(H.Eras,I.Abbreviated);break;case"GGGG":e=tt(H.Eras,I.Wide);break;case"GGGGG":e=tt(H.Eras,I.Narrow);break;case"y":e=X(V.FullYear,1,0,!1,!0);break;case"yy":e=X(V.FullYear,2,0,!0,!0);break;case"yyy":e=X(V.FullYear,3,0,!1,!0);break;case"yyyy":e=X(V.FullYear,4,0,!1,!0);break;case"Y":e=st(1);break;case"YY":e=st(2,!0);break;case"YYY":e=st(3);break;case"YYYY":e=st(4);break;case"M":case"L":e=X(V.Month,1,1);break;case"MM":case"LL":e=X(V.Month,2,1);break;case"MMM":e=tt(H.Months,I.Abbreviated);break;case"MMMM":e=tt(H.Months,I.Wide);break;case"MMMMM":e=tt(H.Months,I.Narrow);break;case"LLL":e=tt(H.Months,I.Abbreviated,O.Standalone);break;case"LLLL":e=tt(H.Months,I.Wide,O.Standalone);break;case"LLLLL":e=tt(H.Months,I.Narrow,O.Standalone);break;case"w":e=it(1);break;case"ww":e=it(2);break;case"W":e=it(1,!0);break;case"d":e=X(V.Date,1);break;case"dd":e=X(V.Date,2);break;case"c":case"cc":e=X(V.Day,1);break;case"ccc":e=tt(H.Days,I.Abbreviated,O.Standalone);break;case"cccc":e=tt(H.Days,I.Wide,O.Standalone);break;case"ccccc":e=tt(H.Days,I.Narrow,O.Standalone);break;case"cccccc":e=tt(H.Days,I.Short,O.Standalone);break;case"E":case"EE":case"EEE":e=tt(H.Days,I.Abbreviated);break;case"EEEE":e=tt(H.Days,I.Wide);break;case"EEEEE":e=tt(H.Days,I.Narrow);break;case"EEEEEE":e=tt(H.Days,I.Short);break;case"a":case"aa":case"aaa":e=tt(H.DayPeriods,I.Abbreviated);break;case"aaaa":e=tt(H.DayPeriods,I.Wide);break;case"aaaaa":e=tt(H.DayPeriods,I.Narrow);break;case"b":case"bb":case"bbb":e=tt(H.DayPeriods,I.Abbreviated,O.Standalone,!0);break;case"bbbb":e=tt(H.DayPeriods,I.Wide,O.Standalone,!0);break;case"bbbbb":e=tt(H.DayPeriods,I.Narrow,O.Standalone,!0);break;case"B":case"BB":case"BBB":e=tt(H.DayPeriods,I.Abbreviated,O.Format,!0);break;case"BBBB":e=tt(H.DayPeriods,I.Wide,O.Format,!0);break;case"BBBBB":e=tt(H.DayPeriods,I.Narrow,O.Format,!0);break;case"h":e=X(V.Hours,1,-12);break;case"hh":e=X(V.Hours,2,-12);break;case"H":e=X(V.Hours,1);break;case"HH":e=X(V.Hours,2);break;case"m":e=X(V.Minutes,1);break;case"mm":e=X(V.Minutes,2);break;case"s":e=X(V.Seconds,1);break;case"ss":e=X(V.Seconds,2);break;case"S":e=X(V.FractionalSeconds,1);break;case"SS":e=X(V.FractionalSeconds,2);break;case"SSS":e=X(V.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=et(Y.Short);break;case"ZZZZZ":e=et(Y.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=et(Y.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=et(Y.Long);break;default:return null}return rt[t]=e,e}(t);l+=e?e(s,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function J(t,e,n){const i=new Date(0);return i.setFullYear(t,e,n),i.setHours(0,0,0),i}function Q(t,e){const n=function(t){return(0,i.cg1)(t)[i.wAp.LocaleId]}(t);if(z[n]=z[n]||{},z[n][e])return z[n][e];let s="";switch(e){case"shortDate":s=F(t,P.Short);break;case"mediumDate":s=F(t,P.Medium);break;case"longDate":s=F(t,P.Long);break;case"fullDate":s=F(t,P.Full);break;case"shortTime":s=M(t,P.Short);break;case"mediumTime":s=M(t,P.Medium);break;case"longTime":s=M(t,P.Long);break;case"fullTime":s=M(t,P.Full);break;case"short":const e=Q(t,"shortTime"),n=Q(t,"shortDate");s=W(Z(t,P.Short),[e,n]);break;case"medium":const i=Q(t,"mediumTime"),r=Q(t,"mediumDate");s=W(Z(t,P.Medium),[i,r]);break;case"long":const o=Q(t,"longTime"),a=Q(t,"longDate");s=W(Z(t,P.Long),[o,a]);break;case"full":const l=Q(t,"fullTime"),c=Q(t,"fullDate");s=W(Z(t,P.Full),[l,c])}return s&&(z[n][e]=s),s}function W(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function K(t,e,n="-",i,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=n));let o=String(t);for(;o.length<e;)o="0"+o;return i&&(o=o.substr(o.length-e)),r+o}function X(t,e,n=0,i=!1,s=!1){return function(r,o){let a=function(t,e){switch(t){case V.FullYear:return e.getFullYear();case V.Month:return e.getMonth();case V.Date:return e.getDate();case V.Hours:return e.getHours();case V.Minutes:return e.getMinutes();case V.Seconds:return e.getSeconds();case V.FractionalSeconds:return e.getMilliseconds();case V.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,r);if((n>0||a>-n)&&(a+=n),t===V.Hours)0===a&&-12===n&&(a=12);else if(t===V.FractionalSeconds)return l=e,K(a,3).substr(0,l);var l;const c=R(o,D.MinusSign);return K(a,e,c,i,s)}}function tt(t,e,n=O.Format,s=!1){return function(r,o){return function(t,e,n,s,r,o){switch(n){case H.Months:return function(t,e,n){const s=(0,i.cg1)(t),r=q([s[i.wAp.MonthsFormat],s[i.wAp.MonthsStandalone]],e);return q(r,n)}(e,r,s)[t.getMonth()];case H.Days:return function(t,e,n){const s=(0,i.cg1)(t),r=q([s[i.wAp.DaysFormat],s[i.wAp.DaysStandalone]],e);return q(r,n)}(e,r,s)[t.getDay()];case H.DayPeriods:const a=t.getHours(),l=t.getMinutes();if(o){const t=function(t){const e=(0,i.cg1)(t);return U(e),(e[i.wAp.ExtraData][2]||[]).map(t=>"string"==typeof t?B(t):[B(t[0]),B(t[1])])}(e),n=function(t,e,n){const s=(0,i.cg1)(t);U(s);const r=q([s[i.wAp.ExtraData][0],s[i.wAp.ExtraData][1]],e)||[];return q(r,n)||[]}(e,r,s),o=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,i=a>=e.hours&&l>=e.minutes,s=a<n.hours||a===n.hours&&l<n.minutes;if(e.hours<n.hours){if(i&&s)return!0}else if(i||s)return!0}else if(t.hours===a&&t.minutes===l)return!0;return!1});if(-1!==o)return n[o]}return function(t,e,n){const s=(0,i.cg1)(t),r=q([s[i.wAp.DayPeriodsFormat],s[i.wAp.DayPeriodsStandalone]],e);return q(r,n)}(e,r,s)[a<12?0:1];case H.Eras:return function(t,e){return q((0,i.cg1)(t)[i.wAp.Eras],e)}(e,s)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(r,o,t,e,n,s)}}function et(t){return function(e,n,i){const s=-1*i,r=R(n,D.MinusSign),o=s>0?Math.floor(s/60):Math.ceil(s/60);switch(t){case Y.Short:return(s>=0?"+":"")+K(o,2,r)+K(Math.abs(s%60),2,r);case Y.ShortGMT:return"GMT"+(s>=0?"+":"")+K(o,1,r);case Y.Long:return"GMT"+(s>=0?"+":"")+K(o,2,r)+":"+K(Math.abs(s%60),2,r);case Y.Extended:return 0===i?"Z":(s>=0?"+":"")+K(o,2,r)+":"+K(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function nt(t){return J(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function it(t,e=!1){return function(n,i){let s;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();s=1+Math.floor((e+t)/7)}else{const t=nt(n),e=function(t){const e=J(t,0,1).getDay();return J(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),i=t.getTime()-e.getTime();s=1+Math.round(i/6048e5)}return K(s,t,R(i,D.MinusSign))}}function st(t,e=!1){return function(n,i){return K(nt(n).getFullYear(),t,R(i,D.MinusSign),e)}}const rt={};function ot(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function at(t){return t instanceof Date&&!isNaN(t.valueOf())}const lt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ct=".",ut="0";function ht(t,e,n,i,s,r,o=!1){let a="",l=!1;if(isFinite(t)){let c=function(t){let e,n,i,s,r,o=Math.abs(t)+"",a=0;for((n=o.indexOf(ct))>-1&&(o=o.replace(ct,"")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;o.charAt(i)===ut;i++);if(i===(r=o.length))e=[0],n=1;else{for(r--;o.charAt(r)===ut;)r--;for(n-=i,e=[],s=0;i<=r;i++,s++)e[s]=Number(o.charAt(i))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);o&&(c=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));let u=e.minInt,h=e.minFrac,d=e.maxFrac;if(r){const t=r.match(lt);if(null===t)throw new Error(`${r} is not a valid digit info`);const e=t[1],n=t[3],i=t[5];null!=e&&(u=pt(e)),null!=n&&(h=pt(n)),null!=i?d=pt(i):null!=n&&h>d&&(d=h)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let i=t.digits,s=i.length-t.integerLen;const r=Math.min(Math.max(e,s),n);let o=r+t.integerLen,a=i[o];if(o>0){i.splice(Math.max(t.integerLen,o));for(let t=o;t<i.length;t++)i[t]=0}else{s=Math.max(0,s),t.integerLen=1,i.length=Math.max(1,o=r+1),i[0]=0;for(let t=1;t<o;t++)i[t]=0}if(a>=5)if(o-1<0){for(let e=0;e>o;e--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[o-1]++;for(;s<Math.max(0,r);s++)i.push(0);let l=0!==r;const c=e+t.integerLen,u=i.reduceRight(function(t,e,n,i){return i[n]=(e+=t)<10?e:e-10,l&&(0===i[n]&&n>=c?i.pop():l=!1),e>=10?1:0},0);u&&(i.unshift(u),t.integerLen++)}(c,h,d);let p=c.digits,g=c.integerLen;const m=c.exponent;let f=[];for(l=p.every(t=>!t);g<u;g++)p.unshift(0);for(;g<0;g++)p.unshift(0);g>0?f=p.splice(g,p.length):(f=p,p=[0]);const _=[];for(p.length>=e.lgSize&&_.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)_.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&_.unshift(p.join("")),a=_.join(R(n,i)),f.length&&(a+=R(n,s)+f.join("")),m&&(a+=R(n,D.Exponential)+"+"+m)}else a=R(n,D.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}function dt(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),s=i[0],r=i[1],o=-1!==s.indexOf(ct)?s.split(ct):[s.substring(0,s.lastIndexOf(ut)+1),s.substring(s.lastIndexOf(ut)+1)],a=o[0],l=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u<l.length;u++){const t=l.charAt(u);t===ut?n.minFrac=n.maxFrac=u+1:"#"===t?n.maxFrac=u+1:n.posSuf+=t}const c=a.split(",");if(n.gSize=c[1]?c[1].length:0,n.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,r){const t=s.length-n.posPre.length-n.posSuf.length,e=r.indexOf("#");n.negPre=r.substr(0,e).replace(/'/g,""),n.negSuf=r.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}function pt(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class gt{}let mt=(()=>{class t extends gt{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(N(e||this.locale)(t)){case T.Zero:return"zero";case T.One:return"one";case T.Two:return"two";case T.Few:return"few";case T.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.soG))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function ft(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let _t=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class bt{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let vt=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new bt(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new yt(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new yt(t,s);e.push(r)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=i,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class yt{constructor(t,e){this.record=t,this.view=e}}let wt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new xt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Ct("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Ct("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class xt{constructor(){this.$implicit=null,this.ngIf=null}}function Ct(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.AaK)(e)}'.`)}class kt{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let At=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),Et=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new kt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(At,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),St=(()=>{class t{constructor(t,e,n){n._addDefault(new kt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(At,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Tt=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.aQg),i.Y36(i.Qsj))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Ot=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.TTD]}),t})();function It(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,i.AaK)(t)}'`)}class Pt{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Dt{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Ft=new Dt,Mt=new Pt;let Zt=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,i.QGY)(e))return Ft;if((0,i.F4k)(e))return Mt;throw It(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO,16))},t.\u0275pipe=i.Yjl({name:"async",type:t,pure:!1}),t})();const Rt=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let Lt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw It(t,e);return e.replace(Rt,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"titlecase",type:t,pure:!0}),t})(),Nt=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",i,s){if(null==e||""===e||e!=e)return null;try{return G(e,n,s||this.locale,i)}catch(r){throw It(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.soG,16))},t.\u0275pipe=i.Yjl({name:"date",type:t,pure:!0}),t})(),Ut=(()=>{class t{constructor(t){this.differs=t,this.keyValues=[],this.compareFn=qt}transform(t,e=qt){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());const n=this.differ.diff(t),i=e!==this.compareFn;return n&&(this.keyValues=[],n.forEachItem(t=>{this.keyValues.push({key:t.key,value:t.currentValue})})),(n||i)&&(this.keyValues.sort(e),this.compareFn=e),this.keyValues}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.aQg,16))},t.\u0275pipe=i.Yjl({name:"keyvalue",type:t,pure:!1}),t})();function qt(t,e){const n=t.key,i=e.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;const s=String(n),r=String(i);return s==r?0:s<r?-1:1}let Bt=(()=>{class t{constructor(t){this._locale=t}transform(e,n,i){if(!zt(e))return null;i=i||this._locale;try{return function(t,e,n){return ht(t,dt(L(e,S.Decimal),R(e,D.MinusSign)),e,D.Group,D.Decimal,n)}($t(e),i,n)}catch(s){throw It(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.soG,16))},t.\u0275pipe=i.Yjl({name:"number",type:t,pure:!0}),t})(),jt=(()=>{class t{constructor(t,e="USD"){this._locale=t,this._defaultCurrencyCode=e}transform(e,n=this._defaultCurrencyCode,s="symbol",r,o){if(!zt(e))return null;o=o||this._locale,"boolean"==typeof s&&(s=s?"symbol":"code");let a=n||this._defaultCurrencyCode;"code"!==s&&(a="symbol"===s||"symbol-narrow"===s?function(t,e,n="en"){const s=function(t){return(0,i.cg1)(t)[i.wAp.Currencies]}(n)[t]||E[t]||[],r=s[1];return"narrow"===e&&"string"==typeof r?r:s[0]||t}(a,"symbol"===s?"wide":"narrow",o):s);try{return function(t,e,n,i,s){const r=dt(L(e,S.Currency),R(e,D.MinusSign));return r.minFrac=function(t){let e;const n=E[t];return n&&(e=n[2]),"number"==typeof e?e:2}(i),r.maxFrac=r.minFrac,ht(t,r,e,D.CurrencyGroup,D.CurrencyDecimal,s).replace("\xa4",n).replace("\xa4","").trim()}($t(e),o,a,n,r)}catch(l){throw It(t,l.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.soG,16),i.Y36(i.EJc,16))},t.\u0275pipe=i.Yjl({name:"currency",type:t,pure:!0}),t})();function zt(t){return!(null==t||""===t||t!=t)}function $t(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return t}let Yt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:gt,useClass:mt}]}),t})();const Vt="browser";function Ht(t){return t===Vt}let Gt=(()=>{class t{}return t.\u0275prov=(0,i.Yz7)({token:t,providedIn:"root",factory:()=>new Jt((0,i.LFG)(l),window)}),t})();class Jt{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Qt(this.window.history)||Qt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Qt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Wt{}},1841:(t,e,n)=>{"use strict";n.d(e,{TP:()=>I,eN:()=>T,JF:()=>B,dt:()=>x,LE:()=>f,aW:()=>w,Zn:()=>A});var i=n(8583),s=n(7716),r=n(5917),o=n(7574),a=n(4612),l=n(5435),c=n(8002);class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return g(t)}encodeValue(t){return g(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function g(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function m(t){return`${t}`}class f{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new f({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(m(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(m(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class _{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function b(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function v(t){return"undefined"!=typeof Blob&&t instanceof Blob}function y(t){return"undefined"!=typeof FormData&&t instanceof FormData}class w{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.context||(this.context=new _),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new f,this.urlWithParams=e}serializeBody(){return null===this.body?null:b(this.body)||v(this.body)||y(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof f?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||y(this.body)?null:v(this.body)?this.body.type||null:b(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof f?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const n=t.method||this.method,i=t.url||this.url,s=t.responseType||this.responseType,r=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let l=t.headers||this.headers,c=t.params||this.params;const u=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new w(n,i,r,{params:c,headers:l,context:u,reportProgress:a,responseType:s,withCredentials:o})}}var x=(()=>((x=x||{})[x.Sent=0]="Sent",x[x.UploadProgress=1]="UploadProgress",x[x.ResponseHeader=2]="ResponseHeader",x[x.DownloadProgress=3]="DownloadProgress",x[x.Response=4]="Response",x[x.User=5]="User",x))();class C{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class k extends C{constructor(t={}){super(t),this.type=x.ResponseHeader}clone(t={}){return new k({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class A extends C{constructor(t={}){super(t),this.type=x.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new A({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class E extends C{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function S(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let T=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof w)i=t;else{let s,r;s=n.headers instanceof d?n.headers:new d(n.headers),n.params&&(r=n.params instanceof f?n.params:new f({fromObject:n.params})),i=new w(t,e,void 0!==n.body?n.body:null,{headers:s,context:n.context,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=(0,r.of)(i).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof w||"events"===n.observe)return s;const o=s.pipe((0,l.h)(t=>t instanceof A));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe((0,c.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe((0,c.U)(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new f).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,S(n,e))}post(t,e,n={}){return this.request("POST",t,S(n,e))}put(t,e,n={}){return this.request("PUT",t,S(n,e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(u))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class O{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const I=new s.OlP("HTTP_INTERCEPTORS");let P=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const D=/^\)\]\}',?\n/;let F=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new o.y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new k({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(D,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new A({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new E({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new E({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:x.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:x.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:x.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const M=new s.OlP("XSRF_COOKIE_NAME"),Z=new s.OlP("XSRF_HEADER_NAME");class R{}let L=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0),s.LFG(s.Lbi),s.LFG(M))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),N=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(R),s.LFG(Z))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),U=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(I,[]);this.chain=t.reduceRight((t,e)=>new O(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),q=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:N,useClass:P}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:M,useValue:e.cookieName}:[],e.headerName?{provide:Z,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[N,{provide:I,useExisting:N,multi:!0},{provide:R,useClass:L},{provide:M,useValue:"XSRF-TOKEN"},{provide:Z,useValue:"X-XSRF-TOKEN"}]}),t})(),B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[T,{provide:u,useClass:U},F,{provide:h,useExisting:F}],imports:[[q.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},7716:(t,e,n)=>{"use strict";n.d(e,{deG:()=>hn,tb:()=>Uc,AFp:()=>Mc,ip1:()=>Dc,CZH:()=>Fc,hGG:()=>Du,z2F:()=>xu,sBO:()=>El,Sil:()=>Qc,_Vd:()=>Qa,EJc:()=>jc,SBq:()=>tl,qLn:()=>Ui,vpe:()=>dc,gxx:()=>Tr,tBr:()=>qn,XFs:()=>O,OlP:()=>un,zs3:()=>zr,ZZ4:()=>vl,aQg:()=>wl,soG:()=>Bc,YKP:()=>Rl,v3s:()=>ku,h0i:()=>Zl,PXZ:()=>_u,R0b:()=>Xc,FiY:()=>Bn,Lbi:()=>Nc,g9A:()=>Lc,n_E:()=>gc,XwF:()=>Io,Qsj:()=>il,FYo:()=>nl,JOm:()=>$i,Tiy:()=>rl,q3G:()=>Pi,tp0:()=>zn,EAV:()=>Su,Rgc:()=>Pl,dDg:()=>ou,DyG:()=>dn,GfV:()=>ol,s_b:()=>Nl,ifc:()=>Z,eFA:()=>bu,G48:()=>mu,Gpc:()=>p,f3M:()=>Ln,X6Q:()=>gu,_c5:()=>Iu,VLi:()=>cu,c2e:()=>qc,zSh:()=>Ir,wAp:()=>Ra,vHH:()=>f,EiD:()=>Oi,mCW:()=>di,qzn:()=>ei,JVY:()=>ii,pB0:()=>ai,eBb:()=>ri,L6k:()=>si,LAX:()=>oi,cg1:()=>Fa,Tjo:()=>Ou,kL8:()=>Ma,yhl:()=>ni,dqk:()=>q,sIi:()=>Xr,CqO:()=>$o,QGY:()=>jo,F4k:()=>zo,RDi:()=>Et,AaK:()=>u,z3N:()=>ti,qOj:()=>Yr,TTD:()=>vt,_Bn:()=>Ha,xp6:()=>Ps,uIk:()=>so,Tol:()=>ua,Gre:()=>Sa,ekj:()=>ca,Suo:()=>Ec,Xpm:()=>W,lG2:()=>rt,Yz7:()=>y,cJS:()=>w,oAB:()=>nt,Yjl:()=>ot,Y36:()=>Do,_UZ:()=>Lo,GkF:()=>qo,BQk:()=>Uo,ynx:()=>No,qZA:()=>Ro,TgZ:()=>Zo,EpF:()=>Bo,n5z:()=>nn,Ikx:()=>Ta,LFG:()=>Rn,$8M:()=>rn,NdJ:()=>Yo,CRH:()=>Sc,kcU:()=>ye,O4$:()=>ve,oxw:()=>Qo,ALo:()=>oc,lcZ:()=>ac,xi3:()=>lc,Hsn:()=>Xo,F$t:()=>Ko,Q6J:()=>Fo,s9C:()=>ta,MGl:()=>ea,DdM:()=>Xl,VKq:()=>tc,WLB:()=>ec,kEZ:()=>nc,iGM:()=>kc,MAs:()=>ao,pYS:()=>ji,evT:()=>Bi,CHM:()=>Yt,oJD:()=>Di,LSH:()=>Fi,B6R:()=>K,kYT:()=>it,Udp:()=>la,WFA:()=>Vo,d8E:()=>Oa,YNc:()=>oo,W1O:()=>Pc,_uU:()=>xa,Oqu:()=>Ca,hij:()=>ka,AsE:()=>Aa,HOy:()=>Ea,Gf:()=>Ac});var i=n(9765),s=n(5319),r=n(7574),o=n(6682),a=n(8819);function l(t){for(let e in t)if(t[e]===l)return e;throw Error("Could not find renamed property on target object.")}function c(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function u(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(u).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=l({__forward_ref__:l});function p(t){return t.__forward_ref__=p,t.toString=function(){return u(this())},t}function g(t){return m(t)?t():t}function m(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}class f extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function _(t){return"string"==typeof t?t:null==t?"":String(t)}function b(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():_(t)}function v(t,e){const n=e?` in ${e}`:"";throw new f("201",`No provider for ${b(t)} found${n}`)}function y(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function w(t){return{providers:t.providers||[],imports:t.imports||[]}}function x(t){return C(t,A)||C(t,S)}function C(t,e){return t.hasOwnProperty(e)?t[e]:null}function k(t){return t&&(t.hasOwnProperty(E)||t.hasOwnProperty(T))?t[E]:null}const A=l({"\u0275prov":l}),E=l({"\u0275inj":l}),S=l({ngInjectableDef:l}),T=l({ngInjectorDef:l});var O=(()=>((O=O||{})[O.Default=0]="Default",O[O.Host=1]="Host",O[O.Self=2]="Self",O[O.SkipSelf=4]="SkipSelf",O[O.Optional=8]="Optional",O))();let I;function P(t){const e=I;return I=t,e}function D(t,e,n){const i=x(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&O.Optional?null:void 0!==e?e:void v(u(t),"Injector")}function F(t){return{toString:t}.toString()}var M=(()=>((M=M||{})[M.OnPush=0]="OnPush",M[M.Default=1]="Default",M))(),Z=(()=>((Z=Z||{})[Z.Emulated=0]="Emulated",Z[Z.None=2]="None",Z[Z.ShadowDom=3]="ShadowDom",Z))();const R="undefined"!=typeof globalThis&&globalThis,L="undefined"!=typeof window&&window,N="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,U="undefined"!=typeof global&&global,q=R||U||L||N,B={},j=[],z=l({"\u0275cmp":l}),$=l({"\u0275dir":l}),Y=l({"\u0275pipe":l}),V=l({"\u0275mod":l}),H=l({"\u0275loc":l}),G=l({"\u0275fac":l}),J=l({__NG_ELEMENT_ID__:l});let Q=0;function W(t){return F(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===M.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||j,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Z.Emulated,id:"c",styles:t.styles||j,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=Q++,n.inputs=st(t.inputs,e),n.outputs=st(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(X):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(tt):null,n})}function K(t,e,n){const i=t.\u0275cmp;i.directiveDefs=()=>e.map(X),i.pipeDefs=()=>n.map(tt)}function X(t){return at(t)||function(t){return t[$]||null}(t)}function tt(t){return function(t){return t[Y]||null}(t)}const et={};function nt(t){return F(()=>{const e={type:t.type,bootstrap:t.bootstrap||j,declarations:t.declarations||j,imports:t.imports||j,exports:t.exports||j,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(et[t.id]=t.type),e})}function it(t,e){return F(()=>{const n=lt(t,!0);n.declarations=e.declarations||j,n.imports=e.imports||j,n.exports=e.exports||j})}function st(t,e){if(null==t)return B;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const rt=W;function ot(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function at(t){return t[z]||null}function lt(t,e){const n=t[V]||null;if(!n&&!0===e)throw new Error(`Type ${u(t)} does not have '\u0275mod' property.`);return n}const ct=20,ut=10;function ht(t){return Array.isArray(t)&&"object"==typeof t[1]}function dt(t){return Array.isArray(t)&&!0===t[1]}function pt(t){return 0!=(8&t.flags)}function gt(t){return 2==(2&t.flags)}function mt(t){return 1==(1&t.flags)}function ft(t){return null!==t.template}function _t(t,e){return t.hasOwnProperty(G)?t[G]:null}class bt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function vt(){return yt}function yt(t){return t.type.prototype.ngOnChanges&&(t.setInput=xt),wt}function wt(){const t=Ct(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===B)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function xt(t,e,n,i){const s=Ct(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:B,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new bt(l&&l.currentValue,e,o===B),t[i]=e}function Ct(t){return t.__ngSimpleChanges__||null}vt.ngInherit=!0;const kt="http://www.w3.org/2000/svg";let At;function Et(t){At=t}function St(){return void 0!==At?At:"undefined"!=typeof document?document:void 0}function Tt(t){return!!t.listen}const Ot={createRenderer:(t,e)=>St()};function It(t){for(;Array.isArray(t);)t=t[0];return t}function Pt(t,e){return It(e[t])}function Dt(t,e){return It(e[t.index])}function Ft(t,e){return t.data[e]}function Mt(t,e){return t[e]}function Zt(t,e){const n=e[t];return ht(n)?n:n[0]}function Rt(t){return 4==(4&t[2])}function Lt(t){return 128==(128&t[2])}function Nt(t,e){return null==e?null:t[e]}function Ut(t){t[18]=0}function qt(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Bt={lFrame:de(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function jt(){return Bt.bindingsEnabled}function zt(){return Bt.lFrame.lView}function $t(){return Bt.lFrame.tView}function Yt(t){return Bt.lFrame.contextLView=t,t[8]}function Vt(){let t=Ht();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ht(){return Bt.lFrame.currentTNode}function Gt(t,e){const n=Bt.lFrame;n.currentTNode=t,n.isParent=e}function Jt(){return Bt.lFrame.isParent}function Qt(){Bt.lFrame.isParent=!1}function Wt(){return Bt.isInCheckNoChangesMode}function Kt(t){Bt.isInCheckNoChangesMode=t}function Xt(){const t=Bt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function te(){return Bt.lFrame.bindingIndex}function ee(){return Bt.lFrame.bindingIndex++}function ne(t){const e=Bt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function ie(t,e){const n=Bt.lFrame;n.bindingIndex=n.bindingRootIndex=t,se(e)}function se(t){Bt.lFrame.currentDirectiveIndex=t}function re(t){const e=Bt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function oe(){return Bt.lFrame.currentQueryIndex}function ae(t){Bt.lFrame.currentQueryIndex=t}function le(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function ce(t,e,n){if(n&O.SkipSelf){let i=e,s=t;for(;i=i.parent,!(null!==i||n&O.Host||(i=le(s),null===i)||(s=s[15],10&i.type)););if(null===i)return!1;e=i,t=s}const i=Bt.lFrame=he();return i.currentTNode=e,i.lView=t,!0}function ue(t){const e=he(),n=t[1];Bt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function he(){const t=Bt.lFrame,e=null===t?null:t.child;return null===e?de(t):e}function de(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function pe(){const t=Bt.lFrame;return Bt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ge=pe;function me(){const t=pe();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function fe(){return Bt.lFrame.selectedIndex}function _e(t){Bt.lFrame.selectedIndex=t}function be(){const t=Bt.lFrame;return Ft(t.tView,t.selectedIndex)}function ve(){Bt.lFrame.currentNamespace=kt}function ye(){Bt.lFrame.currentNamespace=null}function we(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:s,ngAfterViewInit:r,ngAfterViewChecked:o,ngOnDestroy:a}=e;i&&(t.contentHooks||(t.contentHooks=[])).push(-n,i),s&&((t.contentHooks||(t.contentHooks=[])).push(n,s),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,s)),r&&(t.viewHooks||(t.viewHooks=[])).push(-n,r),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function xe(t,e,n){Ae(t,e,3,n)}function Ce(t,e,n,i){(3&t[2])===n&&Ae(t,e,n,i)}function ke(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Ae(t,e,n,i){const s=null!=i?i:-1,r=e.length-1;let o=0;for(let a=void 0!==i?65535&t[18]:0;a<r;a++)if("number"==typeof e[a+1]){if(o=e[a],null!=i&&o>=i)break}else e[a]<0&&(t[18]+=65536),(o<s||-1==s)&&(Ee(t,n,e,a),t[18]=(4294901760&t[18])+a+2),a++}function Ee(t,e,n,i){const s=n[i]<0,r=n[i+1],o=t[s?-n[i]:n[i]];if(s){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}const Se=-1;class Te{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Oe(t,e,n){const i=Tt(t);let s=0;for(;s<n.length;){const r=n[s];if("number"==typeof r){if(0!==r)break;s++;const o=n[s++],a=n[s++],l=n[s++];i?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=r,a=n[++s];Pe(o)?i&&t.setProperty(e,o,a):i?t.setAttribute(e,o,a):e.setAttribute(o,a),s++}}return s}function Ie(t){return 3===t||4===t||6===t}function Pe(t){return 64===t.charCodeAt(0)}function De(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const s=e[i];"number"==typeof s?n=s:0===n||Fe(t,n,s,null,-1===n||2===n?e[++i]:null)}}return t}function Fe(t,e,n,i,s){let r=0,o=t.length;if(-1===e)o=-1;else for(;r<t.length;){const n=t[r++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=r-1;break}}}for(;r<t.length;){const e=t[r];if("number"==typeof e)break;if(e===n){if(null===i)return void(null!==s&&(t[r+1]=s));if(i===t[r+1])return void(t[r+2]=s)}r++,null!==i&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,e),r=o+1),t.splice(r++,0,n),null!==i&&t.splice(r++,0,i),null!==s&&t.splice(r++,0,s)}function Me(t){return t!==Se}function Ze(t){return 32767&t}function Re(t,e){let n=t>>16,i=e;for(;n>0;)i=i[15],n--;return i}let Le=!0;function Ne(t){const e=Le;return Le=t,e}let Ue=0;function qe(t,e){const n=je(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Be(i.data,t),Be(e,null),Be(i.blueprint,null));const s=ze(t,e),r=t.injectorIndex;if(Me(s)){const t=Ze(s),n=Re(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function Be(t,e){t.push(0,0,0,0,0,0,0,0,e)}function je(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function ze(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return Se;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Se}function $e(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(i=n[J]),null==i&&(i=n[J]=Ue++);const s=255&i;e.data[t+(s>>5)]|=1<<s}(t,e,n)}function Ye(t,e,n){if(n&O.Optional)return t;v(e,"NodeInjector")}function Ve(t,e,n,i){if(n&O.Optional&&void 0===i&&(i=null),0==(n&(O.Self|O.Host))){const s=t[9],r=P(void 0);try{return s?s.get(e,i,n&O.Optional):D(e,i,n&O.Optional)}finally{P(r)}}return Ye(i,e,n)}function He(t,e,n,i=O.Default,s){if(null!==t){const r=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(J)?t[J]:void 0;return"number"==typeof e?e>=0?255&e:Je:e}(n);if("function"==typeof r){if(!ce(e,t,i))return i&O.Host?Ye(s,n,i):Ve(e,n,i,s);try{const t=r(i);if(null!=t||i&O.Optional)return t;v(n)}finally{ge()}}else if("number"==typeof r){let s=null,o=je(t,e),a=Se,l=i&O.Host?e[16][6]:null;for((-1===o||i&O.SkipSelf)&&(a=-1===o?ze(t,e):e[o+8],a!==Se&&tn(i,!1)?(s=e[1],o=Ze(a),e=Re(a,e)):o=-1);-1!==o;){const t=e[1];if(Xe(r,o,t.data)){const t=Qe(o,e,n,s,i,l);if(t!==Ge)return t}a=e[o+8],a!==Se&&tn(i,e[1].data[o+8]===l)&&Xe(r,o,e)?(s=t,o=Ze(a),e=Re(a,e)):o=-1}}}return Ve(e,n,i,s)}const Ge={};function Je(){return new en(Vt(),zt())}function Qe(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=We(a,o,n,null==i?gt(a)&&Le:i!=o&&0!=(3&a.type),s&O.Host&&r===a);return null!==l?Ke(e,o,l,a):Ge}function We(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,u=s?a+c:t.directiveEnd;for(let h=i?a:a+c;h<u;h++){const t=o[h];if(h<l&&n===t||h>=l&&t.type===n)return h}if(s){const t=o[l];if(t&&ft(t)&&t.type===n)return l}return null}function Ke(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof Te){const o=s;o.resolving&&function(t,e){throw new f("200",`Circular dependency in DI detected for ${t}`)}(b(r[n]));const a=Ne(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?P(o.injectImpl):null;ce(t,i,O.Default);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=yt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&P(l),Ne(a),o.resolving=!1,ge()}}return s}function Xe(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function tn(t,e){return!(t&O.Self||t&O.Host&&e)}class en{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return He(this._tNode,this._lView,t,void 0,e)}}function nn(t){return F(()=>{const e=t.prototype.constructor,n=e[G]||sn(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[G]||sn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function sn(t){return m(t)?()=>{const e=sn(g(t));return e&&e()}:_t(t)}function rn(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i<t;){const s=n[i];if(Ie(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<t&&"string"==typeof n[i];)i++;else{if(s===e)return n[i+1];i+=2}}}return null}(Vt(),t)}const on="__annotations__",an="__parameters__",ln="__prop__metadata__";function cn(t,e,n){return F(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty(an)?t[an]:Object.defineProperty(t,an,{value:[]})[an];for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class un{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=y({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const hn=new un("AnalyzeForEntryComponents"),dn=Function;function pn(t){return"function"==typeof t}function gn(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let i=t[n];Array.isArray(i)?(e===t&&(e=t.slice(0,n)),gn(i,e)):e!==t&&e.push(i)}return e}function mn(t,e){t.forEach(t=>Array.isArray(t)?mn(t,e):e(t))}function fn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function _n(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function bn(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function vn(t,e,n){let i=wn(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function yn(t,e){const n=wn(t,e);if(n>=0)return t[1|n]}function wn(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}const xn=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\))\)/,Cn=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,kn=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,An=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class En{constructor(t){this._reflect=t||q.Reflect}isReflectionEnabled(){return!0}factory(t){return(...e)=>new t(...e)}_zipTypesAndAnnotations(t,e){let n;n=bn(void 0===t?e.length:t.length);for(let i=0;i<n.length;i++)n[i]=void 0===t?[]:t[i]&&t[i]!=Object?[t[i]]:[],e&&null!=e[i]&&(n[i]=n[i].concat(e[i]));return n}_ownParameters(t,e){if(n=t.toString(),xn.test(n)||An.test(n)||Cn.test(n)&&!kn.test(n))return null;var n;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;const i=t.ctorParameters;if(i&&i!==e.ctorParameters){const t="function"==typeof i?i():i,e=t.map(t=>t&&t.type),n=t.map(t=>t&&Sn(t.decorators));return this._zipTypesAndAnnotations(e,n)}const s=t.hasOwnProperty(an)&&t[an],r=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return r||s?this._zipTypesAndAnnotations(r,s):bn(t.length)}parameters(t){if(!pn(t))return[];const e=Tn(t);let n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]}_ownAnnotations(t,e){if(t.annotations&&t.annotations!==e.annotations){let e=t.annotations;return"function"==typeof e&&e.annotations&&(e=e.annotations),e}return t.decorators&&t.decorators!==e.decorators?Sn(t.decorators):t.hasOwnProperty(on)?t[on]:null}annotations(t){if(!pn(t))return[];const e=Tn(t),n=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(n)}_ownPropMetadata(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){let e=t.propMetadata;return"function"==typeof e&&e.propMetadata&&(e=e.propMetadata),e}if(t.propDecorators&&t.propDecorators!==e.propDecorators){const e=t.propDecorators,n={};return Object.keys(e).forEach(t=>{n[t]=Sn(e[t])}),n}return t.hasOwnProperty(ln)?t[ln]:null}propMetadata(t){if(!pn(t))return{};const e=Tn(t),n={};if(e!==Object){const t=this.propMetadata(e);Object.keys(t).forEach(e=>{n[e]=t[e]})}const i=this._ownPropMetadata(t,e);return i&&Object.keys(i).forEach(t=>{const e=[];n.hasOwnProperty(t)&&e.push(...n[t]),e.push(...i[t]),n[t]=e}),n}ownPropMetadata(t){return pn(t)&&this._ownPropMetadata(t,Tn(t))||{}}hasLifecycleHook(t,e){return t instanceof dn&&e in t.prototype}guards(t){return{}}getter(t){return new Function("o","return o."+t+";")}setter(t){return new Function("o","v","return o."+t+" = v;")}method(t){return new Function("o","args",`if (!o.${t}) throw new Error('"${t}" is undefined');\n        return o.${t}.apply(o, args);`)}importUri(t){return"object"==typeof t&&t.filePath?t.filePath:`./${u(t)}`}resourceUri(t){return`./${u(t)}`}resolveIdentifier(t,e,n,i){return i}resolveEnum(t,e){return t[e]}}function Sn(t){return t?t.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function Tn(t){const e=t.prototype?Object.getPrototypeOf(t.prototype):null;return(e?e.constructor:null)||Object}const On={},In=/\n/gm,Pn="__source",Dn=l({provide:String,useValue:l});let Fn;function Mn(t){const e=Fn;return Fn=t,e}function Zn(t,e=O.Default){if(void 0===Fn)throw new Error("inject() must be called from an injection context");return null===Fn?D(t,void 0,e):Fn.get(t,e&O.Optional?null:void 0,e)}function Rn(t,e=O.Default){return(I||Zn)(g(t),e)}const Ln=Rn;function Nn(t){const e=[];for(let n=0;n<t.length;n++){const i=g(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t,n=O.Default;for(let e=0;e<i.length;e++){const s=i[e],r=s.__NG_DI_FLAG__;"number"==typeof r?-1===r?t=s.token:n|=r:t=s}e.push(Rn(t,n))}else e.push(Rn(i))}return e}function Un(t,e){return t.__NG_DI_FLAG__=e,t.prototype.__NG_DI_FLAG__=e,t}const qn=Un(cn("Inject",t=>({token:t})),-1),Bn=Un(cn("Optional"),8),jn=Un(cn("Self"),2),zn=Un(cn("SkipSelf"),4);let $n,Yn;function Vn(t){var e;return(null===(e=function(){if(void 0===$n&&($n=null,q.trustedTypes))try{$n=q.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return $n}())||void 0===e?void 0:e.createHTML(t))||t}function Hn(t){var e;return(null===(e=function(){if(void 0===Yn&&(Yn=null,q.trustedTypes))try{Yn=q.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Yn}())||void 0===e?void 0:e.createHTML(t))||t}class Gn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Jn extends Gn{getTypeName(){return"HTML"}}class Qn extends Gn{getTypeName(){return"Style"}}class Wn extends Gn{getTypeName(){return"Script"}}class Kn extends Gn{getTypeName(){return"URL"}}class Xn extends Gn{getTypeName(){return"ResourceURL"}}function ti(t){return t instanceof Gn?t.changingThisBreaksApplicationSecurity:t}function ei(t,e){const n=ni(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function ni(t){return t instanceof Gn&&t.getTypeName()||null}function ii(t){return new Jn(t)}function si(t){return new Qn(t)}function ri(t){return new Wn(t)}function oi(t){return new Kn(t)}function ai(t){return new Xn(t)}class li{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(Vn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class ci{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Vn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Vn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const n=e.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const ui=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,hi=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function di(t){return(t=String(t)).match(ui)||t.match(hi)?t:"unsafe:"+t}function pi(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function gi(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const mi=pi("area,br,col,hr,img,wbr"),fi=pi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_i=pi("rp,rt"),bi=gi(_i,fi),vi=gi(mi,gi(fi,pi("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),gi(_i,pi("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),bi),yi=pi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),wi=pi("srcset"),xi=gi(yi,wi,pi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),pi("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Ci=pi("script,style,template");class ki{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!vi.hasOwnProperty(e))return this.sanitizedSomething=!0,!Ci.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let s=0;s<n.length;s++){const t=n.item(s),e=t.name,r=e.toLowerCase();if(!xi.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=t.value;yi[r]&&(o=di(o)),wi[r]&&(i=o,o=(i=String(i)).split(",").map(t=>di(t.trim())).join(", ")),this.buf.push(" ",e,'="',Si(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();vi.hasOwnProperty(e)&&!mi.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Si(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Ai=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ei=/([^\#-~ |!])/g;function Si(t){return t.replace(/&/g,"&amp;").replace(Ai,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ei,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ti;function Oi(t,e){let n=null;try{Ti=Ti||function(t){const e=new ci(t);return function(){try{return!!(new window.DOMParser).parseFromString(Vn(""),"text/html")}catch(t){return!1}}()?new li(e):e}(t);let i=e?String(e):"";n=Ti.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=Ti.getInertBodyElement(i)}while(i!==r);return Vn((new ki).sanitizeChildren(Ii(n)||n))}finally{if(n){const t=Ii(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Ii(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Pi=(()=>((Pi=Pi||{})[Pi.NONE=0]="NONE",Pi[Pi.HTML=1]="HTML",Pi[Pi.STYLE=2]="STYLE",Pi[Pi.SCRIPT=3]="SCRIPT",Pi[Pi.URL=4]="URL",Pi[Pi.RESOURCE_URL=5]="RESOURCE_URL",Pi))();function Di(t){const e=Mi();return e?Hn(e.sanitize(Pi.HTML,t)||""):ei(t,"HTML")?Hn(ti(t)):Oi(St(),_(t))}function Fi(t){const e=Mi();return e?e.sanitize(Pi.URL,t)||"":ei(t,"URL")?ti(t):di(_(t))}function Mi(){const t=zt();return t&&t[12]}function Zi(t,e){t.__ngContext__=e}function Ri(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Li(t){return t.ngOriginalError}function Ni(t,...e){t.error(...e)}class Ui{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||Ni}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?function(t){return t.ngDebugContext}(t)||this._findContext(Li(t)):null}_findOriginalError(t){let e=Li(t);for(;e&&Li(e);)e=Li(e);return e}}const qi=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(q))();function Bi(t){return t.ownerDocument}function ji(t){return t.ownerDocument.body}function zi(t){return t instanceof Function?t():t}var $i=(()=>(($i=$i||{})[$i.Important=1]="Important",$i[$i.DashCase=2]="DashCase",$i))();function Yi(t,e){return(void 0)(t,e)}function Vi(t){const e=t[3];return dt(e)?e[3]:e}function Hi(t){return Ji(t[13])}function Gi(t){return Ji(t[4])}function Ji(t){for(;null!==t&&!dt(t);)t=t[4];return t}function Qi(t,e,n,i,s){if(null!=i){let r,o=!1;dt(i)?r=i:ht(i)&&(o=!0,i=i[0]);const a=It(i);0===t&&null!==n?null==s?ss(e,n,a):is(e,n,a,s||null,!0):1===t&&null!==n?is(e,n,a,s||null,!0):2===t?function(t,e,n){const i=os(t,e);i&&function(t,e,n,i){Tt(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==It(n)&&Qi(e,t,i,r,s);for(let o=ut;o<n.length;o++){const s=n[o];gs(s[1],s,t,e,i,r)}}(e,t,r,n,s)}}function Wi(t,e,n){return Tt(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Ki(t,e){const n=t[9],i=n.indexOf(e),s=e[3];1024&e[2]&&(e[2]&=-1025,qt(s,-1)),n.splice(i,1)}function Xi(t,e){if(t.length<=ut)return;const n=ut+e,i=t[n];if(i){const r=i[17];null!==r&&r!==t&&Ki(r,i),e>0&&(t[n-1][4]=i[4]);const o=_n(t,ut+e);gs(i[1],s=i,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var s;return i}function ts(t,e){if(!(256&e[2])){const n=e[11];Tt(n)&&n.destroyNode&&gs(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return es(t[1],t);for(;e;){let n=null;if(ht(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ht(e)&&es(e[1],e),e=e[3];null===e&&(e=t),ht(e)&&es(e[1],e),n=e&&e[4]}e=n}}(e)}}function es(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i<n.length;i+=2){const t=e[n[i]];if(!(t instanceof Te)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2){const i=t[e[n]],s=e[n+1];try{s.call(i)}finally{}}else try{e.call(t)}finally{}}}}(t,e),function(t,e){const n=t.cleanup,i=e[7];let s=-1;if(null!==n)for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const t=n[r+1],o="function"==typeof t?t(e):It(e[t]),a=i[s=n[r+2]],l=n[r+3];"boolean"==typeof l?o.removeEventListener(n[r],a,l):l>=0?i[s=l]():i[s=-l].unsubscribe(),r+=2}else{const t=i[s=n[r+1]];n[r].call(t)}if(null!==i){for(let t=s+1;t<i.length;t++)(0,i[t])();e[7]=null}}(t,e),1===e[1].type&&Tt(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&dt(e[3])){n!==e[3]&&Ki(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function ns(t,e,n){return function(t,e,n){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return n[0];if(2&i.flags){const e=t.data[i.directiveStart].encapsulation;if(e===Z.None||e===Z.Emulated)return null}return Dt(i,n)}(t,e.parent,n)}function is(t,e,n,i,s){Tt(t)?t.insertBefore(e,n,i,s):e.insertBefore(n,i,s)}function ss(t,e,n){Tt(t)?t.appendChild(e,n):e.appendChild(n)}function rs(t,e,n,i,s){null!==i?is(t,e,n,i,s):ss(t,e,n)}function os(t,e){return Tt(t)?t.parentNode(e):e.parentNode}function as(t,e,n){return ls(t,e,n)}let ls=function(t,e,n){return 40&t.type?Dt(t,n):null};function cs(t,e,n,i){const s=ns(t,i,e),r=e[11],o=as(i.parent||e[6],i,e);if(null!=s)if(Array.isArray(n))for(let a=0;a<n.length;a++)rs(r,s,n[a],o,!1);else rs(r,s,n,o,!1)}function us(t,e){if(null!==e){const n=e.type;if(3&n)return Dt(e,t);if(4&n)return ds(-1,t[e.index]);if(8&n){const n=e.child;if(null!==n)return us(t,n);{const n=t[e.index];return dt(n)?ds(-1,n):It(n)}}if(32&n)return Yi(e,t)()||It(t[e.index]);{const n=hs(t,e);return null!==n?Array.isArray(n)?n[0]:us(Vi(t[16]),n):us(t,e.next)}}return null}function hs(t,e){return null!==e?t[16][6].projection[e.projection]:null}function ds(t,e){const n=ut+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return us(t,i)}return e[7]}function ps(t,e,n,i,s,r,o){for(;null!=n;){const a=i[n.index],l=n.type;if(o&&0===e&&(a&&Zi(It(a),i),n.flags|=4),64!=(64&n.flags))if(8&l)ps(t,e,n.child,i,s,r,!1),Qi(e,t,s,a,r);else if(32&l){const o=Yi(n,i);let l;for(;l=o();)Qi(e,t,s,l,r);Qi(e,t,s,a,r)}else 16&l?ms(t,e,i,n,s,r):Qi(e,t,s,a,r);n=o?n.projectionNext:n.next}}function gs(t,e,n,i,s,r){ps(n,i,t.firstChild,e,s,r,!1)}function ms(t,e,n,i,s,r){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)Qi(e,t,s,a[l],r);else ps(t,e,a,o[3],s,r,!0)}function fs(t,e,n){Tt(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function _s(t,e,n){Tt(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function bs(t,e,n){let i=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===i||t.charCodeAt(s+n)<=32)return s}n=s+1}}const vs="ng-template";function ys(t,e,n){let i=0;for(;i<t.length;){let s=t[i++];if(n&&"class"===s){if(s=t[i],-1!==bs(s.toLowerCase(),e,0))return!0}else if(1===s){for(;i<t.length&&"string"==typeof(s=t[i++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function ws(t){return 4===t.type&&t.value!==vs}function xs(t,e,n){return e===(4!==t.type||n?t.value:vs)}function Cs(t,e,n){let i=4;const s=t.attrs||[],r=function(t){for(let e=0;e<t.length;e++)if(Ie(t[e]))return e;return t.length}(s);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!xs(t,l,n)||""===l&&1===e.length){if(ks(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==t.attrs){if(!ys(t.attrs,c,n)){if(ks(i))return!1;o=!0}continue}const u=As(8&i?"class":l,s,ws(t),n);if(-1===u){if(ks(i))return!1;o=!0;continue}if(""!==c){let t;t=u>r?"":s[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==bs(e,c,0)||2&i&&c!==t){if(ks(i))return!1;o=!0}}}}else{if(!o&&!ks(i)&&!ks(l))return!1;if(o&&ks(l))continue;o=!1,i=l|1&i}}return ks(i)||o}function ks(t){return 0==(1&t)}function As(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s<e.length;){const i=e[s];if(i===t)return s;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++s];for(;"string"==typeof t;)t=e[++s];continue}if(4===i)break;if(0===i){s+=4;continue}}s+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function Es(t,e,n=!1){for(let i=0;i<e.length;i++)if(Cs(t,e[i],n))return!0;return!1}function Ss(t,e){t:for(let n=0;n<e.length;n++){const i=e[n];if(t.length===i.length){for(let e=0;e<t.length;e++)if(t[e]!==i[e])continue t;return!0}}return!1}function Ts(t,e){return t?":not("+e.trim()+")":e}function Os(t){let e=t[0],n=1,i=2,s="",r=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&i){const e=t[++n];s+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||ks(o)||(e+=Ts(r,s),s=""),i=o,r=r||!ks(i);n++}return""!==s&&(e+=Ts(r,s)),e}const Is={};function Ps(t){Ds($t(),zt(),fe()+t,Wt())}function Ds(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&xe(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Ce(e,i,0,n)}_e(n)}function Fs(t,e){return t<<17|e<<2}function Ms(t){return t>>17&32767}function Zs(t){return 2|t}function Rs(t){return(131068&t)>>2}function Ls(t,e){return-131069&t|e<<2}function Ns(t){return 1|t}function Us(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const s=n[i],r=n[i+1];if(-1!==r){const n=t.data[r];ae(s),n.contentQueries(2,e[r],r)}}}function qs(t,e,n,i,s,r,o,a,l,c){const u=e.blueprint.slice();return u[0]=s,u[2]=140|i,Ut(u),u[3]=u[15]=t,u[8]=n,u[10]=o||t&&t[10],u[11]=a||t&&t[11],u[12]=l||t&&t[12]||null,u[9]=c||t&&t[9]||null,u[6]=r,u[16]=2==e.type?t[16]:u,u}function Bs(t,e,n,i,s){let r=t.data[e];if(null===r)r=function(t,e,n,i,s){const r=Ht(),o=Jt(),a=t.data[e]=function(t,e,n,i,s,r){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,n,e,i,s);return null===t.firstChild&&(t.firstChild=a),null!==r&&(o?null==r.child&&null!==a.parent&&(r.child=a):null===r.next&&(r.next=a)),a}(t,e,n,i,s),Bt.lFrame.inI18n&&(r.flags|=64);else if(64&r.type){r.type=n,r.value=i,r.attrs=s;const t=function(){const t=Bt.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();r.injectorIndex=null===t?-1:t.injectorIndex}return Gt(r,!0),r}function js(t,e,n,i){if(0===n)return-1;const s=e.length;for(let r=0;r<n;r++)e.push(i),t.blueprint.push(i),t.data.push(null);return s}function zs(t,e,n){ue(e);try{const i=t.viewQuery;null!==i&&vr(1,i,n);const s=t.template;null!==s&&Vs(t,e,s,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Us(t,e),t.staticViewQueries&&vr(2,t.viewQuery,n);const r=t.components;null!==r&&function(t,e){for(let n=0;n<e.length;n++)gr(t,e[n])}(e,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),i}finally{e[2]&=-5,me()}}function $s(t,e,n,i){const s=e[2];if(256==(256&s))return;ue(e);const r=Wt();try{Ut(e),Bt.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Vs(t,e,n,2,i);const o=3==(3&s);if(!r)if(o){const n=t.preOrderCheckHooks;null!==n&&xe(e,n,null)}else{const n=t.preOrderHooks;null!==n&&Ce(e,n,0,null),ke(e,0)}if(function(t){for(let e=Hi(t);null!==e;e=Gi(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],i=n[3];0==(1024&n[2])&&qt(i,1),n[2]|=1024}}}(e),function(t){for(let e=Hi(t);null!==e;e=Gi(e))for(let t=ut;t<e.length;t++){const n=e[t],i=n[1];Lt(n)&&$s(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&Us(t,e),!r)if(o){const n=t.contentCheckHooks;null!==n&&xe(e,n)}else{const n=t.contentHooks;null!==n&&Ce(e,n,1),ke(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let t=0;t<n.length;t++){const i=n[t];if(i<0)_e(~i);else{const s=i,r=n[++t],o=n[++t];ie(r,s),o(2,e[s])}}}finally{_e(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)dr(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&vr(2,l,i),!r)if(o){const n=t.viewCheckHooks;null!==n&&xe(e,n)}else{const n=t.viewHooks;null!==n&&Ce(e,n,2),ke(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,qt(e[3],-1))}finally{me()}}function Ys(t,e,n,i){const s=e[10],r=!Wt(),o=Rt(e);try{r&&!o&&s.begin&&s.begin(),o&&zs(t,e,i),$s(t,e,n,i)}finally{r&&!o&&s.end&&s.end()}}function Vs(t,e,n,i,s){const r=fe(),o=2&i;try{_e(-1),o&&e.length>ct&&Ds(t,e,ct,Wt()),n(i,s)}finally{_e(r)}}function Hs(t,e,n){if(pt(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s<i;s++){const e=t.data[s];e.contentQueries&&e.contentQueries(1,n[s],s)}}}function Gs(t,e,n){jt()&&(function(t,e,n,i){const s=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||qe(n,e),Zi(i,e);const o=n.initialInputs;for(let a=s;a<r;a++){const i=t.data[a],r=ft(i);r&&lr(e,n,i);const l=Ke(e,t,a,n);Zi(l,e),null!==o&&cr(0,a-s,l,i,0,o),r&&(Zt(n.index,e)[8]=l)}}(t,e,n,Dt(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,s=n.directiveEnd,r=n.index,o=Bt.lFrame.currentDirectiveIndex;try{_e(r);for(let n=i;n<s;n++){const i=t.data[n],s=e[n];se(n),null===i.hostBindings&&0===i.hostVars&&null===i.hostAttrs||ir(i,s)}}finally{_e(-1),se(o)}}(t,e,n))}function Js(t,e,n=Dt){const i=e.localNames;if(null!==i){let s=e.index+1;for(let r=0;r<i.length;r+=2){const o=i[r+1],a=-1===o?n(e,t):t[o];t[s++]=a}}}function Qs(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Ws(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Ws(t,e,n,i,s,r,o,a,l,c){const u=ct+i,h=u+s,d=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:Is);return n}(u,h),p="function"==typeof c?c():c;return d[1]={type:t,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:e,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function Ks(t,e,n,i){const s=wr(e);null===n?s.push(i):(s.push(n),t.firstCreatePass&&xr(t).push(i,s.length-1))}function Xs(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const s=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,s):n[i]=[e,s]}return n}function tr(t,e,n,i,s,r,o,a){const l=Dt(e,n);let c,u=e.inputs;var h;!a&&null!=u&&(c=u[i])?(Ar(t,n,c,i,s),gt(e)&&function(t,e){const n=Zt(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(i="class"===(h=i)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,s=null!=o?o(s,e.value||"",i):s,Tt(r)?r.setProperty(l,i,s):Pe(i)||(l.setProperty?l.setProperty(i,s):l[i]=s))}function er(t,e,n,i){let s=!1;if(jt()){const r=function(t,e,n){const i=t.directiveRegistry;let s=null;if(i)for(let r=0;r<i.length;r++){const o=i[r];Es(n,o.selectors,!1)&&(s||(s=[]),$e(qe(n,e),t,o.type),ft(o)?(sr(t,n),s.unshift(o)):s.push(o))}return s}(t,e,n),o=null===i?null:{"":-1};if(null!==r){s=!0,or(n,t.data.length,r.length);for(let t=0;t<r.length;t++){const e=r[t];e.providersResolver&&e.providersResolver(e)}let i=!1,a=!1,l=js(t,e,r.length,null);for(let s=0;s<r.length;s++){const c=r[s];n.mergedAttrs=De(n.mergedAttrs,c.hostAttrs),ar(t,n,e,l,c),rr(l,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const u=c.type.prototype;!i&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),i=!0),a||!u.ngOnChanges&&!u.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),a=!0),l++}!function(t,e){const n=e.directiveEnd,i=t.data,s=e.attrs,r=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=i[l],n=t.inputs,c=null===s||ws(e)?null:ur(n,s);r.push(c),o=Xs(n,l,o),a=Xs(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=r,e.inputs=o,e.outputs=a}(t,n)}o&&function(t,e,n){if(e){const i=t.localNames=[];for(let t=0;t<e.length;t+=2){const s=n[e[t+1]];if(null==s)throw new f("301",`Export of name '${e[t+1]}' not found!`);i.push(e[t],s)}}}(n,i,o)}return n.mergedAttrs=De(n.mergedAttrs,n.attrs),s}function nr(t,e,n,i,s,r){const o=r.hostBindings;if(o){let n=t.hostBindingOpCodes;null===n&&(n=t.hostBindingOpCodes=[]);const r=~e.index;(function(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function ir(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function sr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function rr(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;ft(e)&&(n[""]=t)}}function or(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function ar(t,e,n,i,s){t.data[i]=s;const r=s.factory||(s.factory=_t(s.type)),o=new Te(r,ft(s),null);t.blueprint[i]=o,n[i]=o,nr(t,e,0,i,js(t,n,s.hostVars,Is),s)}function lr(t,e,n){const i=Dt(e,t),s=Qs(n),r=t[10],o=mr(t,qs(t,s,null,n.onPush?64:16,i,e,r,r.createRenderer(i,n),null,null));t[e.index]=o}function cr(t,e,n,i,s,r){const o=r[e];if(null!==o){const t=i.setInput;for(let e=0;e<o.length;){const s=o[e++],r=o[e++],a=o[e++];null!==t?i.setInput(n,a,s,r):n[r]=a}}}function ur(t,e){let n=null,i=0;for(;i<e.length;){const s=e[i];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,t[s],e[i+1])),i+=2}else i+=2;else i+=4}return n}function hr(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function dr(t,e){const n=Zt(e,t);if(Lt(n)){const t=n[1];80&n[2]?$s(t,n,t.template,n[8]):n[5]>0&&pr(n)}}function pr(t){for(let n=Hi(t);null!==n;n=Gi(n))for(let t=ut;t<n.length;t++){const e=n[t];if(1024&e[2]){const t=e[1];$s(t,e,t.template,e[8])}else e[5]>0&&pr(e)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const i=Zt(e[n],t);Lt(i)&&i[5]>0&&pr(i)}}function gr(t,e){const n=Zt(e,t),i=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(i,n),zs(i,n,n[8])}function mr(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function fr(t){for(;t;){t[2]|=64;const e=Vi(t);if(0!=(512&t[2])&&!e)return t;t=e}return null}function _r(t,e,n){const i=e[10];i.begin&&i.begin();try{$s(t,e,t.template,n)}catch(s){throw kr(e,s),s}finally{i.end&&i.end()}}function br(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=Ri(n),s=i[1];Ys(s,i,s.template,n)}}(t[8])}function vr(t,e,n){ae(0),e(t,n)}const yr=(()=>Promise.resolve(null))();function wr(t){return t[7]||(t[7]=[])}function xr(t){return t.cleanup||(t.cleanup=[])}function Cr(t,e,n){return(null===t||ft(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function kr(t,e){const n=t[9],i=n?n.get(Ui,null):null;i&&i.handleError(e)}function Ar(t,e,n,i,s){for(let r=0;r<n.length;){const o=n[r++],a=n[r++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,s,i,a):l[a]=s}}function Er(t,e,n){const i=Pt(e,t);!function(t,e,n){Tt(t)?t.setValue(e,n):e.textContent=n}(t[11],i,n)}function Sr(t,e,n){let i=n?t.styles:null,s=n?t.classes:null,r=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?r=t:1==r?s=h(s,t):2==r&&(i=h(i,t+": "+e[++o]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=s:t.classesWithoutHost=s}const Tr=new un("INJECTOR",-1);class Or{get(t,e=On){if(e===On){const e=new Error(`NullInjectorError: No provider for ${u(t)}!`);throw e.name="NullInjectorError",e}return e}}const Ir=new un("Set Injector scope."),Pr={},Dr={};let Fr;function Mr(){return void 0===Fr&&(Fr=new Or),Fr}function Zr(t,e=null,n=null,i){return new Rr(t,n,e||Mr(),i)}class Rr{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&mn(e,n=>this.processProvider(n,t,e)),mn([t],t=>this.processInjectorType(t,[],s)),this.records.set(Tr,Ur(void 0,this));const r=this.records.get(Ir);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:u(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=On,n=O.Default){this.assertNotDestroyed();const i=Mn(this);try{if(!(n&O.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof un)&&x(t);e=n&&this.injectableDefInScope(n)?Ur(Lr(t),Pr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&O.Self?Mr():this.parent).get(t,e=n&O.Optional&&e===On?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(u(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e[Pn]&&s.unshift(e[Pn]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=u(e);if(Array.isArray(e))s=e.map(u).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):u(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(In,"\n  ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{Mn(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(u(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=g(t)))return!1;let i=k(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=k(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{mn(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:i}=t[e];mn(i,t=>this.processProvider(t,n,i||j))}}this.injectorDefTypes.add(r);const a=_t(r)||(()=>new r);this.records.set(r,Ur(a,Pr));const l=i.providers;if(null!=l&&!o){const e=t;mn(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=Br(t=g(t))?t:g(t&&t.provide);const s=function(t,e,n){return qr(t)?Ur(void 0,t.useValue):Ur(Nr(t),Pr)}(t);if(Br(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Ur(void 0,Pr,!0),e.factory=()=>Nn(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===Pr&&(e.value=Dr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=g(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Lr(t){const e=x(t),n=null!==e?e.factory:_t(t);if(null!==n)return n;if(t instanceof un)throw new Error(`Token ${u(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=bn(e,"?");throw new Error(`Can't resolve all parameters for ${u(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[A]||t[S]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Nr(t,e,n){let i;if(Br(t)){const e=g(t);return _t(e)||Lr(e)}if(qr(t))i=()=>g(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...Nn(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>Rn(g(t.useExisting));else{const e=g(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return _t(e)||Lr(e);i=()=>new e(...Nn(t.deps))}var s;return i}function Ur(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function qr(t){return null!==t&&"object"==typeof t&&Dn in t}function Br(t){return"function"==typeof t}const jr=function(t,e,n){return function(t,e=null,n=null,i){const s=Zr(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};class zr{static create(t,e){return Array.isArray(t)?jr(t,e,""):jr(t.providers,t.parent,t.name||"")}}function $r(t,e){we(Ri(t)[1],Vt())}function Yr(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s;if(ft(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=Vr(t.inputs),e.declaredInputs=Vr(t.declaredInputs),e.outputs=Vr(t.outputs);const n=s.hostBindings;n&&Jr(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&Hr(t,r),o&&Gr(t,o),c(t.inputs,s.inputs),c(t.declaredInputs,s.declaredInputs),c(t.outputs,s.outputs),ft(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i<e.length;i++){const s=e[i];s&&s.ngInherit&&s(t),s===Yr&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=De(s.hostAttrs,n=De(n,s.hostAttrs))}}(i)}function Vr(t){return t===B?{}:t===j?[]:t}function Hr(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function Gr(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function Jr(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}zr.THROW_IF_NOT_FOUND=On,zr.NULL=new Or,zr.\u0275prov=y({token:zr,providedIn:"any",factory:()=>Rn(Tr)}),zr.__NG_ELEMENT_ID__=-1;let Qr=null;function Wr(){if(!Qr){const t=q.Symbol;if(t&&t.iterator)Qr=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Qr=n)}}}return Qr}class Kr{constructor(t){this.wrapped=t}static wrap(t){return new Kr(t)}static unwrap(t){return Kr.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Kr}}function Xr(t){return!!to(t)&&(Array.isArray(t)||!(t instanceof Map)&&Wr()in t)}function to(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function eo(t,e,n){return t[e]=n}function no(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function io(t,e,n,i){const s=no(t,e,n);return no(t,e+1,i)||s}function so(t,e,n,i){const s=zt();return no(s,ee(),e)&&($t(),function(t,e,n,i,s,r){const o=Dt(t,e);!function(t,e,n,i,s,r,o){if(null==r)Tt(t)?t.removeAttribute(e,s,n):e.removeAttribute(s);else{const a=null==o?_(r):o(r,i||"",s);Tt(t)?t.setAttribute(e,s,a,n):n?e.setAttributeNS(n,s,a):e.setAttribute(s,a)}}(e[11],o,r,t.value,n,i,s)}(be(),s,t,e,n,i)),so}function ro(t,e,n,i){return no(t,ee(),n)?e+_(n)+i:Is}function oo(t,e,n,i,s,r,o,a){const l=zt(),c=$t(),u=t+ct,h=c.firstCreatePass?function(t,e,n,i,s,r,o,a,l){const c=e.consts,u=Bs(e,t,4,o||null,Nt(c,a));er(e,n,u,Nt(c,l)),we(e,u);const h=u.tViews=Ws(2,u,i,s,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,n,i,s,r,o):c.data[u];Gt(h,!1);const d=l[11].createComment("");cs(c,l,d,h),Zi(d,l),mr(l,l[u]=hr(d,l,d,h)),mt(h)&&Gs(c,l,h),null!=o&&Js(l,h,a)}function ao(t){return Mt(Bt.lFrame.contextLView,ct+t)}function lo(t){return t.length>1?" ("+function(t){const e=[];for(let n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}(t.slice().reverse()).map(t=>u(t.token)).join(" -> ")+")":""}function co(t,e,n,i){const s=[e],r=n(s),o=i?function(t,e){const n=`${t} caused by: ${e instanceof Error?e.message:e}`,i=Error(n);return i.ngOriginalError=e,i}(r,i):Error(r);return o.addKey=uo,o.keys=s,o.injectors=[t],o.constructResolvingMessage=n,o.ngOriginalError=i,o}function uo(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function ho(t,e){const n=[];for(let i=0,s=e.length;i<s;i++){const t=e[i];n.push(t&&0!=t.length?t.map(u).join(" "):"?")}return Error("Cannot resolve all parameters for '"+u(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+u(t)+"' is decorated with Injectable.")}class po{constructor(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!");this.displayName=u(this.token)}static get(t){return mo.get(g(t))}static get numberOfKeys(){return mo.numberOfKeys}}class go{constructor(){this._allKeys=new Map}get(t){if(t instanceof po)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const e=new po(t,po.numberOfKeys);return this._allKeys.set(t,e),e}get numberOfKeys(){return this._allKeys.size}}const mo=new go;class fo{constructor(t){this.reflectionCapabilities=t}updateCapabilities(t){this.reflectionCapabilities=t}factory(t){return this.reflectionCapabilities.factory(t)}parameters(t){return this.reflectionCapabilities.parameters(t)}annotations(t){return this.reflectionCapabilities.annotations(t)}propMetadata(t){return this.reflectionCapabilities.propMetadata(t)}hasLifecycleHook(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)}getter(t){return this.reflectionCapabilities.getter(t)}setter(t){return this.reflectionCapabilities.setter(t)}method(t){return this.reflectionCapabilities.method(t)}importUri(t){return this.reflectionCapabilities.importUri(t)}resourceUri(t){return this.reflectionCapabilities.resourceUri(t)}resolveIdentifier(t,e,n,i){return this.reflectionCapabilities.resolveIdentifier(t,e,n,i)}resolveEnum(t,e){return this.reflectionCapabilities.resolveEnum(t,e)}}const _o=new fo(new En);class bo{constructor(t,e,n){this.key=t,this.optional=e,this.visibility=n}static fromKey(t){return new bo(t,!1,null)}}const vo=[];class yo{constructor(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]}}class wo{constructor(t,e){this.factory=t,this.dependencies=e}}function xo(t){let e,n;if(t.useClass){const i=g(t.useClass);e=_o.factory(i),n=Eo(i)}else t.useExisting?(e=t=>t,n=[bo.fromKey(po.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=function(t,e){if(e){const n=e.map(t=>[t]);return e.map(e=>So(t,e,n))}return Eo(t)}(t.useFactory,t.deps)):(e=()=>t.useValue,n=vo);return new wo(e,n)}function Co(t){return new yo(po.get(t.provide),[xo(t)],t.multi||!1)}function ko(t){const e=function(t,e){for(let n=0;n<t.length;n++){const i=t[n],s=e.get(i.key.id);if(s){if(i.multiProvider!==s.multiProvider)throw Error(`Cannot mix multi providers and regular providers, got: ${s} ${i}`);if(i.multiProvider)for(let t=0;t<i.resolvedFactories.length;t++)s.resolvedFactories.push(i.resolvedFactories[t]);else e.set(i.key.id,i)}else{let t;t=i.multiProvider?new yo(i.key,i.resolvedFactories.slice(),i.multiProvider):i,e.set(i.key.id,t)}}return e}(Ao(t,[]).map(Co),new Map);return Array.from(e.values())}function Ao(t,e){return t.forEach(t=>{if(t instanceof dn)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!Array.isArray(t))throw Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${t}`);Ao(t,e)}}),e}function Eo(t){const e=_o.parameters(t);if(!e)return[];if(e.some(t=>null==t))throw ho(t,e);return e.map(n=>So(t,n,e))}function So(t,e,n){let i=null,s=!1;if(!Array.isArray(e))return To(e instanceof qn?e.token:e,s,null);let r=null;for(let o=0;o<e.length;++o){const t=e[o];t instanceof dn?i=t:t instanceof qn?i=t.token:t instanceof Bn?s=!0:t instanceof jn||t instanceof zn?r=t:t instanceof un&&(i=t)}if(i=g(i),null!=i)return To(i,s,r);throw ho(t,n)}function To(t,e,n){return new bo(po.get(t),e,n)}const Oo={};class Io{static resolve(t){return ko(t)}static resolveAndCreate(t,e){const n=Io.resolve(t);return Io.fromResolvedProviders(n,e)}static fromResolvedProviders(t,e){return new Po(t,e)}}let Po=(()=>{class t{constructor(t,e){this._constructionCounter=0,this._providers=t,this.parent=e||null;const n=t.length;this.keyIds=[],this.objs=[];for(let i=0;i<n;i++)this.keyIds[i]=t[i].key.id,this.objs[i]=Oo}get(t,e=On){return this._getByKey(po.get(t),null,e)}resolveAndCreateChild(t){const e=Io.resolve(t);return this.createChildFromResolved(e)}createChildFromResolved(e){const n=new t(e);return n.parent=this,n}resolveAndInstantiate(t){return this.instantiateResolved(Io.resolve([t])[0])}instantiateResolved(t){return this._instantiateProvider(t)}getProviderAtIndex(t){if(t<0||t>=this._providers.length)throw function(t){return Error(`Index ${t} is out-of-bounds.`)}(t);return this._providers[t]}_new(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw co(this,t.key,function(t){return`Cannot instantiate cyclic dependency!${lo(t)}`});return this._instantiateProvider(t)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(t){if(t.multiProvider){const e=[];for(let n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])}_instantiate(t,e){const n=e.factory;let i,s;try{i=e.dependencies.map(t=>this._getByReflectiveDependency(t))}catch(o){throw o.addKey&&o.addKey(this,t.key),o}try{s=n(...i)}catch(o){throw co(this,t.key,function(t){const e=u(t[0].token);return`${r.message}: Error during instantiation of ${e}!${lo(t)}.`},r=o)}var r;return s}_getByReflectiveDependency(t){return this._getByKey(t.key,t.visibility,t.optional?null:On)}_getByKey(e,n,i){return e===t.INJECTOR_KEY?this:n instanceof jn?this._getByKeySelf(e,i):this._getByKeyDefault(e,i,n)}_getObjByKeyId(t){for(let e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===Oo&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return Oo}_throwOrNull(t,e){if(e!==On)return e;throw function(t,e){return co(t,e,function(t){return`No provider for ${u(t[0].token)}!${lo(t)}`})}(this,t)}_getByKeySelf(t,e){const n=this._getObjByKeyId(t.id);return n!==Oo?n:this._throwOrNull(t,e)}_getByKeyDefault(e,n,i){let s;for(s=i instanceof zn?this.parent:this;s instanceof t;){const t=s,n=t._getObjByKeyId(e.id);if(n!==Oo)return n;s=t.parent}return null!==s?s.get(e.token,n):this._throwOrNull(e,n)}get displayName(){return`ReflectiveInjector(providers: [${function(t,e){const n=[];for(let i=0;i<t._providers.length;++i)n[i]=' "'+t.getProviderAtIndex(i).key.displayName+'" ';return n}(this).join(", ")}])`}toString(){return this.displayName}}return t.INJECTOR_KEY=po.get(zr),t})();function Do(t,e=O.Default){const n=zt();return null===n?Rn(t,e):He(Vt(),n,g(t),e)}function Fo(t,e,n){const i=zt();return no(i,ee(),e)&&tr($t(),be(),i,t,e,i[11],n,!1),Fo}function Mo(t,e,n,i,s){const r=s?"class":"style";Ar(t,n,e.inputs[r],r,i)}function Zo(t,e,n,i){const s=zt(),r=$t(),o=ct+t,a=s[11],l=s[o]=Wi(a,e,Bt.lFrame.currentNamespace),c=r.firstCreatePass?function(t,e,n,i,s,r,o){const a=e.consts,l=Bs(e,t,2,s,Nt(a,r));return er(e,n,l,Nt(a,o)),null!==l.attrs&&Sr(l,l.attrs,!1),null!==l.mergedAttrs&&Sr(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(o,r,s,0,e,n,i):r.data[o];Gt(c,!0);const u=c.mergedAttrs;null!==u&&Oe(a,l,u);const h=c.classes;null!==h&&_s(a,l,h);const d=c.styles;null!==d&&fs(a,l,d),64!=(64&c.flags)&&cs(r,s,l,c),0===Bt.lFrame.elementDepthCount&&Zi(l,s),Bt.lFrame.elementDepthCount++,mt(c)&&(Gs(r,s,c),Hs(r,c,s)),null!==i&&Js(s,c)}function Ro(){let t=Vt();Jt()?Qt():(t=t.parent,Gt(t,!1));const e=t;Bt.lFrame.elementDepthCount--;const n=$t();n.firstCreatePass&&(we(n,t),pt(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Mo(n,e,zt(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Mo(n,e,zt(),e.stylesWithoutHost,!1)}function Lo(t,e,n,i){Zo(t,e,n,i),Ro()}function No(t,e,n){const i=zt(),s=$t(),r=t+ct,o=s.firstCreatePass?function(t,e,n,i,s){const r=e.consts,o=Nt(r,i),a=Bs(e,t,8,"ng-container",o);return null!==o&&Sr(a,o,!0),er(e,n,a,Nt(r,s)),null!==e.queries&&e.queries.elementStart(e,a),a}(r,s,i,e,n):s.data[r];Gt(o,!0);const a=i[r]=i[11].createComment("");cs(s,i,a,o),Zi(a,i),mt(o)&&(Gs(s,i,o),Hs(s,o,i)),null!=n&&Js(i,o)}function Uo(){let t=Vt();const e=$t();Jt()?Qt():(t=t.parent,Gt(t,!1)),e.firstCreatePass&&(we(e,t),pt(t)&&e.queries.elementEnd(t))}function qo(t,e,n){No(t,e,n),Uo()}function Bo(){return zt()}function jo(t){return!!t&&"function"==typeof t.then}function zo(t){return!!t&&"function"==typeof t.subscribe}const $o=zo;function Yo(t,e,n,i){const s=zt(),r=$t(),o=Vt();return Ho(r,s,s[11],o,t,e,!!n,i),Yo}function Vo(t,e){const n=Vt(),i=zt(),s=$t();return Ho(s,i,Cr(re(s.data),n,i),n,t,e,!1),Vo}function Ho(t,e,n,i,s,r,o,a){const l=mt(i),c=t.firstCreatePass&&xr(t),u=wr(e);let h=!0;if(3&i.type||a){const d=Dt(i,e),p=a?a(d):d,g=u.length,m=a?t=>a(It(t[i.index])):i.index;if(Tt(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const t=s[r];if(t===n&&s[r+1]===i){const t=e[7],n=s[r+2];return t.length>n?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,h=!1;else{r=Jo(i,e,0,r,!1);const t=n.listen(p,s,r);u.push(r,t),c&&c.push(s,m,g,g+1)}}else r=Jo(i,e,0,r,!0),p.addEventListener(s,r,o),u.push(r),c&&c.push(s,m,g,o)}else r=Jo(i,e,0,r,!1);const d=i.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(r),o=u.length;u.push(r,t),c&&c.push(s,i.index,o,-(o+1))}}}function Go(t,e,n,i){try{return!1!==n(i)}catch(s){return kr(t,s),!1}}function Jo(t,e,n,i,s){return function n(r){if(r===Function)return i;const o=2&t.flags?Zt(t.index,e):e;0==(32&e[2])&&fr(o);let a=Go(e,0,i,r),l=n.__ngNextListenerFn__;for(;l;)a=Go(e,0,l,r)&&a,l=l.__ngNextListenerFn__;return s&&!1===a&&(r.preventDefault(),r.returnValue=!1),a}}function Qo(t=1){return function(t){return(Bt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Bt.lFrame.contextLView))[8]}(t)}function Wo(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s<e.length;s++){const r=e[s];if("*"!==r){if(null===i?Es(t,r,!0):Ss(i,r))return s}else n=s}return n}function Ko(t){const e=zt()[16][6];if(!e.projection){const n=e.projection=bn(t?t.length:1,null),i=n.slice();let s=e.child;for(;null!==s;){const e=t?Wo(s,t):0;null!==e&&(i[e]?i[e].projectionNext=s:n[e]=s,i[e]=s),s=s.next}}}function Xo(t,e=0,n){const i=zt(),s=$t(),r=Bs(s,ct+t,16,null,n||null);null===r.projection&&(r.projection=e),Qt(),64!=(64&r.flags)&&function(t,e,n){ms(e[11],0,e,n,ns(t,n,e),as(n.parent||e[6],n,e))}(s,i,r)}function ta(t,e,n){return ea(t,"",e,"",n),ta}function ea(t,e,n,i,s){const r=zt(),o=ro(r,e,n,i);return o!==Is&&tr($t(),be(),r,t,o,r[11],s,!1),ea}function na(t,e,n,i,s){const r=t[n+1],o=null===e;let a=i?Ms(r):Rs(r),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];ia(t[a],e)&&(l=!0,t[a+1]=i?Ns(n):Zs(n)),a=i?Ms(n):Rs(n)}l&&(t[n+1]=i?Zs(r):Ns(r))}function ia(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&wn(t,e)>=0}const sa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ra(t){return t.substring(sa.key,sa.keyEnd)}function oa(t,e){const n=sa.textEnd;return n===e?-1:(e=sa.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,sa.key=e,n),aa(t,e,n))}function aa(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function la(t,e,n){return da(t,e,n,!1),la}function ca(t,e){return da(t,e,null,!0),ca}function ua(t){pa(vn,ha,t,!0)}function ha(t,e){for(let n=function(t){return function(t){sa.key=0,sa.keyEnd=0,sa.value=0,sa.valueEnd=0,sa.textEnd=t.length}(t),oa(t,aa(t,0,sa.textEnd))}(e);n>=0;n=oa(e,n))vn(t,ra(e),!0)}function da(t,e,n,i){const s=zt(),r=$t(),o=ne(2);r.firstUpdatePass&&ma(r,t,o,i),e!==Is&&no(s,o,e)&&ba(r,r.data[fe()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=u(ti(t)))),t}(e,n),i,o)}function pa(t,e,n,i){const s=$t(),r=ne(2);s.firstUpdatePass&&ma(s,null,r,i);const o=zt();if(n!==Is&&no(o,r,n)){const a=s.data[fe()];if(wa(a,i)&&!ga(s,r)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=h(t,n||"")),Mo(s,a,o,n,i)}else!function(t,e,n,i,s,r,o,a){s===Is&&(s=j);let l=0,c=0,u=0<s.length?s[0]:null,h=0<r.length?r[0]:null;for(;null!==u||null!==h;){const d=l<s.length?s[l+1]:void 0,p=c<r.length?r[c+1]:void 0;let g,m=null;u===h?(l+=2,c+=2,d!==p&&(m=h,g=p)):null===h||null!==u&&u<h?(l+=2,m=u):(c+=2,m=h,g=p),null!==m&&ba(t,e,n,i,m,g,o,a),u=l<s.length?s[l]:null,h=c<r.length?r[c]:null}}(s,a,o,o[11],o[r+1],o[r+1]=function(t,e,n){if(null==n||""===n)return j;const i=[],s=ti(n);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(i,s[r],!0);else if("object"==typeof s)for(const r in s)s.hasOwnProperty(r)&&t(i,r,s[r]);else"string"==typeof s&&e(i,s);return i}(t,e,n),i,r)}}function ga(t,e){return e>=t.expandoStartIndex}function ma(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[fe()],o=ga(t,n);wa(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=re(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=_a(n=fa(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=fa(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Rs(i))return t[Ms(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=fa(null,t,e,n[1],i),n=_a(n,e.attrs,i),function(t,e,n,i){t[Ms(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<s;r++)i=_a(i,t[r].hostAttrs,n);return _a(i,e.attrs,n)}(t,e,i)}return void 0!==r&&(i?e.residualClasses=r:e.residualStyles=r),n}(s,r,e,i),function(t,e,n,i,s,r){let o=r?e.classBindings:e.styleBindings,a=Ms(o),l=Rs(o);t[i]=n;let c,u=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||wn(t,c)>0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=Ms(t[a+1]);t[i+1]=Fs(e,a),0!==e&&(t[e+1]=Ls(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Fs(a,0),0!==a&&(t[a+1]=Ls(t[a+1],i)),a=i;else t[i+1]=Fs(l,0),0===a?a=i:t[l+1]=Ls(t[l+1],i),l=i;u&&(t[i+1]=Zs(t[i+1])),na(t,c,i,!0),na(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&wn(r,e)>=0&&(n[i+1]=Ns(n[i+1]))}(e,c,t,i,r),o=Fs(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function fa(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(r=e[a],i=_a(i,r.hostAttrs,s),r!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function _a(t,e,n){const i=n?1:2;let s=-1;if(null!==e)for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?s=o:s===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),vn(t,o,!!n||e[++r]))}return void 0===t?null:t}function ba(t,e,n,i,s,r,o,a){if(!(3&e.type))return;const l=t.data,c=l[a+1];ya(1==(1&c)?va(l,e,n,s,Rs(c),o):void 0)||(ya(r)||2==(2&c)&&(r=va(l,null,n,s,a,o)),function(t,e,n,i,s){const r=Tt(t);if(e)s?r?t.addClass(n,i):n.classList.add(i):r?t.removeClass(n,i):n.classList.remove(i);else{let e=-1===i.indexOf("-")?void 0:$i.DashCase;if(null==s)r?t.removeStyle(n,i,e):n.style.removeProperty(i);else{const o="string"==typeof s&&s.endsWith("!important");o&&(s=s.slice(0,-10),e|=$i.Important),r?t.setStyle(n,i,s,e):n.style.setProperty(i,s,o?"important":"")}}}(i,o,Pt(fe(),n),s,r))}function va(t,e,n,i,s,r){const o=null===e;let a;for(;s>0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let u=n[s+1];u===Is&&(u=c?j:void 0);let h=c?yn(u,i):l===i?u:void 0;if(r&&!ya(h)&&(h=yn(e,i)),ya(h)&&(a=h,o))return a;const d=t[s+1];s=o?Ms(d):Rs(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=yn(t,i))}return a}function ya(t){return void 0!==t}function wa(t,e){return 0!=(t.flags&(e?16:32))}function xa(t,e=""){const n=zt(),i=$t(),s=t+ct,r=i.firstCreatePass?Bs(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return Tt(t)?t.createText(e):t.createTextNode(e)}(n[11],e);cs(i,n,o,r),Gt(r,!1)}function Ca(t){return ka("",t,""),Ca}function ka(t,e,n){const i=zt(),s=ro(i,t,e,n);return s!==Is&&Er(i,fe(),s),ka}function Aa(t,e,n,i,s){const r=zt(),o=function(t,e,n,i,s,r){const o=io(t,te(),n,s);return ne(2),o?e+_(n)+i+_(s)+r:Is}(r,t,e,n,i,s);return o!==Is&&Er(r,fe(),o),Aa}function Ea(t,e,n,i,s,r,o,a,l){const c=zt(),u=function(t,e,n,i,s,r,o,a,l,c){const u=function(t,e,n,i,s,r){const o=io(t,e,n,i);return io(t,e+2,s,r)||o}(t,te(),n,s,o,l);return ne(4),u?e+_(n)+i+_(s)+r+_(o)+a+_(l)+c:Is}(c,t,e,n,i,s,r,o,a,l);return u!==Is&&Er(c,fe(),u),Ea}function Sa(t,e,n){pa(vn,ha,ro(zt(),t,e,n),!0)}function Ta(t,e,n){const i=zt();return no(i,ee(),e)&&tr($t(),be(),i,t,e,i[11],n,!0),Ta}function Oa(t,e,n){const i=zt();if(no(i,ee(),e)){const s=$t(),r=be();tr(s,r,i,t,e,Cr(re(s.data),r,i),n,!0)}return Oa}const Ia=void 0;var Pa=["en",[["a","p"],["AM","PM"],Ia],[["AM","PM"],Ia,Ia],[["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"]],Ia,[["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"]],Ia,[["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}",Ia,"{1} 'at' {0}",Ia],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Da={};function Fa(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Za(e);if(n)return n;const i=e.split("-")[0];if(n=Za(i),n)return n;if("en"===i)return Pa;throw new Error(`Missing locale data for the locale "${t}".`)}function Ma(t){return Fa(t)[Ra.PluralCase]}function Za(t){return t in Da||(Da[t]=q.ng&&q.ng.common&&q.ng.common.locales&&q.ng.common.locales[t]),Da[t]}var Ra=(()=>((Ra=Ra||{})[Ra.LocaleId=0]="LocaleId",Ra[Ra.DayPeriodsFormat=1]="DayPeriodsFormat",Ra[Ra.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ra[Ra.DaysFormat=3]="DaysFormat",Ra[Ra.DaysStandalone=4]="DaysStandalone",Ra[Ra.MonthsFormat=5]="MonthsFormat",Ra[Ra.MonthsStandalone=6]="MonthsStandalone",Ra[Ra.Eras=7]="Eras",Ra[Ra.FirstDayOfWeek=8]="FirstDayOfWeek",Ra[Ra.WeekendRange=9]="WeekendRange",Ra[Ra.DateFormat=10]="DateFormat",Ra[Ra.TimeFormat=11]="TimeFormat",Ra[Ra.DateTimeFormat=12]="DateTimeFormat",Ra[Ra.NumberSymbols=13]="NumberSymbols",Ra[Ra.NumberFormats=14]="NumberFormats",Ra[Ra.CurrencyCode=15]="CurrencyCode",Ra[Ra.CurrencySymbol=16]="CurrencySymbol",Ra[Ra.CurrencyName=17]="CurrencyName",Ra[Ra.Currencies=18]="Currencies",Ra[Ra.Directionality=19]="Directionality",Ra[Ra.PluralCase=20]="PluralCase",Ra[Ra.ExtraData=21]="ExtraData",Ra))();const La="en-US";let Na=La;function Ua(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Na=t.toLowerCase().replace(/_/g,"-"))}function qa(t,e,n,i,s){if(t=g(t),Array.isArray(t))for(let r=0;r<t.length;r++)qa(t[r],e,n,i,s);else{const r=$t(),o=zt();let a=Br(t)?t:g(t.provide),l=Nr(t);const c=Vt(),u=1048575&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>20;if(Br(t)||!t.multi){const i=new Te(l,s,Do),p=za(a,e,s?u:u+d,h);-1===p?($e(qe(c,o),r,a),Ba(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=za(a,e,u+d,h),g=za(a,e,u,u+d),m=p>=0&&n[p],f=g>=0&&n[g];if(s&&!f||!s&&!m){$e(qe(c,o),r,a);const u=function(t,e,n,i,s){const r=new Te(t,n,Do);return r.multi=[],r.index=e,r.componentProviders=0,ja(r,s,i&&!n),r}(s?Ya:$a,n.length,s,i,l);!s&&f&&(n[g].providerFactory=u),Ba(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else Ba(r,t,p>-1?p:g,ja(n[s?g:p],l,!s&&i));!s&&i&&f&&n[g].componentProviders++}}}function Ba(t,e,n,i){const s=Br(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function ja(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function za(t,e,n,i){for(let s=n;s<i;s++)if(e[s]===t)return s;return-1}function $a(t,e,n,i){return Va(this.multi,[])}function Ya(t,e,n,i){const s=this.multi;let r;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=Ke(n,n[1],this.providerFactory.index,i);r=e.slice(0,t),Va(s,r);for(let n=t;n<e.length;n++)r.push(e[n])}else r=[],Va(s,r);return r}function Va(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function Ha(t,e=[]){return n=>{n.providersResolver=(n,i)=>function(t,e,n){const i=$t();if(i.firstCreatePass){const s=ft(t);qa(n,i.data,i.blueprint,s,!0),qa(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class Ga{}class Ja{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${u(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}class Qa{}function Wa(...t){}function Ka(t,e){return new tl(Dt(t,e))}Qa.NULL=new Ja;const Xa=function(){return Ka(Vt(),zt())};let tl=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Xa,t})();function el(t){return t instanceof tl?t.nativeElement:t}class nl{}let il=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>sl(),t})();const sl=function(){const t=zt(),e=Zt(Vt().index,t);return function(t){return t[11]}(ht(e)?e:t)};let rl=(()=>{class t{}return t.\u0275prov=y({token:t,providedIn:"root",factory:()=>null}),t})();class ol{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const al=new ol("12.1.2");class ll{constructor(){}supports(t){return Xr(t)}create(t){return new ul(t)}}const cl=(t,e)=>e;class ul{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||cl}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex<gl(n,i,s)?e:n,o=gl(r,i,s),a=r.currentIndex;if(r===n)i--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)i++;else{s||(s=[]);const t=o-i,e=a-i;if(t!=e){for(let n=0;n<t;n++){const i=n<s.length?s[n]:s[n]=0,r=i+n;e<=r&&r<t&&(s[n]=i+1)}s[r.previousIndex]=e-t}}o!==a&&t(r,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Xr(t))throw new Error(`Error trying to diff '${u(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,i,s=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],i=this._trackByFn(e,n),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,n,i,e)),Object.is(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,i,e),r=!0),s=s._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[Wr()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):t=this._addAfter(new hl(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new pl),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pl),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class hl{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class dl{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class pl{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new dl,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function gl(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i<n.length&&(s=n[i]),i+e+s}class ml{constructor(){}supports(t){return t instanceof Map||to(t)}create(){return new fl}}class fl{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||to(t)))throw new Error(`Error trying to diff '${u(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new _l(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class _l{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 bl(){return new vl([new ll])}let vl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||bl()),deps:[[t,new zn,new Bn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=y({token:t,providedIn:"root",factory:bl}),t})();function yl(){return new wl([new ml])}let wl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||yl()),deps:[[t,new zn,new Bn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=y({token:t,providedIn:"root",factory:yl}),t})();function xl(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(It(r)),dt(r))for(let t=ut;t<r.length;t++){const e=r[t],n=e[1].firstChild;null!==n&&xl(e[1],e,n,i)}const o=n.type;if(8&o)xl(t,e,n.child,i);else if(32&o){const t=Yi(n,e);let s;for(;s=t();)i.push(s)}else if(16&o){const t=hs(e,n);if(Array.isArray(t))i.push(...t);else{const n=Vi(e[16]);xl(n[1],n,t,i,!0)}}n=s?n.projectionNext:n.next}return i}class Cl{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return xl(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(dt(t)){const e=t[8],n=e?e.indexOf(this):-1;n>-1&&(Xi(t,n),_n(e,n))}this._attachedToViewContainer=!1}ts(this._lView[1],this._lView)}onDestroy(t){Ks(this._lView[1],this._lView,null,t)}markForCheck(){fr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){_r(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Kt(!0);try{_r(t,e,n)}finally{Kt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,gs(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class kl extends Cl{constructor(t){super(t),this._view=t}detectChanges(){br(this._view)}checkNoChanges(){!function(t){Kt(!0);try{br(t)}finally{Kt(!1)}}(this._view)}get context(){return null}}const Al=function(t){return function(t,e,n){if(gt(t)&&!n){const n=Zt(t.index,e);return new Cl(n,n)}return 47&t.type?new Cl(e[16],e):null}(Vt(),zt(),16==(16&t))};let El=(()=>{class t{}return t.__NG_ELEMENT_ID__=Al,t})();const Sl=[new ml],Tl=new vl([new ll]),Ol=new wl(Sl),Il=function(){return Ml(Vt(),zt())};let Pl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Il,t})();const Dl=Pl,Fl=class extends Dl{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=qs(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),zs(e,n,t),new Cl(n)}};function Ml(t,e){return 4&t.type?new Fl(e,t,Ka(t,e)):null}class Zl{}class Rl{}const Ll=function(){return zl(Vt(),zt())};let Nl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ll,t})();const Ul=Nl,ql=class extends Ul{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Ka(this._hostTNode,this._hostLView)}get injector(){return new en(this._hostTNode,this._hostLView)}get parentInjector(){const t=ze(this._hostTNode,this._hostLView);if(Me(t)){const e=Re(t,this._hostLView),n=Ze(t);return new en(e[1].data[n+8],e)}return new en(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Bl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ut}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(Zl,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(dt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new ql(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const s=ut+i,r=n.length;i>0&&(n[s-1][4]=e),i<r-ut?(e[4]=n[s],fn(n,ut+i,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(i,n,r,s);const o=ds(s,r),a=n[11],l=os(a,r[7]);return null!==l&&function(t,e,n,i,s,r){i[0]=s,i[6]=e,gs(t,i,n,1,s,r)}(i,r[6],a,n,l,o),t.attachToViewContainerRef(),fn(jl(r),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=Bl(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=Xi(this._lContainer,e);n&&(_n(jl(this._lContainer),e),ts(n[1],n))}detach(t){const e=this._adjustIndex(t,-1),n=Xi(this._lContainer,e);return n&&null!=_n(jl(this._lContainer),e)?new Cl(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function Bl(t){return t[8]}function jl(t){return t[8]||(t[8]=[])}function zl(t,e){let n;const i=e[t.index];if(dt(i))n=i;else{let s;if(8&t.type)s=It(i);else{const n=e[11];s=n.createComment("");const i=Dt(t,e);is(n,os(n,i),s,function(t,e){return Tt(t)?t.nextSibling(e):e.nextSibling}(n,i),!1)}e[t.index]=n=hr(i,e,s,t),mr(e,n)}return new ql(n,t,e)}const $l={};class Yl extends Qa{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=at(t);return new Gl(e,this.ngModule)}}function Vl(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Hl=new un("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>qi});class Gl extends Ga{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Os).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Vl(this.componentDef.inputs)}get outputs(){return Vl(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,$l,s);return r!==$l||i===$l?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(nl,Ot),o=s.get(rl,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Tt(t))return t.selectRootElement(e,n===Z.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Wi(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?kt:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:qi,clean:yr,playerHandler:null,flags:0},d=Ws(0,null,null,1,0,null,null,null,null,null),p=qs(null,d,h,u,null,null,r,a,o,s);let g,m;ue(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=Bs(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Sr(a,l,!0),null!==t&&(Oe(s,t,l),null!==a.classes&&_s(s,t,a.classes),null!==a.styles&&fs(s,t,a.styles)));const c=i.createRenderer(t,e),u=qs(n,Qs(e),null,e.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&($e(qe(a,n),o,e.type),sr(o,a),or(a,n.length,1)),mr(n,u),n[20]=u}(c,this.componentDef,p,r,a);if(c)if(n)Oe(a,c,["ng-version",al.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===s?""!==r&&e.push(r,t[++i]):8===s&&n.push(r);else{if(!ks(s))break;s=r}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Oe(a,c,t),e&&e.length>0&&_s(a,c,e.join(" "))}if(m=Ft(d,ct),void 0!==e){const t=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}g=function(t,e,n,i,s){const r=n[1],o=function(t,e,n){const i=Vt();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ar(t,i,e,js(t,e,1,null),n));const s=Ke(e,t,i.directiveStart,i);Zi(s,e);const r=Dt(i,e);return r&&Zi(r,e),s}(r,n,e);if(i.components.push(o),t[8]=o,s&&s.forEach(t=>t(o,e)),e.contentQueries){const t=Vt();e.contentQueries(1,o,t.directiveStart)}const a=Vt();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(_e(a.index),nr(n[1],a,0,a.directiveStart,a.directiveEnd,e),ir(e,o)),o}(t,this.componentDef,p,h,[$r]),zs(d,p,null)}finally{me()}return new Jl(this.componentType,g,Ka(m,p),p,m)}}class Jl extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new kl(i),this.componentType=t}get injector(){return new en(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Ql=new Map;class Wl extends Zl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Yl(this);const n=lt(t),i=t[H]||null;i&&Ua(i),this._bootstrapComponents=zi(n.bootstrap),this._r3Injector=Zr(t,e,[{provide:Zl,useValue:this},{provide:Qa,useValue:this.componentFactoryResolver}],u(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=zr.THROW_IF_NOT_FOUND,n=O.Default){return t===zr||t===Zl||t===Tr?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Kl extends Rl{constructor(t){super(),this.moduleType=t,null!==lt(t)&&function(t){const e=new Set;!function t(n){const i=lt(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${u(e)} vs ${u(e.name)}`)}(s,Ql.get(s),n),Ql.set(s,n));const r=zi(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new Wl(this.moduleType,t)}}function Xl(t,e,n){const i=Xt()+t,s=zt();return s[i]===Is?eo(s,i,n?e.call(n):e()):function(t,e){return t[e]}(s,i)}function tc(t,e,n,i){return sc(zt(),Xt(),t,e,n,i)}function ec(t,e,n,i,s){return rc(zt(),Xt(),t,e,n,i,s)}function nc(t,e,n,i,s,r){return function(t,e,n,i,s,r,o,a){const l=e+n;return function(t,e,n,i,s){const r=io(t,e,n,i);return no(t,e+2,s)||r}(t,l,s,r,o)?eo(t,l+3,a?i.call(a,s,r,o):i(s,r,o)):ic(t,l+3)}(zt(),Xt(),t,e,n,i,s,r)}function ic(t,e){const n=t[e];return n===Is?void 0:n}function sc(t,e,n,i,s,r){const o=e+n;return no(t,o,s)?eo(t,o+1,r?i.call(r,s):i(s)):ic(t,o+1)}function rc(t,e,n,i,s,r,o){const a=e+n;return io(t,a,s,r)?eo(t,a+2,o?i.call(o,s,r):i(s,r)):ic(t,a+2)}function oc(t,e){const n=$t();let i;const s=t+ct;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new f("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=_t(i.type)),o=P(Do);try{const t=Ne(!1),e=r();return Ne(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,zt(),s,e),e}finally{P(o)}}function ac(t,e,n){const i=t+ct,s=zt(),r=Mt(s,i);return uc(s,cc(s,i)?sc(s,Xt(),e,r.transform,n,r):r.transform(n))}function lc(t,e,n,i){const s=t+ct,r=zt(),o=Mt(r,s);return uc(r,cc(r,s)?rc(r,Xt(),e,o.transform,n,i,o):o.transform(n,i))}function cc(t,e){return t[1].data[e].pure}function uc(t,e){return Kr.isWrapped(e)&&(e=Kr.unwrap(e),t[te()]=Is),e}function hc(t){return e=>{setTimeout(t,void 0,e)}}const dc=class extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,r,o;let a=t,l=e||(()=>null),c=n;if(t&&"object"==typeof t){const e=t;a=null===(i=e.next)||void 0===i?void 0:i.bind(e),l=null===(r=e.error)||void 0===r?void 0:r.bind(e),c=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(l=hc(l),a&&(a=hc(a)),c&&(c=hc(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof s.w&&t.add(u),u}};function pc(){return this._results[Wr()]()}class gc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Wr(),n=gc.prototype;n[e]||(n[e]=pc)}get changes(){return this._changes||(this._changes=new dc)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=gn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){let s=t[i],r=e[i];if(n&&(s=n(s),r=n(r)),r!==s)return!1}return!0}(n._results,i,e))&&(n._results=i,n.length=i.length,n.last=i[this.length-1],n.first=i[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;class mc{constructor(t){this.queryList=t,this.matches=null}clone(){return new mc(this.queryList)}setDirty(){this.queryList.setDirty()}}class fc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);i.push(this.queries[n.indexInDeclarationView].clone())}return new fc(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Ic(t,e).matches&&this.queries[e].setDirty()}}class _c{constructor(t,e,n=null){this.predicate=t,this.flags=e,this.read=n}}class bc{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const i=null!==e?e.length:0,s=this.getByIndex(n).embeddedTView(t,i);s&&(s.indexInDeclarationView=n,null!==e?e.push(s):e=[s])}return null!==e?new bc(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class vc{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new vc(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const s=n[i];this.matchTNodeWithReadOption(t,e,yc(e,s)),this.matchTNodeWithReadOption(t,e,We(e,t,s,!1,!1))}else n===Pl?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,We(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===tl||i===Nl||i===Pl&&4&e.type)this.addMatch(e.index,-2);else{const n=We(e,t,i,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function yc(t,e){const n=t.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function wc(t,e,n,i){return-1===n?function(t,e){return 11&t.type?Ka(t,e):4&t.type?Ml(t,e):null}(e,t):-2===n?function(t,e,n){return n===tl?Ka(e,t):n===Pl?Ml(e,t):n===Nl?zl(e,t):void 0}(t,e,i):Ke(t,t[1],n,e)}function xc(t,e,n,i){const s=e[19].queries[i];if(null===s.matches){const i=t.data,r=n.matches,o=[];for(let t=0;t<r.length;t+=2){const s=r[t];o.push(s<0?null:wc(e,i[s],r[t+1],n.metadata.read))}s.matches=o}return s.matches}function Cc(t,e,n,i){const s=t.queries.getByIndex(n),r=s.matches;if(null!==r){const o=xc(t,e,s,n);for(let t=0;t<r.length;t+=2){const n=r[t];if(n>0)i.push(o[t/2]);else{const s=r[t+1],o=e[-n];for(let t=ut;t<o.length;t++){const e=o[t];e[17]===e[3]&&Cc(e[1],e,s,i)}if(null!==o[9]){const t=o[9];for(let e=0;e<t.length;e++){const n=t[e];Cc(n[1],n,s,i)}}}}}return i}function kc(t){const e=zt(),n=$t(),i=oe();ae(i+1);const s=Ic(n,i);if(t.dirty&&Rt(e)===(2==(2&s.metadata.flags))){if(null===s.matches)t.reset([]);else{const r=s.crossesNgTemplate?Cc(n,e,i,[]):xc(n,e,s,i);t.reset(r,el),t.notifyOnChanges()}return!0}return!1}function Ac(t,e,n){const i=$t();i.firstCreatePass&&(Oc(i,new _c(t,e,n),-1),2==(2&e)&&(i.staticViewQueries=!0)),Tc(i,zt(),e)}function Ec(t,e,n,i){const s=$t();if(s.firstCreatePass){const r=Vt();Oc(s,new _c(e,n,i),r.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(n.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(s,t),2==(2&n)&&(s.staticContentQueries=!0)}Tc(s,zt(),n)}function Sc(){return t=zt(),e=oe(),t[19].queries[e].queryList;var t,e}function Tc(t,e,n){const i=new gc(4==(4&n));Ks(t,e,i,i.destroy),null===e[19]&&(e[19]=new fc),e[19].queries.push(new mc(i))}function Oc(t,e,n){null===t.queries&&(t.queries=new bc),t.queries.track(new vc(e,n))}function Ic(t,e){return t.queries.getByIndex(e)}function Pc(t,e){return Ml(t,e)}const Dc=new un("Application Initializer");let Fc=(()=>{class t{constructor(t){this.appInits=t,this.resolve=Wa,this.reject=Wa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();if(jo(e))t.push(e);else if($o(e)){const n=new Promise((t,n)=>{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Rn(Dc,8))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();const Mc=new un("AppId"),Zc={provide:Mc,useFactory:function(){return`${Rc()}${Rc()}${Rc()}`},deps:[]};function Rc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Lc=new un("Platform Initializer"),Nc=new un("Platform ID"),Uc=new un("appBootstrapListener");let qc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();const Bc=new un("LocaleId"),jc=new un("DefaultCurrencyCode");class zc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const $c=function(t){return new Kl(t)},Yc=$c,Vc=function(t){return Promise.resolve($c(t))},Hc=function(t){const e=$c(t),n=zi(lt(t).declarations).reduce((t,e)=>{const n=at(e);return n&&t.push(new Gl(n)),t},[]);return new zc(e,n)},Gc=Hc,Jc=function(t){return Promise.resolve(Hc(t))};let Qc=(()=>{class t{constructor(){this.compileModuleSync=Yc,this.compileModuleAsync=Vc,this.compileModuleAndAllComponentsSync=Gc,this.compileModuleAndAllComponentsAsync=Jc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();const Wc=(()=>Promise.resolve(0))();function Kc(t){"undefined"==typeof Zone?Wc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Xc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new dc(!1),this.onMicrotaskEmpty=new dc(!1),this.onStable=new dc(!1),this.onError=new dc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=q.requestAnimationFrame,e=q.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(q,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,nu(t),t.isCheckStableRunning=!0,eu(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),nu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,r,o,a)=>{try{return iu(t),n.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),su(t)}},onInvoke:(n,i,s,r,o,a,l)=>{try{return iu(t),n.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),su(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,nu(t),eu(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Xc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Xc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,tu,Wa,Wa);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const tu={};function eu(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function nu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function iu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function su(t){t._nesting--,eu(t)}class ru{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new dc,this.onMicrotaskEmpty=new dc,this.onStable=new dc,this.onError=new dc}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let ou=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Xc.assertNotInAngularZone(),Kc(()=>{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())Kc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Rn(Xc))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})(),au=(()=>{class t{constructor(){this._applications=new Map,hu.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return hu.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();class lu{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function cu(t){hu=t}let uu,hu=new lu,du=!0,pu=!1;function gu(){return pu=!0,du}function mu(){if(pu)throw new Error("Cannot enable prod mode after platform setup.");du=!1}const fu=new un("AllowMultipleToken");class _u{constructor(t,e){this.name=t,this.token=e}}function bu(t,e,n=[]){const i=`Platform: ${e}`,s=new un(i);return(e=[])=>{let r=vu();if(!r||r.injector.get(fu,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Ir,useValue:"platform"});!function(t){if(uu&&!uu.destroyed&&!uu.injector.get(fu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");uu=t.get(yu);const e=t.get(Lc,null);e&&e.forEach(t=>t())}(zr.create({providers:t,name:i}))}return function(t){const e=vu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function vu(){return uu&&!uu.destroyed?uu:null}let yu=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new ru:("zone.js"===t?void 0:t)||new Xc({enableLongStackTrace:gu(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:Xc,useValue:n}];return n.run(()=>{const e=zr.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(Ui,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{r.handleError(t)}});s.onDestroy(()=>{Cu(this._modules,s),t.unsubscribe()})}),function(t,e,n){try{const i=n();return jo(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(Fc);return t.runInitializers(),t.donePromise.then(()=>(Ua(s.injector.get(Bc,La)||La),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=wu({},e);return function(t,e,n){const i=new Kl(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(xu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${u(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Rn(zr))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();function wu(t,e){return Array.isArray(e)?e.reduce(wu,t):Object.assign(Object.assign({},t),e)}let xu=(()=>{class t{constructor(t,e,n,i,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new r.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),c=new r.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Xc.assertNotInAngularZone(),Kc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Xc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=(0,o.T)(l,c.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Ga?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(Zl),s=n.create(zr.NULL,[],e||n.selector,i),r=s.location.nativeElement,o=s.injector.get(ou,null),a=o&&s.injector.get(au);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),Cu(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Cu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Uc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Rn(Xc),Rn(zr),Rn(Ui),Rn(Qa),Rn(Fc))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();function Cu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ku{}class Au{}const Eu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Su=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Eu}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n(8255)(e).then(t=>t[i]).then(t=>Tu(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>Tu(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(Rn(Qc),Rn(Au,8))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();function Tu(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Ou=function(t){return null},Iu=bu(null,"core",[{provide:Nc,useValue:"unknown"},{provide:yu,deps:[zr]},{provide:au,deps:[]},{provide:qc,deps:[]}]),Pu=[{provide:xu,useClass:xu,deps:[Xc,zr,Ui,Qa,Fc]},{provide:Hl,deps:[Xc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Fc,useClass:Fc,deps:[[new Bn,Dc]]},{provide:Qc,useClass:Qc,deps:[]},Zc,{provide:vl,useFactory:function(){return Tl},deps:[]},{provide:wl,useFactory:function(){return Ol},deps:[]},{provide:Bc,useFactory:function(t){return Ua(t=t||"undefined"!=typeof $localize&&$localize.locale||La),t},deps:[[new qn(Bc),new Bn,new zn]]},{provide:jc,useValue:"USD"}];let Du=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(Rn(xu))},t.\u0275mod=nt({type:t}),t.\u0275inj=w({providers:Pu}),t})()},3679:(t,e,n)=>{"use strict";n.d(e,{Zs:()=>ne,gN:()=>B,Fj:()=>p,Oe:()=>ft,qu:()=>de,NI:()=>gt,oH:()=>It,u:()=>Ut,cw:()=>mt,sg:()=>Dt,x0:()=>Mt,u5:()=>ue,nD:()=>oe,Fd:()=>Qt,wO:()=>se,qQ:()=>Kt,Cf:()=>f,JU:()=>u,a5:()=>j,JJ:()=>$,JL:()=>Y,F:()=>vt,On:()=>Ct,YN:()=>zt,wV:()=>Et,c5:()=>le,UX:()=>he,Q7:()=>ee,EJ:()=>jt,kI:()=>v,_Y:()=>kt,Kr:()=>Ht});var i=n(7716),s=n(8583),r=n(4402),o=n(5758),a=n(8002);let l=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t}),t})(),c=(()=>{class t extends l{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();const u=new i.OlP("NgValueAccessor"),h={provide:u,useExisting:(0,i.Gpc)(()=>p),multi:!0},d=new i.OlP("CompositionEventMode");let p=(()=>{class t extends l{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,s.q)()?(0,s.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(d,8))},t.\u0275dir=i.lG2({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&i.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[i._Bn([h]),i.qOj]}),t})();function g(t){return null==t||0===t.length}function m(t){return null!=t&&"number"==typeof t.length}const f=new i.OlP("NgValidators"),_=new i.OlP("NgAsyncValidators"),b=/^(?=.{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 v{static min(t){return y(t)}static max(t){return w(t)}static required(t){return x(t)}static requiredTrue(t){return C(t)}static email(t){return function(t){return g(t.value)||b.test(t.value)?null:{email:!0}}(t)}static minLength(t){return k(t)}static maxLength(t){return A(t)}static pattern(t){return E(t)}static nullValidator(t){return null}static compose(t){return F(t)}static composeAsync(t){return Z(t)}}function y(t){return e=>{if(g(e.value)||g(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}function w(t){return e=>{if(g(e.value)||g(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}function x(t){return g(t.value)?{required:!0}:null}function C(t){return!0===t.value?null:{required:!0}}function k(t){return e=>g(e.value)||!m(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}function A(t){return e=>m(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function E(t){if(!t)return S;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(g(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}function S(t){return null}function T(t){return null!=t}function O(t){const e=(0,i.QGY)(t)?(0,r.D)(t):t;return(0,i.CqO)(e),e}function I(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function P(t,e){return e.map(e=>e(t))}function D(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function F(t){if(!t)return null;const e=t.filter(T);return 0==e.length?null:function(t){return I(P(t,e))}}function M(t){return null!=t?F(D(t)):null}function Z(t){if(!t)return null;const e=t.filter(T);return 0==e.length?null:function(t){const n=P(t,e).map(O);return(0,o.D)(n).pipe((0,a.U)(I))}}function R(t){return null!=t?Z(D(t)):null}function L(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function N(t){return t._rawValidators}function U(t){return t._rawAsyncValidators}let q=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=M(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=R(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t}),t})(),B=(()=>{class t extends q{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();class j extends q{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class z{constructor(t){this._cd=t}is(t){var e,n,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[t])}}let $=(()=>{class t extends z{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(j,2))},t.\u0275dir=i.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[i.qOj]}),t})(),Y=(()=>{class t extends z{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(B,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[i.qOj]}),t})();function V(t,e){return[...e.path,t]}function H(t,e){Q(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&K(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&K(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function G(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),W(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function J(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Q(t,e){const n=N(t);null!==e.validator?t.setValidators(L(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const i=U(t);null!==e.asyncValidator?t.setAsyncValidators(L(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const s=()=>t.updateValueAndValidity();J(e._rawValidators,s),J(e._rawAsyncValidators,s)}function W(t,e){let n=!1;if(null!==t){if(null!==e.validator){const i=N(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.validator);s.length!==i.length&&(n=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const i=U(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.asyncValidator);s.length!==i.length&&(n=!0,t.setAsyncValidators(s))}}}const i=()=>{};return J(e._rawValidators,i),J(e._rawAsyncValidators,i),n}function K(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function X(t,e){Q(t,e)}function tt(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function et(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function nt(t,e){if(!e)return null;let n,i,s;return Array.isArray(e),e.forEach(t=>{t.constructor===p?n=t:Object.getPrototypeOf(t.constructor)===c?i=t:s=t}),s||i||n||null}function it(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const st="VALID",rt="INVALID",ot="PENDING",at="DISABLED";function lt(t){return(dt(t)?t.validators:t)||null}function ct(t){return Array.isArray(t)?M(t):t||null}function ut(t,e){return(dt(e)?e.asyncValidators:t)||null}function ht(t){return Array.isArray(t)?R(t):t||null}function dt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class pt{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=ct(this._rawValidators),this._composedAsyncValidatorFn=ht(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===st}get invalid(){return this.status===rt}get pending(){return this.status==ot}get disabled(){return this.status===at}get enabled(){return this.status!==at}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=ct(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ht(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=ot,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=at,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=st,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==st&&this.status!==ot||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?at:st}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=ot,this._hasOwnPendingAsyncValidator=!0;const e=O(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof mt?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof ft&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?at:this.errors?rt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ot)?ot:this._anyControlsHaveStatus(rt)?rt:st}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){dt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class gt extends pt{constructor(t=null,e,n){super(lt(e),ut(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){it(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){it(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class mt extends pt{constructor(t,e,n){super(lt(e),ut(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof gt?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class ft extends pt{constructor(t,e,n){super(lt(e),ut(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof gt?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const _t={provide:B,useExisting:(0,i.Gpc)(()=>vt)},bt=(()=>Promise.resolve(null))();let vt=(()=>{class t extends B{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.vpe,this.form=new mt({},M(t),R(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){bt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),H(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){bt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),it(this._directives,t)})}addFormGroup(t){bt.then(()=>{const e=this._findContainer(t.path),n=new mt({});X(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){bt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){bt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,et(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(f,10),i.Y36(_,10))},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([_t]),i.qOj]}),t})(),yt=(()=>{class t extends B{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return V(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();const wt={provide:j,useExisting:(0,i.Gpc)(()=>Ct)},xt=(()=>Promise.resolve(null))();let Ct=(()=>{class t extends j{constructor(t,e,n,s){super(),this.control=new gt,this._registered=!1,this.update=new i.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=nt(0,s)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),tt(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?V(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){H(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(t){xt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;xt.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(B,9),i.Y36(f,10),i.Y36(_,10),i.Y36(u,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([wt]),i.qOj,i.TTD]}),t})(),kt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const At={provide:u,useExisting:(0,i.Gpc)(()=>Et),multi:!0};let Et=(()=>{class t extends c{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&i.NdJ("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[i._Bn([At]),i.qOj]}),t})(),St=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const Tt=new i.OlP("NgModelWithFormControlWarning"),Ot={provide:j,useExisting:(0,i.Gpc)(()=>It)};let It=(()=>{class t extends j{constructor(t,e,n,s){super(),this._ngModelWarningConfig=s,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=nt(0,n)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&G(e,this,!1),H(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}tt(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&G(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(f,10),i.Y36(_,10),i.Y36(u,10),i.Y36(Tt,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([Ot]),i.qOj,i.TTD]}),t._ngModelWarningSentOnce=!1,t})();const Pt={provide:B,useExisting:(0,i.Gpc)(()=>Dt)};let Dt=(()=>{class t extends B{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(W(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return H(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){G(t.control||null,t,!1),it(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,et(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(G(e||null,t),n instanceof gt&&(H(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);X(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return W(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Q(this.form,this),this._oldForm&&W(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(f,10),i.Y36(_,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([Pt]),i.qOj,i.TTD]}),t})();const Ft={provide:B,useExisting:(0,i.Gpc)(()=>Mt)};let Mt=(()=>{class t extends yt{constructor(t,e,n){super(),this._parent=t,this._setValidators(e),this._setAsyncValidators(n)}_checkParentType(){Lt(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(B,13),i.Y36(f,10),i.Y36(_,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i._Bn([Ft]),i.qOj]}),t})();const Zt={provide:B,useExisting:(0,i.Gpc)(()=>Rt)};let Rt=(()=>{class t extends B{constructor(t,e,n){super(),this._parent=t,this._setValidators(e),this._setAsyncValidators(n)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return V(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Lt(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(B,13),i.Y36(f,10),i.Y36(_,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i._Bn([Zt]),i.qOj]}),t})();function Lt(t){return!(t instanceof Mt||t instanceof Dt||t instanceof Rt)}const Nt={provide:j,useExisting:(0,i.Gpc)(()=>Ut)};let Ut=(()=>{class t extends j{constructor(t,e,n,s,r){super(),this._ngModelWarningConfig=r,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=nt(0,s)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),tt(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return V(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 t.\u0275fac=function(e){return new(e||t)(i.Y36(B,13),i.Y36(f,10),i.Y36(_,10),i.Y36(u,10),i.Y36(Tt,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([Nt]),i.qOj,i.TTD]}),t._ngModelWarningSentOnce=!1,t})();const qt={provide:u,useExisting:(0,i.Gpc)(()=>jt),multi:!0};function Bt(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let jt=(()=>{class t extends c{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this.setProperty("selectedIndex",-1);const n=Bt(e,t);this.setProperty("value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&i.NdJ("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[i._Bn([qt]),i.qOj]}),t})(),zt=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(Bt(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(jt,9))},t.\u0275dir=i.lG2({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const $t={provide:u,useExisting:(0,i.Gpc)(()=>Vt),multi:!0};function Yt(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Vt=(()=>{class t extends c{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const i=t.item(e),s=this._getOptionValue(i.value);n.push(s)}}else{const t=e.options;for(let e=0;e<t.length;e++){const i=t.item(e);if(i.selected){const t=this._getOptionValue(i.value);n.push(t)}}}this.value=n,t(n)}}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&i.NdJ("change",function(t){return e.onChange(t.target)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[i._Bn([$t]),i.qOj]}),t})(),Ht=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Yt(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Yt(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(Vt,9))},t.\u0275dir=i.lG2({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),Gt=(()=>{class t{constructor(){this._validator=S}handleChanges(t){if(this.inputName in t){const e=this.normalizeInput(t[this.inputName].currentValue);this._validator=this.createValidator(e),this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t}),t})();const Jt={provide:f,useExisting:(0,i.Gpc)(()=>Qt),multi:!0};let Qt=(()=>{class t extends Gt{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=t=>parseFloat(t),this.createValidator=t=>w(t)}ngOnChanges(t){this.handleChanges(t)}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(t,e){if(2&t){let t;i.uIk("max",null!==(t=e.max)&&void 0!==t?t:null)}},inputs:{max:"max"},features:[i._Bn([Jt]),i.qOj,i.TTD]}),t})();const Wt={provide:f,useExisting:(0,i.Gpc)(()=>Kt),multi:!0};let Kt=(()=>{class t extends Gt{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=t=>parseFloat(t),this.createValidator=t=>y(t)}ngOnChanges(t){this.handleChanges(t)}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(t,e){if(2&t){let t;i.uIk("min",null!==(t=e.min)&&void 0!==t?t:null)}},inputs:{min:"min"},features:[i._Bn([Wt]),i.qOj,i.TTD]}),t})();const Xt={provide:f,useExisting:(0,i.Gpc)(()=>ee),multi:!0},te={provide:f,useExisting:(0,i.Gpc)(()=>ne),multi:!0};let ee=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?x(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[i._Bn([Xt])]}),t})(),ne=(()=>{class t extends ee{validate(t){return this.required?C(t):null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("required",e.required?"":null)},features:[i._Bn([te]),i.qOj]}),t})();const ie={provide:f,useExisting:(0,i.Gpc)(()=>se),multi:!0};let se=(()=>{class t{constructor(){this._validator=S}ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=k("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[i._Bn([ie]),i.TTD]}),t})();const re={provide:f,useExisting:(0,i.Gpc)(()=>oe),multi:!0};let oe=(()=>{class t{constructor(){this._validator=S}ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=A("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i._Bn([re]),i.TTD]}),t})();const ae={provide:f,useExisting:(0,i.Gpc)(()=>le),multi:!0};let le=(()=>{class t{constructor(){this._validator=S}ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=E(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[i._Bn([ae]),i.TTD]}),t})(),ce=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[St]]}),t})(),ue=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[ce]}),t})(),he=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Tt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[ce]}),t})(),de=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i,s=null,r=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new mt(n,{asyncValidators:r,updateOn:i,validators:s})}control(t,e,n){return new gt(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new ft(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof gt||t instanceof mt||t instanceof ft?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t},token:t,providedIn:he}),t})()},1554:(t,e,n)=>{"use strict";n.d(e,{XC:()=>L,Bb:()=>z,ZL:()=>j});var i=n(9238),s=n(9490),r=n(521),o=n(7716),a=n(2458),l=n(5319),c=n(9765),u=n(1439),h=n(6682),d=n(5917),p=n(2759),g=n(8583),m=n(625),f=n(3416),_=n(6461),b=n(7636),v=n(3679),y=n(9911),w=n(5257),x=n(3190),C=n(5435),k=n(8002),A=n(3342),E=n(1289),S=n(946);const T=["panel"];function O(t,e){if(1&t&&(o.TgZ(0,"div",0,1),o.Hsn(2),o.qZA()),2&t){const t=e.id,n=o.oxw();o.Q6J("id",n.id)("ngClass",n._classList),o.uIk("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(t))}}const I=["*"];let P=0;class D{constructor(t,e){this.source=t,this.option=e}}class F{}const M=(0,a.Kr)(F),Z=new o.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let R=(()=>{class t extends M{constructor(t,e,n,i){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=l.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new o.vpe,this.opened=new o.vpe,this.closed=new o.vpe,this.optionActivated=new o.vpe,this._classList={},this.id="mat-autocomplete-"+P++,this.inertGroups=(null==i?void 0:i.SAFARI)||!1,this._autoActiveFirstOption=!!n.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=(0,s.Ig)(t)}set classList(t){this._classList=t&&t.length?(0,s.du)(t).reduce((t,e)=>(t[e]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new i.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new D(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.sBO),o.Y36(o.SBq),o.Y36(Z),o.Y36(r.t4))},t.\u0275dir=o.lG2({type:t,viewQuery:function(t,e){if(1&t&&(o.Gf(o.Rgc,7),o.Gf(T,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.template=t.first),o.iGM(t=o.CRH())&&(e.panel=t.first)}},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[o.qOj]}),t})(),L=(()=>{class t extends R{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=o.n5z(t)))(n||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){if(1&t&&(o.Suo(n,a.K7,5),o.Suo(n,a.ey,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.optionGroups=t),o.iGM(t=o.CRH())&&(e.options=t)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[o._Bn([{provide:a.HF,useExisting:t}]),o.qOj],ngContentSelectors:I,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(o.F$t(),o.YNc(0,O,3,4,"ng-template"))},directives:[g.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t})();const N=new o.OlP("mat-autocomplete-scroll-strategy"),U={provide:N,deps:[m.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},q={provide:v.JU,useExisting:(0,o.Gpc)(()=>j),multi:!0};let B=(()=>{class t{constructor(t,e,n,i,s,r,o,a,d,p,g){this._element=t,this._overlay=e,this._viewContainerRef=n,this._zone=i,this._changeDetectorRef=s,this._dir=o,this._formField=a,this._document=d,this._viewportRuler=p,this._defaults=g,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=l.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new c.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,u.P)(()=>this.autocomplete&&this.autocomplete.options?(0,h.T)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe((0,w.q)(1),(0,x.w)(()=>this.optionSelections))),this._scrollStrategy=r}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=(0,s.Ig)(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,h.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,C.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,C.h)(()=>this._overlayAttached)):(0,d.of)()).pipe((0,k.U)(t=>t instanceof a.rN?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,h.T)((0,p.R)(this._document,"click"),(0,p.R)(this._document,"auxclick"),(0,p.R)(this._document,"touchend")).pipe((0,C.h)(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,n=this._formField?this._formField._elementRef.nativeElement:null,i=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!n||!n.contains(e))&&(!i||!i.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(e!==_.hY||(0,_.Vb)(t)||t.preventDefault(),this.activeOption&&e===_.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const n=this.autocomplete._keyManager.activeItem,i=e===_.LH||e===_.JH;this.panelOpen||e===_.Mf?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let e=t.target,n=e.value;"number"===e.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const t=this._zone.onStable.pipe((0,w.q)(1)),e=this.autocomplete.options.changes.pipe((0,A.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,E.g)(0));return(0,h.T)(t,e).pipe((0,x.w)(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,w.q)(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!==t&&e.selected&&e.deselect()})}_attachOverlay(){var t;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!(0,r.kV)(this._element.nativeElement));let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new b.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe(t=>{(t.keyCode===_.hY&&!(0,_.Vb)(t)||t.keyCode===_.LH&&(0,_.Vb)(t,"altKey"))&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new m.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],n=this._aboveClass,i=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:n},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:n}];let s;s="above"===this.position?i:"below"===this.position?e:[...e,...i],t.withPositions(s)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,n=(0,a.CB)(t,e.options,e.optionGroups);if(0===t&&1===n)e._setScrollTop(0);else if(e.panel){const n=e.options.toArray()[t];if(n){const t=n._getHostElement(),i=(0,a.jH)(t.offsetTop,t.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(i)}}}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(m.aV),o.Y36(o.s_b),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(N),o.Y36(S.Is,8),o.Y36(y.G_,9),o.Y36(g.K0,8),o.Y36(f.rL),o.Y36(Z,8))},t.\u0275dir=o.lG2({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[o.TTD]}),t})(),j=(()=>{class t extends B{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=o.n5z(t)))(n||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&o.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&o.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[o._Bn([q]),o.qOj]}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[U],imports:[[m.U8,a.Ng,a.BQ,g.ez],f.ZD,a.Ng,a.BQ]}),t})()},346:(t,e,n)=>{"use strict";n.d(e,{k:()=>h,g:()=>d});var i=n(2458),s=n(9238),r=n(9490),o=n(6237),a=n(7716);let l=0;class c{}const u=(0,i.Id)(c);let h=(()=>{class t extends u{constructor(t,e,n,i,s){super(),this._ngZone=t,this._elementRef=e,this._ariaDescriber=n,this._renderer=i,this._animationMode=s,this._hasContent=!1,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=l++}get color(){return this._color}set color(t){this._setColor(t),this._color=t}get overlap(){return this._overlap}set overlap(t){this._overlap=(0,r.Ig)(t)}get description(){return this._description}set description(t){if(t!==this._description){const e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}get hidden(){return this._hidden}set hidden(t){this._hidden=(0,r.Ig)(t)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}ngOnChanges(t){const e=t.content;if(e){const t=e.currentValue;this._hasContent=null!=t&&`${t}`.trim().length>0,this._updateTextContent()}}ngOnDestroy(){const t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}getBadgeElement(){return this._badgeElement}_updateTextContent(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}_createBadgeElement(){const t=this._renderer.createElement("span"),e="mat-badge-active",n="mat-badge-content";return this._clearExistingBadges(n),t.setAttribute("id",`mat-badge-content-${this._id}`),t.classList.add(n),t.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add(e)})}):t.classList.add(e),t}_updateHostAriaDescription(t,e){const n=this._updateTextContent();e&&this._ariaDescriber.removeDescription(n,e),t&&this._ariaDescriber.describe(n,t)}_setColor(t){if(t!==this._color){const e=this._elementRef.nativeElement.classList;this._color&&e.remove(`mat-badge-${this._color}`),t&&e.add(`mat-badge-${t}`)}}_clearExistingBadges(t){const e=this._elementRef.nativeElement;let n=e.children.length;for(;n--;){const i=e.children[n];i.classList.contains(t)&&e.removeChild(i)}}_stringifyContent(){const t=this.content;return null==t?"":`${t}`}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.R0b),a.Y36(a.SBq),a.Y36(s.$s),a.Y36(a.Qsj),a.Y36(o.Qb,8))},t.\u0275dir=a.lG2({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&a.ekj("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[a.qOj,a.TTD]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[s.rt,i.BQ],i.BQ]}),t})()},1095:(t,e,n)=>{"use strict";n.d(e,{zs:()=>g,lW:()=>p,ot:()=>m});var i=n(2458),s=n(6237),r=n(7716),o=n(9238);const a=["mat-button",""],l=["*"],c=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",u=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class h{constructor(t){this._elementRef=t}}const d=(0,i.pj)((0,i.Id)((0,i.Kr)(h)));let p=(()=>{class t extends d{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of u)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(o.tE),r.Y36(s.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&r.Gf(i.wG,5),2&t){let t;r.iGM(t=r.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(r.uIk("disabled",e.disabled||null),r.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1),r._UZ(3,"span",2)),2&t&&(r.xp6(2),r.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[c],encapsulation:2,changeDetection:0}),t})(),g=(()=>{class t extends p{constructor(t,e,n){super(e,t,n)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(o.tE),r.Y36(r.SBq),r.Y36(s.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e._haltDisabledEvents(t)}),2&t&&(r.uIk("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),r.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[r.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1),r._UZ(3,"span",2)),2&t&&(r.xp6(2),r.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[c],encapsulation:2,changeDetection:0}),t})(),m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[i.si,i.BQ],i.BQ]}),t})()},7539:(t,e,n)=>{"use strict";n.d(e,{oG:()=>w,p9:()=>A,e_:()=>C});var i=n(9490),s=n(7716),r=n(3679),o=n(2458),a=n(6237),l=n(8553),c=n(9238);const u=["input"],h=function(){return{enterDuration:150}},d=["*"],p=new s.OlP("mat-checkbox-default-options",{providedIn:"root",factory:g});function g(){return{color:"accent",clickAction:"check-indeterminate"}}let m=0;const f=g(),_={provide:r.JU,useExisting:(0,s.Gpc)(()=>w),multi:!0};class b{}class v{constructor(t){this._elementRef=t}}const y=(0,o.sb)((0,o.pj)((0,o.Kr)((0,o.Id)(v))));let w=(()=>{class t extends y{constructor(t,e,n,i,r,o,a){super(t),this._changeDetectorRef=e,this._focusMonitor=n,this._ngZone=i,this._animationMode=o,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++m,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.vpe,this.indeterminateChange=new s.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||f,this.color=this.defaultColor=this._options.color||f.color,this.tabIndex=parseInt(r)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=(0,i.Ig)(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=(0,i.Ig)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=(0,i.Ig)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,n=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new b;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const n=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===n?this.disabled||"noop"!==n||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==n&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let n="";switch(t){case 0:if(1===e)n="unchecked-checked";else{if(3!=e)return"";n="unchecked-indeterminate"}break;case 2:n=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${n}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(c.tE),s.Y36(s.R0b),s.$8M("tabindex"),s.Y36(a.Qb,8),s.Y36(p,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(s.Gf(u,5),s.Gf(o.wG,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._inputElement=t.first),s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",null),s.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s._Bn([_]),s.qOj],ngContentSelectors:d,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"span",2),s.TgZ(3,"input",3,4),s.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(5,"span",5),s._UZ(6,"span",6),s.qZA(),s._UZ(7,"span",7),s.TgZ(8,"span",8),s.O4$(),s.TgZ(9,"svg",9),s._UZ(10,"path",10),s.qZA(),s.kcU(),s._UZ(11,"span",11),s.qZA(),s.qZA(),s.TgZ(12,"span",12,13),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(14,"span",14),s._uU(15,"\xa0"),s.qZA(),s.Hsn(16),s.qZA(),s.qZA()),2&t){const t=s.MAs(1),n=s.MAs(13);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),s.xp6(1),s.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.DdM(19,h))}},directives:[o.wG,l.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const x={provide:r.Cf,useExisting:(0,s.Gpc)(()=>C),multi:!0};let C=(()=>{class t extends r.Zs{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=s.n5z(t)))(n||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[s._Bn([x]),s.qOj]}),t})(),k=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[o.si,o.BQ,l.Q8,k],o.BQ,k]}),t})()},8341:(t,e,n)=>{"use strict";n.d(e,{HS:()=>E,oH:()=>Z,qn:()=>F,qH:()=>S,Hi:()=>L});var i=n(6461),s=n(7716),r=n(2458),o=n(9490),a=n(8583),l=n(6237),c=n(9765),u=n(6682),h=n(5257),d=n(6782),p=n(9761),g=n(9238),m=n(8345),f=n(9911),_=n(521),b=n(946),v=n(3679);const y=["*"],w=new s.OlP("MatChipRemove"),x=new s.OlP("MatChipAvatar"),C=new s.OlP("MatChipTrailingIcon");class k{constructor(t){this._elementRef=t}}const A=(0,r.sb)((0,r.pj)((0,r.Kr)(k),"primary"),-1);let E=(()=>{class t extends A{constructor(t,e,n,i,o,a,l,u){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=o,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new c.xQ,this._onBlur=new c.xQ,this.selectionChange=new s.vpe,this.destroyed=new s.vpe,this.removed=new s.vpe,this._addHostClassName(),this._chipRippleTarget=a.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new r.IR(this,e,this._chipRippleTarget,n),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=i||{},this._animationsDisabled="NoopAnimations"===l,this.tabIndex=null!=u&&parseInt(u)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=(0,o.Ig)(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=(0,o.Ig)(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=(0,o.Ig)(t)}get removable(){return this._removable}set removable(t){this._removable=(0,o.Ig)(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t="mat-basic-chip",e=this._elementRef.nativeElement;e.hasAttribute(t)||e.tagName.toLowerCase()===t?e.classList.add(t):e.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case i.yY:case i.ZH:this.remove(),t.preventDefault();break;case i.L_:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,h.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(_.t4),s.Y36(r.Y2,8),s.Y36(s.sBO),s.Y36(a.K0),s.Y36(l.Qb,8),s.$8M("tabindex"))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,x,5),s.Suo(n,C,5),s.Suo(n,w,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.avatar=t.first),s.iGM(t=s.CRH())&&(e.trailingIcon=t.first),s.iGM(t=s.CRH())&&(e.removeIcon=t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(s.uIk("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),s.ekj("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[s.qOj]}),t})(),S=(()=>{class t{constructor(t,e){this._parentChip=t,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}_handleClick(t){const e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(E),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e._handleClick(t)})},features:[s._Bn([{provide:w,useExisting:t}])]}),t})();const T=new s.OlP("mat-chips-default-options");class O{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}const I=(0,r.FD)(O);let P=0;class D{constructor(t,e){this.source=t,this.value=e}}let F=(()=>{class t extends I{constructor(t,e,n,i,r,o,a){super(o,i,r,a),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this.ngControl=a,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new c.xQ,this._uid="mat-chip-list-"+P++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new s.vpe,this.valueChange=new s.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,o.Ig)(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=(0,o.Ig)(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=(0,o.Ig)(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=(0,o.Ig)(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return(0,u.T)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return(0,u.T)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return(0,u.T)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return(0,u.T)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new g.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,p.O)(null),(0,d.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new m.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;t.keyCode===i.ZH&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&t<this.chips.length}_isInputEmpty(t){return!(!t||"input"!==t.nodeName.toLowerCase()||t.value)}_setSelectionByValue(t,e=!0){if(this._clearSelection(),this.chips.forEach(t=>t.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const n=this._selectValue(t,e);n&&e&&this._keyManager.setActiveItem(n)}}_selectValue(t,e=!0){const n=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return n&&(e?n.selectViaInteraction():n.select(),this._selectionModel.select(n)),n}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new D(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,n=this.chips.toArray().indexOf(t.chip);this._isValidIndex(n)&&e._hasFocus&&(this._lastDestroyedChipIndex=n)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(b.Is,8),s.Y36(v.F,8),s.Y36(v.sg,8),s.Y36(r.rD),s.Y36(v.a5,10))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,E,5),2&t){let t;s.iGM(t=s.CRH())&&(e.chips=t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.Ikx("id",e._uid),s.uIk("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),s.ekj("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[s._Bn([{provide:f.Eo,useExisting:t}]),s.qOj],ngContentSelectors:y,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})(),M=0,Z=(()=>{class t{constructor(t,e){this._elementRef=t,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new s.vpe,this.placeholder="",this.id="mat-chip-list-input-"+M++,this._disabled=!1,this._inputElement=this._elementRef.nativeElement}set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=(0,o.Ig)(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=(0,o.Ig)(t)}get empty(){return!this._inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}_keydown(t){t&&t.keyCode===i.Mf&&!(0,i.Vb)(t,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(t)}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._chipList.stateChanges.next()}_emitChipEnd(t){!this._inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),t&&t.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this._inputElement.focus(t)}_isSeparatorKey(t){return!(0,i.Vb)(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(T))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&s.NdJ("keydown",function(t){return e._keydown(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(s.Ikx("id",e.id),s.uIk("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[s.TTD]}),t})();const R={separatorKeyCodes:[i.K5]};let L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[r.rD,{provide:T,useValue:R}],imports:[[r.BQ]]}),t})()},2458:(t,e,n)=>{"use strict";n.d(e,{_A:()=>E,rD:()=>N,sG:()=>S,K7:()=>rt,HF:()=>tt,Y2:()=>J,BQ:()=>v,X2:()=>U,uc:()=>j,XK:()=>L,ey:()=>ct,Ng:()=>dt,rN:()=>at,nP:()=>K,us:()=>X,wG:()=>Q,si:()=>W,IR:()=>G,CB:()=>ut,jH:()=>ht,pj:()=>w,Kr:()=>x,Id:()=>y,FD:()=>k,sb:()=>C,E0:()=>q});var i=n(7716),s=n(9238),r=n(946);const o=new i.GfV("11.2.13");var a=n(8583),l=n(9490),c=n(9765),u=n(521),h=n(9761),d=n(6237),p=n(6461);function g(t,e){if(1&t&&i._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=i.oxw();i.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function m(t,e){if(1&t&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.hij("(",t.group.label,")")}}const f=["*"],_=new i.GfV("11.2.13"),b=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let v=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return(0,i.X6Q)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&_.full!==o.full&&console.warn("The Angular Material version ("+_.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.qm),i.LFG(b,8),i.LFG(a.K0))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[r.vT],r.vT]}),t})();function y(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}}}function w(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function x(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,l.Ig)(t)}}}function C(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?(0,l.su)(t):this.defaultTabIndex}}}function k(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new c.xQ}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}const A=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return(0,i.f3M)(i.soG)}});class E{constructor(){this._localeChanges=new c.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let n=this.isValid(t),i=this.isValid(e);return n&&i?!this.compareDate(t,e):n==i}return t==e}clampDate(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t}}const S=new i.OlP("mat-date-formats");let T;try{T="undefined"!=typeof Intl}catch(pt){T=!1}const O={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},I=F(31,t=>String(t+1)),P={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},D=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function F(t,e){const n=Array(t);for(let i=0;i<t;i++)n[i]=e(i);return n}let M=(()=>{class t extends E{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(T){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return F(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return O[t]}getDateNames(){if(T){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return F(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return I}getDayOfWeekNames(t){if(T){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return F(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return P[t]}getYearName(t){if(T){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,n){let i=this._createDateWithOverflow(t,e,n);return i.getMonth(),i}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(T){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(D.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,n){const i=new Date;return i.setFullYear(t,e,n),i.setHours(0,0,0,0),i}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const n=new Date;return n.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(n)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(A,8),i.LFG(u.t4))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:E,useClass:M}],imports:[[u.ud]]}),t})();const R={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:S,useValue:R}],imports:[[Z]]}),t})(),N=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function q(t,e,n="mat"){t.changes.pipe((0,h.O)(t)).subscribe(({length:t})=>{B(e,`${n}-2-line`,!1),B(e,`${n}-3-line`,!1),B(e,`${n}-multi-line`,!1),2===t||3===t?B(e,`${n}-${t}-line`,!0):t>3&&B(e,`${n}-multi-line`,!0)})}function B(t,e,n){const i=t.nativeElement.classList;n?i.add(e):i.remove(e)}let j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[v],v]}),t})();class z{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const $={enterDuration:450,exitDuration:400},Y=(0,u.i$)({passive:!0}),V=["mousedown","touchstart"],H=["mouseup","mouseleave","touchend","touchcancel"];class G{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=(0,l.fI)(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},$),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new z(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,n.persistent||t&&this._isPointerDown||u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},$),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=(0,l.fI)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(V))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(H),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=(0,s.X6)(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||n||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!(0,s.yG)(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,Y)})})}_removeTriggerEvents(){this._triggerElement&&(V.forEach(t=>{this._triggerElement.removeEventListener(t,this,Y)}),this._pointerUpEventsRegistered&&H.forEach(t=>{this._triggerElement.removeEventListener(t,this,Y)}))}}const J=new i.OlP("mat-ripple-global-options");let Q=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new G(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(u.t4),i.Y36(J,8),i.Y36(d.Qb,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),W=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[v,u.ud],v]}),t})(),K=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(d.Qb,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),X=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[v]]}),t})();const tt=new i.OlP("MAT_OPTION_PARENT_COMPONENT");class et{}const nt=y(et);let it=0,st=(()=>{class t extends nt{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+it++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(tt,8))},t.\u0275dir=i.lG2({type:t,inputs:{label:"label"},features:[i.qOj]}),t})();const rt=new i.OlP("MatOptgroup");let ot=0;class at{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let lt=(()=>{class t{constructor(t,e,n,s){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ot++,this.onSelectionChange=new i.vpe,this._stateChanges=new c.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==p.K5&&t.keyCode!==p.L_||(0,p.Vb)(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new at(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(void 0),i.Y36(st))},t.\u0275dir=i.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),ct=(()=>{class t extends lt{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(tt,8),i.Y36(rt,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(i.Ikx("id",e.id),i.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:f,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,g,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,m,2,1,"span",2),i._UZ(4,"div",3)),2&t&&(i.Q6J("ngIf",e.multiple),i.xp6(3),i.Q6J("ngIf",e.group&&e.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.O5,Q,K],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function ut(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;e<t+1;e++)i[e].group&&i[e].group===s[r]&&r++;return r}return 0}function ht(t,e,n,i){return t<n?t:t+e>n+i?Math.max(0,t-i+e):n}let dt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[W,a.ez,v,X]]}),t})()},2238:(t,e,n)=>{"use strict";n.d(e,{WI:()=>E,uw:()=>P,H8:()=>Z,xY:()=>M,Is:()=>R,so:()=>k,uh:()=>F,Nv:()=>y});var i=n(625),s=n(7636),r=n(7716),o=n(2458),a=n(946),l=n(8583),c=n(9765),u=n(1439),h=n(5917),d=n(5435),p=n(5257),g=n(9761),m=n(7238),f=n(6461),_=n(9238);function b(t,e){}class v{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const y={dialogContainer:(0,m.X$)("dialogContainer",[(0,m.SB)("void, exit",(0,m.oB)({opacity:0,transform:"scale(0.7)"})),(0,m.SB)("enter",(0,m.oB)({transform:"none"})),(0,m.eR)("* => enter",(0,m.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,m.oB)({transform:"none",opacity:1}))),(0,m.eR)("* => void, * => exit",(0,m.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,m.oB)({opacity:0})))])};let w=(()=>{class t extends s.en{constructor(t,e,n,i,s,o){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=s,this._focusMonitor=o,this._animationStateChanged=new r.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._getActiveElement(),n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=this._getActiveElement();return t===e||t.contains(e)}_getActiveElement(){var t;const e=this._document.activeElement;return(null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.activeElement)||e}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(_.qV),r.Y36(r.sBO),r.Y36(l.K0,8),r.Y36(v),r.Y36(_.tE))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&r.Gf(s.Pl,7),2&t){let t;r.iGM(t=r.CRH())&&(e._portalOutlet=t.first)}},features:[r.qOj]}),t})(),x=(()=>{class t extends w{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&r.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(r.Ikx("id",e._id),r.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),r.d8E("@dialogContainer",e._state))},features:[r.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&r.YNc(0,b,0,0,"ng-template",0)},directives:[s.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[y.dialogContainer]}}),t})(),C=0;class k{constructor(t,e,n="mat-dialog-"+C++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new c.xQ,this._afterClosed=new c.xQ,this._beforeClosed=new c.xQ,this._state=0,e._id=n,e._animationStateChanged.pipe((0,d.h)(t=>"opened"===t.state),(0,p.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,d.h)(t=>"closed"===t.state),(0,p.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,d.h)(t=>t.keyCode===f.hY&&!this.disableClose&&!(0,f.Vb)(t))).subscribe(t=>{t.preventDefault(),A(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():A(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,d.h)(t=>"closing"===t.state),(0,p.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function A(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const E=new r.OlP("MatDialogData"),S=new r.OlP("mat-dialog-default-options"),T=new r.OlP("mat-dialog-scroll-strategy"),O={provide:T,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.block()}};let I=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new c.xQ,this._afterOpenedAtThisLevel=new c.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,u.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,g.O)(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new v)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),s=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),i._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=r.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:v,useValue:e}]}),i=new s.C5(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const o=new this._dialogRefConstructor(n,e,i.id);if(t instanceof r.Rgc)e.attachTemplatePortal(new s.UE(t,null,{$implicit:i.data,dialogRef:o}));else{const n=this._createInjector(i,o,e),r=e.attachComponentPortal(new s.C5(t,i.viewContainerRef,n));o.componentInstance=r.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||i&&i.get(a.Is,null)||s.push({provide:a.Is,useValue:{value:t.direction,change:(0,h.of)()}}),r.zs3.create({parent:i||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(i.aV),r.Y36(r.zs3),r.Y36(void 0),r.Y36(void 0),r.Y36(i.Xj),r.Y36(void 0),r.Y36(r.DyG),r.Y36(r.DyG),r.Y36(r.OlP))},t.\u0275dir=r.lG2({type:t}),t})(),P=(()=>{class t extends I{constructor(t,e,n,i,s,r,o){super(t,e,i,r,o,s,k,x,E)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.aV),r.LFG(r.zs3),r.LFG(l.Ye,8),r.LFG(S,8),r.LFG(T),r.LFG(t,12),r.LFG(i.Xj))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),D=0,F=(()=>{class t{constructor(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+D++}ngOnInit(){this._dialogRef||(this._dialogRef=function(t,e){let n=t.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(t=>t.id===n.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(k,8),r.Y36(r.SBq),r.Y36(P))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&r.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[P,O],imports:[[i.U8,s.eL,o.BQ],o.BQ]}),t})()},9911:(t,e,n)=>{"use strict";n.d(e,{G_:()=>l,Eo:()=>a,lN:()=>c});var i=n(8553),s=n(8583),r=n(7716),o=n(2458);n(9490),n(9765),n(6682),n(2759),n(9761),n(6782),n(5257),n(7238),n(6237),n(946),n(521);let a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t}),t})();const l=new r.OlP("MatFormField");let c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[s.ez,o.BQ,i.Q8],o.BQ]}),t})()},6627:(t,e,n)=>{"use strict";n.d(e,{Hw:()=>F,Ps:()=>M,jv:()=>k});var i=n(7716),s=n(2458),r=n(9490),o=n(8583),a=n(5917),l=n(205),c=n(5758),u=n(5319),h=n(3342),d=n(8002),p=n(5304),g=n(8939),m=n(8819),f=n(5257),_=n(1841),b=n(9075);const v=["*"];function y(t){return Error(`Unable to find icon with the name "${t}"`)}function w(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function x(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class C{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let k=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,i){return this._addSvgIconConfig(t,e,new C(n,null,i))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,n,s){const r=this._sanitizer.sanitize(i.q3G.HTML,n);if(!r)throw x(n);return this._addSvgIconConfig(t,e,new C("",r,s))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new C(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const s=this._sanitizer.sanitize(i.q3G.HTML,e);if(!s)throw x(e);return this._addSvgIconSetConfig(t,new C("",s,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,t);if(!e)throw w(t);const n=this._cachedIconsByUrl.get(e);return n?(0,a.of)(A(n)):this._loadSvgIconFromConfig(new C(t,null)).pipe((0,h.b)(t=>this._cachedIconsByUrl.set(e,t)),(0,d.U)(t=>A(t)))}getNamedSvgIcon(t,e=""){const n=E(e,t);let i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(e,t),i)return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):(0,l._)(y(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?(0,a.of)(A(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,d.U)(t=>A(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);if(n)return(0,a.of)(n);const s=e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe((0,p.K)(e=>{const n=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),(0,a.of)(null)})));return(0,c.D)(s).pipe((0,d.U)(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw y(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgText&&i.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(e,t,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe((0,h.b)(e=>t.svgText=e),(0,d.U)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?(0,a.of)(null):this._fetchIcon(t).pipe((0,h.b)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const s=i.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,n);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),n);const r=this._svgElementFromString("<svg></svg>");return r.appendChild(s),this._setSvgAttributes(r,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString("<svg></svg>"),n=t.attributes;for(let i=0;i<n.length;i++){const{name:t,value:s}=n[i];"id"!==t&&e.setAttribute(t,s)}for(let i=0;i<t.childNodes.length;i++)t.childNodes[i].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[i].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){var e;const{url:n,options:s}=t,r=null!==(e=null==s?void 0:s.withCredentials)&&void 0!==e&&e;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==n)throw Error(`Cannot fetch icon from URL "${n}".`);const o=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,n);if(!o)throw w(n);const a=this._inProgressUrlFetches.get(o);if(a)return a;const l=this._httpClient.get(o,{responseType:"text",withCredentials:r}).pipe((0,g.x)(()=>this._inProgressUrlFetches.delete(o)),(0,m.B)());return this._inProgressUrlFetches.set(o,l),l}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(E(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let i=0;i<this._resolvers.length;i++){const s=this._resolvers[i](e,t);if(s)return(n=s).url&&n.options?new C(s.url,null,s.options):new C(s,null)}var n}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(_.eN,8),i.LFG(b.H7),i.LFG(o.K0,8),i.LFG(i.qLn))},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t((0,i.LFG)(_.eN,8),(0,i.LFG)(b.H7),(0,i.LFG)(o.K0,8),(0,i.LFG)(i.qLn))},token:t,providedIn:"root"}),t})();function A(t){return t.cloneNode(!0)}function E(t,e){return t+":"+e}class S{constructor(t){this._elementRef=t}}const T=(0,s.pj)(S),O=new i.OlP("mat-icon-location",{providedIn:"root",factory:function(){const t=(0,i.f3M)(o.K0),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),I=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],P=I.map(t=>`[${t}]`).join(", "),D=/^url\(['"]?#(.*?)['"]?\)$/;let F=(()=>{class t extends T{constructor(t,e,n,i,s){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=s,this._inline=!1,this._currentIconFetch=u.w.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=(0,r.Ig)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i<e.length;i++)e[i].textContent+=" ";const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){const n=t.childNodes[e];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||t.removeChild(n)}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const e=this._elementsWithExternalReferences;e&&e.forEach((e,n)=>{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(P),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i<e.length;i++)I.forEach(t=>{const s=e[i],r=s.getAttribute(t),o=r?r.match(D):null;if(o){let e=n.get(s);e||(e=[],n.set(s,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe((0,f.q)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${n}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(k),i.$8M("aria-hidden"),i.Y36(O),i.Y36(i.qLn))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(i.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),i.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.qOj],ngContentSelectors:v,decls:1,vars:0,template:function(t,e){1&t&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[s.BQ],s.BQ]}),t})()},3935:(t,e,n)=>{"use strict";n.d(e,{VK:()=>N,OP:()=>M,Tx:()=>$,p6:()=>j});var i=n(9238),s=n(9490),r=n(6461),o=n(7716),a=n(9765),l=n(5319),c=n(6682),u=n(5917),h=n(4581),d=n(9761),p=n(3190),g=n(5257),m=n(5435),f=n(6782),_=n(1289),b=n(7238),v=n(7636),y=n(8583),w=n(2458),x=n(625),C=n(521),k=n(3416),A=n(946);const E=["mat-menu-item",""],S=["*"];function T(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",0),o.NdJ("keydown",function(e){return o.CHM(t),o.oxw()._handleKeydown(e)})("click",function(){return o.CHM(t),o.oxw().closed.emit("click")})("@transformMenu.start",function(e){return o.CHM(t),o.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return o.CHM(t),o.oxw()._onAnimationDone(e)}),o.TgZ(1,"div",1),o.Hsn(2),o.qZA(),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),o.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const O={transformMenu:(0,b.X$)("transformMenu",[(0,b.SB)("void",(0,b.oB)({opacity:0,transform:"scale(0.8)"})),(0,b.eR)("void => enter",(0,b.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,b.oB)({opacity:1,transform:"scale(1)"}))),(0,b.eR)("* => void",(0,b.jt)("100ms 25ms linear",(0,b.oB)({opacity:0})))]),fadeInItems:(0,b.X$)("fadeInItems",[(0,b.SB)("showing",(0,b.oB)({opacity:1})),(0,b.eR)("void => *",[(0,b.oB)({opacity:0}),(0,b.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},I=new o.OlP("MatMenuContent"),P=new o.OlP("MAT_MENU_PANEL");class D{}const F=(0,w.Kr)((0,w.Id)(D));let M=(()=>{class t extends F{constructor(t,e,n,i){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this.role="menuitem",this._hovered=new a.xQ,this._focused=new a.xQ,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let s=0;s<i.length;s++){const e=i[s];null===(t=e.parentNode)||void 0===t||t.removeChild(e)}return(null===(e=n.textContent)||void 0===e?void 0:e.trim())||""}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(y.K0),o.Y36(i.tE),o.Y36(P,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(t,e){1&t&&o.NdJ("click",function(t){return e._checkDisabled(t)})("mouseenter",function(){return e._handleMouseEnter()}),2&t&&(o.uIk("role",e.role)("tabindex",e._getTabIndex())("aria-disabled",e.disabled.toString())("disabled",e.disabled||null),o.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",e._highlighted)("mat-menu-item-submenu-trigger",e._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[o.qOj],attrs:E,ngContentSelectors:S,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(t,e){1&t&&(o.F$t(),o.Hsn(0),o._UZ(1,"div",0)),2&t&&(o.xp6(1),o.Q6J("matRippleDisabled",e.disableRipple||e.disabled)("matRippleTrigger",e._getHostElement()))},directives:[w.wG],encapsulation:2,changeDetection:0}),t})();const Z=new o.OlP("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let R=0,L=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new o.n_E,this._tabSubscription=l.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new o.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+R++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=(0,s.Ig)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,s.Ig)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new i.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,p.w)(t=>(0,c.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,p.w)(t=>(0,c.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case r.hY:(0,r.Vb)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case r.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case r.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==r.LH&&e!==r.JH||n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,n=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,d.O)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(Z))},t.\u0275dir=o.lG2({type:t,contentQueries:function(t,e,n){if(1&t&&(o.Suo(n,I,5),o.Suo(n,M,5),o.Suo(n,M,4)),2&t){let t;o.iGM(t=o.CRH())&&(e.lazyContent=t.first),o.iGM(t=o.CRH())&&(e._allItems=t),o.iGM(t=o.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&o.Gf(o.Rgc,5),2&t){let t;o.iGM(t=o.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),N=(()=>{class t extends L{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(Z))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&o.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[o._Bn([{provide:P,useExisting:t}]),o.qOj],ngContentSelectors:S,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(o.F$t(),o.YNc(0,T,3,6,"ng-template"))},directives:[y.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[O.transformMenu,O.fadeInItems]},changeDetection:0}),t})();const U=new o.OlP("mat-menu-scroll-strategy"),q={provide:U,deps:[x.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},B=(0,C.i$)({passive:!0});let j=(()=>{class t{constructor(t,e,n,s,r,a,c,u){this._overlay=t,this._element=e,this._viewContainerRef=n,this._menuItemInstance=a,this._dir=c,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=l.w.EMPTY,this._hoverSubscription=l.w.EMPTY,this._menuCloseSubscription=l.w.EMPTY,this._handleTouchStart=t=>{(0,i.yG)(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new o.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new o.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=r instanceof L?r:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,B),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,B),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof L&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof L?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,m.h)(t=>"void"===t.toState),(0,g.q)(1),(0,f.R)(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new x.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[i,s],[a,l]=[e,n],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(r="top"===i?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:r,overlayX:l,overlayY:i,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-c},{originX:n,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,u.of)(),i=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,m.h)(t=>t!==this._menuItemInstance),(0,m.h)(()=>this._menuOpen)):(0,u.of)();return(0,c.T)(t,n,i,e)}_handleMousedown(t){(0,i.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;e!==r.K5&&e!==r.L_||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===r.SV&&"ltr"===this.dir||e===r.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,m.h)(t=>t===this._menuItemInstance&&!t.disabled),(0,_.g)(0,h.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof L&&this.menu._isAnimating?this.menu._animationDone.pipe((0,g.q)(1),(0,_.g)(0,h.E),(0,f.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new v.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(x.aV),o.Y36(o.SBq),o.Y36(o.s_b),o.Y36(U),o.Y36(P,8),o.Y36(M,10),o.Y36(A.Is,8),o.Y36(i.tE))},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&o.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&o.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[q],imports:[w.BQ]}),t})(),$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[q],imports:[[y.ez,w.BQ,w.si,x.U8,z],k.ZD,w.BQ,z]}),t})()},2178:(t,e,n)=>{"use strict";n.d(e,{pW:()=>f,Cv:()=>b});var i=n(7716),s=n(8583),r=n(2458),o=n(9490),a=n(6237),l=n(5319),c=n(2759),u=n(5435);const h=["primaryValueBar"];class d{constructor(t){this._elementRef=t}}const p=(0,r.pj)(d,"primary"),g=new i.OlP("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=(0,i.f3M)(s.K0),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let m=0,f=(()=>{class t extends p{constructor(t,e,n,s){super(t),this._elementRef=t,this._ngZone=e,this._animationMode=n,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new i.vpe,this._animationEndSubscription=l.w.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+m++;const r=s?s.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${r}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===n}get value(){return this._value}set value(t){this._value=_((0,o.su)(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=_(t||0)}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,c.R)(t,"transitionend").pipe((0,u.h)(e=>e.target===t)).subscribe(()=>{"determinate"!==this.mode&&"buffer"!==this.mode||this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(a.Qb,8),i.Y36(g,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){if(1&t&&i.Gf(h,5),2&t){let t;i.iGM(t=i.CRH())&&(e._primaryValueBar=t.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(i.uIk("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),i.ekj("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[i.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.O4$(),i.TgZ(1,"svg",1),i.TgZ(2,"defs"),i.TgZ(3,"pattern",2),i._UZ(4,"circle",3),i.qZA(),i.qZA(),i._UZ(5,"rect",4),i.qZA(),i.kcU(),i._UZ(6,"div",5),i._UZ(7,"div",6,7),i._UZ(9,"div",8),i.qZA()),2&t&&(i.xp6(3),i.Q6J("id",e.progressbarId),i.xp6(2),i.uIk("fill",e._rectangleFillValue),i.xp6(1),i.Q6J("ngStyle",e._bufferTransform()),i.xp6(1),i.Q6J("ngStyle",e._primaryTransform()))},directives:[s.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),t})();function _(t,e=0,n=100){return Math.max(e,Math.min(n,t))}let b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[s.ez,r.BQ],r.BQ]}),t})()},5396:(t,e,n)=>{"use strict";n.d(e,{Rr:()=>w,rP:()=>C});var i=n(8553),s=n(7716),r=n(2458),o=n(9490),a=n(3679),l=n(6237),c=n(9238);const u=["thumbContainer"],h=["toggleBar"],d=["input"],p=function(){return{enterDuration:150}},g=["*"],m=new s.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let f=0;const _={provide:a.JU,useExisting:(0,s.Gpc)(()=>w),multi:!0};class b{constructor(t,e){this.source=t,this.checked=e}}class v{constructor(t){this._elementRef=t}}const y=(0,r.sb)((0,r.pj)((0,r.Kr)((0,r.Id)(v)),"accent"));let w=(()=>{class t extends y{constructor(t,e,n,i,r,o){super(t),this._focusMonitor=e,this._changeDetectorRef=n,this.defaults=r,this._animationMode=o,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++f,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new s.vpe,this.toggleChange=new s.vpe,this.tabIndex=parseInt(i)||0}get required(){return this._required}set required(t){this._required=(0,o.Ig)(t)}get checked(){return this._checked}set checked(t){this._checked=(0,o.Ig)(t),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new b(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(c.tE),s.Y36(s.sBO),s.$8M("tabindex"),s.Y36(m),s.Y36(l.Qb,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){if(1&t&&(s.Gf(u,5),s.Gf(h,5),s.Gf(d,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._thumbEl=t.first),s.iGM(t=s.CRH())&&(e._thumbBarEl=t.first),s.iGM(t=s.CRH())&&(e._inputElement=t.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),s.ekj("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[s._Bn([_]),s.qOj],ngContentSelectors:g,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"div",2,3),s.TgZ(4,"input",4,5),s.NdJ("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(6,"div",6,7),s._UZ(8,"div",8),s.TgZ(9,"div",9),s._UZ(10,"div",10),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"span",11,12),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(13,"span",13),s._uU(14,"\xa0"),s.qZA(),s.Hsn(15),s.qZA(),s.qZA()),2&t){const t=s.MAs(1),n=s.MAs(12);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-slide-toggle-bar-no-side-margin",!n.textContent||!n.textContent.trim()),s.xp6(2),s.Q6J("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),s.uIk("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.xp6(5),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.DdM(17,p))}},directives:[r.wG,i.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})(),x=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[x,r.si,r.BQ,i.Q8],x,r.BQ]}),t})()},7001:(t,e,n)=>{"use strict";n.d(e,{ux:()=>S,ZX:()=>A});var i=n(625),s=n(7636),r=n(8583),o=n(7716),a=n(2458),l=n(1095),c=n(9765),u=n(5257),h=n(6782),d=n(7238),p=n(9238),g=n(5072),m=n(521);function f(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",1),o.TgZ(1,"button",2),o.NdJ("click",function(){return o.CHM(t),o.oxw().action()}),o._uU(2),o.qZA(),o.qZA()}if(2&t){const t=o.oxw();o.xp6(2),o.Oqu(t.data.action)}}function _(t,e){}const b=new o.OlP("MatSnackBarData");class v{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const y=Math.pow(2,31)-1;class w{constructor(t,e){this._overlayRef=e,this._afterDismissed=new c.xQ,this._afterOpened=new c.xQ,this._onAction=new c.xQ,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,y))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let x=(()=>{class t{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(w),o.Y36(b))},t.\u0275cmp=o.Xpm({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(o.TgZ(0,"span"),o._uU(1),o.qZA(),o.YNc(2,f,3,1,"div",0)),2&t&&(o.xp6(1),o.Oqu(e.data.message),o.xp6(1),o.Q6J("ngIf",e.hasAction))},directives:[r.O5,l.lW],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t})();const C={snackBarState:(0,d.X$)("state",[(0,d.SB)("void, hidden",(0,d.oB)({transform:"scale(0.8)",opacity:0})),(0,d.SB)("visible",(0,d.oB)({transform:"scale(1)",opacity:1})),(0,d.eR)("* => visible",(0,d.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,d.eR)("* => void, * => hidden",(0,d.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,d.oB)({opacity:0})))])};let k=(()=>{class t extends s.en{constructor(t,e,n,i,s){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=n,this._platform=i,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new c.xQ,this._onExit=new c.xQ,this._onEnter=new c.xQ,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:n}=t;if(("void"===n&&"void"!==e||"hidden"===n)&&this._completeExit(),"visible"===n){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,u.q)(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>t.classList.add(e)):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),e=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&e){let n=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(n=document.activeElement),t.removeAttribute("aria-hidden"),e.appendChild(t),null==n||n.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.R0b),o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(m.t4),o.Y36(v))},t.\u0275cmp=o.Xpm({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){if(1&t&&o.Gf(s.Pl,7),2&t){let t;o.iGM(t=o.CRH())&&(e._portalOutlet=t.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,e){1&t&&o.WFA("@state.done",function(t){return e.onAnimationEnd(t)}),2&t&&o.d8E("@state",e._animationState)},features:[o.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,e){1&t&&(o.TgZ(0,"div",0),o.YNc(1,_,0,0,"ng-template",1),o.qZA(),o._UZ(2,"div")),2&t&&(o.xp6(2),o.uIk("aria-live",e._live)("role",e._role))},directives:[s.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[C.snackBarState]}}),t})(),A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[i.U8,s.eL,r.ez,l.ot,a.BQ],a.BQ]}),t})();const E=new o.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new v}});let S=(()=>{class t{constructor(t,e,n,i,s,r){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=i,this._parentSnackBar=s,this._defaultConfig=r,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=x,this.snackBarContainerComponent=k,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",n){const i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const n=o.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:v,useValue:e}]}),i=new s.C5(this.snackBarContainerComponent,e.viewContainerRef,n),r=t.attach(i);return r.instance.snackBarConfig=e,r.instance}_attach(t,e){const n=Object.assign(Object.assign(Object.assign({},new v),this._defaultConfig),e),i=this._createOverlay(n),r=this._attachSnackBarContainer(i,n),a=new w(r,i);if(t instanceof o.Rgc){const e=new s.UE(t,null,{$implicit:n.data,snackBarRef:a});a.instance=r.attachTemplatePortal(e)}else{const e=this._createInjector(n,a),i=new s.C5(t,void 0,e),o=r.attachComponentPortal(i);a.instance=o.instance}return this._breakpointObserver.observe(g.u3.HandsetPortrait).pipe((0,h.R)(i.detachments())).subscribe(t=>{const e=i.overlayElement.classList;t.matches?e.add(this.handsetCssClass):e.remove(this.handsetCssClass)}),n.announcementMessage&&r._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness)}),this._animateSnackBar(a,n),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration))}_createOverlay(t){const e=new i.X_;e.direction=t.direction;let n=this._overlay.position().global();const s="rtl"===t.direction,r="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!s||"end"===t.horizontalPosition&&s,o=!r&&"center"!==t.horizontalPosition;return r?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}_createInjector(t,e){return o.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:w,useValue:e},{provide:b,useValue:t.data}]})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(i.aV),o.LFG(p.Kd),o.LFG(o.zs3),o.LFG(g.Yg),o.LFG(t,12),o.LFG(E))},t.\u0275prov=(0,o.Yz7)({factory:function(){return new t((0,o.LFG)(i.aV),(0,o.LFG)(p.Kd),(0,o.LFG)(o.gxx),(0,o.LFG)(g.Yg),(0,o.LFG)(t,12),(0,o.LFG)(E))},token:t,providedIn:A}),t})()},7832:(t,e,n)=>{"use strict";n.d(e,{ae:()=>et,C0:()=>X,Vq:()=>tt,z9:()=>K,T5:()=>it,fd:()=>nt});var i=n(7636),s=n(9238),r=n(946),o=n(9490),a=n(6461),l=n(8583),c=n(7716),u=n(9765),h=n(5917),d=n(9761),p=n(6782);function g(t,e){1&t&&c.Hsn(0)}const m=["*"];let f=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(c.SBq))},t.\u0275dir=c.lG2({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),_=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(c.Rgc))},t.\u0275dir=c.lG2({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),b=0;const v="edit",y="done",w="error",x=new c.OlP("STEPPER_GLOBAL_OPTIONS");let C=(()=>{class t{constructor(t,e){this._stepper=t,this.interacted=!1,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(t){this._editable=(0,o.Ig)(t)}get optional(){return this._optional}set optional(t){this._optional=(0,o.Ig)(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=(0,o.Ig)(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=(0,o.Ig)(t)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}}return t.\u0275fac=function(e){return new(e||t)(c.Y36((0,c.Gpc)(()=>k)),c.Y36(x,8))},t.\u0275cmp=c.Xpm({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,n){if(1&t&&c.Suo(n,_,5),2&t){let t;c.iGM(t=c.CRH())&&(e.stepLabel=t.first)}},viewQuery:function(t,e){if(1&t&&c.Gf(c.Rgc,7),2&t){let t;c.iGM(t=c.CRH())&&(e.content=t.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},exportAs:["cdkStep"],features:[c.TTD],ngContentSelectors:m,decls:1,vars:0,template:function(t,e){1&t&&(c.F$t(),c.YNc(0,g,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),k=(()=>{class t{constructor(t,e,n,i){this._dir=t,this._changeDetectorRef=e,this._elementRef=n,this._destroyed=new u.xQ,this.steps=new c.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new c.vpe,this._orientation="horizontal",this._groupId=b++,this._document=i}get linear(){return this._linear}set linear(t){this._linear=(0,o.Ig)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){const e=(0,o.su)(t);if(this.steps&&this._steps){this._isValidIndex(t);const n=this.selected;n&&(n.interacted=!0),this._selectedIndex!==e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(t)}else this._selectedIndex=e}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=this.steps?this.steps.toArray().indexOf(t):-1}ngAfterContentInit(){this._steps.changes.pipe((0,d.O)(this._steps),(0,p.R)(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new s.Em(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,h.of)()).pipe((0,d.O)(this._layoutDirection()),(0,p.R)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,e="number"){const n=this.steps.toArray()[t],i=this._isCurrentStep(t);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,i):this._getGuidelineLogic(n,i,e)}_getDefaultIndicatorLogic(t,e){return t._showError&&t.hasError&&!e?w:!t.completed||e?"number":t.editable?v:y}_getGuidelineLogic(t,e,n="number"){return t._showError&&t.hasError&&!e?w:t.completed&&!e?y:t.completed&&e?n:t.editable&&e?v:n}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const e=(0,a.Vb)(t),n=t.keyCode,i=this._keyManager;null==i.activeItemIndex||e||n!==a.L_&&n!==a.K5?i.onKeydown(t):(this.selectedIndex=i.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){return!!(this._linear&&t>=0)&&this.steps.toArray().slice(0,t).some(t=>{const e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){if(!this._document||!this._elementRef)return!1;const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_isValidIndex(t){return t>-1&&(!this.steps||t<this.steps.length)}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(r.Is,8),c.Y36(c.sBO),c.Y36(c.SBq),c.Y36(l.K0))},t.\u0275dir=c.lG2({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(t,e,n){if(1&t&&(c.Suo(n,C,5),c.Suo(n,f,5)),2&t){let t;c.iGM(t=c.CRH())&&(e._steps=t),c.iGM(t=c.CRH())&&(e._stepHeader=t)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),t})(),A=(()=>{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(k))},t.\u0275dir=c.lG2({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&c.NdJ("click",function(){return e._handleClick()}),2&t&&c.Ikx("type",e.type)},inputs:{type:"type"}}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[r.vT]]}),t})();var S=n(1095),T=n(2458),O=n(6627),I=n(7519),P=n(7238);function D(t,e){if(1&t&&c.GkF(0,8),2&t){const t=c.oxw();c.Q6J("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function F(t,e){if(1&t&&(c.TgZ(0,"span"),c._uU(1),c.qZA()),2&t){const t=c.oxw(2);c.xp6(1),c.Oqu(t._getDefaultTextForState(t.state))}}function M(t,e){if(1&t&&(c.TgZ(0,"mat-icon"),c._uU(1),c.qZA()),2&t){const t=c.oxw(2);c.xp6(1),c.Oqu(t._getDefaultTextForState(t.state))}}function Z(t,e){if(1&t&&(c.ynx(0,9),c.YNc(1,F,2,1,"span",10),c.YNc(2,M,2,1,"mat-icon",11),c.BQk()),2&t){const t=c.oxw();c.Q6J("ngSwitch",t.state),c.xp6(1),c.Q6J("ngSwitchCase","number")}}function R(t,e){if(1&t&&(c.TgZ(0,"div",12),c.GkF(1,13),c.qZA()),2&t){const t=c.oxw();c.xp6(1),c.Q6J("ngTemplateOutlet",t._templateLabel().template)}}function L(t,e){if(1&t&&(c.TgZ(0,"div",12),c._uU(1),c.qZA()),2&t){const t=c.oxw();c.xp6(1),c.Oqu(t.label)}}function N(t,e){if(1&t&&(c.TgZ(0,"div",14),c._uU(1),c.qZA()),2&t){const t=c.oxw();c.xp6(1),c.Oqu(t._intl.optionalLabel)}}function U(t,e){if(1&t&&(c.TgZ(0,"div",15),c._uU(1),c.qZA()),2&t){const t=c.oxw();c.xp6(1),c.Oqu(t.errorMessage)}}function q(t,e){1&t&&c.Hsn(0)}const B=["*"];function j(t,e){1&t&&c._UZ(0,"div",6)}function z(t,e){if(1&t){const t=c.EpF();c.ynx(0),c.TgZ(1,"mat-step-header",4),c.NdJ("click",function(){return c.CHM(t).$implicit.select()})("keydown",function(e){return c.CHM(t),c.oxw()._onKeydown(e)}),c.qZA(),c.YNc(2,j,1,0,"div",5),c.BQk()}if(2&t){const t=e.$implicit,n=e.index,i=e.last,s=c.oxw();c.xp6(1),c.Q6J("tabIndex",s._getFocusIndex()===n?0:-1)("id",s._getStepLabelId(n))("index",n)("state",s._getIndicatorType(n,t.state))("label",t.stepLabel||t.label)("selected",s.selectedIndex===n)("active",t.completed||s.selectedIndex===n||!s.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",s._iconOverrides)("disableRipple",s.disableRipple)("color",t.color||s.color),c.uIk("aria-posinset",n+1)("aria-setsize",s.steps.length)("aria-controls",s._getStepContentId(n))("aria-selected",s.selectedIndex==n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),c.xp6(1),c.Q6J("ngIf",!i)}}function $(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",7),c.NdJ("@stepTransition.done",function(e){return c.CHM(t),c.oxw()._animationDone.next(e)}),c.GkF(1,8),c.qZA()}if(2&t){const t=e.$implicit,n=e.index,i=c.oxw();c.Q6J("@stepTransition",i._getAnimationDirection(n))("id",i._getStepContentId(n)),c.uIk("aria-labelledby",i._getStepLabelId(n))("aria-expanded",i.selectedIndex===n),c.xp6(1),c.Q6J("ngTemplateOutlet",t.content)}}let Y=(()=>{class t extends _{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=c.n5z(t)))(n||t)}}(),t.\u0275dir=c.lG2({type:t,selectors:[["","matStepLabel",""]],features:[c.qOj]}),t})(),V=(()=>{class t{constructor(){this.changes=new u.xQ,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,c.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const H={provide:V,deps:[[new c.FiY,new c.tp0,V]],useFactory:function(t){return t||new V}};class G extends f{constructor(t){super(t)}}const J=(0,T.pj)(G,"primary");let Q=(()=>{class t extends J{constructor(t,e,n,i){super(n),this._intl=t,this._focusMonitor=e,this._intlSubscription=t.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._elementRef,t,e):this._elementRef.nativeElement.focus(e)}_stringLabel(){return this.label instanceof Y?null:this.label}_templateLabel(){return this.label instanceof Y?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?`${this.index+1}`:"edit"==t?"create":"error"==t?"warning":t}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(V),c.Y36(s.tE),c.Y36(c.SBq),c.Y36(c.sBO))},t.\u0275cmp=c.Xpm({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header","mat-focus-indicator"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[c.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(c._UZ(0,"div",0),c.TgZ(1,"div"),c.TgZ(2,"div",1),c.YNc(3,D,1,2,"ng-container",2),c.YNc(4,Z,3,2,"ng-container",3),c.qZA(),c.qZA(),c.TgZ(5,"div",4),c.YNc(6,R,2,1,"div",5),c.YNc(7,L,2,1,"div",5),c.YNc(8,N,2,1,"div",6),c.YNc(9,U,2,1,"div",7),c.qZA()),2&t&&(c.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),c.xp6(1),c.Gre("mat-step-icon-state-",e.state," mat-step-icon"),c.ekj("mat-step-icon-selected",e.selected),c.xp6(1),c.Q6J("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),c.xp6(1),c.Q6J("ngSwitchCase",!0),c.xp6(2),c.ekj("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),c.xp6(1),c.Q6J("ngIf",e._templateLabel()),c.xp6(1),c.Q6J("ngIf",e._stringLabel()),c.xp6(1),c.Q6J("ngIf",e.optional&&"error"!=e.state),c.xp6(1),c.Q6J("ngIf","error"==e.state))},directives:[T.wG,l.RF,l.n9,l.ED,l.O5,l.tP,O.Hw],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const W={horizontalStepTransition:(0,P.X$)("stepTransition",[(0,P.SB)("previous",(0,P.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,P.SB)("current",(0,P.oB)({transform:"none",visibility:"inherit"})),(0,P.SB)("next",(0,P.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,P.eR)("* => *",(0,P.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,P.X$)("stepTransition",[(0,P.SB)("previous",(0,P.oB)({height:"0px",visibility:"hidden"})),(0,P.SB)("next",(0,P.oB)({height:"0px",visibility:"hidden"})),(0,P.SB)("current",(0,P.oB)({height:"*",visibility:"inherit"})),(0,P.eR)("* <=> current",(0,P.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let K=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(c.Rgc))},t.\u0275dir=c.lG2({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),X=(()=>{class t extends C{constructor(t,e,n){super(t,n),this._errorStateMatcher=e}isErrorState(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}return t.\u0275fac=function(e){return new(e||t)(c.Y36((0,c.Gpc)(()=>tt)),c.Y36(T.rD,4),c.Y36(x,8))},t.\u0275cmp=c.Xpm({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,n){if(1&t&&c.Suo(n,Y,5),2&t){let t;c.iGM(t=c.CRH())&&(e.stepLabel=t.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[c._Bn([{provide:T.rD,useExisting:t},{provide:C,useExisting:t}]),c.qOj],ngContentSelectors:B,decls:1,vars:0,template:function(t,e){1&t&&(c.F$t(),c.YNc(0,q,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),tt=(()=>{class t extends k{constructor(){super(...arguments),this.steps=new c.n_E,this.animationDone=new c.vpe,this._iconOverrides={},this._animationDone=new u.xQ}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this.steps.changes.pipe((0,p.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,I.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),(0,p.R)(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=c.n5z(t)))(n||t)}}(),t.\u0275dir=c.lG2({type:t,selectors:[["","matStepper",""]],contentQueries:function(t,e,n){if(1&t&&(c.Suo(n,X,5),c.Suo(n,K,5)),2&t){let t;c.iGM(t=c.CRH())&&(e._steps=t),c.iGM(t=c.CRH())&&(e._icons=t)}},viewQuery:function(t,e){if(1&t&&c.Gf(Q,5),2&t){let t;c.iGM(t=c.CRH())&&(e._stepHeader=t)}},inputs:{disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},features:[c._Bn([{provide:k,useExisting:t}]),c.qOj]}),t})(),et=(()=>{class t extends tt{constructor(){super(...arguments),this.labelPosition="end"}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=c.n5z(t)))(n||t)}}(),t.\u0275cmp=c.Xpm({type:t,selectors:[["mat-horizontal-stepper"]],hostAttrs:["aria-orientation","horizontal","role","tablist",1,"mat-stepper-horizontal"],hostVars:4,hostBindings:function(t,e){2&t&&c.ekj("mat-stepper-label-position-end","end"==e.labelPosition)("mat-stepper-label-position-bottom","bottom"==e.labelPosition)},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition"},exportAs:["matHorizontalStepper"],features:[c._Bn([{provide:tt,useExisting:t},{provide:k,useExisting:t}]),c.qOj],decls:4,vars:2,consts:[[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[1,"mat-horizontal-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(c.TgZ(0,"div",0),c.YNc(1,z,3,19,"ng-container",1),c.qZA(),c.TgZ(2,"div",2),c.YNc(3,$,2,5,"div",3),c.qZA()),2&t&&(c.xp6(1),c.Q6J("ngForOf",e.steps),c.xp6(2),c.Q6J("ngForOf",e.steps))},directives:[l.sg,Q,l.O5,l.tP],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[W.horizontalStepTransition]},changeDetection:0}),t})(),nt=(()=>{class t extends A{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=c.n5z(t)))(n||t)}}(),t.\u0275dir=c.lG2({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&c.Ikx("type",e.type)},inputs:{type:"type"},features:[c.qOj]}),t})(),it=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({providers:[H,T.rD],imports:[[T.BQ,l.ez,i.eL,S.ot,E,O.Ps,T.si],T.BQ]}),t})()},5939:(t,e,n)=>{"use strict";n.d(e,{uX:()=>J,SP:()=>ot,uD:()=>Y,Nh:()=>gt});var i=n(9238),s=n(8553),r=n(7636),o=n(8583),a=n(7716),l=n(2458),c=n(6237),u=n(9765),h=n(5319),d=n(6682),p=n(2759),g=n(5917),m=n(6797),f=n(7238),_=n(9761),b=n(7519),v=n(6782),y=n(9490),w=n(521),x=n(6461),C=n(946),k=n(3416);function A(t,e){1&t&&a.Hsn(0)}const E=["*"];function S(t,e){}const T=function(t){return{animationDuration:t}},O=function(t,e){return{value:t,params:e}},I=["tabBodyWrapper"],P=["tabHeader"];function D(t,e){}function F(t,e){if(1&t&&a.YNc(0,D,0,0,"ng-template",9),2&t){const t=a.oxw().$implicit;a.Q6J("cdkPortalOutlet",t.templateLabel)}}function M(t,e){if(1&t&&a._uU(0),2&t){const t=a.oxw().$implicit;a.Oqu(t.textLabel)}}function Z(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){const e=a.CHM(t),n=e.$implicit,i=e.index,s=a.oxw(),r=a.MAs(1);return s._handleClick(n,r,i)})("cdkFocusChange",function(e){const n=a.CHM(t).index;return a.oxw()._tabFocusChanged(e,n)}),a.TgZ(1,"div",7),a.YNc(2,F,1,1,"ng-template",8),a.YNc(3,M,1,1,"ng-template",8),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,n=e.index,i=a.oxw();a.ekj("mat-tab-label-active",i.selectedIndex==n),a.Q6J("id",i._getTabLabelId(n))("disabled",t.disabled)("matRippleDisabled",t.disabled||i.disableRipple),a.uIk("tabIndex",i._getTabIndex(t,n))("aria-posinset",n+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(n))("aria-selected",i.selectedIndex==n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),a.xp6(2),a.Q6J("ngIf",t.templateLabel),a.xp6(1),a.Q6J("ngIf",!t.templateLabel)}}function R(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-tab-body",10),a.NdJ("_onCentered",function(){return a.CHM(t),a.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return a.CHM(t),a.oxw()._setTabBodyWrapperHeight(e)}),a.qZA()}if(2&t){const t=e.$implicit,n=e.index,i=a.oxw();a.ekj("mat-tab-body-active",i.selectedIndex==n),a.Q6J("id",i._getTabContentId(n))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",i.animationDuration),a.uIk("aria-labelledby",i._getTabLabelId(n))}}const L=["tabListContainer"],N=["tabList"],U=["nextPaginator"],q=["previousPaginator"],B=new a.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let j=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=n,this._animationMode=i}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(B),a.Y36(c.Qb,8))},t.\u0275dir=a.lG2({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const z=new a.OlP("MatTabContent"),$=new a.OlP("MatTabLabel");let Y=(()=>{class t extends r.ig{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.\u0275dir=a.lG2({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a._Bn([{provide:$,useExisting:t}]),a.qOj]}),t})();class V{}const H=(0,l.Id)(V),G=new a.OlP("MAT_TAB_GROUP");let J=(()=>{class t extends H{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new u.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new r.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.s_b),a.Y36(G))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){if(1&t&&(a.Suo(n,$,5),a.Suo(n,z,7,a.Rgc)),2&t){let t;a.iGM(t=a.CRH())&&(e.templateLabel=t.first),a.iGM(t=a.CRH())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&a.Gf(a.Rgc,7),2&t){let t;a.iGM(t=a.CRH())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.qOj,a.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(a.F$t(),a.YNc(0,A,1,0,"ng-template"))},encapsulation:2}),t})();const Q={translateTab:(0,f.X$)("translateTab",[(0,f.SB)("center, void, left-origin-center, right-origin-center",(0,f.oB)({transform:"none"})),(0,f.SB)("left",(0,f.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,f.SB)("right",(0,f.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,f.eR)("* => left, * => right, left => center, right => center",(0,f.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,f.eR)("void => left-origin-center",[(0,f.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,f.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,f.eR)("void => right-origin-center",[(0,f.oB)({transform:"translate3d(100%, 0, 0)"}),(0,f.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let W=(()=>{class t extends r.Pl{constructor(t,e,n,i){super(t,e,i),this._host=n,this._centeringSub=h.w.EMPTY,this._leavingSub=h.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,_.O)(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36((0,a.Gpc)(()=>X)),a.Y36(o.K0))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabBodyHost",""]],features:[a.qOj]}),t})(),K=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._dir=e,this._dirChangeSubscription=h.w.EMPTY,this._translateTabComplete=new u.xQ,this._onCentering=new a.vpe,this._beforeCentering=new a.vpe,this._afterLeavingCenter=new a.vpe,this._onCentered=new a.vpe(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),n.markForCheck()})),this._translateTabComplete.pipe((0,b.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(C.Is,8),a.Y36(a.sBO))},t.\u0275dir=a.lG2({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),X=(()=>{class t extends K{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(C.Is,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&a.Gf(r.Pl,5),2&t){let t;a.iGM(t=a.CRH())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(a.TgZ(0,"div",0,1),a.NdJ("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),a.YNc(2,S,0,0,"ng-template",2),a.qZA()),2&t&&a.Q6J("@translateTab",a.WLB(3,O,e._position,a.VKq(1,T,e.animationDuration)))},directives:[W],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Q.translateTab]}}),t})();const tt=new a.OlP("MAT_TABS_CONFIG");let et=0;class nt{}class it{constructor(t){this._elementRef=t}}const st=(0,l.pj)((0,l.Kr)(it),"primary");let rt=(()=>{class t extends st{constructor(t,e,n,i){super(t),this._changeDetectorRef=e,this._animationMode=i,this._tabs=new a.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=h.w.EMPTY,this._tabLabelSubscription=h.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.vpe,this.focusChange=new a.vpe,this.animationDone=new a.vpe,this.selectedTabChange=new a.vpe(!0),this._groupId=et++,this.animationDuration=n&&n.animationDuration?n.animationDuration:"500ms",this.disablePagination=!(!n||null==n.disablePagination)&&n.disablePagination,this.dynamicHeight=!(!n||null==n.dynamicHeight)&&n.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=(0,y.Ig)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=(0,y.su)(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;if(!e){this.selectedTabChange.emit(this._createChangeEvent(t));const e=this._tabBodyWrapper.nativeElement;e.style.minHeight=e.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((e,n)=>e.isActive=n===t),e||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((e,n)=>{e.position=n-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e<t.length;e++)if(t[e].isActive){this._indexToSelect=this._selectedIndex=e;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,_.O)(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(t=>t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new nt;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,d.T)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,n){t.disabled||(this.selectedIndex=e.focusIndex=n)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}_tabFocusChanged(t,e){t&&(this._tabHeader.focusIndex=e)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(tt,8),a.Y36(c.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.qOj]}),t})(),ot=(()=>{class t extends rt{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(tt,8),a.Y36(c.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){if(1&t&&a.Suo(n,J,5),2&t){let t;a.iGM(t=a.CRH())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(a.Gf(I,5),a.Gf(P,5)),2&t){let t;a.iGM(t=a.CRH())&&(e._tabBodyWrapper=t.first),a.iGM(t=a.CRH())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&a.ekj("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a._Bn([{provide:G,useExisting:t}]),a.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(a.TgZ(0,"mat-tab-header",0,1),a.NdJ("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),a.YNc(2,Z,4,14,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.YNc(5,R,1,8,"mat-tab-body",5),a.qZA()),2&t&&(a.Q6J("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),a.xp6(2),a.Q6J("ngForOf",e._tabs),a.xp6(1),a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.xp6(2),a.Q6J("ngForOf",e._tabs))},directives:function(){return[pt,o.sg,ct,l.wG,i.kH,o.O5,r.Pl,X]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class at{}const lt=(0,l.Id)(at);let ct=(()=>{class t extends lt{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(a.uIk("aria-disabled",!!e.disabled),a.ekj("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[a.qOj]}),t})();const ut=(0,w.i$)({passive:!0});let ht=(()=>{class t{constructor(t,e,n,i,s,r,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=n,this._dir=i,this._ngZone=s,this._platform=r,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new u.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new u.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.vpe,this.indexFocused=new a.vpe,s.runOutsideAngular(()=>{(0,p.R)(t.nativeElement,"mouseleave").pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=(0,y.su)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){(0,p.R)(this._previousPaginator.nativeElement,"touchstart",ut).pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,p.R)(this._nextPaginator.nativeElement,"touchstart",ut).pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:(0,g.of)(null),e=this._viewportRuler.change(150),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new i.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),(0,d.T)(t,e,this._items.changes).pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(n)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,v.R)(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!(0,x.Vb)(t))switch(t.keyCode){case x.K5:case x.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:s}=e.elementRef.nativeElement;let r,o;"ltr"==this._getLayoutDirection()?(r=i,o=r+s):(o=this._tabList.nativeElement.offsetWidth-i,r=o-s);const a=this.scrollDistance,l=this.scrollDistance+n;r<a?this.scrollDistance-=a-r+60:o>l&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),(0,m.H)(650,100).pipe((0,v.R)((0,d.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:n}=this._scrollHeader(t);(0===n||n>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(k.rL),a.Y36(C.Is,8),a.Y36(a.R0b),a.Y36(w.t4),a.Y36(c.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),dt=(()=>{class t extends ht{constructor(t,e,n,i,s,r,o){super(t,e,n,i,s,r,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,y.Ig)(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(k.rL),a.Y36(C.Is,8),a.Y36(a.R0b),a.Y36(w.t4),a.Y36(c.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{disableRipple:"disableRipple"},features:[a.qOj]}),t})(),pt=(()=>{class t extends dt{constructor(t,e,n,i,s,r,o){super(t,e,n,i,s,r,o)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(k.rL),a.Y36(C.Is,8),a.Y36(a.R0b),a.Y36(w.t4),a.Y36(c.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){if(1&t&&a.Suo(n,ct,4),2&t){let t;a.iGM(t=a.CRH())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(a.Gf(j,7),a.Gf(L,7),a.Gf(N,7),a.Gf(U,5),a.Gf(q,5)),2&t){let t;a.iGM(t=a.CRH())&&(e._inkBar=t.first),a.iGM(t=a.CRH())&&(e._tabListContainer=t.first),a.iGM(t=a.CRH())&&(e._tabList=t.first),a.iGM(t=a.CRH())&&(e._nextPaginator=t.first),a.iGM(t=a.CRH())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&a.ekj("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.qOj],ngContentSelectors:E,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0,1),a.NdJ("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(t){return e._handleKeydown(t)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return e._onContentChanges()}),a.TgZ(7,"div",7),a.Hsn(8),a.qZA(),a._UZ(9,"mat-ink-bar"),a.qZA(),a.qZA(),a.TgZ(10,"div",8,9),a.NdJ("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),a._UZ(12,"div",2),a.qZA()),2&t&&(a.ekj("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.Q6J("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.xp6(5),a.ekj("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.Q6J("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[l.wG,s.wD,j],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),gt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[o.ez,l.BQ,r.eL,l.si,s.Q8,i.rt],l.BQ]}),t})()},1436:(t,e,n)=>{"use strict";n.d(e,{gM:()=>k,AV:()=>E});var i=n(625),s=n(9238),r=n(8583),o=n(7716),a=n(2458),l=n(3416),c=n(9490),u=n(6461),h=n(5072),d=n(521),p=n(7636),g=n(9765),m=n(6782),f=n(5257),_=n(7238),b=n(946);const v={tooltipState:(0,_.X$)("state",[(0,_.SB)("initial, void, hidden",(0,_.oB)({opacity:0,transform:"scale(0)"})),(0,_.SB)("visible",(0,_.oB)({transform:"scale(1)"})),(0,_.eR)("* => visible",(0,_.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,_.F4)([(0,_.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,_.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,_.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,_.eR)("* => hidden",(0,_.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,_.oB)({opacity:0})))])},y=(0,d.i$)({passive:!0}),w=new o.OlP("mat-tooltip-scroll-strategy"),x={provide:w,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},C=new o.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let k=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,h,d){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new g.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===u.hY&&!(0,u.Vb)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,c.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,m.R)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,y)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new p.C5(A,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe((0,m.R)(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,f.q)(1),(0,m.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,y)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=(this._document||document).elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e===n||n.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(i.aV),o.Y36(o.SBq),o.Y36(l.mF),o.Y36(o.s_b),o.Y36(o.R0b),o.Y36(d.t4),o.Y36(s.$s),o.Y36(s.tE),o.Y36(w),o.Y36(b.Is,8),o.Y36(C,8),o.Y36(r.K0))},t.\u0275dir=o.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),A=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new g.xQ,this._isHandset=this._breakpointObserver.observe(h.u3.Handset)}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.sBO),o.Y36(h.Yg))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&o.NdJ("click",function(){return e._handleBodyInteraction()},!1,o.pYS)("auxclick",function(){return e._handleBodyInteraction()},!1,o.pYS),2&t&&o.Udp("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(o.TgZ(0,"div",0),o.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),o.ALo(1,"async"),o._uU(2),o.qZA()),2&t){let t;o.ekj("mat-tooltip-handset",null==(t=o.lcZ(1,5,e._isHandset))?null:t.matches),o.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),o.xp6(2),o.Oqu(e.message)}},directives:[r.mk],pipes:[r.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[v.tooltipState]},changeDetection:0}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[x],imports:[[s.rt,r.ez,i.U8,a.BQ],a.BQ,l.ZD]}),t})()},6237:(t,e,n)=>{"use strict";n.d(e,{Qb:()=>De,PW:()=>Re});var i=n(7716),s=n(9075),r=n(7238);function o(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function l(t){switch(t.length){case 0:return new r.ZN;case 1:return t[0];default:return new r.ZE(t)}}function c(t,e,n,i,s={},o={}){const a=[],l=[];let c=-1,u=null;if(i.forEach(t=>{const n=t.offset,i=n==c,h=i&&u||{};Object.keys(t).forEach(n=>{let i=n,l=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),l){case r.k1:l=s[n];break;case r.l3:l=o[n];break;default:l=e.normalizeStyleValue(n,i,l,a)}h[i]=l}),i||l.push(h),u=h,c=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function u(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&h(n,"start",t)));break;case"done":t.onDone(()=>i(n&&h(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&h(n,"destroy",t)))}}function h(t,e,n){const i=n.totalTime,s=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function d(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function p(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function g(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let m=(t,e)=>!1,f=(t,e)=>!1,_=(t,e,n)=>[];const b=a();(b||"undefined"!=typeof Element)&&(m=o()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),f=(()=>{if(b||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):f}})(),_=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t<n.length;t++)i.push(n[t])}else{const n=t.querySelector(e);n&&i.push(n)}return i});let v=null,y=!1;function w(t){v||(v=("undefined"!=typeof document?document.body:null)||{},y=!!v.style&&"WebkitAppearance"in v.style);let e=!0;return v.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in v.style,!e&&y)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in v.style),e}const x=f,C=m,k=_;function A(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let E=(()=>{class t{validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return k(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,o=[],a){return new r.ZN(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class S{}S.NOOP=new E;const T="ng-enter",O="ng-leave",I="ng-trigger",P=".ng-trigger",D="ng-animating",F=".ng-animating";function M(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Z(parseFloat(e[1]),e[2])}function Z(t,e){switch(e){case"s":return 1e3*t;default:return t}}function R(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=Z(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=Z(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function L(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function N(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else L(t,n);return n}function U(t,e,n){return n?e+":"+n+";":""}function q(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=U(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=U(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function B(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const s=J(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),a()&&q(t))}function j(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=J(e);t.style[n]=""}),a()&&q(t))}function z(t){return Array.isArray(t)?1==t.length?t[0]:(0,r.vP)(t):t}const $=new RegExp("{{\\s*(.+?)\\s*}}","g");function Y(t){let e=[];if("string"==typeof t){let n;for(;n=$.exec(t);)e.push(n[1]);$.lastIndex=0}return e}function V(t,e,n){const i=t.toString(),s=i.replace($,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),s=""),s.toString()});return s==i?t:s}function H(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const G=/-+([a-z0-9])/g;function J(t){return t.replace(G,(...t)=>t[1].toUpperCase())}function Q(t,e){return 0===t||0===e}function W(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;s<e.length;s++){let n=e[s];o.forEach(function(e){n[e]=X(t,e)})}}return e}function K(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error(`Unable to resolve animation metadata node #${e.type}`)}}function X(t,e){return window.getComputedStyle(t)[e]}const tt="*";function et(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(st(s,o)),"<"!=r[0]||s==tt&&o==tt||e.push(st(o,s))}(t,n,e)):n.push(t),n}const nt=new Set(["true","1"]),it=new Set(["false","0"]);function st(t,e){const n=nt.has(t)||it.has(t),i=nt.has(e)||it.has(e);return(s,r)=>{let o=t==tt||t==s,a=e==tt||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?nt.has(t):it.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?nt.has(e):it.has(e)),o&&a}}const rt=new RegExp("s*:selfs*,?","g");function ot(t,e,n){return new at(t).build(e,n)}class at{constructor(t){this._driver=t}build(t,e){const n=new lt(e);return this._resetContextStyleTimingState(n),K(this,z(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(ct(t)){const e=t;Object.keys(e).forEach(t=>{Y(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=H(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=K(this,z(t.animation),e);return{type:1,matchers:et(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:ut(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>K(this,t,e)),options:ut(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=K(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:ut(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return ht(R(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ht(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||R(i,e),ht(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:(0,r.oB)({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};n.easing&&(t.easing=n.easing),s=(0,r.oB)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(s,e);a.isEmptyStep=o,i=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==r.l3?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(ct(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=Y(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c<a,a=c,s.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let u=0;i>0&&i<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(u=1/(c-1));const h=c-1,d=e.currentTime,p=e.currentAnimateTimings,g=p.duration;return l.forEach((t,i)=>{const r=u>0?i==h?1:u*i:s[i],o=r*g;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:K(this,z(t.animation),e),options:ut(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ut(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ut(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(rt,"")),[t=t.replace(/@\*/g,P).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,F),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,p(e.collectedStyles,e.currentQuerySelector,{});const o=K(this,z(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:ut(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:R(t.timings,e.errors,!0);return{type:12,animation:K(this,z(t.animation),e),timings:n,options:null}}}class lt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ct(t){return!Array.isArray(t)&&"object"==typeof t}function ut(t){var e;return t?(t=L(t)).params&&(t.params=(e=t.params)?L(e):null):t={},t}function ht(t,e,n){return{duration:t,delay:e,easing:n}}function dt(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class pt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const gt=new RegExp(":enter","g"),mt=new RegExp(":leave","g");function ft(t,e,n,i,s,r={},o={},a,l,c=[]){return(new _t).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class _t{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new pt;const u=new vt(t,e,l,i,s,c,[]);u.options=a,u.currentTimeline.setStyles([r],null,u.errors,a),K(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[dt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?M(n.duration):null,r=null!=n.delay?M(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),K(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=bt);const t=M(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>K(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?M(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),K(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return R(e.params?V(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?M(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bt);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),K(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;K(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const bt={};class vt{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new yt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=M(n.duration)),null!=n.delay&&(i.delay=M(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=V(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new vt(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=bt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new wt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(gt,"."+this._enterClassName)).replace(mt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class yt{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new yt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||r.l3,this._currentKeyframe[t]=r.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},o=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=r.l3})):N(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=V(o[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:r.l3),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,o)=>{const a=N(s,!0);Object.keys(a).forEach(n=>{const i=a[n];i==r.k1?t.add(n):i==r.l3&&e.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const s=t.size?H(t.values()):[],o=e.size?H(e.values()):[];if(n){const t=i[0],e=L(t);t.offset=0,e.offset=1,i=[t,e]}return dt(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class wt extends yt{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=N(t[0],!1);a.offset=0,s.push(a);const l=N(t[0],!1);l.offset=xt(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=N(t[i],!1);o.offset=xt((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return dt(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function xt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Ct{}class kt extends Ct{normalizePropertyName(t,e){return J(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(At[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const At=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Et(t,e,n,i,s,r,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const St={};class Tt{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||St,d=this.buildStyles(n,o&&o.params||St,u),g=a&&a.params||St,m=this.buildStyles(i,g,u),f=new Set,_=new Map,b=new Map,v="void"===i,y={params:Object.assign(Object.assign({},h),g)},w=c?[]:ft(t,e,this.ast.animation,s,r,d,m,y,l,u);let x=0;if(w.forEach(t=>{x=Math.max(t.duration+t.delay,x)}),u.length)return Et(e,this._triggerName,n,i,v,d,m,[],[],_,b,x,u);w.forEach(t=>{const n=t.element,i=p(_,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=p(b,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&f.add(n)});const C=H(f.values());return Et(e,this._triggerName,n,i,v,d,m,w,C,_,b,x)}}class Ot{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=L(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=V(r,i,e)),n[t]=r})}}),n}}class It{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Ot(t.style,t.options&&t.options.params||{})}),Pt(this.states,"true","1"),Pt(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Tt(t,e,this.states))}),this.fallbackTransition=new Tt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Pt(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Dt=new pt;class Ft{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=ot(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=c(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let o;const a=new Map;if(s?(o=ft(this._driver,e,s,T,O,{},{},n,Dt,i),o.forEach(t=>{const e=p(a,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);a.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,r.l3)})});const c=l(o.map(t=>{const e=a.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const s=d(e,"","","");return u(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Mt="ng-animate-queued",Zt="ng-animate-disabled",Rt=".ng-animate-disabled",Lt=[],Nt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ut={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class qt{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=L(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const Bt="void",jt=new qt(Bt);class zt{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Qt(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=p(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=p(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Qt(t,I),Qt(t,"ng-trigger-"+e),a[e]=jt),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new Yt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Qt(t,I),Qt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new qt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=jt),l.value!==Bt&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s<n.length;s++){const i=n[s];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}(a.params,l.params)){const e=[],n=s.matchStyles(a.value,a.params,e),i=s.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{j(t,n),B(t,i)})}return}const c=p(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:r,isFallbackTransition:h}),h||(Qt(t,Mt),r.onStart(()=>{Wt(t,Mt)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,P,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,Bt,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&l(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach(e=>{const s=e.name;if(i.has(s))return;i.add(s);const r=this._triggers[s].fallbackTransition,o=n[s]||jt,a=new qt(Bt),l=new Yt(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==Nt||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Qt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=d(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,u(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class $t{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new zt(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const s=n[t[i]].namespaceId;if(s){const t=this._fetchNamespace(s);t&&e.add(t)}}}return e}trigger(t,e,n,i){if(Vt(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!Vt(e))return;const s=e.__ng_removed;if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Qt(t,Zt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Wt(t,Zt))}removeNode(t,e,n,i){if(Vt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Vt(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,P,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,F,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return l(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Nt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Rt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Rt,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Qt(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?l(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new pt,i=[],s=new Map,o=[],a=new Map,c=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)h.add(e[n])});const d=this.bodyNode,g=Array.from(this.statesByElement.keys()),m=Jt(g,this.collectedEnterElements),f=new Map;let _=0;m.forEach((t,e)=>{const n=T+_++;f.set(e,n),t.forEach(t=>Qt(t,n))});const b=[],v=new Set,y=new Set;for(let r=0;r<this.collectedLeaveElements.length;r++){const t=this.collectedLeaveElements[r],e=t.__ng_removed;e&&e.setForRemoval&&(b.push(t),v.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>v.add(t)):y.add(t))}const w=new Map,x=Jt(g,Array.from(v));x.forEach((t,e)=>{const n=O+_++;w.set(e,n),t.forEach(t=>Qt(t,n))}),t.push(()=>{m.forEach((t,e)=>{const n=f.get(e);t.forEach(t=>Wt(t,n))}),x.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Wt(t,n))}),b.forEach(t=>{this.processLeaveNode(t)})});const C=[],k=[];for(let r=this._namespaceList.length-1;r>=0;r--)this._namespaceList[r].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(C.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const r=!d||!this.driver.containsElement(d,s),l=w.get(s),h=f.get(s),g=this._buildInstruction(t,n,h,l,r);if(g.errors&&g.errors.length)k.push(g);else{if(r)return e.onStart(()=>j(s,g.fromStyles)),e.onDestroy(()=>B(s,g.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>j(s,g.fromStyles)),e.onDestroy(()=>B(s,g.toStyles)),void i.push(e);g.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,g.timelines),o.push({instruction:g,player:e,element:s}),g.queriedElements.forEach(t=>p(a,t,[]).push(e)),g.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach(e=>t.add(e))}}),g.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=u.get(e);i||u.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(k.length){const t=[];k.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),C.forEach(t=>t.destroy()),this.reportError(t)}const A=new Map,E=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,A))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{p(A,e,[]).push(t),t.destroy()})});const S=b.filter(t=>te(t,c,u)),I=new Map;Gt(I,this.driver,y,u,r.l3).forEach(t=>{te(t,c,u)&&S.push(t)});const P=new Map;m.forEach((t,e)=>{Gt(P,this.driver,new Set(t),c,r.k1)}),S.forEach(t=>{const e=I.get(t),n=P.get(t);I.set(t,Object.assign(Object.assign({},e),n))});const D=[],M=[],Z={};o.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(h.has(e))return r.onDestroy(()=>B(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=Z;if(E.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>E.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,A,s,P,I);if(r.setRealPlayer(n),t===Z)D.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=l(e)),i.push(r)}}else j(e,o.fromStyles),r.onDestroy(()=>B(e,o.toStyles)),M.push(r),h.has(e)&&i.push(r)}),M.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=l(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let r=0;r<b.length;r++){const t=b[r],e=t.__ng_removed;if(Wt(t,O),e&&e.hasAnimation)continue;let n=[];if(a.size){let e=a.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,F,!0);for(let t=0;t<i.length;t++){let e=a.get(i[t]);e&&e.length&&n.push(...e)}}const i=n.filter(t=>!t.destroyed);i.length?Kt(this,t,i):this.processLeaveNode(t)}return b.length=0,D.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),D}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==Bt;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=p(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}j(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,o){const a=e.triggerName,u=e.element,h=[],d=new Set,g=new Set,m=e.timelines.map(e=>{const l=e.element;d.add(l);const p=l.__ng_removed;if(p&&p.removedBeforeQueried)return new r.ZN(e.duration,e.delay);const m=l!==u,f=function(t){const e=[];return Xt(t,e),e}((n.get(l)||Lt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===l),_=s.get(l),b=o.get(l),v=c(0,this._normalizer,0,e.keyframes,_,b),y=this._buildPlayer(e,v,f);if(e.subTimeline&&i&&g.add(l),m){const e=new Yt(t,a,l);e.setRealPlayer(y),h.push(e)}return y});h.forEach(t=>{p(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),d.forEach(t=>Qt(t,D));const f=l(m);return f.onDestroy(()=>{d.forEach(t=>Wt(t,D)),B(u,e.toStyles)}),g.forEach(t=>{p(i,t,[]).push(f)}),f}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new r.ZN(t.duration,t.delay)}}class Yt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new r.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>u(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){p(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Vt(t){return t&&1===t.nodeType}function Ht(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Gt(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Ht(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=Ut,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Ht(t,r[a++])),o}function Jt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}function Qt(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Wt(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Kt(t,e,n){l(n).onDone(()=>t.processLeaveNode(e))}function Xt(t,e){for(let n=0;n<t.length;n++){const i=t[n];i instanceof r.ZE?Xt(i.players,e):e.push(i)}}function te(t,e,n){const i=n.get(t);if(!i)return!1;let s=e.get(t);return s?i.forEach(t=>s.add(t)):e.set(t,i),n.delete(t),!0}class ee{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new $t(t,e,n),this._timelineEngine=new Ft(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=ot(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new It(t,e)}(i,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=g(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=g(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ne(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=se(e[0]),e.length>1&&(i=se(e[e.length-1]))):e&&(n=se(e)),n||i?new ie(t,n,i):null}class ie{constructor(t,e,n){this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;let i=ie.initialStylesByElement.get(t);i||ie.initialStylesByElement.set(t,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&B(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(B(this._element,this._initialStyles),this._endStyles&&(B(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ie.initialStylesByElement.delete(this._element),this._startStyles&&(j(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(j(this._element,this._endStyles),this._endStyles=null),B(this._element,this._initialStyles),this._state=3)}}function se(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const s=n[i];re(s)&&(e=e||{},e[s]=t[s])}return e}function re(t){return"display"===t||"position"===t}ie.initialStylesByElement=new WeakMap;const oe="animation",ae="animationend";class le{constructor(t,e,n,i,s,r,o){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=s,this._fillMode=r,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=ge(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i<t.length;i++)","===t.charAt(i)&&n++}(n),e=`${n}, ${e}`),pe(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),de(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){ce(this._element,this._name,"paused")}resume(){ce(this._element,this._name,"running")}setPosition(t){const e=ue(this._element,this._name);this._position=t*this._duration,pe(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),de(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=ge(t,"").split(","),i=he(n,e);i>=0&&(n.splice(i,1),pe(t,"",n.join(",")))}(this._element,this._name))}}function ce(t,e,n){pe(t,"PlayState",n,ue(t,e))}function ue(t,e){const n=ge(t,"");return n.indexOf(",")>0?he(n.split(","),e):he([n],e)}function he(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function de(t,e,n){n?t.removeEventListener(ae,e):t.addEventListener(ae,e)}function pe(t,e,n,i){const s=oe+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function ge(t,e){return t.style[oe+e]||""}class me{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new le(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:X(this.element,n))})}this.currentSnapshot=t}}class fe extends r.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=A(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class _e{constructor(){this._count=0}validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return k(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>A(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=`${s}}\n`}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],o){const a=r.filter(t=>t instanceof me),l={};Q(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=W(t,e,l));if(0==n)return new fe(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);(function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(h);const d=ne(t,e),p=new me(t,e,u,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class be{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:X(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class ve{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ye().toString()),this._cssKeyframesDriver=new _e}validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return k(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof be);Q(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=ne(t,e=W(t,e=e.map(t=>N(t,!1)),l));return new be(t,e,a,u)}}function ye(){return o()&&Element.prototype.animate||{}}var we=n(8583);let xe=(()=>{class t extends r._j{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?(0,r.vP)(t):t;return Ae(this._renderer,null,e,"register",[n]),new Ce(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(we.K0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Ce extends r.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new ke(this._id,t,e||{},this._renderer)}}class ke{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Ae(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Ae(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}const Ee="@",Se="@.disabled";let Te=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Oe("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new Ie(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(ee),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Oe{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==Ee&&e==Se?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Ie extends Oe{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Ee?"."==e.charAt(1)&&e==Se?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==Ee){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return s.charAt(0)!=Ee&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Pe=(()=>{class t extends ee{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(we.K0),i.LFG(S),i.LFG(Ct))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const De=new i.OlP("AnimationModuleType"),Fe=[{provide:r._j,useClass:xe},{provide:Ct,useFactory:function(){return new kt}},{provide:ee,useClass:Pe},{provide:i.FYo,useFactory:function(t,e,n){return new Te(t,e,n)},deps:[s.se,ee,i.R0b]}],Me=[{provide:S,useFactory:function(){return"function"==typeof ye()?new ve:new _e}},{provide:De,useValue:"BrowserAnimations"},...Fe],Ze=[{provide:S,useClass:E},{provide:De,useValue:"NoopAnimations"},...Fe];let Re=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Ze:Me}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:Me,imports:[s.b2]}),t})()},9075:(t,e,n)=>{"use strict";n.d(e,{b2:()=>N,H7:()=>F,Dx:()=>q,q6:()=>R,se:()=>C});var i=n(8583),s=n(7716);class r extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class o extends r{static makeCurrent(){(0,i.HT)(new o)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(l=l||document.querySelector("base"),l?l.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,i.Mx)(document.cookie,t)}}let a,l=null;const c=new s.OlP("TRANSITION_ID"),u=[{provide:s.ip1,useFactory:function(t,e,n){return()=>{n.get(s.CZH).donePromise.then(()=>{const n=(0,i.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[c,i.K0,s.zs3],multi:!0}];class h{static init(){(0,s.VLi)(new h)}addToWindow(t){s.dqk.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},s.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(t=>{const e=s.dqk.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?(0,i.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new s.OlP("EventManagerPlugins");let g=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i<n.length;i++){const e=n[i];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error(`No event manager plugin found for event ${t}`)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(p),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class m{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const s=(0,i.q)().getGlobalEventTarget(this._doc,t);if(!s)throw new Error(`Unsupported event target ${s} for event ${e}`);return this.addEventListener(s,e,n)}}let f=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),_=(()=>{class t extends f{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(b),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(b))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function b(t){(0,i.q)().remove(t)}const v={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/"},y=/%COMP%/g;function w(t,e,n){for(let i=0;i<e.length;i++){let s=e[i];Array.isArray(s)?w(t,s,n):(s=s.replace(y,t),n.push(s))}return n}function x(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let C=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new k(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new A(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case s.ifc.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=w(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(g),s.LFG(_),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class k{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(v[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=v[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=v[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,n,i&s.JOm.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,x(n)):this.eventManager.addEventListener(t,e,x(n))}}class A extends k{constructor(t,e,n,i){super(t),this.component=n;const s=w(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(y,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(y,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class E extends k{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=w(i.id,i.styles,[]);for(let r=0;r<s.length;r++){const t=document.createElement("style");t.textContent=s[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let S=(()=>{class t extends m{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const T=["alt","control","meta","shift"],O={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},I={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"},P={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let D=(()=>{class t extends m{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const r=t.parseEventName(n),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.q)().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(T.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&I.hasOwnProperty(e)&&(e=I[e]))}return O[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),T.forEach(i=>{i!=n&&(0,P[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(Z)},token:t,providedIn:"root"}),t})();function M(t){return new Z(t.get(i.K0))}let Z=(()=>{class t extends F{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,s.JVY)(t)}bypassSecurityTrustStyle(t){return(0,s.L6k)(t)}bypassSecurityTrustScript(t){return(0,s.eBb)(t)}bypassSecurityTrustUrl(t){return(0,s.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,s.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return M((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t})();const R=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:i.bD},{provide:s.g9A,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:i.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),L=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:p,useClass:S,multi:!0,deps:[i.K0,s.R0b,s.Lbi]},{provide:p,useClass:D,multi:!0,deps:[i.K0]},[],{provide:C,useClass:C,deps:[g,_,s.AFp]},{provide:s.FYo,useExisting:C},{provide:f,useExisting:_},{provide:_,useClass:_,deps:[i.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:g,useClass:g,deps:[p,s.R0b]},{provide:i.JF,useClass:d,deps:[]},[]];let N=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.AFp,useValue:e.appId},{provide:c,useExisting:s.AFp},u]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:L,imports:[i.ez,s.hGG]}),t})();function U(){return new q((0,s.LFG)(i.K0))}let q=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=(0,s.Yz7)({factory:U,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},4655:(t,e,n)=>{"use strict";n.d(e,{gz:()=>Kt,m2:()=>H,OD:()=>V,F0:()=>wn,Od:()=>An,yS:()=>Cn,Bz:()=>Rn,lC:()=>En});var i=n(8583),s=n(7716);const r=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var o=n(4402),a=n(5917),l=n(6215),c=n(739),u=n(7574),h=n(8071),d=n(1439),p=n(9193),g=n(2441),m=n(9765),f=n(7393);function _(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new b(t,e,n))}}class b{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new v(t,this.accumulator,this.seed,this.hasSeed))}}class v extends f.L{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}var y=n(5435),w=n(7108);function x(t){return function(e){return 0===t?(0,p.c)():e.lift(new C(t))}}class C{constructor(t){if(this.total=t,this.total<0)throw new w.W}call(t,e){return e.subscribe(new k(t,this.total))}}class k extends f.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;s<n;s++){const s=e++%n;t.next(i[s])}}t.complete()}}function A(t=T){return e=>e.lift(new E(t))}class E{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new S(t,this.errorFactory))}}class S extends f.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function T(){return new r}function O(t=null){return e=>e.lift(new I(t))}class I{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new P(t,this.defaultValue))}}class P extends f.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var D=n(4487),F=n(5257);function M(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,y.h)((e,n)=>t(e,n,i)):D.y,(0,F.q)(1),n?O(e):A(()=>new r))}var Z=n(8002),R=n(3190),L=n(9761),N=n(5304),U=n(4612),q=n(9773),B=n(3342),j=n(1307),z=n(8939),$=n(3282);class Y{constructor(t,e){this.id=t,this.url=e}}class V extends Y{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class H extends Y{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class G extends Y{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class J extends Y{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Q extends Y{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class W extends Y{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class K extends Y{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class X extends Y{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tt extends Y{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class et{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nt{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class it{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class st{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rt{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ot{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class at{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const lt="primary";class ct{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ut(t){return new ct(t)}function ht(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function dt(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length<t.length))return null;const s={};for(let r=0;r<i.length;r++){const e=i[r],n=t[r];if(e.startsWith(":"))s[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,i.length),posParams:s}}function pt(t,e){const n=t?Object.keys(t):void 0,i=e?Object.keys(e):void 0;if(!n||!i||n.length!=i.length)return!1;let s;for(let r=0;r<n.length;r++)if(s=n[r],!gt(t[s],e[s]))return!1;return!0}function gt(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),i=[...e].sort();return n.every((t,e)=>i[e]===t)}return t===e}function mt(t){return Array.prototype.concat.apply([],t)}function ft(t){return t.length>0?t[t.length-1]:null}function _t(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function bt(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,o.D)(Promise.resolve(t)):(0,a.of)(t)}const vt={exact:function t(e,n,i){if(!Tt(e.segments,n.segments))return!1;if(!kt(e.segments,n.segments,i))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const s in n.children){if(!e.children[s])return!1;if(!t(e.children[s],n.children[s],i))return!1}return!0},subset:xt},yt={exact:function(t,e){return pt(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>gt(t[n],e[n]))},ignored:()=>!0};function wt(t,e,n){return vt[n.paths](t.root,e.root,n.matrixParams)&&yt[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function xt(t,e,n){return Ct(t,e,e.segments,n)}function Ct(t,e,n,i){if(t.segments.length>n.length){const s=t.segments.slice(0,n.length);return!!Tt(s,n)&&!e.hasChildren()&&!!kt(s,n,i)}if(t.segments.length===n.length){if(!Tt(t.segments,n))return!1;if(!kt(t.segments,n,i))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!xt(t.children[n],e.children[n],i))return!1}return!0}{const s=n.slice(0,t.segments.length),r=n.slice(t.segments.length);return!!Tt(t.segments,s)&&!!kt(t.segments,s,i)&&!!t.children.primary&&Ct(t.children.primary,e,r,i)}}function kt(t,e,n){return e.every((e,i)=>yt[n](t[i].parameters,e.parameters))}class At{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ut(this.queryParams)),this._queryParamMap}toString(){return Pt.serialize(this)}}class Et{constructor(t,e){this.segments=t,this.children=e,this.parent=null,_t(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Dt(this)}}class St{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ut(this.parameters)),this._parameterMap}toString(){return Ut(this)}}function Tt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Ot{}class It{parse(t){const e=new $t(t);return new At(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${Ft(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Zt(e)}=${Zt(t)}`).join("&"):`${Zt(e)}=${Zt(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Pt=new It;function Dt(t){return t.segments.map(t=>Ut(t)).join("/")}function Ft(t,e){if(!t.hasChildren())return Dt(t);if(e){const e=t.children.primary?Ft(t.children.primary,!1):"",n=[];return _t(t.children,(t,e)=>{e!==lt&&n.push(`${e}:${Ft(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return _t(t.children,(t,i)=>{i===lt&&(n=n.concat(e(t,i)))}),_t(t.children,(t,i)=>{i!==lt&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===lt?[Ft(t.children.primary,!1)]:[`${n}:${Ft(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Dt(t)}/${e[0]}`:`${Dt(t)}/(${e.join("//")})`}}function Mt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zt(t){return Mt(t).replace(/%3B/gi,";")}function Rt(t){return Mt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Lt(t){return decodeURIComponent(t)}function Nt(t){return Lt(t.replace(/\+/g,"%20"))}function Ut(t){return`${Rt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Rt(t)}=${Rt(e[t])}`).join("")}`;var e}const qt=/^[^\/()?;=#]+/;function Bt(t){const e=t.match(qt);return e?e[0]:""}const jt=/^[^=?&#]+/,zt=/^[^?&#]+/;class $t{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Et([],{}):new Et([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Et(t,e)),n}parseSegment(){const t=Bt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new St(Lt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Bt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Bt(this.remaining);t&&(n=t,this.capture(n))}t[Lt(e)]=Lt(n)}parseQueryParam(t){const e=function(t){const e=t.match(jt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(zt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Nt(e),s=Nt(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Bt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=lt);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new Et([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Yt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Vt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Vt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ht(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Ht(t,this._root).map(t=>t.value)}}function Vt(t,e){if(t===e.value)return e;for(const n of e.children){const e=Vt(t,n);if(e)return e}return null}function Ht(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Ht(t,n);if(i.length)return i.unshift(e),i}return[]}class Gt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Jt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Qt extends Yt{constructor(t,e){super(t),this.snapshot=e,ne(this,t)}toString(){return this.snapshot.toString()}}function Wt(t,e){const n=function(t,e){const n=new te([],{},{},"",{},lt,e,null,t.root,-1,{});return new ee("",new Gt(n,[]))}(t,e),i=new l.X([new St("",{})]),s=new l.X({}),r=new l.X({}),o=new l.X({}),a=new l.X(""),c=new Kt(i,s,o,a,r,lt,e,n.root);return c.snapshot=n.root,new Qt(new Gt(c,[]),n)}class Kt{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Z.U)(t=>ut(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Z.U)(t=>ut(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Xt(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class te{constructor(t,e,n,i,s,r,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ut(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ut(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ee extends Yt{constructor(t,e){super(e),this.url=t,ne(this,e)}toString(){return ie(this._root)}}function ne(t,e){e.value._routerState=t,e.children.forEach(e=>ne(t,e))}function ie(t){const e=t.children.length>0?` { ${t.children.map(ie).join(", ")} } `:"";return`${t.value}${e}`}function se(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,pt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),pt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!pt(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),pt(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function re(t,e){var n,i;return pt(t.params,e.params)&&Tt(n=t.url,i=e.url)&&n.every((t,e)=>pt(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||re(t.parent,e.parent))}function oe(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return oe(t,e,i);return oe(t,e)})}(t,e,n);return new Gt(i,s)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return ae(e,t),t}}const n=new Kt(new l.X((i=e.value).url),new l.X(i.params),new l.X(i.queryParams),new l.X(i.fragment),new l.X(i.data),i.outlet,i.component,i),s=e.children.map(e=>oe(t,e));return new Gt(n,s)}var i}function ae(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n<t.children.length;++n)ae(t.children[n],e.children[n])}function le(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ce(t){return"object"==typeof t&&null!=t&&t.outlets}function ue(t,e,n,i,s){let r={};return i&&_t(i,(t,e)=>{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new At(n.root===t?e:he(n.root,t,e),r,s)}function he(t,e,n){const i={};return _t(t.children,(t,s)=>{i[s]=t===e?n:he(t,e,n)}),new Et(t.segments,i)}class de{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&le(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(ce);if(i&&i!==ft(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class pe{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function ge(t,e,n){if(t||(t=new Et([],{})),0===t.segments.length&&t.hasChildren())return me(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(i>=n.length)return r;const e=t.segments[s],o=n[i];if(ce(o))break;const a=`${o}`,l=i<n.length-1?n[i+1]:null;if(s>0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!ve(a,l,e))return r;i+=2}else{if(!ve(a,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const e=new Et(t.segments.slice(0,i.pathIndex),{});return e.children.primary=new Et(t.segments.slice(i.pathIndex),t.children),me(e,0,s)}return i.match&&0===s.length?new Et(t.segments,{}):i.match&&!t.hasChildren()?fe(t,e,n):i.match?me(t,0,s):fe(t,e,n)}function me(t,e,n){if(0===n.length)return new Et(t.segments,{});{const i=function(t){return ce(t[0])?t[0].outlets:{[lt]:t}}(n),s={};return _t(i,(n,i)=>{"string"==typeof n&&(n=[n]),null!==n&&(s[i]=ge(t.children[i],e,n))}),_t(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new Et(t.segments,s)}}function fe(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s<n.length;){const r=n[s];if(ce(r)){const t=_e(r.outlets);return new Et(i,t)}if(0===s&&le(n[0])){i.push(new St(t.segments[e].path,be(n[0]))),s++;continue}const o=ce(r)?r.outlets.primary:`${r}`,a=s<n.length-1?n[s+1]:null;o&&a&&le(a)?(i.push(new St(o,be(a))),s+=2):(i.push(new St(o,{})),s++)}return new Et(i,{})}function _e(t){const e={};return _t(t,(t,n)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=fe(new Et([],{}),0,t))}),e}function be(t){const e={};return _t(t,(t,n)=>e[n]=`${t}`),e}function ve(t,e,n){return t==n.path&&pt(e,n.parameters)}class ye{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),se(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Jt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),_t(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,s=Jt(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=Jt(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new ot(t.value.snapshot))}),t.children.length&&this.forwardEvent(new st(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(se(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),we(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function we(t){se(t.value),t.children.forEach(we)}class xe{constructor(t,e){this.routes=t,this.module=e}}function Ce(t){return"function"==typeof t}function ke(t){return t instanceof At}const Ae=Symbol("INITIAL_VALUE");function Ee(){return(0,R.w)(t=>(0,c.aj)(t.map(t=>t.pipe((0,F.q)(1),(0,L.O)(Ae)))).pipe(_((t,e)=>{let n=!1;return e.reduce((t,i,s)=>{if(t!==Ae)return t;if(i===Ae&&(n=!0),!n){if(!1===i)return i;if(s===e.length-1||ke(i))return i}return t},t)},Ae),(0,y.h)(t=>t!==Ae),(0,Z.U)(t=>ke(t)?t:!0===t),(0,F.q)(1)))}let Se=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[En]},encapsulation:2}),t})();function Te(t,e=""){for(let n=0;n<t.length;n++){const i=t[n];Oe(i,Ie(e,i))}}function Oe(t,e){t.children&&Te(t.children,e)}function Ie(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Pe(t){const e=t.children&&t.children.map(Pe),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==lt&&(n.component=Se),n}function De(t){return t.outlet||lt}function Fe(t,e){const n=t.filter(t=>De(t)===e);return n.push(...t.filter(t=>De(t)!==e)),n}const Me={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ze(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Me):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||dt)(n,t,e);if(!s)return Object.assign({},Me);const r={};_t(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function Re(t,e,n,i,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>Le(t,e,n)&&De(n)!==lt)}(t,n,i)){const s=new Et(e,function(t,e,n,i){const s={};s.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&De(r)!==lt){const n=new Et([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[De(r)]=n}return s}(t,e,i,new Et(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Le(t,e,n))}(t,n,i)){const r=new Et(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(Le(t,n,a)&&!s[De(a)]){const n=new Et([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[De(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Et(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function Le(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function Ne(t,e,n,i){return!!(De(t)===i||i!==lt&&Le(e,n,t))&&("**"===t.path||Ze(e,t,n).matched)}function Ue(t,e,n){return 0===e.length&&!t.children[n]}class qe{constructor(t){this.segmentGroup=t||null}}class Be{constructor(t){this.urlTree=t}}function je(t){return new u.y(e=>e.error(new qe(t)))}function ze(t){return new u.y(e=>e.error(new Be(t)))}function $e(t){return new u.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ye{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(s.h0i)}apply(){const t=Re(this.urlTree.root,[],[],this.config).segmentGroup,e=new Et(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,lt).pipe((0,Z.U)(t=>this.createUrlTree(Ve(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,N.K)(t=>{if(t instanceof Be)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof qe)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,lt).pipe((0,Z.U)(e=>this.createUrlTree(Ve(e),t.queryParams,t.fragment))).pipe((0,N.K)(t=>{if(t instanceof qe)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Et([],{[lt]:t}):t;return new At(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe((0,Z.U)(t=>new Et([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const s of Object.keys(n.children))"primary"===s?i.unshift(s):i.push(s);return(0,o.D)(i).pipe((0,U.b)(i=>{const s=n.children[i],r=Fe(e,i);return this.expandSegmentGroup(t,r,s,i).pipe((0,Z.U)(t=>({segment:t,outlet:i})))}),_((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,y.h)((e,n)=>t(e,n,i)):D.y,x(1),n?O(e):A(()=>new r))}())}expandSegment(t,e,n,i,s,l){return(0,o.D)(n).pipe((0,U.b)(r=>this.expandSegmentAgainstRoute(t,e,n,r,i,s,l).pipe((0,N.K)(t=>{if(t instanceof qe)return(0,a.of)(null);throw t}))),M(t=>!!t),(0,N.K)((t,n)=>{if(t instanceof r||"EmptyError"===t.name){if(Ue(e,i,s))return(0,a.of)(new Et([],{}));throw new qe(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return Ne(i,e,s,r)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):je(e):je(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?ze(s):this.lineralizeSegments(n,s).pipe((0,q.zg)(n=>{const s=new Et(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Ze(e,i,s);if(!o)return je(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?ze(u):this.lineralizeSegments(i,u).pipe((0,q.zg)(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,a.of)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe((0,Z.U)(t=>(n._loadedConfig=t,new Et(i,{})))):(0,a.of)(new Et(i,{}));const{matched:r,consumedSegments:o,lastChild:l}=Ze(e,n,i);if(!r)return je(e);const c=i.slice(l);return this.getChildConfig(t,n,i).pipe((0,q.zg)(t=>{const i=t.module,r=t.routes,{segmentGroup:l,slicedSegments:u}=Re(e,o,c,r),h=new Et(l.segments,l.children);if(0===u.length&&h.hasChildren())return this.expandChildren(i,r,h).pipe((0,Z.U)(t=>new Et(o,t)));if(0===r.length&&0===u.length)return(0,a.of)(new Et(o,{}));const d=De(n)===s;return this.expandSegment(i,h,r,u,d?lt:s,!0).pipe((0,Z.U)(t=>new Et(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?(0,a.of)(new xe(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,a.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe((0,q.zg)(n=>n?this.configLoader.load(t.injector,e).pipe((0,Z.U)(t=>(e._loadedConfig=t,t))):function(t){return new u.y(e=>e.error(ht(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):(0,a.of)(new xe([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return(0,a.of)(!0);const s=i.map(i=>{const s=t.get(i);let r;if(function(t){return t&&Ce(t.canLoad)}(s))r=s.canLoad(e,n);else{if(!Ce(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}return bt(r)});return(0,a.of)(s).pipe(Ee(),(0,B.b)(t=>{if(!ke(t))return;const e=ht(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,Z.U)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,a.of)(n);if(i.numberOfChildren>1||!i.children.primary)return $e(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new At(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return _t(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return _t(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new Et(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function Ve(t){const e={};for(const n of Object.keys(t.children)){const i=Ve(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Et(t.segments.concat(e.segments),e.children)}return t}(new Et(t.segments,e))}class He{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ge{constructor(t,e){this.component=t,this.route=e}}function Je(t,e,n){const i=t._root;return We(i,e?e._root:null,n,[i.value])}function Qe(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function We(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=Jt(e);return t.children.forEach(t=>{!function(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Tt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Tt(t.url,e.url)||!pt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!re(t,e)||!pt(t.queryParams,e.queryParams);case"paramsChange":default:return!re(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new He(i)):(r.data=o.data,r._resolvedData=o._resolvedData),We(t,e,r.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Ge(a.outlet.component,o))}else o&&Ke(e,a,s),s.canActivateChecks.push(new He(i)),We(t,null,r.component?a?a.children:null:n,i,s)}(t,r[t.value.outlet],n,i.concat([t.value]),s),delete r[t.value.outlet]}),_t(r,(t,e)=>Ke(t,n.getContext(e),s)),s}function Ke(t,e,n){const i=Jt(t),s=t.value;_t(i,(t,i)=>{Ke(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new Ge(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class Xe{}function tn(t){return new u.y(e=>e.error(t))}class en{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=Re(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,lt);if(null===e)return null;const n=new te([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},lt,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Gt(n,e),s=new ee(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=Xt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const i=e.children[s],r=Fe(t,s),o=this.processSegmentGroup(r,i,s);if(null===o)return null;n.push(...o)}const i=sn(n);return i.sort((t,e)=>t.value.outlet===lt?-1:e.value.outlet===lt?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,i);if(null!==t)return t}return Ue(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!Ne(t,e,n,i))return null;let s,r=[],o=[];if("**"===t.path){const i=n.length>0?ft(n).parameters:{};s=new te(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,an(t),De(t),t.component,t,rn(e),on(e)+n.length,ln(t))}else{const i=Ze(e,t,n);if(!i.matched)return null;r=i.consumedSegments,o=n.slice(i.lastChild),s=new te(r,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,an(t),De(t),t.component,t,rn(e),on(e)+r.length,ln(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Re(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new Gt(s,t)]}if(0===a.length&&0===c.length)return[new Gt(s,[])];const u=De(t)===i,h=this.processSegment(a,l,c,u?lt:i);return null===h?null:[new Gt(s,h)]}}function nn(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function sn(t){const e=[],n=new Set;for(const i of t){if(!nn(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const i of n){const t=sn(i.children);e.push(new Gt(i.value,t))}return e.filter(t=>!n.has(t))}function rn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function on(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function an(t){return t.data||{}}function ln(t){return t.resolve||{}}function cn(t){return(0,R.w)(e=>{const n=t(e);return n?(0,o.D)(n).pipe((0,Z.U)(()=>e)):(0,a.of)(e)})}class un extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const hn=new s.OlP("ROUTES");class dn{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe((0,Z.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new xe(mt(i.injector.get(hn,void 0,s.XFs.Self|s.XFs.Optional)).map(Pe),i)}),(0,N.K)(t=>{throw e._loader$=void 0,t}));return e._loader$=new g.c(n,()=>new m.xQ).pipe((0,j.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,o.D)(this.loader.load(t)):bt(t()).pipe((0,q.zg)(t=>t instanceof s.YKP?(0,a.of)(t):(0,o.D)(this.compiler.compileModuleAsync(t))))}}class pn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new gn,this.attachRef=null}}class gn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new pn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class mn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function fn(t){throw t}function _n(t,e,n){return e.parse("/")}function bn(t,e){return(0,a.of)(null)}const vn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},yn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let wn=(()=>{class t{constructor(t,e,n,i,r,o,a,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new m.xQ,this.errorHandler=fn,this.malformedUriErrorHandler=_n,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:bn,afterPreactivation:bn},this.urlHandlingStrategy=new mn,this.routeReuseStrategy=new un,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=r.get(s.h0i),this.console=r.get(s.c2e);const u=r.get(s.R0b);this.isNgZoneEnabled=u instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new At(new Et([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new dn(o,a,t=>this.triggerEvent(new et(t)),t=>this.triggerEvent(new nt(t))),this.routerState=Wt(this.currentUrlTree,this.rootComponentType),this.transitions=new l.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const e=this.events;return t.pipe((0,y.h)(t=>0!==t.id),(0,Z.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,R.w)(t=>{let n=!1,i=!1;return(0,a.of)(t).pipe((0,B.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,R.w)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,a.of)(t).pipe((0,R.w)(t=>{const n=this.transitions.getValue();return e.next(new V(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?p.E:Promise.resolve(t)}),(i=this.ngModule.injector,s=this.configLoader,r=this.urlSerializer,o=this.config,(0,R.w)(t=>function(t,e,n,i,s){return new Ye(t,e,n,i,s).apply()}(i,s,r,t.extractedUrl,o).pipe((0,Z.U)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),(0,B.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,s){return(0,q.zg)(r=>function(t,e,n,i,s="emptyOnly",r="legacy"){try{const o=new en(t,e,n,i,s,r).recognize();return null===o?tn(new Xe):(0,a.of)(o)}catch(o){return tn(o)}}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),i,s).pipe((0,Z.U)(t=>Object.assign(Object.assign({},r),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,B.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new Q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,s,r,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,l=new V(n,this.serializeUrl(i),s,r);e.next(l);const c=Wt(i,this.rootComponentType).snapshot;return(0,a.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.E}),cn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),(0,B.b)(t=>{const e=new W(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,Z.U)(t=>Object.assign(Object.assign({},t),{guards:Je(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,q.zg)(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:l}}=n;return 0===l.length&&0===r.length?(0,a.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return(0,o.D)(t).pipe((0,q.zg)(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return(0,a.of)(!0);const o=r.map(r=>{const o=Qe(r,e,s);let a;if(function(t){return t&&Ce(t.canDeactivate)}(o))a=bt(o.canDeactivate(t,e,n,i));else{if(!Ce(o))throw new Error("Invalid CanDeactivate guard");a=bt(o(t,e,n,i))}return a.pipe(M())});return(0,a.of)(o).pipe(Ee())}(t.component,t.route,n,e,i)),M(t=>!0!==t,!0))}(l,i,s,t).pipe((0,q.zg)(n=>n&&"boolean"==typeof n?function(t,e,n,i){return(0,o.D)(e).pipe((0,U.b)(e=>(0,h.z)(function(t,e){return null!==t&&e&&e(new it(t)),(0,a.of)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new rt(t)),(0,a.of)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>(0,d.P)(()=>{const s=e.guards.map(s=>{const r=Qe(s,e.node,n);let o;if(function(t){return t&&Ce(t.canActivateChild)}(r))o=bt(r.canActivateChild(i,t));else{if(!Ce(r))throw new Error("Invalid CanActivateChild guard");o=bt(r(i,t))}return o.pipe(M())});return(0,a.of)(s).pipe(Ee())}));return(0,a.of)(s).pipe(Ee())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return(0,a.of)(!0);const s=i.map(i=>(0,d.P)(()=>{const s=Qe(i,e,n);let r;if(function(t){return t&&Ce(t.canActivate)}(s))r=bt(s.canActivate(e,t));else{if(!Ce(s))throw new Error("Invalid CanActivate guard");r=bt(s(e,t))}return r.pipe(M())}));return(0,a.of)(s).pipe(Ee())}(t,e.route,n))),M(t=>!0!==t,!0))}(i,r,t,e):(0,a.of)(n)),(0,Z.U)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,B.b)(t=>{if(ke(t.guardsResult)){const e=ht(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new K(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,y.h)(t=>!!t.guardsResult||(this.cancelNavigationTransitionRestoreHistory(t,""),!1)),cn(t=>{if(t.guards.canActivateChecks.length)return(0,a.of)(t).pipe((0,B.b)(t=>{const e=new X(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,R.w)(t=>{let e=!1;return(0,a.of)(t).pipe((n=this.paramsInheritanceStrategy,i=this.ngModule.injector,(0,q.zg)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return(0,a.of)(t);let r=0;return(0,o.D)(s).pipe((0,U.b)(t=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return(0,a.of)({});const r={};return(0,o.D)(s).pipe((0,q.zg)(s=>function(t,e,n,i){const s=Qe(t,e,i);return bt(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe((0,B.b)(t=>{r[s]=t}))),x(1),(0,q.zg)(()=>Object.keys(r).length===s.length?(0,a.of)(r):p.E))}(t._resolve,t,e,i).pipe((0,Z.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Xt(t,n).resolve),null)))}(t.route,e,n,i)),(0,B.b)(()=>r++),x(1),(0,q.zg)(e=>r===s.length?(0,a.of)(t):p.E))})),(0,B.b)({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransitionRestoreHistory(t,"At least one route resolver didn't emit any value.")}}));var n,i}),(0,B.b)(t=>{const e=new tt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),cn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),(0,Z.U)(t=>{const e=function(t,e,n){const i=oe(t,e._root,n?n._root:void 0);return new Qt(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,B.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,r=this.routeReuseStrategy,l=t=>this.triggerEvent(t),(0,Z.U)(t=>(new ye(r,t.targetRouterState,t.currentRouterState,l).activate(s),t))),(0,B.b)({next(){n=!0},complete(){n=!0}}),(0,z.x)(()=>{if(!n&&!i){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?this.cancelNavigationTransitionRestoreHistory(t,e):this.cancelNavigationTransition(t,e)}this.currentNavigation=null}),(0,N.K)(n=>{if(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=ke(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new G(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new J(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var s;return p.E}));var s,r,l}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(i,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Te(t),this.config=t.map(Pe),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,s){if(0===n.length)return ue(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new de(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return _t(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new de(n,e,i)}(n);if(r.toRoot())return ue(e.root,new Et([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new pe(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new pe(t,t===e.root,0)}const i=le(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new pe(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?me(o.segmentGroup,o.index,r.commands):ge(o.segmentGroup,o.index,r.commands);return ue(o.segmentGroup,a,e,i,s)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=ke(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){let n;if(n=!0===e?Object.assign({},vn):!1===e?Object.assign({},yn):e,ke(t))return wt(this.currentUrlTree,t,n);const i=this.parseUrl(t);return wt(this.currentUrlTree,i,n)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new H(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){var r,o;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),l="imperative"!==e&&"imperative"===(null==a?void 0:a.source),c=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(l&&c)return Promise.resolve(!0);let u,h,d;s?(u=s.resolve,h=s.reject,d=s.promise):d=new Promise((t,e)=>{u=t,h=e});const p=++this.navigationId;let g;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),g=n&&n.\u0275routerPageId?n.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(r=this.browserPageId)&&void 0!==r?r:0:(null!==(o=this.browserPageId)&&void 0!==o?o:0)+1):g=0,this.setTransition({id:p,targetPageId:g,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:u,reject:h,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransitionRestoreHistory(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree(),this.cancelNavigationTransition(t,e)}cancelNavigationTransition(t,e){const n=new G(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG(Ot),s.LFG(gn),s.LFG(i.Ye),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),xn=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new m.xQ,null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:kn(this.skipLocationChange),replaceUrl:kn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:kn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(wn),s.Y36(Kt),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})(),Cn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new m.xQ,this.subscription=t.events.subscribe(t=>{t instanceof H&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,s){if(0!==t||e||n||i||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:kn(this.skipLocationChange),replaceUrl:kn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:kn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(wn),s.Y36(Kt),s.Y36(i.S$))},t.\u0275dir=s.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Ikx("href",e.href,s.LSH),s.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})();function kn(t){return""===t||!!t}let An=(()=>{class t{constructor(t,e,n,i,s,r){this.router=t,this.element=e,this.renderer=n,this.cdr=i,this.link=s,this.linkWithHref=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof H&&this.update()})}ngAfterContentInit(){(0,a.of)(this.links.changes,this.linksWithHrefs.changes,(0,a.of)(null)).pipe((0,$.J)()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=(0,o.D)(e).pipe((0,$.J)()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){const e="paths"in this.routerLinkActiveOptions?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return n=>t.isActive(n.urlTree,e)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(wn),s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(s.sBO),s.Y36(xn,8),s.Y36(Cn,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,xn,5),s.Suo(n,Cn,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.links=t),s.iGM(t=s.CRH())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[s.TTD]}),t})(),En=(()=>{class t{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=i||lt,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new Sn(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(gn),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Sn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Kt?this.route:t===gn?this.childContexts:this.parent.get(t,e)}}class Tn{}class On{preload(t,e){return(0,a.of)(null)}}let In=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new dn(e,n,e=>t.triggerEvent(new et(e)),e=>t.triggerEvent(new nt(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,y.h)(t=>t instanceof H),(0,U.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return(0,o.D)(n).pipe((0,$.J)(),(0,Z.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,a.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,q.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(wn),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(Tn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Pn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof V?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof H&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof at&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new at(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(wn),s.LFG(i.EM),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Dn=new s.OlP("ROUTER_CONFIGURATION"),Fn=new s.OlP("ROUTER_FORROOT_GUARD"),Mn=[i.Ye,{provide:Ot,useClass:It},{provide:wn,useFactory:function(t,e,n,i,s,r,o,a={},l,c){const u=new wn(null,t,e,n,i,s,r,mt(o));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[Ot,gn,i.Ye,s.zs3,s.v3s,s.Sil,hn,Dn,[class{},new s.FiY],[class{},new s.FiY]]},gn,{provide:Kt,useFactory:function(t){return t.routerState.root},deps:[wn]},{provide:s.v3s,useClass:s.EAV},In,On,class{preload(t,e){return e().pipe((0,N.K)(()=>(0,a.of)(null)))}},{provide:Dn,useValue:{enableTracing:!1}}];function Zn(){return new s.PXZ("Router",wn)}let Rn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Mn,qn(e),{provide:Fn,useFactory:Un,deps:[[wn,new s.FiY,new s.tp0]]},{provide:Dn,useValue:n||{}},{provide:i.S$,useFactory:Nn,deps:[i.lw,[new s.tBr(i.mr),new s.FiY],Dn]},{provide:Pn,useFactory:Ln,deps:[wn,i.EM,Dn]},{provide:Tn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:On},{provide:s.PXZ,multi:!0,useFactory:Zn},[Bn,{provide:s.ip1,multi:!0,useFactory:jn,deps:[Bn]},{provide:$n,useFactory:zn,deps:[Bn]},{provide:s.tb,multi:!0,useExisting:$n}]]}}static forChild(e){return{ngModule:t,providers:[qn(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Fn,8),s.LFG(wn,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function Ln(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Pn(t,e,n)}function Nn(t,e,n={}){return n.useHash?new i.Do(t,e):new i.b0(t,e)}function Un(t){return"guarded"}function qn(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:hn,multi:!0,useValue:t}]}let Bn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new m.xQ}appInitializer(){return this.injector.get(i.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise(e=>t=e),n=this.injector.get(wn),i=this.injector.get(Dn);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?(0,a.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Dn),n=this.injector.get(In),i=this.injector.get(Pn),r=this.injector.get(wn),o=this.injector.get(s.z2F);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function jn(t){return t.appInitializer.bind(t)}function zn(t){return t.bootstrapListener.bind(t)}const $n=new s.OlP("Router Initializer")},6967:(t,e,n)=>{"use strict";var i=n(5311),s={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,e){var n,r,o,a,l,c,u=!1;e||(e={}),n=e.debug||!1;try{if(o=i(),a=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=t,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(i){i.stopPropagation(),e.format&&(i.preventDefault(),void 0===i.clipboardData?(n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData(),window.clipboardData.setData(s[e.format]||s.default,t)):(i.clipboardData.clearData(),i.clipboardData.setData(e.format,t))),e.onCopy&&(i.preventDefault(),e.onCopy(i.clipboardData))}),document.body.appendChild(c),a.selectNodeContents(c),l.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(h){n&&console.error("unable to copy using execCommand: ",h),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),u=!0}catch(h){n&&console.error("unable to copy using clipboardData: ",h),n&&console.error("falling back to prompt"),r=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in e?e.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,t)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(a):l.removeAllRanges()),c&&document.body.removeChild(c),o()}return u}},9225:t=>{"use strict";var e=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===n}(t)}(t)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(t,e){return!1!==e.clone&&e.isMergeableObject(t)?a(Array.isArray(t)?[]:{},t,e):t}function s(t,e,n){return t.concat(e).map(function(t){return i(t,n)})}function r(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]}(t))}function o(t,e){try{return e in t}catch(n){return!1}}function a(t,n,l){(l=l||{}).arrayMerge=l.arrayMerge||s,l.isMergeableObject=l.isMergeableObject||e,l.cloneUnlessOtherwiseSpecified=i;var c=Array.isArray(n);return c===Array.isArray(t)?c?l.arrayMerge(t,n,l):function(t,e,n){var s={};return n.isMergeableObject(t)&&r(t).forEach(function(e){s[e]=i(t[e],n)}),r(e).forEach(function(r){(function(t,e){return o(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(s[r]=o(t,r)&&n.isMergeableObject(e[r])?function(t,e){if(!e.customMerge)return a;var n=e.customMerge(t);return"function"==typeof n?n:a}(r,n)(t[r],e[r],n):i(e[r],n))}),s}(t,n,l):i(n,l)}a.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,n){return a(t,n,e)},{})},t.exports=a},970:t=>{"use strict";function e(t,e){var n,i;if("function"==typeof e)void 0!==(i=e(t))&&(t=i);else if(Array.isArray(e))for(n=0;n<e.length;n++)void 0!==(i=e[n](t))&&(t=i);return t}function n(t,e){return"-"===t[0]&&Array.isArray(e)&&/^-\d+$/.test(t)?e.length+parseInt(t,10):t}function i(t){return"[object Object]"===Object.prototype.toString.call(t)}function s(t){return Object(t)===t}function r(t){return 0===Object.keys(t).length}var o=["__proto__","prototype","constructor"],a=function(t){return-1===o.indexOf(t)};function l(t,e){t.indexOf("[")>=0&&(t=t.replace(/\[/g,e).replace(/]/g,""));var n=t.split(e);if(n.filter(a).length!==n.length)throw Error("Refusing to update blacklisted property "+t);return n}var c=Object.prototype.hasOwnProperty;function u(t,e,n,i){if(!(this instanceof u))return new u(t,e,n,i);void 0===e&&(e=!1),void 0===n&&(n=!0),void 0===i&&(i=!0),this.separator=t||".",this.override=e,this.useArray=n,this.useBrackets=i,this.keepArray=!1,this.cleanup=[]}var h=new u(".",!1,!0,!0);function d(t){return function(){return h[t].apply(h,arguments)}}u.prototype._fill=function(t,n,i,o){var a=t.shift();if(t.length>0){if(n[a]=n[a]||(this.useArray&&function(t){return/^\d+$/.test(t)}(t[0])?[]:{}),!s(n[a])){if(!this.override){if(!s(i)||!r(i))throw new Error("Trying to redefine `"+a+"` which is a "+typeof n[a]);return}n[a]={}}this._fill(t,n[a],i,o)}else{if(!this.override&&s(n[a])&&!r(n[a])){if(!s(i)||!r(i))throw new Error("Trying to redefine non-empty obj['"+a+"']");return}n[a]=e(i,o)}},u.prototype.object=function(t,n){var i=this;return Object.keys(t).forEach(function(s){var r=void 0===n?null:n[s],o=l(s,i.separator).join(i.separator);-1!==o.indexOf(i.separator)?(i._fill(o.split(i.separator),t,t[s],r),delete t[s]):t[s]=e(t[s],r)}),t},u.prototype.str=function(t,n,i,s){var r=l(t,this.separator).join(this.separator);return-1!==t.indexOf(this.separator)?this._fill(r.split(this.separator),i,n,s):i[t]=e(n,s),i},u.prototype.pick=function(t,e,i,s){var r,o,a,c,u;for(o=l(t,this.separator),r=0;r<o.length;r++){if(c=n(o[r],e),!e||"object"!=typeof e||!(c in e))return;if(r===o.length-1)return i?(a=e[c],s&&Array.isArray(e)?e.splice(c,1):delete e[c],Array.isArray(e)&&(u=o.slice(0,-1).join("."),-1===this.cleanup.indexOf(u)&&this.cleanup.push(u)),a):e[c];e=e[c]}return i&&Array.isArray(e)&&(e=e.filter(function(t){return void 0!==t})),e},u.prototype.delete=function(t,e){return this.remove(t,e,!0)},u.prototype.remove=function(t,e,n){var i;if(this.cleanup=[],Array.isArray(t)){for(i=0;i<t.length;i++)this.pick(t[i],e,!0,n);return n||this._cleanup(e),e}return this.pick(t,e,!0,n)},u.prototype._cleanup=function(t){var e,n,i,s;if(this.cleanup.length){for(n=0;n<this.cleanup.length;n++)e=(e=(s=(i=this.cleanup[n].split(".")).splice(0,-1).join("."))?this.pick(s,t):t)[i[0]].filter(function(t){return void 0!==t}),this.set(this.cleanup[n],e,t);this.cleanup=[]}},u.prototype.del=u.prototype.remove,u.prototype.move=function(t,n,i,s,r){return"function"==typeof s||Array.isArray(s)?this.set(n,e(this.pick(t,i,!0),s),i,r):(r=s,this.set(n,this.pick(t,i,!0),i,r)),i},u.prototype.transfer=function(t,n,i,s,r,o){return"function"==typeof r||Array.isArray(r)?this.set(n,e(this.pick(t,i,!0),r),s,o):(o=r,this.set(n,this.pick(t,i,!0),s,o)),s},u.prototype.copy=function(t,n,i,s,r,o){return"function"==typeof r||Array.isArray(r)?this.set(n,e(JSON.parse(JSON.stringify(this.pick(t,i,!1))),r),s,o):(o=r,this.set(n,this.pick(t,i,!1),s,o)),s},u.prototype.set=function(t,e,n,s){var r,o,a,u;if(void 0===e)return n;for(a=l(t,this.separator),r=0;r<a.length;r++){if(u=a[r],r===a.length-1)if(s&&i(e)&&i(n[u]))for(o in e)c.call(e,o)&&(n[u][o]=e[o]);else if(s&&Array.isArray(n[u])&&Array.isArray(e))for(var h=0;h<e.length;h++)n[a[r]].push(e[h]);else n[u]=e;else c.call(n,u)&&(i(n[u])||Array.isArray(n[u]))||(n[u]=/^\d+$/.test(a[r+1])?[]:{});n=n[u]}return n},u.prototype.transform=function(t,e,n){return e=e||{},n=n||{},Object.keys(t).forEach((function(i){this.set(t[i],this.pick(i,e),n)}).bind(this)),n},u.prototype.dot=function(t,e,n){e=e||{},n=n||[];var o=Array.isArray(t);return Object.keys(t).forEach((function(a){var l=o&&this.useBrackets?"["+a+"]":a;if(s(t[a])&&(i(t[a])&&!r(t[a])||Array.isArray(t[a])&&!this.keepArray&&0!==t[a].length)){if(o&&this.useBrackets){var c=n[n.length-1]||"";return this.dot(t[a],e,n.slice(0,-1).concat(c+l))}return this.dot(t[a],e,n.concat(l))}o&&this.useBrackets?e[n.join(this.separator).concat("["+a+"]")]=t[a]:e[n.concat(l).join(this.separator)]=t[a]}).bind(this)),e},u.pick=d("pick"),u.move=d("move"),u.transfer=d("transfer"),u.transform=d("transform"),u.copy=d("copy"),u.object=d("object"),u.str=d("str"),u.set=d("set"),u.delete=d("delete"),u.del=u.remove=d("remove"),u.dot=d("dot"),["override","overwrite"].forEach(function(t){Object.defineProperty(u,t,{get:function(){return h.override},set:function(t){h.override=!!t}})}),["useArray","keepArray","useBrackets"].forEach(function(t){Object.defineProperty(u,t,{get:function(){return h[t]},set:function(e){h[t]=e}})}),u._process=e,t.exports=u},1524:(t,e,n)=>{var i;!function(s,r,o,a){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],u=r.createElement("div"),h=Math.round,d=Math.abs,p=Date.now;function g(t,e,n){return setTimeout(w(t,n),e)}function m(t,e,n){return!!Array.isArray(t)&&(f(t,n[e],n),!0)}function f(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==a)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function _(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=s.console&&(s.console.warn||s.console.log);return r&&r.call(s.console,i,n),t.apply(this,arguments)}}l="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==a&&null!==i)for(var s in i)i.hasOwnProperty(s)&&(e[s]=i[s])}return e}:Object.assign;var b=_(function(t,e,n){for(var i=Object.keys(e),s=0;s<i.length;)(!n||n&&t[i[s]]===a)&&(t[i[s]]=e[i[s]]),s++;return t},"extend","Use `assign`."),v=_(function(t,e){return b(t,e,!0)},"merge","Use `assign`.");function y(t,e,n){var i,s=e.prototype;(i=t.prototype=Object.create(s)).constructor=t,i._super=s,n&&l(i,n)}function w(t,e){return function(){return t.apply(e,arguments)}}function x(t,e){return"function"==typeof t?t.apply(e&&e[0]||a,e):t}function C(t,e){return t===a?e:t}function k(t,e,n){f(T(e),function(e){t.addEventListener(e,n,!1)})}function A(t,e,n){f(T(e),function(e){t.removeEventListener(e,n,!1)})}function E(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function S(t,e){return t.indexOf(e)>-1}function T(t){return t.trim().split(/\s+/g)}function O(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function I(t){return Array.prototype.slice.call(t,0)}function P(t,e,n){for(var i=[],s=[],r=0;r<t.length;){var o=e?t[r][e]:t[r];O(s,o)<0&&i.push(t[r]),s[r]=o,r++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function D(t,e){for(var n,i,s=e[0].toUpperCase()+e.slice(1),r=0;r<c.length;){if((i=(n=c[r])?n+s:e)in t)return i;r++}return a}var F=1;function M(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||s}var Z="ontouchstart"in s,R=D(s,"PointerEvent")!==a,L=Z&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),N="touch",U="mouse",q=["x","y"],B=["clientX","clientY"];function j(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){x(t.options.enable,[t])&&n.handler(e)},this.init()}function z(t,e,n){var i=n.pointers.length,s=n.changedPointers.length,r=1&e&&i-s==0,o=12&e&&i-s==0;n.isFirst=!!r,n.isFinal=!!o,r&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,s=i.length;n.firstInput||(n.firstInput=$(e)),s>1&&!n.firstMultiple?n.firstMultiple=$(e):1===s&&(n.firstMultiple=!1);var r=n.firstInput,o=n.firstMultiple,l=o?o.center:r.center,c=e.center=Y(i);e.timeStamp=p(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=J(l,c),e.distance=G(l,c),function(t,e){var n=e.center,i=t.offsetDelta||{},s=t.prevDelta||{},r=t.prevInput||{};1!==e.eventType&&4!==r.eventType||(s=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=s.x+(n.x-i.x),e.deltaY=s.y+(n.y-i.y)}(n,e),e.offsetDirection=H(e.deltaX,e.deltaY);var u,h,g=V(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=g.x,e.overallVelocityY=g.y,e.overallVelocity=d(g.x)>d(g.y)?g.x:g.y,e.scale=o?(u=o.pointers,G((h=i)[0],h[1],B)/G(u[0],u[1],B)):1,e.rotation=o?function(t,e){return J(e[1],e[0],B)+J(t[1],t[0],B)}(o.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,s,r,o=t.lastInterval||e,l=e.timeStamp-o.timeStamp;if(8!=e.eventType&&(l>25||o.velocity===a)){var c=e.deltaX-o.deltaX,u=e.deltaY-o.deltaY,h=V(l,c,u);i=h.x,s=h.y,n=d(h.x)>d(h.y)?h.x:h.y,r=H(c,u),t.lastInterval=e}else n=o.velocity,i=o.velocityX,s=o.velocityY,r=o.direction;e.velocity=n,e.velocityX=i,e.velocityY=s,e.direction=r}(n,e);var m=t.element;E(e.srcEvent.target,m)&&(m=e.srcEvent.target),e.target=m}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function $(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:e,center:Y(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Y(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,i=0,s=0;s<e;)n+=t[s].clientX,i+=t[s].clientY,s++;return{x:h(n/e),y:h(i/e)}}function V(t,e,n){return{x:e/t||0,y:n/t||0}}function H(t,e){return t===e?1:d(t)>=d(e)?t<0?2:4:e<0?8:16}function G(t,e,n){n||(n=q);var i=e[n[0]]-t[n[0]],s=e[n[1]]-t[n[1]];return Math.sqrt(i*i+s*s)}function J(t,e,n){return n||(n=q),180*Math.atan2(e[n[1]]-t[n[1]],e[n[0]]-t[n[0]])/Math.PI}j.prototype={handler:function(){},init:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(M(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(M(this.element),this.evWin,this.domHandler)}};var Q={mousedown:1,mousemove:2,mouseup:4},W="mousedown",K="mousemove mouseup";function X(){this.evEl=W,this.evWin=K,this.pressed=!1,j.apply(this,arguments)}y(X,j,{handler:function(t){var e=Q[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:U,srcEvent:t}))}});var tt={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},et={2:N,3:"pen",4:U,5:"kinect"},nt="pointerdown",it="pointermove pointerup pointercancel";function st(){this.evEl=nt,this.evWin=it,j.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}s.MSPointerEvent&&!s.PointerEvent&&(nt="MSPointerDown",it="MSPointerMove MSPointerUp MSPointerCancel"),y(st,j,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),s=tt[i],r=et[t.pointerType]||t.pointerType,o=r==N,a=O(e,t.pointerId,"pointerId");1&s&&(0===t.button||o)?a<0&&(e.push(t),a=e.length-1):12&s&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,s,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),n&&e.splice(a,1))}});var rt={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ot="touchstart",at="touchstart touchmove touchend touchcancel";function lt(){this.evTarget=ot,this.evWin=at,this.started=!1,j.apply(this,arguments)}function ct(t,e){var n=I(t.touches),i=I(t.changedTouches);return 12&e&&(n=P(n.concat(i),"identifier",!0)),[n,i]}y(lt,j,{handler:function(t){var e=rt[t.type];if(1===e&&(this.started=!0),this.started){var n=ct.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:t})}}});var ut={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ht="touchstart touchmove touchend touchcancel";function dt(){this.evTarget=ht,this.targetIds={},j.apply(this,arguments)}function pt(t,e){var n=I(t.touches),i=this.targetIds;if(3&e&&1===n.length)return i[n[0].identifier]=!0,[n,n];var s,r,o=I(t.changedTouches),a=[],l=this.target;if(r=n.filter(function(t){return E(t.target,l)}),1===e)for(s=0;s<r.length;)i[r[s].identifier]=!0,s++;for(s=0;s<o.length;)i[o[s].identifier]&&a.push(o[s]),12&e&&delete i[o[s].identifier],s++;return a.length?[P(r.concat(a),"identifier",!0),a]:void 0}function gt(){j.apply(this,arguments);var t=w(this.handler,this);this.touch=new dt(this.manager,t),this.mouse=new X(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function mt(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,ft.call(this,e)):12&t&&ft.call(this,e)}function ft(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout(function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)},2500)}}function _t(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var s=this.lastTouches[i],r=Math.abs(e-s.x),o=Math.abs(n-s.y);if(r<=25&&o<=25)return!0}return!1}y(dt,j,{handler:function(t){var e=ut[t.type],n=pt.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:t})}}),y(gt,j,{handler:function(t,e,n){var i=n.pointerType==U;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(n.pointerType==N)mt.call(this,e,n);else if(i&&_t.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var bt=D(u.style,"touchAction"),vt=bt!==a,yt="compute",wt="auto",xt="manipulation",Ct="none",kt="pan-x",At="pan-y",Et=function(){if(!vt)return!1;var t={},e=s.CSS&&s.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){t[n]=!e||s.CSS.supports("touch-action",n)}),t}();function St(t,e){this.manager=t,this.set(e)}St.prototype={set:function(t){t==yt&&(t=this.compute()),vt&&this.manager.element.style&&Et[t]&&(this.manager.element.style[bt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return f(this.manager.recognizers,function(e){x(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(S(t,Ct))return Ct;var e=S(t,kt),n=S(t,At);return e&&n?Ct:e||n?e?kt:At:S(t,xt)?xt:wt}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,s=S(i,Ct)&&!Et.none,r=S(i,At)&&!Et["pan-y"],o=S(i,kt)&&!Et["pan-x"];if(s&&1===t.pointers.length&&t.distance<2&&t.deltaTime<250)return;if(!o||!r)return s||r&&6&n||o&&24&n?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Tt=32;function Ot(t){this.options=l({},this.defaults,t||{}),this.id=F++,this.manager=null,this.options.enable=C(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function It(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function Pt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function Dt(t,e){var n=e.manager;return n?n.get(t):t}function Ft(){Ot.apply(this,arguments)}function Mt(){Ft.apply(this,arguments),this.pX=null,this.pY=null}function Zt(){Ft.apply(this,arguments)}function Rt(){Ot.apply(this,arguments),this._timer=null,this._input=null}function Lt(){Ft.apply(this,arguments)}function Nt(){Ft.apply(this,arguments)}function Ut(){Ot.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function qt(t,e){return(e=e||{}).recognizers=C(e.recognizers,qt.defaults.preset),new Bt(t,e)}function Bt(t,e){this.options=l({},qt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new(this.options.inputClass||(R?st:L?dt:Z?gt:X))(this,z),this.touchAction=new St(this,this.options.touchAction),jt(this,!0),f(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function jt(t,e){var n,i=t.element;i.style&&(f(t.options.cssProps,function(s,r){n=D(i.style,r),e?(t.oldCssProps[n]=i.style[n],i.style[n]=s):i.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}Ot.prototype={defaults:{},set:function(t){return l(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(m(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Dt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return m(t,"dropRecognizeWith",this)||(t=Dt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(m(t,"requireFailure",this))return this;var e=this.requireFail;return-1===O(e,t=Dt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(m(t,"dropRequireFailure",this))return this;t=Dt(t,this);var e=O(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+It(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+It(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=Tt},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=l({},t);if(!x(this.options.enable,[this,e]))return this.reset(),void(this.state=Tt);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},y(Ft,Ot,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=6&e,s=this.attrTest(t);return i&&(8&n||!s)?16|e:i||s?4&n?8|e:2&e?4|e:2:Tt}}),y(Mt,Ft,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(At),24&t&&e.push(kt),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,s=t.direction,r=t.deltaX,o=t.deltaY;return s&e.direction||(6&e.direction?(s=0===r?1:r<0?2:4,n=r!=this.pX,i=Math.abs(t.deltaX)):(s=0===o?1:o<0?8:16,n=o!=this.pY,i=Math.abs(t.deltaY))),t.direction=s,n&&i>e.threshold&&s&e.direction},attrTest:function(t){return Ft.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Pt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),y(Zt,Ft,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ct]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(t.scale<1?"in":"out")),this._super.emit.call(this,t)}}),y(Rt,Ot,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[wt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,s=t.deltaTime>e.time;if(this._input=t,!i||!n||12&t.eventType&&!s)this.reset();else if(1&t.eventType)this.reset(),this._timer=g(function(){this.state=8,this.tryEmit()},e.time,this);else if(4&t.eventType)return 8;return Tt},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),y(Lt,Ft,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ct]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),y(Nt,Ft,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Mt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&d(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=Pt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),y(Ut,Ot,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[xt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,s=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&s&&n){if(4!=t.eventType)return this.failTimeout();var r=!this.pTime||t.timeStamp-this.pTime<e.interval,o=!this.pCenter||G(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,o&&r?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=g(function(){this.state=8,this.tryEmit()},e.interval,this),2):8}return Tt},failTimeout:function(){return this._timer=g(function(){this.state=Tt},this.options.interval,this),Tt},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),qt.VERSION="2.0.7",qt.defaults={domEvents:!1,touchAction:yt,enable:!0,inputTarget:null,inputClass:null,preset:[[Lt,{enable:!1}],[Zt,{enable:!1},["rotate"]],[Nt,{direction:6}],[Mt,{direction:6},["swipe"]],[Ut],[Ut,{event:"doubletap",taps:2},["tap"]],[Rt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Bt.prototype={set:function(t){return l(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,s=e.curRecognizer;(!s||s&&8&s.state)&&(s=e.curRecognizer=null);for(var r=0;r<i.length;)n=i[r],2===e.stopped||s&&n!=s&&!n.canRecognizeWith(s)?n.reset():n.recognize(t),!s&&14&n.state&&(s=e.curRecognizer=n),r++}},get:function(t){if(t instanceof Ot)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(m(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(m(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=O(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var n=this.handlers;return f(T(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==a){var n=this.handlers;return f(T(t),function(t){e?n[t]&&n[t].splice(O(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=r.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&jt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(qt,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Tt,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Bt,Input:j,TouchAction:St,TouchInput:dt,MouseInput:X,PointerEventInput:st,TouchMouseInput:gt,SingleTouchInput:lt,Recognizer:Ot,AttrRecognizer:Ft,Tap:Ut,Pan:Mt,Swipe:Nt,Pinch:Zt,Rotate:Lt,Press:Rt,on:k,off:A,each:f,merge:v,extend:b,assign:l,inherit:y,bindFn:w,prefixed:D}),(void 0!==s?s:"undefined"!=typeof self?self:{}).Hammer=qt,(i=(function(){return qt}).call(e,n,e,t))===a||(t.exports=i)}(window,document)},4714:()=>{Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},7119:()=>{!function(t){function e(t,e){return"___"+t.toUpperCase()+e+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,i,s,r){if(n.language===i){var o=n.tokenStack=[];n.code=n.code.replace(s,function(t){if("function"==typeof r&&!r(t))return t;for(var s,a=o.length;-1!==n.code.indexOf(s=e(i,a));)++a;return o[a]=t,s}),n.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(n,i){if(n.language===i&&n.tokenStack){n.grammar=t.languages[i];var s=0,r=Object.keys(n.tokenStack);!function o(a){for(var l=0;l<a.length&&!(s>=r.length);l++){var c=a[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=r[s],h=n.tokenStack[u],d="string"==typeof c?c:c.content,p=e(i,u),g=d.indexOf(p);if(g>-1){++s;var m=d.substring(0,g),f=new t.Token(i,t.tokenize(h,n.grammar),"language-"+i,h),_=d.substring(g+p.length),b=[];m&&b.push.apply(b,o([m])),b.push(f),_&&b.push.apply(b,o([_])),"string"==typeof c?a.splice.apply(a,[l,1].concat(b)):c.content=b}}else c.content&&o(c.content)}return a}(n.tokens)}}}})}(Prism)},1011:()=>{Prism.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/,name:/[^\s<>'"]+/}},cdata:/<!\[CDATA\[[\s\S]*?\]\]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};i["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var s={};s[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},1209:()=>{!function(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,r=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:s,punctuation:r};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},a=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];t.languages.insertBefore("php","variable",{string:a,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:a,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:i,operator:s,punctuation:r}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(e){/<\?/.test(e.code)&&t.languages["markup-templating"].buildPlaceholders(e,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),t.hooks.add("after-tokenize",function(e){t.languages["markup-templating"].tokenizePlaceholders(e,"php")})}(Prism)},8556:()=>{!function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)(?!\s*[^\s_${}*a-zA-Z\xA0-\uFFFF])/),delete t.languages.typescript.parameter;var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism)},4278:t=>{var e=function(t){var e=/\blang(?:uage)?-([\w-]+)\b/i,n=0,i={},s={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof r?new r(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++n}),t.__id},clone:function t(e,n){var i,r;switch(n=n||{},s.util.type(e)){case"Object":if(r=s.util.objId(e),n[r])return n[r];for(var o in n[r]=i={},e)e.hasOwnProperty(o)&&(i[o]=t(e[o],n));return i;case"Array":return r=s.util.objId(e),n[r]?n[r]:(n[r]=i=[],e.forEach(function(e,s){i[s]=t(e,n)}),i);default:return e}},getLanguage:function(t){for(;t&&!e.test(t.className);)t=t.parentElement;return t?(t.className.match(e)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(i){var t=(/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(i.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var n in e)if(e[n].src==t)return e[n]}return null}},isActive:function(t,e,n){for(var i="no-"+e;t;){var s=t.classList;if(s.contains(e))return!0;if(s.contains(i))return!1;t=t.parentElement}return!!n}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(t,e){var n=s.util.clone(s.languages[t]);for(var i in e)n[i]=e[i];return n},insertBefore:function(t,e,n,i){var r=(i=i||s.languages)[t],o={};for(var a in r)if(r.hasOwnProperty(a)){if(a==e)for(var l in n)n.hasOwnProperty(l)&&(o[l]=n[l]);n.hasOwnProperty(a)||(o[a]=r[a])}var c=i[t];return i[t]=o,s.languages.DFS(s.languages,function(e,n){n===c&&e!=t&&(this[e]=o)}),o},DFS:function t(e,n,i,r){r=r||{};var o=s.util.objId;for(var a in e)if(e.hasOwnProperty(a)){n.call(e,a,e[a],i||a);var l=e[a],c=s.util.type(l);"Object"!==c||r[o(l)]?"Array"!==c||r[o(l)]||(r[o(l)]=!0,t(l,n,a,r)):(r[o(l)]=!0,t(l,n,null,r))}}},plugins:{},highlightAll:function(t,e){s.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,n){var i={callback:n,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",i),i.elements=Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)),s.hooks.run("before-all-elements-highlight",i);for(var r,o=0;r=i.elements[o++];)s.highlightElement(r,!0===e,i.callback)},highlightElement:function(n,i,r){var o=s.util.getLanguage(n),a=s.languages[o];n.className=n.className.replace(e,"").replace(/\s+/g," ")+" language-"+o;var l=n.parentElement;l&&"pre"===l.nodeName.toLowerCase()&&(l.className=l.className.replace(e,"").replace(/\s+/g," ")+" language-"+o);var c={element:n,language:o,grammar:a,code:n.textContent};function u(t){c.highlightedCode=t,s.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,s.hooks.run("after-highlight",c),s.hooks.run("complete",c),r&&r.call(c.element)}if(s.hooks.run("before-sanity-check",c),(l=c.element.parentElement)&&"pre"===l.nodeName.toLowerCase()&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!c.code)return s.hooks.run("complete",c),void(r&&r.call(c.element));if(s.hooks.run("before-highlight",c),c.grammar)if(i&&t.Worker){var h=new Worker(s.filename);h.onmessage=function(t){u(t.data)},h.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else u(s.highlight(c.code,c.grammar,c.language));else u(s.util.encode(c.code))},highlight:function(t,e,n){var i={code:t,grammar:e,language:n};return s.hooks.run("before-tokenize",i),i.tokens=s.tokenize(i.code,i.grammar),s.hooks.run("after-tokenize",i),r.stringify(s.util.encode(i.tokens),i.language)},tokenize:function(t,e){var n=e.rest;if(n){for(var i in n)e[i]=n[i];delete e.rest}var s=new l;return c(s,s.head,t),a(t,s,e,s.head,0),function(t){for(var e=[],n=t.head.next;n!==t.tail;)e.push(n.value),n=n.next;return e}(s)},hooks:{all:{},add:function(t,e){var n=s.hooks.all;n[t]=n[t]||[],n[t].push(e)},run:function(t,e){var n=s.hooks.all[t];if(n&&n.length)for(var i,r=0;i=n[r++];)i(e)}},Token:r};function r(t,e,n,i){this.type=t,this.content=e,this.alias=n,this.length=0|(i||"").length}function o(t,e,n,i){t.lastIndex=e;var s=t.exec(n);if(s&&i&&s[1]){var r=s[1].length;s.index+=r,s[0]=s[0].slice(r)}return s}function a(t,e,n,i,l,h){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var g=0;g<p.length;++g){if(h&&h.cause==d+","+g)return;var m=p[g],f=m.inside,_=!!m.lookbehind,b=!!m.greedy,v=m.alias;if(b&&!m.pattern.global){var y=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,y+"g")}for(var w=m.pattern||m,x=i.next,C=l;x!==e.tail&&!(h&&C>=h.reach);C+=x.value.length,x=x.next){var k=x.value;if(e.length>t.length)return;if(!(k instanceof r)){var A,E=1;if(b){if(!(A=o(w,C,t,_)))break;var S=A.index,T=A.index+A[0].length,O=C;for(O+=x.value.length;S>=O;)O+=(x=x.next).value.length;if(C=O-=x.value.length,x.value instanceof r)continue;for(var I=x;I!==e.tail&&(O<T||"string"==typeof I.value);I=I.next)E++,O+=I.value.length;E--,k=t.slice(C,O),A.index-=C}else if(!(A=o(w,0,k,_)))continue;var P=A[0],D=k.slice(0,S=A.index),F=k.slice(S+P.length),M=C+k.length;h&&M>h.reach&&(h.reach=M);var Z=x.prev;if(D&&(Z=c(e,Z,D),C+=D.length),u(e,Z,E),x=c(e,Z,new r(d,f?s.tokenize(P,f):P,v,P)),F&&c(e,x,F),E>1){var R={cause:d+","+g,reach:M};a(t,e,n,x.prev,C,R),h&&R.reach>h.reach&&(h.reach=R.reach)}}}}}}function l(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function c(t,e,n){var i=e.next,s={value:n,prev:e,next:i};return e.next=s,i.prev=s,t.length++,s}function u(t,e,n){for(var i=e.next,s=0;s<n&&i!==t.tail;s++)i=i.next;e.next=i,i.prev=e,t.length-=s}if(t.Prism=s,r.stringify=function t(e,n){if("string"==typeof e)return e;if(Array.isArray(e)){var i="";return e.forEach(function(e){i+=t(e,n)}),i}var r={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},o=e.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(r.classes,o):r.classes.push(o)),s.hooks.run("wrap",r);var a="";for(var l in r.attributes)a+=" "+l+'="'+(r.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+a+">"+r.content+"</"+r.tag+">"},!t.document)return t.addEventListener?(s.disableWorkerMessageHandler||t.addEventListener("message",function(e){var n=JSON.parse(e.data),i=n.language,r=n.immediateClose;t.postMessage(s.highlight(n.code,s.languages[i],i)),r&&t.close()},!1),s):s;var h=s.util.currentScript();function d(){s.manual||s.highlightAll()}if(h&&(s.filename=h.src,h.hasAttribute("data-manual")&&(s.manual=!0)),!s.manual){var p=document.readyState;"loading"===p||"interactive"===p&&h&&h.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return s}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});t.exports&&(t.exports=e),"undefined"!=typeof global&&(global.Prism=e),e.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/,name:/[^\s<>'"]+/}},cdata:/<!\[CDATA\[[\s\S]*?\]\]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var i={};i["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};s["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var r={};r[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:s},e.languages.insertBefore("markup","cdata",r)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript,function(){if(void 0!==e&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var t={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",i='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',s=/\blang(?:uage)?-([\w-]+)\b/i;e.hooks.add("before-highlightall",function(t){t.selector+=", "+i}),e.hooks.add("before-sanity-check",function(s){var r=s.element;if(r.matches(i)){s.code="",r.setAttribute(n,"loading");var a=r.appendChild(document.createElement("CODE"));a.textContent="Loading\u2026";var l=r.getAttribute("data-src"),c=s.language;if("none"===c){var u=(/\.(\w+)$/.exec(l)||[,"none"])[1];c=t[u]||u}o(a,c),o(r,c);var h=e.plugins.autoloader;h&&h.loadLanguages(c);var d=new XMLHttpRequest;d.open("GET",l,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(r.setAttribute(n,"loaded"),a.textContent=d.responseText,e.highlightElement(a)):(r.setAttribute(n,"failed"),a.textContent=d.status>=400?"\u2716 Error "+d.status+" while fetching file: "+d.statusText:"\u2716 Error: File does not exist or is empty"))},d.send(null)}}),e.plugins.fileHighlight={highlight:function(t){for(var n,s=(t||document).querySelectorAll(i),r=0;n=s[r++];)e.highlightElement(n)}};var r=!1;e.fileHighlight=function(){r||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),r=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}}function o(t,e){var n=t.className;n=n.replace(s," ")+" language-"+e,t.className=n.replace(/\s+/g," ").trim()}}()},2330:t=>{function e(t){this.name="RavenConfigError",this.message=t}(e.prototype=new Error).constructor=e,t.exports=e},9680:(t,e,n)=>{var i=n(7792);t.exports={wrapMethod:function(t,e,n){var s=t[e],r=t;if(e in t){var o="warn"===e?"warning":e;t[e]=function(){var t=[].slice.call(arguments),a=i.safeJoin(t," "),l={level:o,logger:"console",extra:{arguments:t}};"assert"===e?!1===t[0]&&(a="Assertion failed: "+(i.safeJoin(t.slice(1)," ")||"console.assert"),l.extra.arguments=t.slice(1),n&&n(a,l)):n&&n(a,l),s&&Function.prototype.apply.call(s,r,t)}}}}},6351:(t,e,n)=>{var i=n(8527),s=n(2156),r=n(5113),o=n(2330),a=n(7792),l=a.isErrorEvent,c=a.isDOMError,u=a.isDOMException,h=a.isError,d=a.isObject,p=a.isPlainObject,g=a.isUndefined,m=a.isFunction,f=a.isString,_=a.isArray,b=a.isEmptyObject,v=a.each,y=a.objectMerge,w=a.truncate,x=a.objectFrozen,C=a.hasKey,k=a.joinRegExp,A=a.urlencode,E=a.uuid4,S=a.htmlTreeAsString,T=a.isSameException,O=a.isSameStacktrace,I=a.parseUrl,P=a.fill,D=a.supportsFetch,F=a.supportsReferrerPolicy,M=a.serializeKeysForMessage,Z=a.serializeException,R=a.sanitize,L=n(9680).wrapMethod,N="source protocol user pass host port path".split(" "),U=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;function q(){return+new Date}var B="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},j=B.document,z=B.navigator;function $(t,e){return m(e)?function(n){return e(n,t)}:e}function Y(){for(var t in this._hasJSON=!("object"!=typeof JSON||!JSON.stringify),this._hasDocument=!g(j),this._hasNavigator=!g(z),this._lastCapturedException=null,this._lastData=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={release:B.SENTRY_RELEASE&&B.SENTRY_RELEASE.id,logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],headers:null,collectWindowErrors:!0,captureUnhandledRejections:!0,maxMessageLength:0,maxUrlLength:250,stackTraceLimit:50,autoBreadcrumbs:!0,instrument:!0,sampleRate:1,sanitizeKeys:[]},this._fetchDefaults={method:"POST",referrerPolicy:F()?"origin":""},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=B.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=q(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._lastCapturedEvent=null,this._location=B.location,this._lastHref=this._location&&this._location.href,this._resetBackoff(),this._originalConsole)this._originalConsoleMethods[t]=this._originalConsole[t]}(Y.prototype={VERSION:"3.27.2",debug:!1,TraceKit:i,config:function(t,e){var n=this;if(n._globalServer)return this._logDebug("error","Error: Raven has already been configured"),n;if(!t)return n;var s=n._globalOptions;e&&v(e,function(t,e){"tags"===t||"extra"===t||"user"===t?n._globalContext[t]=e:s[t]=e}),n.setDSN(t),s.ignoreErrors.push(/^Script error\.?$/),s.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),s.ignoreErrors=k(s.ignoreErrors),s.ignoreUrls=!!s.ignoreUrls.length&&k(s.ignoreUrls),s.whitelistUrls=!!s.whitelistUrls.length&&k(s.whitelistUrls),s.includePaths=k(s.includePaths),s.maxBreadcrumbs=Math.max(0,Math.min(s.maxBreadcrumbs||100,100));var r={xhr:!0,console:!0,dom:!0,location:!0,sentry:!0},o=s.autoBreadcrumbs;"[object Object]"==={}.toString.call(o)?o=y(r,o):!1!==o&&(o=r),s.autoBreadcrumbs=o;var a={tryCatch:!0},l=s.instrument;return"[object Object]"==={}.toString.call(l)?l=y(a,l):!1!==l&&(l=a),s.instrument=l,i.collectWindowErrors=!!s.collectWindowErrors,n},install:function(){var t=this;return t.isSetup()&&!t._isRavenInstalled&&(i.report.subscribe(function(){t._handleOnErrorStackInfo.apply(t,arguments)}),t._globalOptions.captureUnhandledRejections&&t._attachPromiseRejectionHandler(),t._patchFunctionToString(),t._globalOptions.instrument&&t._globalOptions.instrument.tryCatch&&t._instrumentTryCatch(),t._globalOptions.autoBreadcrumbs&&t._instrumentBreadcrumbs(),t._drainPlugins(),t._isRavenInstalled=!0),Error.stackTraceLimit=t._globalOptions.stackTraceLimit,this},setDSN:function(t){var e=this,n=e._parseDSN(t),i=n.path.lastIndexOf("/"),s=n.path.substr(1,i);e._dsn=t,e._globalKey=n.user,e._globalSecret=n.pass&&n.pass.substr(1),e._globalProject=n.path.substr(i+1),e._globalServer=e._getGlobalServer(n),e._globalEndpoint=e._globalServer+"/"+s+"api/"+e._globalProject+"/store/",this._resetBackoff()},context:function(t,e,n){return m(t)&&(n=e||[],e=t,t={}),this.wrap(t,e).apply(this,n)},wrap:function(t,e,n){var i=this;if(g(e)&&!m(t))return t;if(m(t)&&(e=t,t=void 0),!m(e))return e;try{if(e.__raven__)return e;if(e.__raven_wrapper__)return e.__raven_wrapper__}catch(o){return e}function s(){var s=[],r=arguments.length,a=!t||t&&!1!==t.deep;for(n&&m(n)&&n.apply(this,arguments);r--;)s[r]=a?i.wrap(t,arguments[r]):arguments[r];try{return e.apply(this,s)}catch(o){throw i._ignoreNextOnError(),i.captureException(o,t),o}}for(var r in e)C(e,r)&&(s[r]=e[r]);return s.prototype=e.prototype,e.__raven_wrapper__=s,s.__raven__=!0,s.__orig__=e,s},uninstall:function(){return i.report.uninstall(),this._detachPromiseRejectionHandler(),this._unpatchFunctionToString(),this._restoreBuiltIns(),this._restoreConsole(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},_promiseRejectionHandler:function(t){this._logDebug("debug","Raven caught unhandled promise rejection:",t),this.captureException(t.reason,{mechanism:{type:"onunhandledrejection",handled:!1}})},_attachPromiseRejectionHandler:function(){return this._promiseRejectionHandler=this._promiseRejectionHandler.bind(this),B.addEventListener&&B.addEventListener("unhandledrejection",this._promiseRejectionHandler),this},_detachPromiseRejectionHandler:function(){return B.removeEventListener&&B.removeEventListener("unhandledrejection",this._promiseRejectionHandler),this},captureException:function(t,e){if(e=y({trimHeadFrames:0},e||{}),l(t)&&t.error)t=t.error;else{if(c(t)||u(t)){var n=t.name||(c(t)?"DOMError":"DOMException");return this.captureMessage(t.message?n+": "+t.message:n,y(e,{stacktrace:!0,trimHeadFrames:e.trimHeadFrames+1}))}if(h(t))t=t;else{if(!p(t))return this.captureMessage(t,y(e,{stacktrace:!0,trimHeadFrames:e.trimHeadFrames+1}));e=this._getCaptureExceptionOptionsFromPlainObject(e,t),t=new Error(e.message)}}this._lastCapturedException=t;try{var s=i.computeStackTrace(t);this._handleStackInfo(s,e)}catch(r){if(t!==r)throw r}return this},_getCaptureExceptionOptionsFromPlainObject:function(t,e){var n=Object.keys(e).sort(),i=y(t,{message:"Non-Error exception captured with keys: "+M(n),fingerprint:[r(n)],extra:t.extra||{}});return i.extra.__serialized__=Z(e),i},captureMessage:function(t,e){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(t)){var n,s=y({message:t+=""},e=e||{});try{throw new Error(t)}catch(c){n=c}n.name=null;var r=i.computeStackTrace(n),o=_(r.stack)&&r.stack[1];o&&"Raven.captureException"===o.func&&(o=r.stack[2]);var a=o&&o.url||"";if((!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(a))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(a))){if(this._globalOptions.stacktrace||e.stacktrace||""===s.message){s.fingerprint=null==s.fingerprint?t:s.fingerprint,(e=y({trimHeadFrames:0},e)).trimHeadFrames+=1;var l=this._prepareFrames(r,e);s.stacktrace={frames:l.reverse()}}return s.fingerprint&&(s.fingerprint=_(s.fingerprint)?s.fingerprint:[s.fingerprint]),this._send(s),this}}},captureBreadcrumb:function(t){var e=y({timestamp:q()/1e3},t);if(m(this._globalOptions.breadcrumbCallback)){var n=this._globalOptions.breadcrumbCallback(e);if(d(n)&&!b(n))e=n;else if(!1===n)return this}return this._breadcrumbs.push(e),this._breadcrumbs.length>this._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift(),this},addPlugin:function(t){var e=[].slice.call(arguments,1);return this._plugins.push([t,e]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(t){return this._globalContext.user=t,this},setExtraContext:function(t){return this._mergeContext("extra",t),this},setTagsContext:function(t){return this._mergeContext("tags",t),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(s(this._globalContext))},setEnvironment:function(t){return this._globalOptions.environment=t,this},setRelease:function(t){return this._globalOptions.release=t,this},setDataCallback:function(t){return this._globalOptions.dataCallback=$(this._globalOptions.dataCallback,t),this},setBreadcrumbCallback:function(t){return this._globalOptions.breadcrumbCallback=$(this._globalOptions.breadcrumbCallback,t),this},setShouldSendCallback:function(t){return this._globalOptions.shouldSendCallback=$(this._globalOptions.shouldSendCallback,t),this},setTransport:function(t){return this._globalOptions.transport=t,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!(!this._hasJSON||!this._globalServer&&(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),1))},afterLoad:function(){var t=B.RavenConfig;t&&this.config(t.dsn,t.config).install()},showReportDialog:function(t){if(j){if(!(t=y({eventId:this.lastEventId(),dsn:this._dsn,user:this._globalContext.user||{}},t)).eventId)throw new o("Missing eventId");if(!t.dsn)throw new o("Missing DSN");var e=encodeURIComponent,n=[];for(var i in t)if("user"===i){var s=t.user;s.name&&n.push("name="+e(s.name)),s.email&&n.push("email="+e(s.email))}else n.push(e(i)+"="+e(t[i]));var r=this._getGlobalServer(this._parseDSN(t.dsn)),a=j.createElement("script");a.async=!0,a.src=r+"/api/embed/error-page/?"+n.join("&"),(j.head||j.body).appendChild(a)}},_ignoreNextOnError:function(){var t=this;this._ignoreOnError+=1,setTimeout(function(){t._ignoreOnError-=1})},_triggerEvent:function(t,e){var n,i;if(this._hasDocument){for(i in e=e||{},t="raven"+t.substr(0,1).toUpperCase()+t.substr(1),j.createEvent?(n=j.createEvent("HTMLEvents")).initEvent(t,!0,!0):(n=j.createEventObject()).eventType=t,e)C(e,i)&&(n[i]=e[i]);if(j.createEvent)j.dispatchEvent(n);else try{j.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(s){}}},_breadcrumbEventHandler:function(t){var e=this;return function(n){if(e._keypressTimeout=null,e._lastCapturedEvent!==n){var i;e._lastCapturedEvent=n;try{i=S(n.target)}catch(s){i="<unknown>"}e.captureBreadcrumb({category:"ui."+t,message:i})}}},_keypressEventHandler:function(){var t=this;return function(e){var n;try{n=e.target}catch(r){return}var i=n&&n.tagName;if(i&&("INPUT"===i||"TEXTAREA"===i||n.isContentEditable)){var s=t._keypressTimeout;s||t._breadcrumbEventHandler("input")(e),clearTimeout(s),t._keypressTimeout=setTimeout(function(){t._keypressTimeout=null},1e3)}}},_captureUrlChange:function(t,e){var n=I(this._location.href),i=I(e),s=I(t);this._lastHref=e,n.protocol===i.protocol&&n.host===i.host&&(e=i.relative),n.protocol===s.protocol&&n.host===s.host&&(t=s.relative),this.captureBreadcrumb({category:"navigation",data:{to:e,from:t}})},_patchFunctionToString:function(){var t=this;t._originalFunctionToString=Function.prototype.toString,Function.prototype.toString=function(){return t._originalFunctionToString.apply("function"==typeof this&&this.__raven__?this.__orig__:this,arguments)}},_unpatchFunctionToString:function(){this._originalFunctionToString&&(Function.prototype.toString=this._originalFunctionToString)},_instrumentTryCatch:function(){var t=this,e=t._wrappedBuiltIns;function n(e){return function(n,i){for(var s=new Array(arguments.length),r=0;r<s.length;++r)s[r]=arguments[r];var o=s[0];return m(o)&&(s[0]=t.wrap({mechanism:{type:"instrument",data:{function:e.name||"<anonymous>"}}},o)),e.apply?e.apply(this,s):e(s[0],s[1])}}var i=this._globalOptions.autoBreadcrumbs;function s(n){var s=B[n]&&B[n].prototype;s&&s.hasOwnProperty&&s.hasOwnProperty("addEventListener")&&(P(s,"addEventListener",function(e){return function(s,r,o,a){try{r&&r.handleEvent&&(r.handleEvent=t.wrap({mechanism:{type:"instrument",data:{target:n,function:"handleEvent",handler:r&&r.name||"<anonymous>"}}},r.handleEvent))}catch(h){}var l,c,u;return i&&i.dom&&("EventTarget"===n||"Node"===n)&&(c=t._breadcrumbEventHandler("click"),u=t._keypressEventHandler(),l=function(t){if(t){var e;try{e=t.type}catch(n){return}return"click"===e?c(t):"keypress"===e?u(t):void 0}}),e.call(this,s,t.wrap({mechanism:{type:"instrument",data:{target:n,function:"addEventListener",handler:r&&r.name||"<anonymous>"}}},r,l),o,a)}},e),P(s,"removeEventListener",function(t){return function(e,n,i,s){try{n=n&&(n.__raven_wrapper__?n.__raven_wrapper__:n)}catch(r){}return t.call(this,e,n,i,s)}},e))}P(B,"setTimeout",n,e),P(B,"setInterval",n,e),B.requestAnimationFrame&&P(B,"requestAnimationFrame",function(e){return function(n){return e(t.wrap({mechanism:{type:"instrument",data:{function:"requestAnimationFrame",handler:e&&e.name||"<anonymous>"}}},n))}},e);for(var r=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],o=0;o<r.length;o++)s(r[o])},_instrumentBreadcrumbs:function(){var t=this,e=this._globalOptions.autoBreadcrumbs,n=t._wrappedBuiltIns;function i(e,n){e in n&&m(n[e])&&P(n,e,function(n){return t.wrap({mechanism:{type:"instrument",data:{function:e,handler:n&&n.name||"<anonymous>"}}},n)})}if(e.xhr&&"XMLHttpRequest"in B){var s=B.XMLHttpRequest&&B.XMLHttpRequest.prototype;P(s,"open",function(e){return function(n,i){return f(i)&&-1===i.indexOf(t._globalKey)&&(this.__raven_xhr={method:n,url:i,status_code:null}),e.apply(this,arguments)}},n),P(s,"send",function(e){return function(){var n=this;function s(){if(n.__raven_xhr&&4===n.readyState){try{n.__raven_xhr.status_code=n.status}catch(e){}t.captureBreadcrumb({type:"http",category:"xhr",data:n.__raven_xhr})}}for(var r=["onload","onerror","onprogress"],o=0;o<r.length;o++)i(r[o],n);return"onreadystatechange"in n&&m(n.onreadystatechange)?P(n,"onreadystatechange",function(e){return t.wrap({mechanism:{type:"instrument",data:{function:"onreadystatechange",handler:e&&e.name||"<anonymous>"}}},e,s)}):n.onreadystatechange=s,e.apply(this,arguments)}},n)}e.xhr&&D()&&P(B,"fetch",function(e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;++i)n[i]=arguments[i];var s,r=n[0],o="GET";if("string"==typeof r?s=r:"Request"in B&&r instanceof B.Request?(s=r.url,r.method&&(o=r.method)):s=""+r,-1!==s.indexOf(t._globalKey))return e.apply(this,n);n[1]&&n[1].method&&(o=n[1].method);var a={method:o,url:s,status_code:null};return e.apply(this,n).then(function(e){return a.status_code=e.status,t.captureBreadcrumb({type:"http",category:"fetch",data:a}),e}).catch(function(e){throw t.captureBreadcrumb({type:"http",category:"fetch",data:a,level:"error"}),e})}},n),e.dom&&this._hasDocument&&(j.addEventListener?(j.addEventListener("click",t._breadcrumbEventHandler("click"),!1),j.addEventListener("keypress",t._keypressEventHandler(),!1)):j.attachEvent&&(j.attachEvent("onclick",t._breadcrumbEventHandler("click")),j.attachEvent("onkeypress",t._keypressEventHandler())));var r=B.chrome;if(e.location&&!(r&&r.app&&r.app.runtime)&&B.history&&B.history.pushState&&B.history.replaceState){var o=B.onpopstate;B.onpopstate=function(){var e=t._location.href;if(t._captureUrlChange(t._lastHref,e),o)return o.apply(this,arguments)};var a=function(e){return function(){var n=arguments.length>2?arguments[2]:void 0;return n&&t._captureUrlChange(t._lastHref,n+""),e.apply(this,arguments)}};P(B.history,"pushState",a,n),P(B.history,"replaceState",a,n)}if(e.console&&"console"in B&&console.log){var l=function(e,n){t.captureBreadcrumb({message:e,level:n.level,category:"console"})};v(["debug","info","warn","error","log"],function(t,e){L(console,e,l)})}},_restoreBuiltIns:function(){for(var t;this._wrappedBuiltIns.length;)(t=this._wrappedBuiltIns.shift())[0][t[1]]=t[2]},_restoreConsole:function(){for(var t in this._originalConsoleMethods)this._originalConsole[t]=this._originalConsoleMethods[t]},_drainPlugins:function(){var t=this;v(this._plugins,function(e,n){n[0].apply(t,[t].concat(n[1]))})},_parseDSN:function(t){var e=U.exec(t),n={},i=7;try{for(;i--;)n[N[i]]=e[i]||""}catch(s){throw new o("Invalid DSN: "+t)}if(n.pass&&!this._globalOptions.allowSecretKey)throw new o("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return n},_getGlobalServer:function(t){var e="//"+t.host+(t.port?":"+t.port:"");return t.protocol&&(e=t.protocol+":"+e),e},_handleOnErrorStackInfo:function(t,e){(e=e||{}).mechanism=e.mechanism||{type:"onerror",handled:!1},this._ignoreOnError||this._handleStackInfo(t,e)},_handleStackInfo:function(t,e){var n=this._prepareFrames(t,e);this._triggerEvent("handle",{stackInfo:t,options:e}),this._processException(t.name,t.message,t.url,t.lineno,n,e)},_prepareFrames:function(t,e){var n=this,i=[];if(t.stack&&t.stack.length&&(v(t.stack,function(e,s){var r=n._normalizeFrame(s,t.url);r&&i.push(r)}),e&&e.trimHeadFrames))for(var s=0;s<e.trimHeadFrames&&s<i.length;s++)i[s].in_app=!1;return i=i.slice(0,this._globalOptions.stackTraceLimit)},_normalizeFrame:function(t,e){var n={filename:t.url,lineno:t.line,colno:t.column,function:t.func||"?"};return t.url||(n.filename=e),n.in_app=!(this._globalOptions.includePaths.test&&!this._globalOptions.includePaths.test(n.filename)||/(Raven|TraceKit)\./.test(n.function)||/raven\.(min\.)?js$/.test(n.filename)),n},_processException:function(t,e,n,i,s,r){var o,a=(t?t+": ":"")+(e||"");if((!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e)&&!this._globalOptions.ignoreErrors.test(a))&&(s&&s.length?(n=s[0].filename||n,s.reverse(),o={frames:s}):n&&(o={frames:[{filename:n,lineno:i,in_app:!0}]}),(!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(n))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(n)))){var l=y({exception:{values:[{type:t,value:e,stacktrace:o}]},transaction:n},r),c=l.exception.values[0];null==c.type&&""===c.value&&(c.value="Unrecoverable error caught"),!l.exception.mechanism&&l.mechanism&&(l.exception.mechanism=l.mechanism,delete l.mechanism),l.exception.mechanism=y({type:"generic",handled:!0},l.exception.mechanism||{}),this._send(l)}},_trimPacket:function(t){var e=this._globalOptions.maxMessageLength;if(t.message&&(t.message=w(t.message,e)),t.exception){var n=t.exception.values[0];n.value=w(n.value,e)}var i=t.request;return i&&(i.url&&(i.url=w(i.url,this._globalOptions.maxUrlLength)),i.Referer&&(i.Referer=w(i.Referer,this._globalOptions.maxUrlLength))),t.breadcrumbs&&t.breadcrumbs.values&&this._trimBreadcrumbs(t.breadcrumbs),t},_trimBreadcrumbs:function(t){for(var e,n,i,s=["to","from","url"],r=0;r<t.values.length;++r)if((n=t.values[r]).hasOwnProperty("data")&&d(n.data)&&!x(n.data)){i=y({},n.data);for(var o=0;o<s.length;++o)i.hasOwnProperty(e=s[o])&&i[e]&&(i[e]=w(i[e],this._globalOptions.maxUrlLength));t.values[r].data=i}},_getHttpData:function(){if(this._hasNavigator||this._hasDocument){var t={};return this._hasNavigator&&z.userAgent&&(t.headers={"User-Agent":z.userAgent}),B.location&&B.location.href&&(t.url=B.location.href),this._hasDocument&&j.referrer&&(t.headers||(t.headers={}),t.headers.Referer=j.referrer),t}},_resetBackoff:function(){this._backoffDuration=0,this._backoffStart=null},_shouldBackoff:function(){return this._backoffDuration&&q()-this._backoffStart<this._backoffDuration},_isRepeatData:function(t){var e=this._lastData;return!(!e||t.message!==e.message||t.transaction!==e.transaction)&&(t.stacktrace||e.stacktrace?O(t.stacktrace,e.stacktrace):t.exception||e.exception?T(t.exception,e.exception):!t.fingerprint&&!e.fingerprint||Boolean(t.fingerprint&&e.fingerprint)&&JSON.stringify(t.fingerprint)===JSON.stringify(e.fingerprint))},_setBackoffState:function(t){if(!this._shouldBackoff()){var e=t.status;if(400===e||401===e||429===e){var n;try{n=D()?t.headers.get("Retry-After"):t.getResponseHeader("Retry-After"),n=1e3*parseInt(n,10)}catch(i){}this._backoffDuration=n||2*this._backoffDuration||1e3,this._backoffStart=q()}}},_send:function(t){var e=this._globalOptions,n={project:this._globalProject,logger:e.logger,platform:"javascript"},i=this._getHttpData();i&&(n.request=i),t.trimHeadFrames&&delete t.trimHeadFrames,(t=y(n,t)).tags=y(y({},this._globalContext.tags),t.tags),t.extra=y(y({},this._globalContext.extra),t.extra),t.extra["session:duration"]=q()-this._startTime,this._breadcrumbs&&this._breadcrumbs.length>0&&(t.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),this._globalContext.user&&(t.user=this._globalContext.user),e.environment&&(t.environment=e.environment),e.release&&(t.release=e.release),e.serverName&&(t.server_name=e.serverName),t=this._sanitizeData(t),Object.keys(t).forEach(function(e){(null==t[e]||""===t[e]||b(t[e]))&&delete t[e]}),m(e.dataCallback)&&(t=e.dataCallback(t)||t),t&&!b(t)&&(m(e.shouldSendCallback)&&!e.shouldSendCallback(t)||(this._shouldBackoff()?this._logDebug("warn","Raven dropped error due to backoff: ",t):"number"==typeof e.sampleRate?Math.random()<e.sampleRate&&this._sendProcessedPayload(t):this._sendProcessedPayload(t)))},_sanitizeData:function(t){return R(t,this._globalOptions.sanitizeKeys)},_getUuid:function(){return E()},_sendProcessedPayload:function(t,e){var n=this,i=this._globalOptions;if(this.isSetup())if(t=this._trimPacket(t),this._globalOptions.allowDuplicates||!this._isRepeatData(t)){this._lastEventId=t.event_id||(t.event_id=this._getUuid()),this._lastData=t,this._logDebug("debug","Raven about to send:",t);var s={sentry_version:"7",sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(s.sentry_secret=this._globalSecret);var r=t.exception&&t.exception.values[0];this._globalOptions.autoBreadcrumbs&&this._globalOptions.autoBreadcrumbs.sentry&&this.captureBreadcrumb({category:"sentry",message:r?(r.type?r.type+": ":"")+r.value:t.message,event_id:t.event_id,level:t.level||"error"});var o=this._globalEndpoint;(i.transport||this._makeRequest).call(this,{url:o,auth:s,data:t,options:i,onSuccess:function(){n._resetBackoff(),n._triggerEvent("success",{data:t,src:o}),e&&e()},onError:function(i){n._logDebug("error","Raven transport failed to send: ",i),i.request&&n._setBackoffState(i.request),n._triggerEvent("failure",{data:t,src:o}),i=i||new Error("Raven send failed (no additional details provided)"),e&&e(i)}})}else this._logDebug("warn","Raven dropped repeat event: ",t)},_makeRequest:function(t){var e=t.url+"?"+A(t.auth),n=null,i={};if(t.options.headers&&(n=this._evaluateHash(t.options.headers)),t.options.fetchParameters&&(i=this._evaluateHash(t.options.fetchParameters)),D()){i.body=s(t.data);var r=y({},this._fetchDefaults),o=y(r,i);return n&&(o.headers=n),B.fetch(e,o).then(function(e){if(e.ok)t.onSuccess&&t.onSuccess();else{var n=new Error("Sentry error code: "+e.status);n.request=e,t.onError&&t.onError(n)}}).catch(function(){t.onError&&t.onError(new Error("Sentry error code: network unavailable"))})}var a=B.XMLHttpRequest&&new B.XMLHttpRequest;a&&("withCredentials"in a||"undefined"!=typeof XDomainRequest)&&("withCredentials"in a?a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)t.onSuccess&&t.onSuccess();else if(t.onError){var e=new Error("Sentry error code: "+a.status);e.request=a,t.onError(e)}}:(a=new XDomainRequest,e=e.replace(/^https?:/,""),t.onSuccess&&(a.onload=t.onSuccess),t.onError&&(a.onerror=function(){var e=new Error("Sentry error code: XDomainRequest");e.request=a,t.onError(e)})),a.open("POST",e),n&&v(n,function(t,e){a.setRequestHeader(t,e)}),a.send(s(t.data)))},_evaluateHash:function(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];e[n]="function"==typeof i?i():i}return e},_logDebug:function(t){this._originalConsoleMethods[t]&&(this.debug||this._globalOptions.debug)&&Function.prototype.apply.call(this._originalConsoleMethods[t],this._originalConsole,[].slice.call(arguments,1))},_mergeContext:function(t,e){g(e)?delete this._globalContext[t]:this._globalContext[t]=y(this._globalContext[t]||{},e)}}).setUser=Y.prototype.setUserContext,Y.prototype.setReleaseContext=Y.prototype.setRelease,t.exports=Y},4530:(t,e,n)=>{var i=n(6351),s="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=s.Raven,o=new i;o.noConflict=function(){return s.Raven=r,o},o.afterLoad(),t.exports=o,t.exports.Client=i},7792:(t,e,n)=>{var i=n(2156),s="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return void 0===t}function o(t){return"[object Object]"===Object.prototype.toString.call(t)}function a(t){return"[object String]"===Object.prototype.toString.call(t)}function l(t){return"[object Array]"===Object.prototype.toString.call(t)}function c(){if(!("fetch"in s))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function u(t,e){var n,i;if(r(t.length))for(n in t)d(t,n)&&e.call(null,n,t[n]);else if(i=t.length)for(n=0;n<i;n++)e.call(null,n,t[n])}function h(t,e){if("number"!=typeof e)throw new Error("2nd argument to `truncate` function should be a number");return"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"\u2026"}function d(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function p(t){for(var e,n=[],i=0,s=t.length;i<s;i++)a(e=t[i])?n.push(e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):e&&e.source&&n.push(e.source);return new RegExp(n.join("|"),"i")}function g(t){var e,n,i,s,r,o=[];if(!t||!t.tagName)return"";if(o.push(t.tagName.toLowerCase()),t.id&&o.push("#"+t.id),(e=t.className)&&a(e))for(n=e.split(/\s+/),r=0;r<n.length;r++)o.push("."+n[r]);var l=["type","name","title","alt"];for(r=0;r<l.length;r++)(s=t.getAttribute(i=l[r]))&&o.push("["+i+'="'+s+'"]');return o.join("")}function m(t,e){return!!(!!t^!!e)}function f(t,e){if(m(t,e))return!1;var n,i,s=t.frames,r=e.frames;if(void 0===s||void 0===r)return!1;if(s.length!==r.length)return!1;for(var o=0;o<s.length;o++)if((n=s[o]).filename!==(i=r[o]).filename||n.lineno!==i.lineno||n.colno!==i.colno||n.function!==i.function)return!1;return!0}function _(t){if("string"==typeof t)return h(t,40);if("number"==typeof t||"boolean"==typeof t||void 0===t)return t;var e=Object.prototype.toString.call(t);return"[object Object]"===e?"[Object]":"[object Array]"===e?"[Array]":"[object Function]"===e?t.name?"[Function: "+t.name+"]":"[Function]":t}function b(t,e){return 0===e?_(t):o(t)?Object.keys(t).reduce(function(n,i){return n[i]=b(t[i],e-1),n},{}):Array.isArray(t)?t.map(function(t){return b(t,e-1)}):_(t)}t.exports={isObject:function(t){return"object"==typeof t&&null!==t},isError:function(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}},isErrorEvent:function(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)},isDOMError:function(t){return"[object DOMError]"===Object.prototype.toString.call(t)},isDOMException:function(t){return"[object DOMException]"===Object.prototype.toString.call(t)},isUndefined:r,isFunction:function(t){return"function"==typeof t},isPlainObject:o,isString:a,isArray:l,isEmptyObject:function(t){if(!o(t))return!1;for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},supportsErrorEvent:function(){try{return new ErrorEvent(""),!0}catch(t){return!1}},supportsDOMError:function(){try{return new DOMError(""),!0}catch(t){return!1}},supportsDOMException:function(){try{return new DOMException(""),!0}catch(t){return!1}},supportsFetch:c,supportsReferrerPolicy:function(){if(!c())return!1;try{return new Request("pickleRick",{referrerPolicy:"origin"}),!0}catch(t){return!1}},supportsPromiseRejectionEvent:function(){return"function"==typeof PromiseRejectionEvent},wrappedCallback:function(t){return function(e,n){var i=t(e)||e;return n&&n(i)||i}},each:u,objectMerge:function(t,e){return e?(u(e,function(e,n){t[e]=n}),t):t},truncate:h,objectFrozen:function(t){return!!Object.isFrozen&&Object.isFrozen(t)},hasKey:d,joinRegExp:p,urlencode:function(t){var e=[];return u(t,function(t,n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))}),e.join("&")},uuid4:function(){var t=s.crypto||s.msCrypto;if(!r(t)&&t.getRandomValues){var e=new Uint16Array(8);t.getRandomValues(e),e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;var n=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return n(e[0])+n(e[1])+n(e[2])+n(e[3])+n(e[4])+n(e[5])+n(e[6])+n(e[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})},htmlTreeAsString:function(t){for(var e,n=[],i=0,s=0,r=" > ".length;t&&i++<5&&!("html"===(e=g(t))||i>1&&s+n.length*r+e.length>=80);)n.push(e),s+=e.length,t=t.parentNode;return n.reverse().join(" > ")},htmlElementAsString:g,isSameException:function(t,e){return!m(t,e)&&(t=t.values[0]).type===(e=e.values[0]).type&&t.value===e.value&&(n=e.stacktrace,(!r(t.stacktrace)||!r(n))&&f(t.stacktrace,e.stacktrace));var n},isSameStacktrace:f,parseUrl:function(t){if("string"!=typeof t)return{};var e=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);return{protocol:e[2],host:e[4],path:e[5],relative:e[5]+(e[6]||"")+(e[8]||"")}},fill:function(t,e,n,i){if(null!=t){var s=t[e];t[e]=n(s),t[e].__raven__=!0,t[e].__orig__=s,i&&i.push([t,e,s])}},safeJoin:function(t,e){if(!l(t))return"";for(var n=[],i=0;i<t.length;i++)try{n.push(String(t[i]))}catch(s){n.push("[value cannot be serialized]")}return n.join(e)},serializeException:function t(e,n,s){if(!o(e))return e;s="number"!=typeof(n="number"!=typeof n?3:n)?51200:s;var r,a=b(e,n);return r=i(a),function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(r))>s?t(e,n-1):a},serializeKeysForMessage:function(t,e){if("number"==typeof t||"string"==typeof t)return t.toString();if(!Array.isArray(t))return"";if(0===(t=t.filter(function(t){return"string"==typeof t})).length)return"[object has no keys]";if(t[0].length>=(e="number"!=typeof e?40:e))return t[0];for(var n=t.length;n>0;n--){var i=t.slice(0,n).join(", ");if(!(i.length>e))return n===t.length?i:i+"\u2026"}return""},sanitize:function(t,e){if(!l(e)||l(e)&&0===e.length)return t;var n,s=p(e);try{n=JSON.parse(i(t))}catch(r){return t}return function t(e){return l(e)?e.map(function(e){return t(e)}):o(e)?Object.keys(e).reduce(function(n,i){return n[i]=s.test(i)?"********":t(e[i]),n},{}):e}(n)}}},8527:(t,e,n)=>{var i=n(7792),s={collectWindowErrors:!0,debug:!1},r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=[].slice,a="?",l=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function c(){return"undefined"==typeof document||null==document.location?"":document.location.href}s.report=function(){var t,e,n=[],u=null,h=null,d=null;function p(t,e){var i=null;if(!e||s.collectWindowErrors){for(var r in n)if(n.hasOwnProperty(r))try{n[r].apply(null,[t].concat(o.call(arguments,2)))}catch(a){i=a}if(i)throw i}}function g(e,n,r,o,u){var h=i.isErrorEvent(u)?u.error:u,g=i.isErrorEvent(e)?e.message:e;if(d)s.computeStackTrace.augmentStackTraceWithInitialElement(d,n,r,g),m();else if(h&&i.isError(h))p(s.computeStackTrace(h),!0);else{var f,_={url:n,line:r,column:o},b=void 0;"[object String]"==={}.toString.call(g)&&(f=g.match(l))&&(b=f[1],g=f[2]),_.func=a,p({name:b,message:g,url:c(),stack:[_]},!0)}return!!t&&t.apply(this,arguments)}function m(){var t=d,e=u;u=null,d=null,h=null,p.apply(null,[t,!1].concat(e))}function f(t,e){var n=o.call(arguments,1);if(d){if(h===t)return;m()}var i=s.computeStackTrace(t);if(d=i,h=t,u=n,setTimeout(function(){h===t&&m()},i.incomplete?2e3:0),!1!==e)throw t}return f.subscribe=function(i){e||(t=r.onerror,r.onerror=g,e=!0),n.push(i)},f.unsubscribe=function(t){for(var e=n.length-1;e>=0;--e)n[e]===t&&n.splice(e,1)},f.uninstall=function(){e&&(r.onerror=t,e=!1,t=void 0),n=[]},f}(),s.computeStackTrace=function(){function t(t){if(void 0!==t.stack&&t.stack){for(var e,n,i,s=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,r=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/,h=t.stack.split("\n"),d=[],p=(/^(.*) is undefined$/.exec(t.message),0),g=h.length;p<g;++p){if(n=s.exec(h[p])){var m=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(e=u.exec(n[2]))&&(n[2]=e[1],n[3]=e[2],n[4]=e[3]),i={url:m?null:n[2],func:n[1]||a,args:m?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=r.exec(h[p]))i={url:n[2],func:n[1]||a,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=o.exec(h[p])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(e=l.exec(n[3]))?(n[3]=e[1],n[4]=e[2],n[5]=null):0!==p||n[5]||void 0===t.columnNumber||(d[0].column=t.columnNumber+1),i={url:n[3],func:n[1]||a,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}if(!i.func&&i.line&&(i.func=a),i.url&&"blob:"===i.url.substr(0,5)){var f=new XMLHttpRequest;if(f.open("GET",i.url,!1),f.send(null),200===f.status){var _=f.responseText||"",b=(_=_.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(b){var v=b[1];"~"===v.charAt(0)&&(v=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+v.slice(1)),i.url=v.slice(0,-4)}}}d.push(i)}return d.length?{name:t.name,message:t.message,url:c(),stack:d}:null}}function e(t,e,n,i){var s={url:e,line:n};if(s.url&&s.line){if(t.incomplete=!1,s.func||(s.func=a),t.stack.length>0&&t.stack[0].url===s.url){if(t.stack[0].line===s.line)return!1;if(!t.stack[0].line&&t.stack[0].func===s.func)return t.stack[0].line=s.line,!1}return t.stack.unshift(s),t.partial=!0,!0}return t.incomplete=!0,!1}function n(t,r){for(var o,l,u=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,h=[],d={},p=!1,g=n.caller;g&&!p;g=g.caller)if(g!==i&&g!==s.report){if(l={url:null,func:a,line:null,column:null},g.name?l.func=g.name:(o=u.exec(g.toString()))&&(l.func=o[1]),void 0===l.func)try{l.func=o.input.substring(0,o.input.indexOf("{"))}catch(f){}d[""+g]?p=!0:d[""+g]=!0,h.push(l)}r&&h.splice(0,r);var m={name:t.name,message:t.message,url:c(),stack:h};return e(m,t.sourceURL||t.fileName,t.line||t.lineNumber),m}function i(e,i){var r=null;i=null==i?0:+i;try{if(r=t(e))return r}catch(o){if(s.debug)throw o}try{if(r=n(e,i+1))return r}catch(o){if(s.debug)throw o}return{name:e.name,message:e.message,url:c()}}return i.augmentStackTraceWithInitialElement=e,i.computeStackTraceFromStackProp=t,i}(),t.exports=s},2156:(t,e)=>{function n(t,e){for(var n=0;n<t.length;++n)if(t[n]===e)return n;return-1}function i(t,e){var i=[],s=[];return null==e&&(e=function(t,e){return i[0]===e?"[Circular ~]":"[Circular ~."+s.slice(0,n(i,e)).join(".")+"]"}),function(r,o){if(i.length>0){var a=n(i,this);~a?i.splice(a+1):i.push(this),~a?s.splice(a,1/0,r):s.push(r),~n(i,o)&&(o=e.call(this,r,o))}else i.push(o);return null==t?o instanceof Error?function(t){var e={stack:t.stack,message:t.message,name:t.name};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}(o):o:t.call(this,r,o)}}(t.exports=function(t,e,n,s){return JSON.stringify(t,i(e,s),n)}).getSerialize=i},5113:t=>{function e(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function n(t,n,i,s,r,o){return e((a=e(e(n,t),e(s,o)))<<(l=r)|a>>>32-l,i);var a,l}function i(t,e,i,s,r,o,a){return n(e&i|~e&s,t,e,r,o,a)}function s(t,e,i,s,r,o,a){return n(e&s|i&~s,t,e,r,o,a)}function r(t,e,i,s,r,o,a){return n(e^i^s,t,e,r,o,a)}function o(t,e,i,s,r,o,a){return n(i^(e|~s),t,e,r,o,a)}function a(t,n){var a,l,c,u,h;t[n>>5]|=128<<n%32,t[14+(n+64>>>9<<4)]=n;var d=1732584193,p=-271733879,g=-1732584194,m=271733878;for(a=0;a<t.length;a+=16)l=d,c=p,u=g,h=m,d=i(d,p,g,m,t[a],7,-680876936),m=i(m,d,p,g,t[a+1],12,-389564586),g=i(g,m,d,p,t[a+2],17,606105819),p=i(p,g,m,d,t[a+3],22,-1044525330),d=i(d,p,g,m,t[a+4],7,-176418897),m=i(m,d,p,g,t[a+5],12,1200080426),g=i(g,m,d,p,t[a+6],17,-1473231341),p=i(p,g,m,d,t[a+7],22,-45705983),d=i(d,p,g,m,t[a+8],7,1770035416),m=i(m,d,p,g,t[a+9],12,-1958414417),g=i(g,m,d,p,t[a+10],17,-42063),p=i(p,g,m,d,t[a+11],22,-1990404162),d=i(d,p,g,m,t[a+12],7,1804603682),m=i(m,d,p,g,t[a+13],12,-40341101),g=i(g,m,d,p,t[a+14],17,-1502002290),d=s(d,p=i(p,g,m,d,t[a+15],22,1236535329),g,m,t[a+1],5,-165796510),m=s(m,d,p,g,t[a+6],9,-1069501632),g=s(g,m,d,p,t[a+11],14,643717713),p=s(p,g,m,d,t[a],20,-373897302),d=s(d,p,g,m,t[a+5],5,-701558691),m=s(m,d,p,g,t[a+10],9,38016083),g=s(g,m,d,p,t[a+15],14,-660478335),p=s(p,g,m,d,t[a+4],20,-405537848),d=s(d,p,g,m,t[a+9],5,568446438),m=s(m,d,p,g,t[a+14],9,-1019803690),g=s(g,m,d,p,t[a+3],14,-187363961),p=s(p,g,m,d,t[a+8],20,1163531501),d=s(d,p,g,m,t[a+13],5,-1444681467),m=s(m,d,p,g,t[a+2],9,-51403784),g=s(g,m,d,p,t[a+7],14,1735328473),d=r(d,p=s(p,g,m,d,t[a+12],20,-1926607734),g,m,t[a+5],4,-378558),m=r(m,d,p,g,t[a+8],11,-2022574463),g=r(g,m,d,p,t[a+11],16,1839030562),p=r(p,g,m,d,t[a+14],23,-35309556),d=r(d,p,g,m,t[a+1],4,-1530992060),m=r(m,d,p,g,t[a+4],11,1272893353),g=r(g,m,d,p,t[a+7],16,-155497632),p=r(p,g,m,d,t[a+10],23,-1094730640),d=r(d,p,g,m,t[a+13],4,681279174),m=r(m,d,p,g,t[a],11,-358537222),g=r(g,m,d,p,t[a+3],16,-722521979),p=r(p,g,m,d,t[a+6],23,76029189),d=r(d,p,g,m,t[a+9],4,-640364487),m=r(m,d,p,g,t[a+12],11,-421815835),g=r(g,m,d,p,t[a+15],16,530742520),d=o(d,p=r(p,g,m,d,t[a+2],23,-995338651),g,m,t[a],6,-198630844),m=o(m,d,p,g,t[a+7],10,1126891415),g=o(g,m,d,p,t[a+14],15,-1416354905),p=o(p,g,m,d,t[a+5],21,-57434055),d=o(d,p,g,m,t[a+12],6,1700485571),m=o(m,d,p,g,t[a+3],10,-1894986606),g=o(g,m,d,p,t[a+10],15,-1051523),p=o(p,g,m,d,t[a+1],21,-2054922799),d=o(d,p,g,m,t[a+8],6,1873313359),m=o(m,d,p,g,t[a+15],10,-30611744),g=o(g,m,d,p,t[a+6],15,-1560198380),p=o(p,g,m,d,t[a+13],21,1309151649),d=o(d,p,g,m,t[a+4],6,-145523070),m=o(m,d,p,g,t[a+11],10,-1120210379),g=o(g,m,d,p,t[a+2],15,718787259),p=o(p,g,m,d,t[a+9],21,-343485551),d=e(d,l),p=e(p,c),g=e(g,u),m=e(m,h);return[d,p,g,m]}function l(t){var e,n="",i=32*t.length;for(e=0;e<i;e+=8)n+=String.fromCharCode(t[e>>5]>>>e%32&255);return n}function c(t){var e,n=[];for(n[(t.length>>2)-1]=void 0,e=0;e<n.length;e+=1)n[e]=0;var i=8*t.length;for(e=0;e<i;e+=8)n[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return n}function u(t){var e,n,i="0123456789abcdef",s="";for(n=0;n<t.length;n+=1)e=t.charCodeAt(n),s+=i.charAt(e>>>4&15)+i.charAt(15&e);return s}function h(t){return unescape(encodeURIComponent(t))}function d(t){return function(t){return l(a(c(t),8*t.length))}(h(t))}function p(t,e){return function(t,e){var n,i,s=c(t),r=[],o=[];for(r[15]=o[15]=void 0,s.length>16&&(s=a(s,8*t.length)),n=0;n<16;n+=1)r[n]=909522486^s[n],o[n]=1549556828^s[n];return i=a(r.concat(c(e)),512+8*e.length),l(a(o.concat(i),640))}(h(t),h(e))}t.exports=function(t,e,n){return e?n?p(e,t):u(p(e,t)):n?d(t):u(d(t))}},6215:(t,e,n)=>{"use strict";n.d(e,{X:()=>r});var i=n(9765),s=n(7971);class r extends i.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(t){super.next(this._value=t)}}},3098:(t,e,n)=>{"use strict";n.d(e,{P:()=>o});var i=n(9193),s=n(5917),r=n(205);class o{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,r._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new o("N",t):o.undefinedValueNotification}static createError(t){return new o("E",void 0,t)}static createComplete(){return o.completeNotification}}o.completeNotification=new o("C"),o.undefinedValueNotification=new o("N",void 0)},7574:(t,e,n)=>{"use strict";n.d(e,{y:()=>c});var i=n(7393),s=n(9181),r=n(6490),o=n(6554),a=n(4487),l=n(2494);let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof i.L)return t;if(t[s.b])return t[s.b]()}return t||e||n?new i.L(t,e,n):new i.L(r.c)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||l.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof i.L?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.L](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=l.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},6490:(t,e,n)=>{"use strict";n.d(e,{c:()=>r});var i=n(2494),s=n(4449);const r={closed:!0,next(t){},error(t){if(i.v.useDeprecatedSynchronousErrorHandling)throw t;(0,s.z)(t)},complete(){}}},2298:(t,e,n)=>{"use strict";n.d(e,{t:()=>g});var i=n(9765),s=n(6465),r=n(6102);const o=new class extends r.v{}(class extends s.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}});var a=n(5319),l=n(7393),c=n(3098);class u extends l.L{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(u.dispatch,this.delay,new h(t,this.destination)))}_next(t){this.scheduleMessage(c.P.createNext(t))}_error(t){this.scheduleMessage(c.P.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(c.P.createComplete()),this.unsubscribe()}}class h{constructor(t,e){this.notification=t,this.destination=e}}var d=n(7971),p=n(8858);class g extends i.xQ{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new m(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;let r;if(this.closed)throw new d.N;if(this.isStopped||this.hasError?r=a.w.EMPTY:(this.observers.push(t),r=new p.W(this,t)),i&&t.add(t=new u(t,i)),e)for(let o=0;o<s&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<s&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),r}_getNow(){return(this.scheduler||o).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,s=i.length;let r=0;for(;r<s&&!(t-i[r].time<n);)r++;return s>e&&(r=Math.max(r,s-e)),r>0&&i.splice(0,r),i}}class m{constructor(t,e){this.time=t,this.value=e}}},9765:(t,e,n)=>{"use strict";n.d(e,{Yc:()=>c,xQ:()=>u});var i=n(7574),s=n(7393),r=n(5319),o=n(7971),a=n(8858),l=n(9181);class c extends s.L{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends i.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.b](){return new c(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.N;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;s<n;s++)i[s].next(t)}}error(t){if(this.closed)throw new o.N;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;s<n;s++)i[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new o.N;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let i=0;i<e;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new o.N;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new o.N;return this.hasError?(t.error(this.thrownError),r.w.EMPTY):this.isStopped?(t.complete(),r.w.EMPTY):(this.observers.push(t),new a.W(this,t))}asObservable(){const t=new i.y;return t.source=this,t}}return t.create=(t,e)=>new h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):r.w.EMPTY}}},8858:(t,e,n)=>{"use strict";n.d(e,{W:()=>s});var i=n(5319);class s extends i.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},7393:(t,e,n)=>{"use strict";n.d(e,{L:()=>c});var i=n(9105),s=n(6490),r=n(5319),o=n(9181),a=n(2494),l=n(4449);class c extends r.w{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!t){this.destination=s.c;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.b](){return this}static create(t,e,n){const i=new c(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends c{constructor(t,e,n,r){let o;super(),this._parentSubscriber=t;let a=this;(0,i.m)(e)?o=e:e&&(o=e.next,n=e.error,r=e.complete,e!==s.c&&(a=Object.create(e),(0,i.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.v;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,l.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,l.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw n;(0,l.z)(n)}}__tryOrSetError(t,e,n){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):((0,l.z)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},5319:(t,e,n)=>{"use strict";n.d(e,{w:()=>a});var i=n(9796),s=n(1555),r=n(9105);const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class a{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:l,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof a)e.remove(this);else if(null!==e)for(let i=0;i<e.length;++i)e[i].remove(this);if((0,r.m)(l)){n&&(this._unsubscribe=void 0);try{l.call(this)}catch(h){t=h instanceof o?c(h.errors):[h]}}if((0,i.k)(u)){let e=-1,n=u.length;for(;++e<n;){const n=u[e];if((0,s.K)(n))try{n.unsubscribe()}catch(h){t=t||[],h instanceof o?t=t.concat(c(h.errors)):t.push(h)}}}if(t)throw new o(t)}add(t){let e=t;if(!t)return a.EMPTY;switch(typeof t){case"function":e=new a(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof a)){const t=e;e=new a,e._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:n}=e;if(null===n)e._parentOrParents=this;else if(n instanceof a){if(n===this)return e;e._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return e;n.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[e]:i.push(e),e}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var l;function c(t){return t.reduce((t,e)=>t.concat(e instanceof o?e.errors:e),[])}a.EMPTY=((l=new a).closed=!0,l)},2494:(t,e,n)=>{"use strict";n.d(e,{v:()=>s});let i=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},5345:(t,e,n)=>{"use strict";n.d(e,{IY:()=>o,Ds:()=>a,ft:()=>l});var i=n(7393),s=n(7574),r=n(7444);class o extends i.L{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends i.L{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function l(t,e){if(e.closed)return;if(t instanceof s.y)return t.subscribe(e);let n;try{n=(0,r.s)(t)(e)}catch(i){e.error(i)}return n}},2441:(t,e,n)=>{"use strict";n.d(e,{c:()=>a,N:()=>l});var i=n(9765),s=n(7574),r=n(5319),o=n(1307);class a extends s.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new r.w,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed&&(this._connection=null,t=r.w.EMPTY)),t}refCount(){return(0,o.x)()(this)}}const l=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class c extends i.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},739:(t,e,n)=>{"use strict";n.d(e,{aj:()=>p});var i=n(4869),s=n(9796),r=n(7393);class o extends r.L{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class a extends r.L{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var l=n(7444),c=n(7574);function u(t,e,n,i,s=new a(t,n,i)){if(!s.closed)return e instanceof c.y?e.subscribe(s):(0,l.s)(e)(s)}var h=n(6693);const d={};function p(...t){let e,n;return(0,i.K)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,h.n)(t,n).lift(new g(e))}class g{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new m(t,this.resultSelector))}}class m extends o{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(d),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++)this.add(u(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const i=this.values,s=this.toRespond?i[n]===d?--this.toRespond:this.toRespond:0;i[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},8071:(t,e,n)=>{"use strict";n.d(e,{z:()=>r});var i=n(5917),s=n(3282);function r(...t){return(0,s.J)(1)((0,i.of)(...t))}},1439:(t,e,n)=>{"use strict";n.d(e,{P:()=>o});var i=n(7574),s=n(4402),r=n(9193);function o(t){return new i.y(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?(0,s.D)(n):(0,r.c)()).subscribe(e)})}},9193:(t,e,n)=>{"use strict";n.d(e,{E:()=>s,c:()=>r});var i=n(7574);const s=new i.y(t=>t.complete());function r(t){return t?function(t){return new i.y(e=>t.schedule(()=>e.complete()))}(t):s}},5758:(t,e,n)=>{"use strict";n.d(e,{D:()=>l});var i=n(7574),s=n(9796),r=n(8002),o=n(1555),a=n(4402);function l(...t){if(1===t.length){const e=t[0];if((0,s.k)(e))return c(e,null);if((0,o.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&(0,s.k)(t[0])?t[0]:t,null).pipe((0,r.U)(t=>e(...t)))}return c(t,null)}function c(t,e){return new i.y(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let l=0;l<i;l++){const c=(0,a.D)(t[l]);let u=!1;n.add(c.subscribe({next:t=>{u||(u=!0,o++),s[l]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&u||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}},4402:(t,e,n)=>{"use strict";n.d(e,{D:()=>h});var i=n(7574),s=n(7444),r=n(5319),o=n(6554),a=n(4087),l=n(377),c=n(4072),u=n(9489);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.L]}(t))return function(t,e){return new i.y(n=>{const i=new r.w;return i.add(e.schedule(()=>{const s=t[o.L]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if((0,c.t)(t))return function(t,e){return new i.y(n=>{const i=new r.w;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if((0,u.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[l.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.y(n=>{const i=new r.w;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[l.hZ](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.y?t:new i.y((0,s.s)(t))}},6693:(t,e,n)=>{"use strict";n.d(e,{n:()=>o});var i=n(7574),s=n(5015),r=n(4087);function o(t,e){return e?(0,r.r)(t,e):new i.y((0,s.V)(t))}},2759:(t,e,n)=>{"use strict";n.d(e,{R:()=>a});var i=n(7574),s=n(9796),r=n(9105),o=n(8002);function a(t,e,n,c){return(0,r.m)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe((0,o.U)(t=>(0,s.k)(t)?c(...t):c(t))):new i.y(i=>{l(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function l(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r<o;r++)l(t[r],e,n,i,s)}i.add(r)}},6682:(t,e,n)=>{"use strict";n.d(e,{T:()=>a});var i=n(7574),s=n(4869),r=n(3282),o=n(6693);function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return(0,s.K)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.y?t[0]:(0,r.J)(e)((0,o.n)(t,n))}},5917:(t,e,n)=>{"use strict";n.d(e,{of:()=>o});var i=n(4869),s=n(6693),r=n(4087);function o(...t){let e=t[t.length-1];return(0,i.K)(e)?(t.pop(),(0,r.r)(t,e)):(0,s.n)(t)}},205:(t,e,n)=>{"use strict";n.d(e,{_:()=>s});var i=n(7574);function s(t,e){return new i.y(e?n=>e.schedule(r,0,{error:t,subscriber:n}):e=>e.error(t))}function r({error:t,subscriber:e}){e.error(t)}},6797:(t,e,n)=>{"use strict";n.d(e,{H:()=>a});var i=n(7574),s=n(3637),r=n(6561),o=n(4869);function a(t=0,e,n){let a=-1;return(0,r.k)(e)?a=Number(e)<1?1:Number(e):(0,o.K)(e)&&(n=e),(0,o.K)(n)||(n=s.P),new i.y(e=>{const i=(0,r.k)(t)?t:+t-n.now();return n.schedule(l,i,{index:0,period:a,subscriber:e})})}function l(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}},13:(t,e,n)=>{"use strict";n.d(e,{e:()=>l});var i=n(3637),s=n(5345);class r{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new o(t,this.durationSelector))}}class o extends s.Ds{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=(0,s.ft)(n,new s.IY(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var a=n(6797);function l(t,e=i.P){return n=()=>(0,a.H)(t,e),function(t){return t.lift(new r(n))};var n}},5304:(t,e,n)=>{"use strict";n.d(e,{K:()=>s});var i=n(5345);function s(t){return function(e){const n=new r(t),i=e.lift(n);return n.caught=i}}class r{constructor(t){this.selector=t}call(t,e){return e.subscribe(new o(t,this.selector,this.caught))}}class o extends i.Ds{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const s=new i.IY(this);this.add(s);const r=(0,i.ft)(n,s);r!==s&&this.add(r)}}}},4612:(t,e,n)=>{"use strict";n.d(e,{b:()=>s});var i=n(9773);function s(t,e){return(0,i.zg)(t,e,1)}},4395:(t,e,n)=>{"use strict";n.d(e,{b:()=>r});var i=n(7393),s=n(3637);function r(t,e=s.P){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.L{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},1289:(t,e,n)=>{"use strict";n.d(e,{g:()=>o});var i=n(3637),s=n(7393),r=n(3098);function o(t,e=i.P){var n;const s=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new a(s,e))}class a{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))}}class l extends s.L{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(l.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new c(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(r.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(r.P.createComplete()),this.unsubscribe()}}class c{constructor(t,e){this.time=t,this.notification=e}}},7519:(t,e,n)=>{"use strict";n.d(e,{x:()=>s});var i=n(7393);function s(t,e){return n=>n.lift(new r(t,e))}class r{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends i.L{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},5435:(t,e,n)=>{"use strict";n.d(e,{h:()=>s});var i=n(7393);function s(t,e){return function(n){return n.lift(new r(t,e))}}class r{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends i.L{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},8939:(t,e,n)=>{"use strict";n.d(e,{x:()=>r});var i=n(7393),s=n(5319);function r(t){return e=>e.lift(new o(t))}class o{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends i.L{constructor(t,e){super(t),this.add(new s.w(e))}}},8002:(t,e,n)=>{"use strict";n.d(e,{U:()=>s});var i=n(7393);function s(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new r(t,e))}}class r{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends i.L{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},3282:(t,e,n)=>{"use strict";n.d(e,{J:()=>r});var i=n(9773),s=n(4487);function r(t=Number.POSITIVE_INFINITY){return(0,i.zg)(s.y,t)}},9773:(t,e,n)=>{"use strict";n.d(e,{zg:()=>o});var i=n(8002),s=n(4402),r=n(5345);function o(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(o((n,r)=>(0,s.D)(t(n,r)).pipe((0,i.U)((t,i)=>e(n,t,r,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends r.Ds{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e)}_innerSub(t){const e=new r.IY(this),n=this.destination;n.add(e);const i=(0,r.ft)(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},9328:(t,e,n)=>{"use strict";n.d(e,{G:()=>s});var i=n(7393);function s(){return t=>t.lift(new r)}class r{call(t,e){return e.subscribe(new o(t))}}class o extends i.L{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}},1307:(t,e,n)=>{"use strict";n.d(e,{x:()=>s});var i=n(7393);function s(){return function(t){return t.lift(new r(t))}}class r{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new o(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class o extends i.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}},8819:(t,e,n)=>{"use strict";n.d(e,{B:()=>a});var i=n(2441),s=n(1307),r=n(9765);function o(){return new r.xQ}function a(){return t=>{return(0,s.x)()((e=o,function(t){let n;n="function"==typeof e?e:function(){return e};const s=Object.create(t,i.N);return s.source=t,s.subjectFactory=n,s})(t));var e}}},3653:(t,e,n)=>{"use strict";n.d(e,{T:()=>s});var i=n(7393);function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.total=t}call(t,e){return e.subscribe(new o(t,this.total))}}class o extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},9761:(t,e,n)=>{"use strict";n.d(e,{O:()=>r});var i=n(8071),s=n(4869);function r(...t){const e=t[t.length-1];return(0,s.K)(e)?(t.pop(),n=>(0,i.z)(t,n,e)):e=>(0,i.z)(t,e)}},3190:(t,e,n)=>{"use strict";n.d(e,{w:()=>o});var i=n(8002),s=n(4402),r=n(5345);function o(t,e){return"function"==typeof e?n=>n.pipe(o((n,r)=>(0,s.D)(t(n,r)).pipe((0,i.U)((t,i)=>e(n,t,r,i))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends r.Ds{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new r.IY(this),i=this.destination;i.add(n),this.innerSubscription=(0,r.ft)(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},5257:(t,e,n)=>{"use strict";n.d(e,{q:()=>o});var i=n(7393),s=n(7108),r=n(9193);function o(t){return e=>0===t?(0,r.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.W}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},6782:(t,e,n)=>{"use strict";n.d(e,{R:()=>s});var i=n(5345);function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.notifier=t}call(t,e){const n=new o(t),s=(0,i.ft)(this.notifier,new i.IY(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class o extends i.Ds{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},3342:(t,e,n)=>{"use strict";n.d(e,{b:()=>o});var i=n(7393);function s(){}var r=n(9105);function o(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends i.L{constructor(t,e,n,i){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=n||s,this._tapComplete=i||s,(0,r.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},4087:(t,e,n)=>{"use strict";n.d(e,{r:()=>r});var i=n(7574),s=n(5319);function r(t,e){return new i.y(n=>{const i=new s.w;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},6465:(t,e,n)=>{"use strict";n.d(e,{o:()=>r});var i=n(5319);class s extends i.w{constructor(t,e){super()}schedule(t,e=0){return this}}class r extends s{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},6102:(t,e,n)=>{"use strict";n.d(e,{v:()=>s});let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class s extends i{constructor(t,e=i.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},1927:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(6465),s=n(6102);const r=new class extends s.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<s&&(t=e.shift()));if(this.active=!1,n){for(;++i<s&&(t=e.shift());)t.unsubscribe();throw n}}}(class extends i.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}})},4581:(t,e,n)=>{"use strict";n.d(e,{E:()=>u});let i=1;const s=Promise.resolve(),r={};function o(t){return t in r&&(delete r[t],!0)}const a={setImmediate(t){const e=i++;return r[e]=!0,s.then(()=>o(e)&&t()),e},clearImmediate(t){o(t)}};var l=n(6465),c=n(6102);const u=new class extends c.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<s&&(t=e.shift()));if(this.active=!1,n){for(;++i<s&&(t=e.shift());)t.unsubscribe();throw n}}}(class extends l.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}})},3637:(t,e,n)=>{"use strict";n.d(e,{P:()=>s});var i=n(6465);const s=new(n(6102).v)(i.o)},377:(t,e,n)=>{"use strict";n.d(e,{hZ:()=>i});const i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:(t,e,n)=>{"use strict";n.d(e,{L:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:(t,e,n)=>{"use strict";n.d(e,{b:()=>i});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:(t,e,n)=>{"use strict";n.d(e,{W:()=>i});const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},7971:(t,e,n)=>{"use strict";n.d(e,{N:()=>i});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4449:(t,e,n)=>{"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,{z:()=>i})},4487:(t,e,n)=>{"use strict";function i(t){return t}n.d(e,{y:()=>i})},9796:(t,e,n)=>{"use strict";n.d(e,{k:()=>i});const i=Array.isArray||(t=>t&&"number"==typeof t.length)},9489:(t,e,n)=>{"use strict";n.d(e,{z:()=>i});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},9105:(t,e,n)=>{"use strict";function i(t){return"function"==typeof t}n.d(e,{m:()=>i})},6561:(t,e,n)=>{"use strict";n.d(e,{k:()=>s});var i=n(9796);function s(t){return!(0,i.k)(t)&&t-parseFloat(t)+1>=0}},1555:(t,e,n)=>{"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,{K:()=>i})},5639:(t,e,n)=>{"use strict";n.d(e,{b:()=>s});var i=n(7574);function s(t){return!!t&&(t instanceof i.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},4072:(t,e,n)=>{"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{t:()=>i})},4869:(t,e,n)=>{"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,{K:()=>i})},7444:(t,e,n)=>{"use strict";n.d(e,{s:()=>u});var i=n(5015),s=n(4449),r=n(377),o=n(6554),a=n(9489),l=n(4072),c=n(1555);const u=t=>{if(t&&"function"==typeof t[o.L])return u=t,t=>{const e=u[o.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,a.z)(t))return(0,i.V)(t);if((0,l.t)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.z),t);if(t&&"function"==typeof t[r.hZ])return e=t,t=>{const n=e[r.hZ]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=(0,c.K)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,u}},5015:(t,e,n)=>{"use strict";n.d(e,{V:()=>i});const i=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()}},3811:function(t){var e;t.exports=(e=function(){var t=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xa2":"cent","\xa3":"pound","\xa4":"currency","\xa5":"yen","\xa9":"(c)","\xaa":"a","\xae":"(r)","\xba":"o","\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xc6":"AE","\xc7":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xde":"TH","\xdf":"ss","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xe6":"ae","\xe7":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xfe":"th","\xff":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010c":"C","\u010d":"c","\u010e":"D","\u010f":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011a":"E","\u011b":"e","\u011e":"G","\u011f":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012a":"i","\u012b":"i","\u012e":"I","\u012f":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013b":"L","\u013c":"l","\u013d":"L","\u013e":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014c":"O","\u014d":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015a":"S","\u015b":"s","\u015e":"S","\u015f":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016a":"u","\u016b":"u","\u016e":"U","\u016f":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017a":"z","\u017b":"Z","\u017c":"z","\u017d":"Z","\u017e":"z","\u018f":"E","\u0192":"f","\u01a0":"O","\u01a1":"o","\u01af":"U","\u01b0":"u","\u01c8":"LJ","\u01c9":"lj","\u01cb":"NJ","\u01cc":"nj","\u0218":"S","\u0219":"s","\u021a":"T","\u021b":"t","\u0259":"e","\u02da":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038a":"I","\u038c":"O","\u038e":"Y","\u038f":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039a":"K","\u039b":"L","\u039c":"M","\u039d":"N","\u039e":"3","\u039f":"O","\u03a0":"P","\u03a1":"R","\u03a3":"S","\u03a4":"T","\u03a5":"Y","\u03a6":"F","\u03a7":"X","\u03a8":"PS","\u03a9":"W","\u03aa":"I","\u03ab":"Y","\u03ac":"a","\u03ad":"e","\u03ae":"h","\u03af":"i","\u03b0":"y","\u03b1":"a","\u03b2":"b","\u03b3":"g","\u03b4":"d","\u03b5":"e","\u03b6":"z","\u03b7":"h","\u03b8":"8","\u03b9":"i","\u03ba":"k","\u03bb":"l","\u03bc":"m","\u03bd":"n","\u03be":"3","\u03bf":"o","\u03c0":"p","\u03c1":"r","\u03c2":"s","\u03c3":"s","\u03c4":"t","\u03c5":"y","\u03c6":"f","\u03c7":"x","\u03c8":"ps","\u03c9":"w","\u03ca":"i","\u03cb":"y","\u03cc":"o","\u03cd":"y","\u03ce":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040a":"NJ","\u040b":"C","\u040f":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041a":"K","\u041b":"L","\u041c":"M","\u041d":"N","\u041e":"O","\u041f":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042a":"U","\u042b":"Y","\u042c":"","\u042d":"E","\u042e":"Yu","\u042f":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043a":"k","\u043b":"l","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044a":"u","\u044b":"y","\u044c":"","\u044d":"e","\u044e":"yu","\u044f":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045a":"nj","\u045b":"c","\u045d":"u","\u045f":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049a":"KH","\u049b":"kh","\u04a2":"NG","\u04a3":"ng","\u04ae":"UE","\u04af":"ue","\u04b0":"U","\u04b1":"u","\u04ba":"H","\u04bb":"h","\u04d8":"AE","\u04d9":"ae","\u04e8":"OE","\u04e9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E\'","\u0538":"Y\'","\u0539":"T\'","\u053a":"JH","\u053b":"I","\u053c":"L","\u053d":"X","\u053e":"C\'","\u053f":"K","\u0540":"H","\u0541":"D\'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054a":"P","\u054b":"J","\u054c":"R\'","\u054d":"S","\u054e":"V","\u054f":"T","\u0550":"R","\u0551":"C","\u0553":"P\'","\u0554":"Q\'","\u0555":"O\'\'","\u0556":"F","\u0587":"EV","\u0e3f":"baht","\u10d0":"a","\u10d1":"b","\u10d2":"g","\u10d3":"d","\u10d4":"e","\u10d5":"v","\u10d6":"z","\u10d7":"t","\u10d8":"i","\u10d9":"k","\u10da":"l","\u10db":"m","\u10dc":"n","\u10dd":"o","\u10de":"p","\u10df":"zh","\u10e0":"r","\u10e1":"s","\u10e2":"t","\u10e3":"u","\u10e4":"f","\u10e5":"k","\u10e6":"gh","\u10e7":"q","\u10e8":"sh","\u10e9":"ch","\u10ea":"ts","\u10eb":"dz","\u10ec":"ts","\u10ed":"ch","\u10ee":"kh","\u10ef":"j","\u10f0":"h","\u1e80":"W","\u1e81":"w","\u1e82":"W","\u1e83":"w","\u1e84":"W","\u1e85":"w","\u1e9e":"SS","\u1ea0":"A","\u1ea1":"a","\u1ea2":"A","\u1ea3":"a","\u1ea4":"A","\u1ea5":"a","\u1ea6":"A","\u1ea7":"a","\u1ea8":"A","\u1ea9":"a","\u1eaa":"A","\u1eab":"a","\u1eac":"A","\u1ead":"a","\u1eae":"A","\u1eaf":"a","\u1eb0":"A","\u1eb1":"a","\u1eb2":"A","\u1eb3":"a","\u1eb4":"A","\u1eb5":"a","\u1eb6":"A","\u1eb7":"a","\u1eb8":"E","\u1eb9":"e","\u1eba":"E","\u1ebb":"e","\u1ebc":"E","\u1ebd":"e","\u1ebe":"E","\u1ebf":"e","\u1ec0":"E","\u1ec1":"e","\u1ec2":"E","\u1ec3":"e","\u1ec4":"E","\u1ec5":"e","\u1ec6":"E","\u1ec7":"e","\u1ec8":"I","\u1ec9":"i","\u1eca":"I","\u1ecb":"i","\u1ecc":"O","\u1ecd":"o","\u1ece":"O","\u1ecf":"o","\u1ed0":"O","\u1ed1":"o","\u1ed2":"O","\u1ed3":"o","\u1ed4":"O","\u1ed5":"o","\u1ed6":"O","\u1ed7":"o","\u1ed8":"O","\u1ed9":"o","\u1eda":"O","\u1edb":"o","\u1edc":"O","\u1edd":"o","\u1ede":"O","\u1edf":"o","\u1ee0":"O","\u1ee1":"o","\u1ee2":"O","\u1ee3":"o","\u1ee4":"U","\u1ee5":"u","\u1ee6":"U","\u1ee7":"u","\u1ee8":"U","\u1ee9":"u","\u1eea":"U","\u1eeb":"u","\u1eec":"U","\u1eed":"u","\u1eee":"U","\u1eef":"u","\u1ef0":"U","\u1ef1":"u","\u1ef2":"Y","\u1ef3":"y","\u1ef4":"Y","\u1ef5":"y","\u1ef6":"Y","\u1ef7":"y","\u1ef8":"Y","\u1ef9":"y","\u2013":"-","\u2018":"\'","\u2019":"\'","\u201c":"\\"","\u201d":"\\"","\u201e":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20a0":"ecu","\u20a2":"cruzeiro","\u20a3":"french franc","\u20a4":"lira","\u20a5":"mill","\u20a6":"naira","\u20a7":"peseta","\u20a8":"rupee","\u20a9":"won","\u20aa":"new shequel","\u20ab":"dong","\u20ac":"euro","\u20ad":"kip","\u20ae":"tugrik","\u20af":"drachma","\u20b0":"penny","\u20b1":"peso","\u20b2":"guarani","\u20b3":"austral","\u20b4":"hryvnia","\u20b5":"cedi","\u20b8":"kazakhstani tenge","\u20b9":"indian rupee","\u20ba":"turkish lira","\u20bd":"russian ruble","\u20bf":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221e":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\ufdfc":"rial"}'),e=JSON.parse('{"de":{"\xc4":"AE","\xe4":"ae","\xd6":"OE","\xf6":"oe","\xdc":"UE","\xfc":"ue","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221e":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xa2":"centavos","\xa3":"libras","\xa4":"moneda","\u20a3":"francos","\u2211":"suma","\u221e":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xa2":"centime","\xa3":"livre","\xa4":"devise","\u20a3":"franc","\u2211":"somme","\u221e":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xa2":"centavo","\u2211":"soma","\xa3":"libra","\u221e":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"}}');function n(n,i){if("string"!=typeof n)throw new Error("slugify: string argument expected");var s=e[(i="string"==typeof i?{replacement:i}:i||{}).locale]||{},r=void 0===i.replacement?"-":i.replacement,o=void 0===i.trim||i.trim,a=n.normalize().split("").reduce(function(e,n){return e+(s[n]||t[n]||(n===r?" ":n)).replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return i.strict&&(a=a.replace(/[^A-Za-z0-9\s]/g,"")),o&&(a=a.trim()),a=a.replace(/\s+/g,r),i.lower&&(a=a.toLowerCase()),a}return n.extend=function(e){Object.assign(t,e)},n})(),t.exports.default=e()},5311:t=>{t.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],i=0;i<t.rangeCount;i++)n.push(t.getRangeAt(i));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||n.forEach(function(e){t.addRange(e)}),e&&e.focus()}}},6397:(t,e,n)=>{"use strict";n.d(e,{o:()=>j});var i=n(6215),s=n(2238),r=n(3679),o=n(8939),a=n(7716),l=n(9654),c=n(5718),u=n(4673),h=n(4655),d=n(4688),p=n(5515),g=n(6627),m=n(8583),f=n(1095),_=n(5396),b=n(616),v=n(3297);function y(t,e){if(1&t&&(a.TgZ(0,"div",23),a._uU(1),a.qZA()),2&t){const t=a.oxw(3).ngIf;a.xp6(1),a.Oqu(t.host)}}function w(t,e){1&t&&(a.TgZ(0,"div",24),a.TgZ(1,"mat-slide-toggle",25),a._uU(2,"Global"),a.qZA(),a.TgZ(3,"p",20),a._uU(4,"Whether all users should be able to select this domain."),a.qZA(),a.qZA())}function x(t,e){if(1&t&&(a.TgZ(0,"div",16),a.TgZ(1,"div",17),a.TgZ(2,"label",18),a._uU(3,"Host"),a.qZA(),a._UZ(4,"input",19),a.TgZ(5,"p",20),a._uU(6),a.qZA(),a.YNc(7,y,2,1,"div",21),a.qZA(),a.YNc(8,w,5,0,"div",22),a.qZA()),2&t){const t=a.oxw(2).ngIf,e=a.oxw();a.xp6(6),a.hij(" Enter the exact domain name you want your ",e.data.resourceName||"links"," to be accessible with. It can be a subdomain (example.yourdomain.com) or root domain (yourdomain.com). "),a.xp6(1),a.Q6J("ngIf",t.host),a.xp6(1),a.Q6J("ngIf",e.insideAdmin())}}function C(t,e){if(1&t&&(a.ynx(0),a.TgZ(1,"p",20),a._uU(2," Add this CNAME record to your domain by visiting your DNS provider or registrar. "),a.qZA(),a.TgZ(3,"div",27),a.TgZ(4,"div",28),a.TgZ(5,"strong"),a._uU(6,"CNAME"),a.qZA(),a._uU(7),a.qZA(),a.qZA(),a.BQk()),2&t){const t=a.oxw(4);a.xp6(7),a.hij(" ",t.baseUrl(),"")}}function k(t,e){if(1&t&&(a.ynx(0),a.TgZ(1,"p",20),a._uU(2," Add this A record to your domain by visiting your DNS provider or registrar. "),a.qZA(),a.TgZ(3,"div",27),a.TgZ(4,"div",28),a.TgZ(5,"strong"),a._uU(6,"A"),a.qZA(),a._uU(7),a.qZA(),a.qZA(),a.BQk()),2&t){const t=a.oxw(4);a.xp6(7),a.hij(" ",t.serverIp,"")}}function A(t,e){if(1&t&&(a.TgZ(0,"div",26),a.YNc(1,C,8,1,"ng-container",6),a.ALo(2,"async"),a.YNc(3,k,8,1,"ng-container",6),a.ALo(4,"async"),a.qZA()),2&t){const t=a.oxw(3);a.xp6(1),a.Q6J("ngIf",a.lcZ(2,2,t.isSubdomain$)),a.xp6(2),a.Q6J("ngIf",!a.lcZ(4,4,t.isSubdomain$))}}function E(t,e){1&t&&(a.TgZ(0,"div",27),a._UZ(1,"loading-indicator",32),a.TgZ(2,"div",33),a._uU(3,"Checking DNS configuration..."),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Q6J("isVisible",!0))}const S=function(t){return{host:t}};function T(t,e){if(1&t&&(a.TgZ(0,"div",39),a._uU(1,' DNS records for the domain are setup, however it seems that your server is not configured to handle requests from "host" '),a.qZA()),2&t){const t=a.oxw(5);a.Q6J("transValues",a.VKq(1,S,t.form.value.host))}}const O=function(t){return{location:t}};function I(t,e){if(1&t&&(a.TgZ(0,"div",39),a.ALo(1,"async"),a._uU(2),a.ALo(3,"async"),a.qZA()),2&t){const t=a.oxw(5);a.Q6J("transValues",a.VKq(6,O,a.lcZ(1,2,t.isSubdomain$)?t.baseUrl():t.serverIp)),a.xp6(2),a.hij(" The domain is missing ",a.lcZ(3,4,t.isSubdomain$)?"CNAME":"A"," record pointing to :location or the changes haven't propagated yet. ")}}function P(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",34),a._UZ(1,"mat-icon",35),a.YNc(2,T,2,3,"div",36),a.ALo(3,"async"),a.YNc(4,I,4,8,"ng-template",null,37,a.W1O),a.qZA(),a.TgZ(6,"p"),a._uU(7),a.ALo(8,"trans"),a.TgZ(9,"button",38),a.NdJ("click",function(){return a.CHM(t),a.oxw(4).validateDnsForDomain()}),a.ALo(10,"async"),a._uU(11," refresh "),a.qZA(),a.qZA()}if(2&t){const t=a.MAs(5),e=a.oxw(4);a.xp6(2),a.Q6J("ngIf","serverNotConfigured"===a.lcZ(3,4,e.validationFailReason$)&&e.currentUserIsAdmin)("ngIfElse",t),a.xp6(5),a.hij(" ",a.lcZ(8,6,"You can wait and try again later or")," "),a.xp6(2),a.Q6J("disabled",a.lcZ(10,8,e.loading$))}}function D(t,e){if(1&t&&(a.TgZ(0,"div",29),a.YNc(1,E,4,1,"div",30),a.ALo(2,"async"),a.YNc(3,P,12,10,"ng-template",null,31,a.W1O),a.qZA()),2&t){const t=a.MAs(4),e=a.oxw(3);a.xp6(1),a.Q6J("ngIf",a.lcZ(2,2,e.loading$))("ngIfElse",t)}}function F(t,e){1&t&&(a.TgZ(0,"div",40),a.TgZ(1,"div",27),a._UZ(2,"loading-indicator",32),a.TgZ(3,"div",33),a._uU(4,"Connecting domain..."),a.qZA(),a.qZA(),a.TgZ(5,"p",20),a._uU(6,"Don't close this window until domain is connected."),a.qZA(),a.qZA()),2&t&&(a.xp6(2),a.Q6J("isVisible",!0))}function M(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",41),a.NdJ("click",function(){return a.CHM(t),a.oxw(3).previousStep()}),a._UZ(1,"mat-icon",42),a._uU(2," Previous "),a.qZA()}}function Z(t,e){if(1&t){const t=a.EpF();a.ynx(0),a.TgZ(1,"mat-dialog-content"),a.YNc(2,x,9,3,"div",7),a.YNc(3,A,5,6,"div",8),a.YNc(4,D,5,4,"div",9),a.YNc(5,F,7,1,"div",10),a.qZA(),a.TgZ(6,"mat-dialog-actions"),a.TgZ(7,"button",11),a.NdJ("click",function(){return a.CHM(t),a.oxw(2).close()}),a._uU(8," Cancel "),a.qZA(),a.TgZ(9,"div",12),a.YNc(10,M,3,0,"button",13),a.TgZ(11,"button",14),a.ALo(12,"async"),a.ALo(13,"async"),a._uU(14," Next "),a._UZ(15,"mat-icon",15),a.qZA(),a.qZA(),a.qZA(),a.BQk()}if(2&t){const t=e.ngIf,n=a.oxw(2);a.xp6(2),a.Q6J("ngIf",t===n.Steps.Host),a.xp6(1),a.Q6J("ngIf",t===n.Steps.Info),a.xp6(1),a.Q6J("ngIf",t===n.Steps.Validate),a.xp6(1),a.Q6J("ngIf",t===n.Steps.Finalize),a.xp6(5),a.Q6J("ngIf",t>1),a.xp6(1),a.Q6J("disabled",a.lcZ(12,6,n.loading$)||a.lcZ(13,8,n.disabled$))}}function R(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"form",5),a.NdJ("ngSubmit",function(){return a.CHM(t),a.oxw().nextStep()}),a.YNc(1,Z,16,10,"ng-container",6),a.ALo(2,"async"),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("formGroup",t.form),a.xp6(1),a.Q6J("ngIf",a.lcZ(2,2,t.currentStep$))}}var L=(()=>(function(t){t[t.Host=1]="Host",t[t.Info=2]="Info",t[t.Validate=3]="Validate",t[t.Finalize=4]="Finalize"}(L||(L={})),L))();let N=(()=>{class t{constructor(t,e,n,s,o,a,l){this.dialogRef=t,this.data=e,this.customDomains=n,this.toast=s,this.settings=o,this.router=a,this.currentUser=l,this.Steps=L,this.currentStep$=new i.X(1),this.loading$=new i.X(!1),this.disabled$=new i.X(!1),this.updating$=new i.X(!1),this.errors$=new i.X({}),this.validationFailReason$=new i.X(null),this.isSubdomain$=new i.X(!1),this.form=new r.cw({host:new r.NI,global:new r.NI(!1)}),this.updating$.next(!!e.domain),this.currentUserIsAdmin=this.currentUser.isAdmin(),e.domain&&this.form.patchValue(e.domain)}ngOnInit(){this.form.get("host").valueChanges.subscribe(t=>{this.isSubdomain$.next((t.replace("www.","").match(/\./g)||[]).length>1)})}connectDomain(){this.loading$.next(!0),(this.updating$.value?this.customDomains.update(this.data.domain.id,this.form.value):this.customDomains.create(this.form.value)).pipe((0,o.x)(()=>this.loading$.next(!1))).subscribe(t=>{this.toast.open("Domain connected"),this.close(t.domain)},t=>{this.errors$.next(t.errors)})}validateDnsForDomain(){this.disabled$.next(!0),this.loading$.next(!0),this.customDomains.validate(this.form.value.host).pipe((0,o.x)(()=>this.loading$.next(!1))).subscribe(t=>{t&&"connected"===t.result&&this.nextStep()},t=>{this.validationFailReason$.next(t.failReason)})}authorizeCrupdate(){this.loading$.next(!0);const t=Object.assign({},this.form.value);this.data.domain&&(t.domainId=this.data.domain.id),this.customDomains.authorizeCrupdate(t).pipe((0,o.x)(()=>this.loading$.next(!1))).subscribe(t=>{this.serverIp=t.serverIp,this.nextStep(!0)},t=>this.errors$.next(t.errors))}close(t){this.dialogRef.close(t)}previousStep(){this.currentStep$.value>L.Host&&this.currentStep$.next(this.currentStep$.value-1)}nextStep(t=!1){if(this.currentStep$.value===L.Host&&!t)return this.authorizeCrupdate();this.currentStep$.next(this.currentStep$.value+1),this.currentStep$.value===L.Validate?this.data.domain&&this.form.value.host===this.data.domain.host?this.connectDomain():this.validateDnsForDomain():this.currentStep$.value===L.Finalize&&this.connectDomain()}baseUrl(){return this.settings.getBaseUrl().replace(/\/$/,"")}insideAdmin(){return this.router.url.indexOf("admin")>-1}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(l.c),a.Y36(c.F),a.Y36(u.Z),a.Y36(h.F0),a.Y36(d.I))},t.\u0275cmp=a.Xpm({type:t,selectors:[["crupdate-custom-domain-modal"]],decls:7,vars:3,consts:[[1,"modal-header"],["mat-dialog-title","","trans",""],["type","button","tabindex","-1",1,"close-button","no-style",3,"click"],["svgIcon","close"],["ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["ngNativeValidate","",3,"formGroup","ngSubmit"],[4,"ngIf"],["class","host-step",4,"ngIf"],["class","info-step",4,"ngIf"],["class","validate-step",4,"ngIf"],["class","finalize-step",4,"ngIf"],["type","button","mat-button","","trans","",1,"cancel-button",3,"click"],[1,"submit-btns"],["mat-button","","color","accent","class","step-btn","type","button","trans","",3,"click",4,"ngIf"],["type","submit","mat-raised-button","","color","accent","trans","",1,"step-btn",3,"disabled"],["svgIcon","keyboard-arrow-right",1,"step-icon"],[1,"host-step"],[1,"input-container"],["for","host","trans",""],["type","text","id","host","formControlName","host","placeholder","https://example.com","maxlength","100","required","",1,"host-input"],["trans",""],["class","error",4,"ngIf"],["class","setting-toggle-container global-toggle",4,"ngIf"],[1,"error"],[1,"setting-toggle-container","global-toggle"],["id","global","formControlName","global","trans",""],[1,"info-step"],[1,"message-widget"],[1,"message"],[1,"validate-step"],["class","message-widget",4,"ngIf","ngIfElse"],["notLoading",""],[1,"small","icon",3,"isVisible"],["trans","",1,"message"],[1,"message-widget","warning-color"],["svgIcon","warning",1,"icon"],["class","message","trans","",3,"transValues",4,"ngIf","ngIfElse"],["dnsNotSetup",""],["type","button","trans","",1,"no-style","refresh-btn",3,"disabled","click"],["trans","",1,"message",3,"transValues"],[1,"finalize-step"],["mat-button","","color","accent","type","button","trans","",1,"step-btn",3,"click"],["svgIcon","keyboard-arrow-left",1,"step-icon"]],template:function(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"h2",1),a._uU(2,"Connect Domain"),a.qZA(),a.TgZ(3,"button",2),a.NdJ("click",function(){return e.close()}),a._UZ(4,"mat-icon",3),a.qZA(),a.qZA(),a.YNc(5,R,3,4,"form",4),a.ALo(6,"async")),2&t&&(a.xp6(5),a.Q6J("ngIf",a.lcZ(6,1,e.errors$)))},directives:[s.uh,p.P,g.Hw,m.O5,r.JL,r.sg,s.xY,s.H8,f.lW,r.Fj,r.JJ,r.u,r.nD,r.Q7,_.Rr,b.Q],pipes:[m.Ov,v.R],styles:["[_nghost-%COMP%]{display:block;width:400px;max-width:100%}.host-input[_ngcontent-%COMP%]{font-size:1.6rem}.mat-dialog-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-top:25px;margin-top:25px;border-top:1px solid var(--be-divider-lighter)}.modal-header[_ngcontent-%COMP%]{border-bottom:1px solid var(--be-divider-lighter);margin-bottom:20px;padding-bottom:25px}.message-widget[_ngcontent-%COMP%]{display:flex;align-items:center;padding:15px;border-radius:4px;background-color:#ecf3ff;color:var(--be-accent-default);font-size:1.6rem}.message-widget[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}.message-widget.warning-color[_ngcontent-%COMP%]{background-color:#fef0e2;color:#f77d05}.message-widget[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{flex-shrink:0;position:static;margin-right:15px}p[_ngcontent-%COMP%]{font-size:1.3rem;color:var(--be-secondary-text);margin:8px 0}.mat-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%]{min-width:105px;line-height:40px}.refresh-btn[_ngcontent-%COMP%]{color:var(--be-accent-default);text-decoration:underline}.step-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-right:5px}.global-toggle[_ngcontent-%COMP%]{border-top:1px solid var(--be-divider-lighter);margin-top:20px;padding-top:20px;margin-bottom:0}@media only screen and (max-width: 768px){.cancel-button[_ngcontent-%COMP%]{display:none}}"],changeDetection:0}),t})();var U=n(8208),q=n(3342),B=n(5381);let j=(()=>{class t{constructor(t,e,n,s){this.customDomains=t,this.currentUser=e,this.modal=n,this.toast=s,this.domains$=new i.X([]),this.fetched=!1}fetch(){this.fetched||this.customDomains.index({userId:this.currentUser.get("id"),with:["resource"]}).subscribe(t=>{this.domains$.next(t.pagination.data),this.fetched=!0})}openConnectDomainModal(){return this.modal.open(N,{resourceName:"projects"}).afterClosed().pipe((0,q.b)(t=>{t&&this.domains$.next([...this.domains$.value,t])}))}attachDomainToProject(t,e){return this.customDomains.update(e.id,{resource_id:t.id,resource_type:"App\\Project"}).pipe((0,q.b)(()=>{const n=[...this.domains$.value],i=n.findIndex(t=>t.id===e.id);n[i].resource=t,this.domains$.next(n)}))}maybeRemoveDomain(t){this.modal.show(U.z,{title:"Remove Domain",body:"Are you sure you want to permanently remove this domain from your account?",ok:"Remove"}).afterClosed().subscribe(e=>{e&&this.removeDomain(t)})}removeDomain(t){this.customDomains.delete([t.id]).subscribe(()=>{const e=this.domains$.value.filter(e=>e.id!==t.id);this.domains$.next(e),this.toast.open("Domain removed.")})}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(l.c),a.LFG(d.I),a.LFG(B.u),a.LFG(c.F))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},3549:(t,e,n)=>{"use strict";function i(t,e){const n=document.createElement("link");return n.rel="stylesheet",n.href=t,e&&(n.id=e),n}n.d(e,{s:()=>i})},3001:(t,e,n)=>{"use strict";n.d(e,{f:()=>o});var i=n(8480);function s(t,e){const n=document.createElement("script");return e&&(n.id=e),n.src=t,n}var r=n(3549);function o(t="",e){return"<!DOCTYPE html>"+function(t="",e){var n;const o=(new DOMParser).parseFromString(null==t?void 0:t.trim(),"text/html");return a.forEach(t=>{const e=o.querySelectorAll(t);for(let n=0;n<e.length;n++)e[n].parentElement.removeChild(e[n])}),o.querySelectorAll("[contenteditable]").forEach(t=>t.removeAttribute("contenteditable")),function(t){t.head.appendChild((0,r.s)(`css/custom_elements.css?${(0,i.O)(8)}`,"custom-elements-css")),t.head.appendChild((0,r.s)(`css/code_editor_styles.css?${(0,i.O)(8)}`,"custom-css")),t.body.appendChild(s(`js/code_editor_scripts.js?${(0,i.O)(8)}`,"custom-js"))}(o),!1===(null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.includeBootstrap)||function(t){return!!Array.from(t.querySelectorAll("link")).find(t=>t.href.includes("bootstrap"))}(o)||function(t){t.head.appendChild((0,r.s)(`bootstrap/bootstrap.min.css?${(0,i.O)(8)}`,"bootstrap-css")),t.body.appendChild(s(`bootstrap/jquery.min.js?${(0,i.O)(8)}`,"jquery")),t.body.appendChild(s(`bootstrap/bootstrap.min.js?${(0,i.O)(8)}`,"bootstrap-js"))}(o),o.querySelectorAll('link[href$="font-awesome.min.css"]').forEach(t=>t.remove()),function(t){t.head.appendChild((0,r.s)(`font-awesome/font-awesome.min.css?${(0,i.O)(8)}`,"font-awesome"))}(o),o}(t,e).documentElement.outerHTML}const a=["base","#jquery","#custom-css","#custom-js","#template-js","[id^=library]","#theme-css","#template-css","#framework-css","#framework-js","#preview-css","#font-awesome","#custom-elements-css","#bootstrap-css","#bootstrap-js",".html2canvas-container"]},6052:(t,e,n)=>{"use strict";n.d(e,{q:()=>f});var i=n(1095),s=n(7539),r=n(2238),o=n(8583),a=n(7716),l=n(2458);n(9490),n(9765),n(6782),n(9761),n(9238),n(8345),n(6461),n(3679);let c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[l.BQ],l.BQ]}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[l.uc,l.si,l.BQ,l.us,o.ez],l.uc,l.BQ,l.us,c]}),t})();var h=n(3935),d=n(2178),p=n(5396),g=n(1436),m=n(6627);let f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[i.ot,s.p9,g.AV,r.Is,h.Tx,u,p.rP,d.Cv,m.Ps],i.ot,s.p9,g.AV,r.Is,h.Tx,u,d.Cv,p.rP,m.Ps]}),t})()},4078:(t,e,n)=>{"use strict";n.d(e,{D:()=>i});const i='<div class="container">\n    <div class="row">\n        <div class="col-sm-4"></div>\n        <div class="col-sm-4"></div>\n        <div class="col-sm-4"></div>\n    </div>\n</div>'},526:(t,e,n)=>{"use strict";n.d(e,{v:()=>z});var i=n(4762),s=n(2238),r=n(6966),o=n(3001),a=n(4078),l=n(7716),c=n(1371),u=n(5718),h=n(9970),d=n(8583),p=n(1095),g=n(6627),m=n(3679),f=n(5515),_=n(4395),b=n(7519),v=n(3190),y=n(5304),w=n(8939),x=n(6215),C=n(5917),k=n(3429),A=n(3935),E=n(616);const S=["searchInput"];function T(t,e){if(1&t&&(l.TgZ(0,"span"),l._UZ(1,"img",20),l._uU(2),l.qZA()),2&t){const t=e.ngIf;l.xp6(1),l.Q6J("src",t.avatar,l.LSH),l.xp6(1),l.hij("",t.display_name," ")}}function O(t,e){1&t&&(l.TgZ(0,"span",21),l._uU(1,"Any"),l.qZA())}function I(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",22),l.NdJ("click",function(){return l.CHM(t),l.oxw().clearSearchInput()}),l._UZ(1,"mat-icon",23),l.qZA()}}function P(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",14),l.NdJ("click",function(){const e=l.CHM(t).$implicit;return l.oxw().selectUser(e)}),l._UZ(1,"img",24),l.TgZ(2,"div",25),l.TgZ(3,"div",26),l._uU(4),l.qZA(),l.TgZ(5,"div",27),l._uU(6),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit;l.xp6(1),l.Q6J("src",t.avatar,l.LSH),l.xp6(3),l.Oqu(t.display_name),l.xp6(2),l.Oqu(t.email)}}function D(t,e){1&t&&(l.TgZ(0,"div",28),l._uU(1,"No users found."),l.qZA())}let F=(()=>{class t{constructor(t){this.users=t,this.searchFormControl=new m.NI,this.loading$=new x.X(!1),this.users$=new x.X([]),this.selectedUser$=new x.X(null),this.searchedOnce=!1}ngOnInit(){this.bindToSearchControl()}writeValue(t){"object"==typeof t&&this.selectedUser$.next(t)}registerOnChange(t){this.propagateChange=t}registerOnTouched(){}bindToSearchControl(){this.searchFormControl.valueChanges.pipe((0,_.b)(150),(0,b.x)(),(0,v.w)(t=>this.searchUsers(t)),(0,y.K)(()=>(0,C.of)([]))).subscribe(t=>{this.searchedOnce=!0,this.users$.next(t)})}searchUsers(t){return this.loading$.next(!0),this.users.getAll({query:t,perPage:7}).pipe((0,w.x)(()=>this.loading$.next(!1)))}onMenuOpened(){this.searchedOnce||this.clearSearchInput(),setTimeout(()=>{this.searchInput.nativeElement.focus()})}selectUser(t){this.selectedUser$.next(t),this.propagateChange(t)}clearSearchInput(){this.searchFormControl.setValue("")}onMenuClosed(){this.loading$.next(!1),this.clearSearchInput()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(k.Q))},t.\u0275cmp=l.Xpm({type:t,selectors:[["select-user-input"]],viewQuery:function(t,e){if(1&t&&l.Gf(S,7),2&t){let t;l.iGM(t=l.CRH())&&(e.searchInput=t.first)}},features:[l._Bn([{provide:m.JU,useExisting:t,multi:!0}])],decls:28,vars:16,consts:[[1,"input-container"],["trans","",1,"fake-label"],["tabindex","0",1,"fake-input",3,"matMenuTriggerFor","menuOpened","menuClosed"],[4,"ngIf","ngIfElse"],["anyUser",""],[1,"arrow-container"],[1,"arrow"],["menu","matMenu"],[1,"input-container","search-input-container",3,"click"],[1,"search-input-wrapper"],["type","text","placeholder","Search...","trans-placeholder","",3,"formControl","blur"],["searchInput",""],["class","clear-search-input-button","mat-icon-button","",3,"click",4,"ngIf"],[1,"small",3,"isVisible"],["mat-menu-item","",3,"click"],["src","client/assets/images/anonymous-user.png","alt",""],[1,"info","any-user-info"],["trans","",1,"name"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["class","nothing-found-item","aria-disabled","true","mat-menu-item","","disabled","","trans","",4,"ngIf"],[3,"src"],["trans",""],["mat-icon-button","",1,"clear-search-input-button",3,"click"],["svgIcon","close"],["alt","",3,"src"],[1,"user-info"],[1,"name"],[1,"email"],["aria-disabled","true","mat-menu-item","","disabled","","trans","",1,"nothing-found-item"]],template:function(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",0),l.TgZ(1,"div",1),l._uU(2,"User"),l.qZA(),l.TgZ(3,"div",2),l.NdJ("menuOpened",function(){return e.onMenuOpened()})("menuClosed",function(){return e.onMenuClosed()}),l.YNc(4,T,3,2,"span",3),l.ALo(5,"async"),l.YNc(6,O,2,0,"ng-template",null,4,l.W1O),l.TgZ(8,"div",5),l._UZ(9,"div",6),l.qZA(),l.qZA(),l.qZA(),l.TgZ(10,"mat-menu",null,7),l.TgZ(12,"div",8),l.NdJ("click",function(t){return t.stopPropagation()}),l.TgZ(13,"div",9),l.TgZ(14,"input",10,11),l.NdJ("blur",function(){return l.CHM(t),l.MAs(15).focus()}),l.qZA(),l.YNc(16,I,2,0,"button",12),l._UZ(17,"loading-indicator",13),l.ALo(18,"async"),l.qZA(),l.qZA(),l.TgZ(19,"div",14),l.NdJ("click",function(){return e.selectUser(null)}),l._UZ(20,"img",15),l.TgZ(21,"div",16),l.TgZ(22,"div",17),l._uU(23,"Any User"),l.qZA(),l.qZA(),l.qZA(),l.YNc(24,P,7,3,"div",18),l.ALo(25,"async"),l.YNc(26,D,2,0,"div",19),l.ALo(27,"async"),l.qZA()}if(2&t){const t=l.MAs(7),n=l.MAs(11);l.xp6(3),l.Q6J("matMenuTriggerFor",n),l.xp6(1),l.Q6J("ngIf",l.lcZ(5,8,e.selectedUser$))("ngIfElse",t),l.xp6(10),l.Q6J("formControl",e.searchFormControl),l.xp6(2),l.Q6J("ngIf",e.searchFormControl.value),l.xp6(1),l.Q6J("isVisible",l.lcZ(18,10,e.loading$)),l.xp6(7),l.Q6J("ngForOf",l.lcZ(25,12,e.users$)),l.xp6(2),l.Q6J("ngIf",e.searchedOnce&&!l.lcZ(27,14,e.users$).length)}},directives:[f.P,A.p6,d.O5,A.VK,m.Fj,m.JJ,m.oH,E.Q,A.OP,d.sg,p.lW,g.Hw],pipes:[d.Ov],styles:["[_nghost-%COMP%]{display:block;min-width:280px;max-width:100%}.fake-input[_ngcontent-%COMP%]{position:relative}.fake-label[_ngcontent-%COMP%]{text-transform:capitalize}img[_ngcontent-%COMP%]{display:inline-block;margin-right:8px;width:25px;height:25px;object-fit:cover;border-radius:4px;vertical-align:middle}.arrow-container[_ngcontent-%COMP%]{height:100%;position:absolute;top:1px;right:1px;width:20px}.arrow[_ngcontent-%COMP%]{position:absolute;border-color:#000 #0000 #0000;border-style:solid;border-width:5px 4px 0;height:0;width:0;left:50%;top:50%;margin-left:-4px;margin-top:-2px}.search-input-container[_ngcontent-%COMP%]{padding:0 8px;min-width:280px;max-width:100%;margin-bottom:10px}.search-input-wrapper[_ngcontent-%COMP%]{position:relative}.clear-search-input-button[_ngcontent-%COMP%]{position:absolute;top:4px;right:0;color:var(--be-secondary-text)}.mat-menu-item[_ngcontent-%COMP%]{display:flex;vertical-align:middle;line-height:normal}.mat-menu-item.selected[_ngcontent-%COMP%]{background-color:var(--be-accent-emphasis)}.mat-menu-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:35px;height:35px;align-self:center}.mat-menu-item[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{text-transform:capitalize}.mat-menu-item[_ngcontent-%COMP%]   .email[_ngcontent-%COMP%]{color:var(--be-secondary-text);font-size:1.3rem}.any-user-info[_ngcontent-%COMP%], .user-info[_ngcontent-%COMP%]{align-self:center}loading-indicator[_ngcontent-%COMP%]{position:absolute;top:12px;right:40px}.nothing-found-item[_ngcontent-%COMP%]{color:var(--be-hint-text);line-height:48px}"],changeDetection:0}),t})();function M(t,e){1&t&&(l.TgZ(0,"h2",15),l._uU(1,"Update Project"),l.qZA())}function Z(t,e){1&t&&(l.TgZ(0,"h2",15),l._uU(1,"Create Project"),l.qZA())}function R(t,e){if(1&t&&(l.TgZ(0,"div",16),l._uU(1),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Oqu(t.errors.name)}}function L(t,e){if(1&t&&(l.TgZ(0,"option",24),l._uU(1),l.qZA()),2&t){const t=e.$implicit;l.Q6J("ngValue",t.name),l.xp6(1),l.Oqu((null==t.config?null:t.config.name)||t.name)}}function N(t,e){if(1&t&&(l.TgZ(0,"div",16),l._uU(1),l.qZA()),2&t){const t=l.oxw(2);l.xp6(1),l.Oqu(t.errors.template)}}function U(t,e){if(1&t&&(l.TgZ(0,"div",16),l._uU(1),l.qZA()),2&t){const t=l.oxw(2);l.xp6(1),l.Oqu(t.errors.published)}}function q(t,e){if(1&t){const t=l.EpF();l.ynx(0),l.TgZ(1,"div",6),l.TgZ(2,"select-user-input",17),l.NdJ("ngModelChange",function(e){return l.CHM(t),l.oxw().model.users[0]=e}),l.qZA(),l.qZA(),l.TgZ(3,"div",6),l.TgZ(4,"label",18),l._uU(5,"Template"),l.qZA(),l.TgZ(6,"select",19),l.NdJ("ngModelChange",function(e){return l.CHM(t),l.oxw().model.template=e}),l.TgZ(7,"option",20),l._uU(8,"None"),l.qZA(),l.YNc(9,L,2,2,"option",21),l.qZA(),l.YNc(10,N,2,1,"div",9),l.qZA(),l.TgZ(11,"div",6),l.TgZ(12,"label",22),l._uU(13,"Published"),l.qZA(),l.TgZ(14,"select",23),l.NdJ("ngModelChange",function(e){return l.CHM(t),l.oxw().model.published=e}),l.TgZ(15,"option",20),l._uU(16,"Yes"),l.qZA(),l.TgZ(17,"option",20),l._uU(18,"No"),l.qZA(),l.qZA(),l.YNc(19,U,2,1,"div",9),l.qZA(),l.BQk()}if(2&t){const t=l.oxw();l.xp6(2),l.Q6J("ngModel",t.model.users[0]),l.xp6(4),l.Q6J("ngModel",t.model.template),l.xp6(1),l.Q6J("ngValue",null),l.xp6(2),l.Q6J("ngForOf",t.templates),l.xp6(1),l.Q6J("ngIf",t.errors.template),l.xp6(4),l.Q6J("ngModel",t.model.published),l.xp6(1),l.Q6J("ngValue",!0),l.xp6(2),l.Q6J("ngValue",!1),l.xp6(2),l.Q6J("ngIf",t.errors.published)}}function B(t,e){1&t&&(l.TgZ(0,"span",25),l._uU(1,"Update"),l.qZA())}function j(t,e){1&t&&(l.TgZ(0,"span",25),l._uU(1,"Create"),l.qZA())}let z=(()=>{class t{constructor(t,e,n,i,s){this.dialogRef=t,this.data=e,this.projects=n,this.toast=i,this.templatesApi=s,this.templates=[],this.loading=!1,this.model={users:[]},this.updating=!1,this.errors={}}ngOnInit(){this.data.showExtraConfig&&this.getTemplates(),this.hydrateModel(),this.updating=!!this.data.project}confirm(){return(0,i.mG)(this,void 0,void 0,function*(){let t;this.loading=!0,this.model.slug=(0,r.V)(this.model.name),t=this.updating?this.projects.update(this.data.project.id,this.model):this.projects.create(yield this.getNewProjectPayload()),t.subscribe(t=>{this.close(t.project),this.toast.open("Project has been "+(this.updating?"updated":"created")),this.loading=!1},t=>{this.errors=t.errors,this.loading=!1})})}close(t){this.dialogRef.close(t)}hydrateModel(){this.errors={},this.model={pages:[],published:!0,template:this.data.templateName||null,users:[]},this.data.project&&(this.model.name=this.data.project.name,this.model.users=this.data.project.users,this.model.template=this.data.project.template,this.model.slug=this.data.project.slug)}getTemplates(){this.templatesApi.all().subscribe(t=>{this.templates=t.pagination.data})}getNewProjectPayload(){const t=this.data.templateName||this.model.template;return t?this.createProjectFromTemplate(t):this.createBlankProject()}createProjectFromTemplate(t){return new Promise(e=>{const n=this.model;this.templatesApi.get(t).subscribe(t=>{n.template_name=t.template.name,n.pages=this.transformTemplatePages(t.template),e(n)})})}createBlankProject(){const t=this.model;return t.pages.push({name:"index",html:(0,o.f)(a.D)}),t}transformTemplatePages(t){return t.pages.map(e=>({name:e.name,html:(0,o.f)(e.html,t)}))}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(s.so),l.Y36(s.WI),l.Y36(c.p),l.Y36(u.F),l.Y36(h.Q))},t.\u0275cmp=l.Xpm({type:t,selectors:[["crupdate-project-modal"]],decls:19,vars:8,consts:[[1,"modal-header"],["class","modal-title","mat-dialog-title","","trans","",4,"ngIf"],["type","button","mat-icon-button","","tabindex","-1",1,"close-button",3,"click"],["svgIcon","close"],["autocomplete","off","ngNativeValidate","",3,"ngSubmit"],[1,"many-inputs"],[1,"input-container"],["for","name","trans",""],["type","text","id","name","name","name","minlength","3","required","",3,"ngModel","ngModelChange"],["class","error",4,"ngIf"],[4,"ngIf"],[1,"buttons","right"],["type","button","mat-button","","trans","",1,"cancel-button",3,"click"],["type","submit","mat-raised-button","","color","accent",1,"button","primary",3,"disabled"],["trans","",4,"ngIf"],["mat-dialog-title","","trans","",1,"modal-title"],[1,"error"],["name","project-owner",3,"ngModel","ngModelChange"],["for","template","trans",""],["id","template","name","template",3,"ngModel","ngModelChange"],["trans","",3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],["for","published","trans",""],["id","published","name","published",3,"ngModel","ngModelChange"],[3,"ngValue"],["trans",""]],template:function(t,e){1&t&&(l.TgZ(0,"div",0),l.YNc(1,M,2,0,"h2",1),l.YNc(2,Z,2,0,"h2",1),l.TgZ(3,"button",2),l.NdJ("click",function(){return e.close()}),l._UZ(4,"mat-icon",3),l.qZA(),l.qZA(),l.TgZ(5,"form",4),l.NdJ("ngSubmit",function(){return e.confirm()}),l.TgZ(6,"mat-dialog-content",5),l.TgZ(7,"div",6),l.TgZ(8,"label",7),l._uU(9,"Name"),l.qZA(),l.TgZ(10,"input",8),l.NdJ("ngModelChange",function(t){return e.model.name=t}),l.qZA(),l.YNc(11,R,2,1,"div",9),l.qZA(),l.YNc(12,q,20,9,"ng-container",10),l.qZA(),l.TgZ(13,"mat-dialog-actions",11),l.TgZ(14,"button",12),l.NdJ("click",function(){return e.close()}),l._uU(15,"Cancel"),l.qZA(),l.TgZ(16,"button",13),l.YNc(17,B,2,0,"span",14),l.YNc(18,j,2,0,"span",14),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.xp6(1),l.Q6J("ngIf",e.updating),l.xp6(1),l.Q6J("ngIf",!e.updating),l.xp6(8),l.Q6J("ngModel",e.model.name),l.xp6(1),l.Q6J("ngIf",e.errors.name),l.xp6(1),l.Q6J("ngIf",e.data.showExtraConfig),l.xp6(4),l.Q6J("disabled",e.loading),l.xp6(1),l.Q6J("ngIf",e.updating),l.xp6(1),l.Q6J("ngIf",!e.updating))},directives:[d.O5,p.lW,g.Hw,m.JL,m.F,s.xY,f.P,m.Fj,m.wO,m.Q7,m.JJ,m.On,s.H8,s.uh,F,m.EJ,m.YN,m.Kr,d.sg],styles:["[_nghost-%COMP%]{display:block;width:400px;max-width:100%}"]}),t})()},5756:(t,e,n)=>{"use strict";n.d(e,{M:()=>et});var i=n(2238),s=n(6215),r=n(7716),o=n(3679),a=n(299),l=n(5718),c=n(4673);let u=(()=>{class t{constructor(t,e,n,i){this.fb=t,this.http=e,this.toast=n,this.settings=i,this.loading$=new s.X(!1),this.form=this.fb.group({formsEmail:"",slug:"",publishDestination:"",customDomainId:null,storeCredentials:!1,builder:this.fb.group({autoSave:!1,selectedContextActions:!1,hoverContextActions:!0}),ftpCredentials:this.fb.group({host:"",username:"",password:"",directory:"",port:21,ssl:!1,remember:!1})})}init(t,e){this.project=t,this.dialogRef=e,this.hydrateForm()}submitForm(){this.http.post(`projects/${this.project.id}/settings`,this.form.value).subscribe(t=>{this.dialogRef.close(t.project),this.toast.open("Settings saved")})}hydrateForm(){var t;const e=Object.assign({},this.project.settings);e.slug=this.project.slug,e.formsEmail||(e.formsEmail=this.project.users[0].email),e.publishDestination||(e.publishDestination="default"),e.customDomainId||(e.customDomainId=null===(t=this.project.domain)||void 0===t?void 0:t.id);let n=e.ftpCredentials||{};n.host||(n=this.settings.getJson("publish.default_credentials",{port:21,ssl:!1})),n.directory||(n.directory=this.project.slug),this.form.patchValue(Object.assign(Object.assign({},e),{ftpCredentials:n}))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(o.qu),r.LFG(a.r),r.LFG(l.F),r.LFG(c.Z))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var h=n(5515),d=n(6627),p=n(5939),g=n(8939),m=n(5381),f=n(9654),_=n(1371),b=n(8518),v=n(6397),y=n(4688),w=n(2861),x=n(8583),C=n(1095),k=n(6403);function A(t,e){1&t&&(r.TgZ(0,"span",17),r._uU(1,"Your site is published."),r.qZA())}function E(t,e){1&t&&(r.TgZ(0,"span",17),r._uU(1,"Your site is not published."),r.qZA())}function S(t,e){1&t&&(r.TgZ(0,"span",17),r._uU(1,"Make Private"),r.qZA())}function T(t,e){1&t&&(r.TgZ(0,"span",17),r._uU(1,"Publish"),r.qZA())}function O(t,e){1&t&&(r.TgZ(0,"option",18),r._uU(1," Your own branded domain "),r.qZA())}function I(t,e){if(1&t&&(r.TgZ(0,"option",25),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t.id),r.xp6(1),r.hij(" ",t.host," ")}}function P(t,e){if(1&t&&(r.TgZ(0,"div",8),r.TgZ(1,"label",21),r._uU(2,"Select Custom Domain"),r.qZA(),r.TgZ(3,"select",22),r.TgZ(4,"option",23),r._uU(5,"None"),r.qZA(),r.YNc(6,I,2,2,"option",24),r.ALo(7,"async"),r.qZA(),r.qZA()),2&t){const t=r.oxw(2);r.xp6(4),r.Q6J("value",null),r.xp6(2),r.Q6J("ngForOf",r.lcZ(7,2,t.userDomains.domains$))}}function D(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"no-results-message",26),r.TgZ(1,"span",27),r._uU(2,"You have not connected any domains yet."),r.qZA(),r.TgZ(3,"div",28),r.TgZ(4,"button",29),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).openConnectDomainModal()}),r.ALo(5,"async"),r._uU(6," Connect Custom Domain "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(2);r.xp6(4),r.Q6J("disabled",r.lcZ(5,1,t.projectSettings.loading$))}}function F(t,e){if(1&t&&(r.ynx(0),r.YNc(1,P,8,4,"div",19),r.ALo(2,"async"),r.YNc(3,D,7,3,"no-results-message",20),r.ALo(4,"async"),r.BQk()),2&t){const t=r.oxw();let e,n;r.xp6(1),r.Q6J("ngIf",null==(e=r.lcZ(2,2,t.userDomains.domains$))?null:e.length),r.xp6(2),r.Q6J("ngIf",t.userDomains.fetched&&!(null!=(n=r.lcZ(4,4,t.userDomains.domains$))&&n.length))}}const M=function(t){return{siteName:t}};let Z=(()=>{class t{constructor(t,e,n,i,s,r,o,a){this.modal=t,this.projectSettings=e,this.customDomains=n,this.projects=i,this.settings=s,this.projectUrl=r,this.userDomains=o,this.currentUser=a}ngOnInit(){this.userDomains.fetch()}toggleProjectState(t){this.projectSettings.loading$.next(!0),this.projects.toggleState(this.projectSettings.project.id,t).pipe((0,g.x)(()=>this.projectSettings.loading$.next(!1))).subscribe(t=>{this.projectSettings.project.published=t.project.model.published})}openConnectDomainModal(){this.userDomains.openConnectDomainModal().subscribe(t=>{t&&this.userDomains.attachDomainToProject(this.projectSettings.project,t).subscribe(()=>{this.projectSettings.project.domain=t,this.projectSettings.form.patchValue({customDomainId:t.id})})})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(m.u),r.Y36(u),r.Y36(f.c),r.Y36(_.p),r.Y36(c.Z),r.Y36(b.b),r.Y36(v.o),r.Y36(y.I))},t.\u0275cmp=r.Xpm({type:t,selectors:[["site-url-tab"]],decls:26,vars:18,consts:[["ngNativeValidate","",3,"formGroup","ngSubmit"],[1,"tab-content","many-inputs"],[1,"info-banner"],["name","website-builder.svg",1,"icon"],[1,"banner-content"],[1,"banner-title"],["trans","",4,"ngIf"],["type","button","color","accent","mat-stroked-button","",3,"disabled","click"],[1,"input-container"],["for","url-type","trans",""],["id","url-type","formControlName","publishDestination"],["value","default","trans",""],["value","subdomain","trans","",3,"transValues"],["value","customDomain","trans","",4,"ngIf"],[4,"ngIf"],[1,"settings-modal-actions"],["type","submit","mat-raised-button","","color","accent","trans","",3,"disabled"],["trans",""],["value","customDomain","trans",""],["class","input-container",4,"ngIf"],["class","no-custom-domain-msg",4,"ngIf"],["for","custom-domain-id","trans",""],["id","custom-domain-id","formControlName","customDomainId"],["disabled","","trans","",3,"value"],["trans","",3,"value",4,"ngFor","ngForOf"],["trans","",3,"value"],[1,"no-custom-domain-msg"],["primary-text","","trans",""],["secondary-text",""],["type","button","color","accent","mat-stroked-button","","trans","",3,"disabled","click"]],template:function(t,e){1&t&&(r.TgZ(0,"form",0),r.NdJ("ngSubmit",function(){return e.projectSettings.submitForm()}),r.TgZ(1,"div",1),r.TgZ(2,"div",2),r._UZ(3,"svg-image",3),r.TgZ(4,"div",4),r.TgZ(5,"div",5),r.YNc(6,A,2,0,"span",6),r.YNc(7,E,2,0,"span",6),r.qZA(),r.TgZ(8,"button",7),r.NdJ("click",function(){return e.toggleProjectState(!e.projectSettings.project.published)}),r.ALo(9,"async"),r.YNc(10,S,2,0,"span",6),r.YNc(11,T,2,0,"span",6),r.qZA(),r.qZA(),r.qZA(),r.TgZ(12,"div",8),r.TgZ(13,"label",9),r._uU(14,"Publish Destination"),r.qZA(),r.TgZ(15,"select",10),r.TgZ(16,"option",11),r._uU(17),r.qZA(),r.TgZ(18,"option",12),r._uU(19),r.qZA(),r.YNc(20,O,2,0,"option",13),r.qZA(),r.qZA(),r.YNc(21,F,5,6,"ng-container",14),r.qZA(),r.TgZ(22,"div",15),r.TgZ(23,"button",16),r.ALo(24,"async"),r._uU(25," Save "),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Q6J("formGroup",e.projectSettings.form),r.xp6(6),r.Q6J("ngIf",e.projectSettings.project.published),r.xp6(1),r.Q6J("ngIf",!e.projectSettings.project.published),r.xp6(1),r.Q6J("disabled",r.lcZ(9,12,e.projectSettings.loading$)),r.xp6(2),r.Q6J("ngIf",e.projectSettings.project.published),r.xp6(1),r.Q6J("ngIf",!e.projectSettings.project.published),r.xp6(6),r.hij(" Default (",e.projectUrl.getDefaultUrl(e.projectSettings.project),") "),r.xp6(1),r.Q6J("transValues",r.VKq(16,M,e.settings.get("branding.site_name"))),r.xp6(1),r.hij(" Subdomain (",e.projectUrl.getSubdomainUrl(e.projectSettings.project),") "),r.xp6(1),r.Q6J("ngIf",e.settings.get("builder.enable_custom_domains")&&e.currentUser.hasPermission("custom_domains.create")),r.xp6(1),r.Q6J("ngIf","customDomain"===e.projectSettings.form.get("publishDestination").value),r.xp6(2),r.Q6J("disabled",r.lcZ(24,14,e.projectSettings.loading$)))},directives:[o.JL,o.sg,w.L,x.O5,C.lW,h.P,o.EJ,o.JJ,o.u,o.YN,o.Kr,x.sg,k.U],pipes:[x.Ov],styles:["[_nghost-%COMP%]{display:block}.no-custom-domain-msg[_ngcontent-%COMP%]{margin:20px 0}.no-custom-domain-msg[_ngcontent-%COMP%]     svg-image{display:none}.no-custom-domain-msg[_ngcontent-%COMP%]     .main{margin-bottom:15px}.project-url-container[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:5px}.project-url-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{flex-shrink:0;margin-right:5px}.project-url-container[_ngcontent-%COMP%]   .project-url[_ngcontent-%COMP%]:hover{text-decoration:underline}"],changeDetection:0}),t})();var R=n(4762),L=n(3412),N=n(2178),U=n(5396);function q(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",9),r.TgZ(1,"div",10),r._UZ(2,"svg-image",11),r.TgZ(3,"div",12),r.TgZ(4,"div",13),r._uU(5,"Your project is ready to download."),r.qZA(),r.TgZ(6,"button",14),r.NdJ("click",function(){return r.CHM(t),r.oxw().downloadProject()}),r._uU(7," Download "),r.qZA(),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.xp6(6),r.Q6J("disabled",!t.currentUser.hasPermission("projects.download"))}}function B(t,e){1&t&&r._UZ(0,"mat-progress-bar",19)}function j(t,e){if(1&t&&(r.TgZ(0,"p",37),r._uU(1),r.qZA()),2&t){const t=r.oxw(3);r.xp6(1),r.Oqu(t.errors.host)}}function z(t,e){if(1&t&&(r.TgZ(0,"p",37),r._uU(1),r.qZA()),2&t){const t=r.oxw(3);r.xp6(1),r.Oqu(t.errors.username)}}function $(t,e){if(1&t&&(r.TgZ(0,"p",37),r._uU(1),r.qZA()),2&t){const t=r.oxw(3);r.xp6(1),r.Oqu(t.errors.password)}}function Y(t,e){if(1&t&&(r.TgZ(0,"p",37),r._uU(1),r.qZA()),2&t){const t=r.oxw(3);r.xp6(1),r.Oqu(t.errors.directory)}}function V(t,e){if(1&t&&(r.TgZ(0,"p",37),r._uU(1),r.qZA()),2&t){const t=r.oxw(3);r.xp6(1),r.Oqu(t.errors.port)}}function H(t,e){if(1&t&&(r.ynx(0,20),r.TgZ(1,"div",1),r.TgZ(2,"label",21),r._uU(3,"Host"),r.qZA(),r._UZ(4,"input",22),r.YNc(5,j,2,1,"p",23),r.qZA(),r.TgZ(6,"div",1),r.TgZ(7,"label",24),r._uU(8,"Username"),r.qZA(),r._UZ(9,"input",25),r.YNc(10,z,2,1,"p",23),r.qZA(),r.TgZ(11,"div",1),r.TgZ(12,"label",26),r._uU(13,"Password"),r.qZA(),r._UZ(14,"input",27),r.YNc(15,$,2,1,"p",23),r.qZA(),r.TgZ(16,"div",1),r.TgZ(17,"label",28),r._uU(18,"Directory"),r.qZA(),r._UZ(19,"input",29),r.TgZ(20,"p",30),r._uU(21," In which directory on your FTP server should this project files be stored. Leave empty to store at root. "),r.qZA(),r.YNc(22,Y,2,1,"p",23),r.qZA(),r.TgZ(23,"div",31),r.TgZ(24,"div",1),r.TgZ(25,"label",32),r._uU(26,"Port"),r.qZA(),r._UZ(27,"input",33),r.YNc(28,V,2,1,"p",23),r.qZA(),r.TgZ(29,"div",1),r.TgZ(30,"label",34),r._uU(31,"Security"),r.qZA(),r.TgZ(32,"select",35),r.TgZ(33,"option",36),r._uU(34,"Default"),r.qZA(),r.TgZ(35,"option",36),r._uU(36,"SSL"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.BQk()),2&t){const t=r.oxw(2);r.xp6(5),r.Q6J("ngIf",t.errors.host),r.xp6(5),r.Q6J("ngIf",t.errors.username),r.xp6(5),r.Q6J("ngIf",t.errors.password),r.xp6(7),r.Q6J("ngIf",t.errors.directory),r.xp6(6),r.Q6J("ngIf",t.errors.port),r.xp6(5),r.Q6J("value",!1),r.xp6(2),r.Q6J("value",!0)}}function G(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"form",15),r.NdJ("ngSubmit",function(){return r.CHM(t),r.oxw().exportToFTP()}),r.YNc(1,B,1,0,"mat-progress-bar",16),r.ALo(2,"async"),r.YNc(3,H,37,7,"ng-container",17),r._UZ(4,"button",18),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("formGroup",t.projectSettings.form),r.xp6(1),r.Q6J("ngIf",r.lcZ(2,3,t.publishing$)),r.xp6(2),r.Q6J("ngIf",t.settings.get("publish.allow_credential_change"))}}function J(t,e){if(1&t&&(r.TgZ(0,"mat-slide-toggle",41),r._uU(1,"Remember credentials"),r.qZA()),2&t){const t=r.oxw(2);r.Q6J("formControl",t.projectSettings.form.get("ftpCredentials.remember"))}}function Q(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",38),r.YNc(1,J,2,1,"mat-slide-toggle",39),r.TgZ(2,"button",40),r.NdJ("click",function(){return r.CHM(t),r.oxw().exportToFTP()}),r.ALo(3,"async"),r._uU(4," Export "),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.xp6(1),r.Q6J("ngIf",t.settings.get("publish.allow_credential_change")),r.xp6(1),r.Q6J("disabled",r.lcZ(3,2,t.publishing$))}}let W=(()=>{class t{constructor(t,e,n,i,r){this.projects=t,this.projectSettings=e,this.toast=n,this.settings=i,this.currentUser=r,this.exportType=new o.NI("download"),this.publishing$=new s.X(!1),this.errors={}}downloadProject(){return(0,R.mG)(this,void 0,void 0,function*(){(0,L.k)(this.settings.getBaseUrl(!0)+"/secure/projects/"+this.projectSettings.project.id+"/download")})}exportToFTP(){this.publishing$.next(!0),this.projects.exportToFtp(this.projectSettings.project.id,this.projectSettings.form.value.ftpCredentials).subscribe(()=>{this.publishing$.next(!1),this.toast.open("Project exported")},t=>{this.errors=t.errors,this.publishing$.next(!1)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(_.p),r.Y36(u),r.Y36(l.F),r.Y36(c.Z),r.Y36(y.I))},t.\u0275cmp=r.Xpm({type:t,selectors:[["export-tab"]],decls:12,vars:4,consts:[[1,"tab-content"],[1,"input-container"],["for","export-type","trans",""],["id","export-type",3,"formControl"],["value","download","trans",""],["value","ftp","trans",""],["class","download-container",4,"ngIf"],["ngNativeValidate","","class","ftp-container many-inputs",3,"formGroup","ngSubmit",4,"ngIf"],["class","settings-modal-actions",4,"ngIf"],[1,"download-container"],[1,"info-banner"],["name","download.svg",1,"icon"],[1,"banner-content"],["trans","",1,"banner-title"],["type","button","color","accent","mat-stroked-button","","trans","",3,"disabled","click"],["ngNativeValidate","",1,"ftp-container","many-inputs",3,"formGroup","ngSubmit"],["mode","indeterminate","color","accent",4,"ngIf"],["formGroupName","ftpCredentials",4,"ngIf"],["type","submit",1,"hidden"],["mode","indeterminate","color","accent"],["formGroupName","ftpCredentials"],["for","ftp-export-host","trans",""],["type","text","id","ftp-export-host","formControlName","host","required",""],["class","error",4,"ngIf"],["for","ftp-export-username","trans",""],["type","text","id","ftp-export-username","formControlName","username","required",""],["for","ftp-export-password","trans",""],["type","password","id","ftp-export-password","formControlName","password","required",""],["for","ftp-export-dir","trans",""],["type","text","id","ftp-export-dir","formControlName","directory","placeholder","(Optional)","trans-placeholder",""],["trans",""],[1,"inline-inputs-container"],["for","ftp-export-port","trans",""],["type","number","id","ftp-export-port","formControlName","port","required",""],["for","ftp-export-ssl","trans",""],["id","ftp-export-ssl","formControlName","ssl"],["trans","",3,"value"],[1,"error"],[1,"settings-modal-actions"],["color","accent",3,"formControl",4,"ngIf"],["type","button","mat-raised-button","","color","accent","trans","",3,"disabled","click"],["color","accent",3,"formControl"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"label",2),r._uU(3,"How do you want to export the project?"),r.qZA(),r.TgZ(4,"select",3),r.TgZ(5,"option",4),r._uU(6,"Download a zip file"),r.qZA(),r.TgZ(7,"option",5),r._uU(8,"Export to my own FTP server"),r.qZA(),r.qZA(),r.qZA(),r.YNc(9,q,8,1,"div",6),r.YNc(10,G,5,5,"form",7),r.qZA(),r.YNc(11,Q,5,4,"div",8)),2&t&&(r.xp6(4),r.Q6J("formControl",e.exportType),r.xp6(5),r.Q6J("ngIf","download"===e.exportType.value),r.xp6(1),r.Q6J("ngIf","ftp"===e.exportType.value),r.xp6(1),r.Q6J("ngIf","ftp"===e.exportType.value))},directives:[h.P,o.EJ,o.JJ,o.oH,o.YN,o.Kr,x.O5,w.L,C.lW,o.JL,o.sg,N.pW,o.x0,o.Fj,o.u,o.Q7,o.wV,U.Rr],pipes:[x.Ov],styles:["[_nghost-%COMP%]{display:block}.download-container[_ngcontent-%COMP%], .ftp-container[_ngcontent-%COMP%]{margin-top:20px;position:relative}.mat-progress-bar[_ngcontent-%COMP%]{position:absolute;top:-20px;left:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.settings-modal-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.settings-modal-actions[_ngcontent-%COMP%]   .mat-slide-toggle[_ngcontent-%COMP%]{margin-right:auto}"],changeDetection:0}),t})(),K=(()=>{class t{constructor(t){this.projectSettings=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(u))},t.\u0275cmp=r.Xpm({type:t,selectors:[["builder-settings-tab"]],decls:22,vars:4,consts:[["ngNativeValidate","",1,"many-inputs",3,"formGroup","ngSubmit"],[1,"tab-content"],["formGroupName","builder"],[1,"setting-toggle-container"],["color","accent","formControlName","autoSave","trans",""],["trans",""],["color","accent","formControlName","hoverContextActions","trans",""],["color","accent","formControlName","selectedContextActions","trans",""],[1,"settings-modal-actions"],["type","submit","mat-raised-button","","color","accent","trans","",3,"disabled"]],template:function(t,e){1&t&&(r.TgZ(0,"form",0),r.NdJ("ngSubmit",function(){return e.projectSettings.submitForm()}),r.TgZ(1,"div",1),r.ynx(2,2),r.TgZ(3,"div",3),r.TgZ(4,"mat-slide-toggle",4),r._uU(5,"Auto save"),r.qZA(),r.TgZ(6,"p",5),r._uU(7,"Toggle auto saving of project when changes are made in the builder."),r.qZA(),r.qZA(),r.TgZ(8,"div",3),r.TgZ(9,"mat-slide-toggle",6),r._uU(10,"Hover outline context actions"),r.qZA(),r.TgZ(11,"p",5),r._uU(12," Toggle visibility of context actions for outline that appears when hovering over elements in the builder. "),r.qZA(),r.qZA(),r.TgZ(13,"div",3),r.TgZ(14,"mat-slide-toggle",7),r._uU(15,"Selected outline context action"),r.qZA(),r.TgZ(16,"p",5),r._uU(17," Toggle visibility of context actions for outline that appears around selected element in the builder. "),r.qZA(),r.qZA(),r.BQk(),r.qZA(),r.TgZ(18,"div",8),r.TgZ(19,"button",9),r.ALo(20,"async"),r._uU(21," Save "),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Q6J("formGroup",e.projectSettings.form),r.xp6(19),r.Q6J("disabled",r.lcZ(20,2,e.projectSettings.loading$)))},directives:[o.JL,o.sg,o.x0,U.Rr,o.JJ,o.u,h.P,C.lW],pipes:[x.Ov],styles:[""],changeDetection:0}),t})();var X=n(3297);const tt=function(t){return{siteName:t}};let et=(()=>{class t{constructor(t,e,n,i){this.dialogRef=t,this.data=e,this.settings=n,this.projectSettings=i}ngOnInit(){this.projectSettings.init(this.data.project,this.dialogRef)}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(i.so),r.Y36(i.WI),r.Y36(c.Z),r.Y36(u))},t.\u0275cmp=r.Xpm({type:t,selectors:[["project-settings-modal"]],features:[r._Bn([u])],decls:29,vars:20,consts:[[1,"modal-header"],["mat-dialog-title","","trans",""],["type","button",1,"close-button","no-style",3,"click"],["svgIcon","close"],["color","accent","animationDuration","0"],[3,"label"],["ngNativeValidate","",3,"formGroup","ngSubmit"],[1,"tab-content",3,"formGroup"],["trans","",3,"transValues"],[1,"input-container"],["for","project-settings-email","trans",""],["type","email","id","project-settings-email","formControlName","formsEmail","required",""],[1,"settings-modal-actions"],["type","submit","mat-raised-button","","color","accent","trans","",3,"disabled"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"h2",1),r._uU(2,"Project Settings"),r.qZA(),r.TgZ(3,"button",2),r.NdJ("click",function(){return e.close()}),r._UZ(4,"mat-icon",3),r.qZA(),r.qZA(),r.TgZ(5,"mat-tab-group",4),r.TgZ(6,"mat-tab",5),r.ALo(7,"trans"),r._UZ(8,"site-url-tab"),r.qZA(),r.TgZ(9,"mat-tab",5),r.ALo(10,"trans"),r.TgZ(11,"form",6),r.NdJ("ngSubmit",function(){return e.projectSettings.submitForm()}),r.TgZ(12,"div",7),r.TgZ(13,"p",8),r._uU(14," When a form is submitted on your published website, :siteName will collect the submission and send it to this email address. "),r.qZA(),r.TgZ(15,"div",9),r.TgZ(16,"label",10),r._uU(17,"Send form submissions to:"),r.qZA(),r._UZ(18,"input",11),r.qZA(),r.qZA(),r.TgZ(19,"div",12),r.TgZ(20,"button",13),r.ALo(21,"async"),r._uU(22," Save "),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.TgZ(23,"mat-tab",5),r.ALo(24,"trans"),r._UZ(25,"export-tab"),r.qZA(),r.TgZ(26,"mat-tab",5),r.ALo(27,"trans"),r._UZ(28,"builder-settings-tab"),r.qZA(),r.qZA()),2&t&&(r.xp6(6),r.Q6J("label",r.lcZ(7,8,"Site URL")),r.xp6(3),r.Q6J("label",r.lcZ(10,10,"Forms")),r.xp6(2),r.Q6J("formGroup",e.projectSettings.form),r.xp6(1),r.Q6J("formGroup",e.projectSettings.form),r.xp6(1),r.Q6J("transValues",r.VKq(18,tt,e.settings.get("branding.site_name"))),r.xp6(7),r.Q6J("disabled",r.lcZ(21,12,e.projectSettings.loading$)),r.xp6(3),r.Q6J("label",r.lcZ(24,14,"Export")),r.xp6(3),r.Q6J("label",r.lcZ(27,16,"Builder")))},directives:[i.uh,h.P,d.Hw,p.SP,p.uX,Z,o.JL,o.sg,o.Fj,o.JJ,o.u,o.Q7,C.lW,W,K],pipes:[X.R,x.Ov],styles:["[_nghost-%COMP%]{display:block;width:560px;max-width:100%}[_nghost-%COMP%]     .info-banner{display:flex;align-items:center;background:var(--be-accent-emphasis);padding:20px;border-radius:4px;border:1px solid var(--be-divider-lighter);margin-bottom:20px}[_nghost-%COMP%]     .info-banner .banner-title{font-size:1.5rem;margin-bottom:10px}[_nghost-%COMP%]     .info-banner svg-image{height:60px;flex-shrink:0;margin-right:20px}[_nghost-%COMP%]     .settings-modal-actions{text-align:right;margin-top:24px}[_nghost-%COMP%]     .mat-tab-label{min-width:140px}[_nghost-%COMP%]     .tab-content{max-height:65vh;overflow:auto;padding:20px 5px 0}"],changeDetection:0}),t})()},8518:(t,e,n)=>{"use strict";n.d(e,{b:()=>o});var i=n(7716),s=n(4673),r=n(4688);let o=(()=>{class t{constructor(t,e){this.settings=t,this.currentUser=e}getBaseUrl(t,e=!1){const n=`projects/${this.getProjectUserId(t)}/${t.uuid}/`;return e?n:`${this.settings.getBaseUrl()}/storage/${n}`}getProductionUrl(t,e){return e||(e=t.settings.publishDestination),"customDomain"===e&&t.domain?t.domain.host:"subdomain"===e?this.getSubdomainUrl(t):this.getDefaultUrl(t)}getDefaultUrl(t){return`${this.settings.getBaseUrl(!0)}/sites/${t.slug}`.replace(/\/$/,"")}getSubdomainUrl(t){const e=this.settings.getBaseUrl(!0),n=new URL(e);return`${n.protocol}//${t.slug}.${n.host}`.replace(/\/$/,"")}getProjectUserId(t){return t.users&&t.users.length?t.users[0].id:this.currentUser.get("id")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.Z),i.LFG(r.I))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},1371:(t,e,n)=>{"use strict";n.d(e,{p:()=>r});var i=n(7716),s=n(299);let r=(()=>{class t{constructor(t){this.http=t}all(e){return this.http.get(t.BASE_URI,e)}get(e){return this.http.get(`${t.BASE_URI}/${e}`)}create(e){return this.http.post(t.BASE_URI,e)}update(e,n){return this.http.put(`${t.BASE_URI}/${e}`,n)}toggleState(e,n){return this.http.put(`${t.BASE_URI}/${e}`,{published:n})}delete(e){return this.http.delete(`${t.BASE_URI}/${e}`)}generateThumbnail(e,n){return this.http.post(`${t.BASE_URI}/${e}/generate-thumbnail`,{dataUrl:n})}exportToFtp(e,n){return this.http.post(`${t.BASE_URI}/${e}/export/ftp`,n)}}return t.BASE_URI="projects",t.\u0275fac=function(e){return new(e||t)(i.LFG(s.r))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},4466:(t,e,n)=>{"use strict";n.d(e,{m:()=>p});var i=n(6052),s=n(8583),r=n(3679),o=n(9866),a=n(2544),l=n(5939),c=n(8528),u=n(5218),h=n(5217),d=n(7716);let p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[s.ez,r.u5,i.q,o.N,a.S,r.UX,c.I,u.a,h.u,l.Nh]]}),t})()},9970:(t,e,n)=>{"use strict";n.d(e,{Q:()=>r});var i=n(7716),s=n(299);let r=(()=>{class t{constructor(t){this.http=t}all(t={}){return this.http.get("templates",t)}get(t){return this.http.get("templates/"+t)}create(t){return this.http.post("templates",t)}update(t,e){return this.http.put("templates/"+t,e)}delete(t){return this.http.delete("templates",{names:t})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.r))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},1378:(t,e,n)=>{"use strict";n.d(e,{m:()=>l});var i=n(8756),s=n(8715),r=n(6850),o=n(2655),a=n(7716);let l=(()=>{class t extends s.c{constructor(){super(...arguments),this.DEFAULT_MAX_SIZE_MB=1.5}initValidations(){const t=[new i.p({maxSize:(0,r.F)(this.DEFAULT_MAX_SIZE_MB,"MB")},this.i18n),new o.p({types:["image"]},this.i18n)];this.validations.push(...t)}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},8805:(t,e,n)=>{"use strict";n.d(e,{e:()=>u});var i=n(6215),s=n(7716),r=n(299),o=n(4688),a=n(4655),l=n(5718),c=n(4673);let u=(()=>{class t{constructor(t,e,n,s,r,o,a){this.httpClient=t,this.currentUser=e,this.router=n,this.route=s,this.toast=r,this.zone=o,this.config=a,this.forcedEmail$=new i.X(null)}login(t){return this.httpClient.post("auth/login",t)}register(t){return this.httpClient.post("auth/register",t)}logOut(){this.httpClient.post("auth/logout").subscribe(()=>{this.currentUser.assignCurrent(),this.router.navigate(["/login"])})}sendPasswordResetLink(t){return this.httpClient.post("auth/password/email",t)}resetPassword(t){return this.httpClient.post("auth/password/reset",t)}resendEmailConfirmation(t){return this.httpClient.post("auth/email/verify/resend",{email:t})}revokeAccessToken(t){return this.httpClient.delete("access-tokens/"+t)}createAccessToken(t){return this.httpClient.post("access-tokens",{tokenName:t})}getRedirectUri(){if(this.currentUser.redirectUri){const t=this.currentUser.redirectUri;return this.currentUser.redirectUri=null,t}return this.currentUser.isAdmin()?this.config.get("vebto.auth.adminRedirectUri"):this.config.get("vebto.auth.redirectUri")}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(r.r),s.LFG(o.I),s.LFG(a.F0),s.LFG(a.gz),s.LFG(l.F),s.LFG(s.R0b),s.LFG(c.Z))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},4688:(t,e,n)=>{"use strict";n.d(e,{I:()=>o});var i=n(6215),s=n(8002),r=n(7716);let o=(()=>{class t{constructor(){this.model$=new i.X(null),this.isLoggedIn$=this.model$.pipe((0,s.U)(t=>!!t.id)),this.permissions={}}get(t){return this.model$.value&&this.model$.value[t]}getModel(){return Object.assign({},this.model$.value)}set(t,e){this.model$.next(Object.assign(Object.assign({},this.model$.value),{[t]:e}))}assignCurrent(t){t||(t={roles:[this.guestsRole],permissions:this.guestsRole.permissions}),this.setPermissions(t),this.model$.next(t)}hasPermissions(t){return 0===t.filter(t=>!this.hasPermission(t)).length}hasPermission(t){return!!this.permissions.admin||!!this.permissions[t]}hasRole(t){return this.model$.value.roles&&!!this.model$.value.roles.find(e=>e.name===t)}getRestrictionValue(t,e){const n=this.permissions[t];let i=null;if(n){const t=n.restrictions.find(t=>t.name===e);i=t?t.value:null}return i}isLoggedIn(){return this.get("id")>0}isSubscribed(){var t;return!!(null===(t=this.model$.value)||void 0===t?void 0:t.subscriptions)&&void 0!==this.model$.value.subscriptions.find(t=>t.valid)}subscriptionIsActive(){return this.isSubscribed()&&!this.onTrial()}onTrial(){const t=this.getSubscription();return t&&t.on_trial}onGracePeriod(){const t=this.getSubscription();return t&&t.on_grace_period}getSubscription(t={}){if(!this.isSubscribed())return null;let e=this.model$.value.subscriptions.slice();return t.gateway&&(e=e.filter(e=>e.gateway_name===t.gateway)),t.planId&&(e=e.filter(e=>e.plan_id===t.planId)),e[0]}setSubscription(t){const e=this.model$.value.subscriptions.findIndex(e=>e.id===t.id);e>-1?this.model$.value.subscriptions[e]=t:this.model$.value.subscriptions.push(t)}isAdmin(){return this.hasPermission("admin")}init(t){this.guestsRole=t.guestsRole||{},this.assignCurrent(t.user)}setPermissions(t){this.permissions={},(t.permissions||[]).forEach(t=>{this.permissions[t.name]=t})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},3429:(t,e,n)=>{"use strict";n.d(e,{Q:()=>o});var i=n(8002),s=n(7716),r=n(299);let o=(()=>{class t{constructor(t){this.http=t}get(t,e){return this.http.get(`users/${t}`,e)}getAll(e={}){return this.http.get(t.BASE_URI,e).pipe((0,i.U)(t=>t.pagination.data))}create(t){return this.http.post("users",t)}update(e,n){return this.http.put(`${t.BASE_URI}/${e}`,n)}changePassword(e,n){return this.http.post(`${t.BASE_URI}/${e}/password/change`,n)}attachRoles(e,n={}){return this.http.post(`${t.BASE_URI}/${e}/roles/attach`,n)}detachRoles(e,n={}){return this.http.post(`${t.BASE_URI}/${e}/roles/detach`,n)}addPermissions(e,n={}){return this.http.post(`${t.BASE_URI}/${e}/permissions/add`,n)}removePermissions(e,n={}){return this.http.post(`${t.BASE_URI}/${e}/permissions/remove`,n)}uploadAvatar(e,n){const i=new FormData;return i.append("file",n[0].native),this.http.post(`${t.BASE_URI}/${e}/avatar`,i)}deleteAvatar(e){return this.http.delete(`${t.BASE_URI}/${e}/avatar`)}delete(e,n={}){return this.http.delete(`${t.BASE_URI}/${e}`,n)}syncTags(t,e){return this.http.post("users/"+t+"/tags/sync",e)}updateDetails(t,e){return this.http.put("users/"+t+"/details",e)}addEmail(t,e){return this.http.post("users/"+t+"/emails/attach",e)}removeEmail(t,e){return this.http.post("users/"+t+"/emails/detach",e)}}return t.BASE_URI="users",t.EXPORT_CSV_URI="users/csv/export",t.\u0275fac=function(e){return new(e||t)(s.LFG(r.r))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},3858:(t,e,n)=>{"use strict";n.d(e,{N:()=>c});var i=n(8939),s=n(7716),r=n(299),o=n(4673),a=n(708),l=n(9244);let c=(()=>{class t{constructor(t,e,n,i){this.http=t,this.settings=e,this.subscriptions=n,this.i18n=i,this.popupWidth=450,this.popupHeight=650,this.popupParams={menubar:0,location:0,locationbar:0,toolbar:0,titlebar:0,status:0,scrollbars:1,width:this.popupWidth,height:this.popupHeight},this.subscriptionPending=!1,this.executingAgreement=!1}subscribe(t){return this.subscriptionPending=!0,this.popup=this.openPaypalPopup(this.settings.getBaseUrl(!0)+"/billing/paypal/loading"),new Promise((e,n)=>{this.rejectSubscribe=n,this.resolveSubscribe=e,this.createPaypalAgreement(t).subscribe(e=>{this.listenForMessages(t.plan_id),this.popup.location.href=e.urls.approve},t=>this.rejectSubscriptionPromise(t))})}changePlan(t,e){return new Promise(n=>{this.subscriptions.cancel(t.id,{delete:!0}).subscribe(()=>{this.subscribe({plan_id:e.id,start_date:t.renews_at}).then(t=>n(t))})})}listenForMessages(t){window.addEventListener("message",e=>{if(-1!==this.settings.getBaseUrl().indexOf(e.origin)){if("success"!==e.data.status)return this.rejectSubscriptionPromise();this.executingAgreement=!0,this.executePaypalAgreement(e.data.token,t).pipe((0,i.x)(()=>this.executingAgreement=!1)).subscribe(t=>this.resolveSubscriptionPromise(t.user),t=>this.rejectSubscriptionPromise())}},!1)}openPaypalPopup(t){const e=Object.assign({},this.popupParams,{left:screen.width/2-this.popupWidth/2,top:screen.height/2-this.popupHeight/2}),n=window.open(t,"PayPal",Object.keys(e).map(t=>t+"="+e[t]).join(", ")),i=setInterval(()=>{(null==n||n.closed)&&(window.clearInterval(i),this.subscriptionPending&&!this.executingAgreement&&this.rejectSubscriptionPromise())},1e3);return n}createPaypalAgreement(t){return this.http.post("billing/subscriptions/paypal/agreement/create",{plan_id:t.plan_id,start_date:t.start_date})}executePaypalAgreement(t,e){return this.http.post("billing/subscriptions/paypal/agreement/execute",{agreement_id:t,plan_id:e})}rejectSubscriptionPromise(t){this.rejectSubscribe(this.i18n.t((null==t?void 0:t.message)||"Payment failed. Please try again later.")),this.subscriptionPending=!1,this.popup&&this.popup.close()}resolveSubscriptionPromise(t){this.resolveSubscribe(t),this.subscriptionPending=!1}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(r.r),s.LFG(o.Z),s.LFG(a.t),s.LFG(l.Z))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},3524:(t,e,n)=>{"use strict";n.d(e,{n:()=>o});var i=n(6215),s=n(7716),r=n(4688);let o=(()=>{class t{constructor(t){this.currentUser=t,this.plans=[],this.initialPlan$=new i.X(null),this.selectedPlan$=new i.X(null),this.mode=this.currentUser.isSubscribed()&&"none"!==this.currentUser.getSubscription().gateway_name?"changePlan":"subscribe"}selectInitialPlan(t){this.initialPlan$.next(t);const e=this.getChildPlans(t);e&&e[0]?(this.radioGroupModel=e[0].id,this.selectedPlan$.next(e[0])):(this.selectedPlan$.next(t),this.radioGroupModel=t.id)}selectPlanById(t){this.selectedPlan$.next(this.plans.find(e=>e.id===t))}getChildPlans(t){return this.plans.filter(e=>e.parent_id===t.id&&!e.hidden)}setPlans(t){this.plans=t}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(r.I))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},6584:(t,e,n)=>{"use strict";n.d(e,{b:()=>y,P:()=>w});var i=n(7832),s=n(3524),r=n(6215),o=n(8939),a=n(7716),l=n(708),c=n(4655),u=n(4673),h=n(5718),d=n(962),p=n(4688),g=n(3858);function m(t,e){1&t&&a._UZ(0,"mat-icon",9)}const f=function(t,e,n){return{siteName:t,intervalCount:e,intervalName:n}};function _(t,e){if(1&t&&(a.TgZ(0,"p",15),a._uU(1," You authorise :siteName to charge you automatically every :intervalCount :intervalName, until you cancel your subscription. You consent to get access to your :siteName subscription immediately, and acknowledge that refunds are only available within 14 days and provided you haven't accessed :siteName. You will be able to cancel your subscription at any time from your profile page. "),a.qZA()),2&t){const t=e.ngIf,n=a.oxw(2);a.Q6J("transValues",a.kEZ(1,f,n.settings.get("branding.site_name"),t.interval_count>1?t.interval_count:"",t.interval_count>1?t.interval+"s":t.interval))}}function b(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-step",4),a.ALo(1,"trans"),a.TgZ(2,"div",10),a.TgZ(3,"div",11),a.TgZ(4,"create-subscription-panel",12),a.NdJ("loading",function(e){return a.CHM(t),a.oxw().loading$.next(e)})("completed",function(){return a.CHM(t),a.oxw().onCompleted()}),a.ALo(5,"async"),a.qZA(),a.qZA(),a._UZ(6,"upgrade-page-aside",13),a.ALo(7,"async"),a.qZA(),a.YNc(8,_,2,5,"p",14),a.ALo(9,"async"),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("label",a.lcZ(1,5,"Payment"))("completed",!1),a.xp6(4),a.Q6J("plan",a.lcZ(5,7,t.state.selectedPlan$)),a.xp6(2),a.Q6J("plan",a.lcZ(7,9,t.state.selectedPlan$)),a.xp6(2),a.Q6J("ngIf",a.lcZ(9,11,t.state.selectedPlan$))}}var v=(()=>(function(t){t[t.Plans=0]="Plans",t[t.Period=1]="Period",t[t.Payment=2]="Payment"}(v||(v={})),v))();const y="be.onboarding.selected";let w=(()=>{class t{constructor(t,e,n,i,s,o,a,l,c){this.subscriptions=t,this.route=e,this.settings=n,this.router=i,this.toast=s,this.state=o,this.localStorage=a,this.currentUser=l,this.paypalSubscriptions=c,this.loading$=new r.X(!1)}set mode(t){this.state.mode=t}ngOnInit(){this.route.data.subscribe(t=>{this.state.setPlans(t.plans),"subscribe"===this.state.mode&&this.hydrateStateFromLocalStorage()})}hydrateStateFromLocalStorage(){const t=this.localStorage.get(y);if(t&&t.initial&&t.final){const e=this.state.plans.find(e=>e.id===t.initial),n=this.state.plans.find(e=>e.id===t.final);e&&n&&(this.state.selectInitialPlan(e),this.state.selectPlanById(n.id),this.stepper.selectedIndex=v.Payment)}}nextStep(){"changePlan"===this.state.mode&&this.stepper.selectedIndex===v.Period?this.changePlan():"pricing"===this.state.mode&&this.state.selectedPlan$.value.free&&this.stepper.selectedIndex===v.Plans?this.router.navigate(["register"]):"pricing"===this.state.mode&&this.stepper.selectedIndex===v.Period?(this.localStorage.set(y,{initial:this.state.initialPlan$.value.id,final:this.state.selectedPlan$.value.id}),this.router.navigate(["register"])):this.stepper.next()}onCompleted(){this.loading$.next(!1),this.router.navigate(["/"]),this.localStorage.remove(y),this.toast.open({message:'Subscribed to ":planName" plan successfully.',replacements:{planName:this.getSelectedOrParentPlanName()}})}changePlan(){const t=this.state.selectedPlan$.value,e=this.currentUser.getSubscription();this.currentUser.getSubscription({planId:t.id})||(this.loading$.next(!0),"paypal"===e.gateway_name?this.paypalSubscriptions.changePlan(e,t).then(t=>{this.loading$.next(!1),this.currentUser.assignCurrent(t),this.router.navigate(["/billing/subscription"]),this.toast.open("Subscription plan changed.")}):this.subscriptions.changePlan(e.id,t).pipe((0,o.x)(()=>this.loading$.next(!1))).subscribe(t=>{this.currentUser.assignCurrent(t.user),this.router.navigate(["/billing/subscription"]),this.toast.open("Subscription plan changed.")}))}getSelectedOrParentPlanName(){const t=this.state.selectedPlan$.value;return(t.parent?t.parent:t).name}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(l.t),a.Y36(c.gz),a.Y36(u.Z),a.Y36(c.F0),a.Y36(h.F),a.Y36(s.n),a.Y36(d.m),a.Y36(p.I),a.Y36(g.N))},t.\u0275cmp=a.Xpm({type:t,selectors:[["upgrade-page"]],viewQuery:function(t,e){if(1&t&&a.Gf(i.Vq,7),2&t){let t;a.iGM(t=a.CRH())&&(e.stepper=t.first)}},inputs:{mode:"mode"},features:[a._Bn([s.n])],decls:16,vars:19,consts:[[3,"hideRegisterButton"],[1,"bg-wrapper"],[1,"container","main-content",3,"linear"],["matStepperIcon","edit"],[3,"label","completed"],[3,"selected"],[3,"showSidebar","selected"],[3,"label","completed",4,"ngIf"],[1,"overlay",3,"isVisible"],["svgIcon","edit",1,"size-16"],[1,"step-container","payment-step"],[1,"left-col"],[3,"plan","loading","completed"],[1,"right-col",3,"plan"],["class","legal-info","trans","",3,"transValues",4,"ngIf"],["trans","",1,"legal-info",3,"transValues"]],template:function(t,e){1&t&&(a._UZ(0,"material-navbar",0),a.TgZ(1,"div",1),a.TgZ(2,"mat-horizontal-stepper",2),a.YNc(3,m,1,0,"ng-template",3),a.TgZ(4,"mat-step",4),a.ALo(5,"trans"),a.ALo(6,"async"),a.TgZ(7,"select-plan-panel",5),a.NdJ("selected",function(){return e.nextStep()}),a.qZA(),a._UZ(8,"contact-widget"),a.qZA(),a.TgZ(9,"mat-step",4),a.ALo(10,"trans"),a.ALo(11,"async"),a.TgZ(12,"select-plan-period-panel",6),a.NdJ("selected",function(){return e.nextStep()}),a.qZA(),a.qZA(),a.YNc(13,b,10,13,"mat-step",7),a.qZA(),a.qZA(),a._UZ(14,"loading-indicator",8),a.ALo(15,"async")),2&t&&(a.Q6J("hideRegisterButton","pricing"===e.state.mode),a.xp6(2),a.Q6J("linear",!0),a.xp6(2),a.Q6J("label",a.lcZ(5,9,"Subscription plan"))("completed",!!a.lcZ(6,11,e.state.initialPlan$)),a.xp6(5),a.Q6J("label",a.lcZ(10,13,"Subscription duration"))("completed",!!a.lcZ(11,15,e.state.selectedPlan$)),a.xp6(3),a.Q6J("showSidebar",!0),a.xp6(1),a.Q6J("ngIf","subscribe"===e.state.mode),a.xp6(1),a.Q6J("isVisible",a.lcZ(15,17,e.loading$)))},styles:[".be-dark-mode[_nghost-%COMP%]   .bg-wrapper[_ngcontent-%COMP%], .be-dark-mode   [_nghost-%COMP%]   .bg-wrapper[_ngcontent-%COMP%]{background-image:none}[_nghost-%COMP%]{display:block;min-height:100vh;background-color:var(--be-background-alternative)}.bg-wrapper[_ngcontent-%COMP%]{background-repeat:no-repeat;background-position:50%;background-size:cover;background-image:url(/client/assets/images/pricing-plans-bg.svg)}.main-content[_ngcontent-%COMP%]{padding-top:60px;padding-bottom:60px;background-color:inherit;min-height:calc(100vh - 70px)}.step-container[_ngcontent-%COMP%]{display:flex;position:relative;background-color:var(--be-background);border-radius:4px;margin-top:25px;box-shadow:0 2px 1px -1px #0003,0 1px 1px 0 #00000024,0 1px 3px 0 #0000001f}.step-container[_ngcontent-%COMP%]   .left-col[_ngcontent-%COMP%]{flex:1 1 auto}select-plan-panel[_ngcontent-%COMP%]{margin-top:25px}.legal-info[_ngcontent-%COMP%]{margin-top:20px;color:var(--be-secondary-text)}@media only screen and (max-width: 768px){upgrade-page-aside[_ngcontent-%COMP%]{display:none}}"],changeDetection:0}),t})()},4673:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var i=n(970),s=n(9225),r=n.n(s);const o={showLeafArrayIndexes:!0,includeNullValues:!0,mapping:function(t){return"boolean"==typeof t?+t?"1":"0":t}};function a(t){return!(Array.isArray(t)||"object"!=typeof t||!t||t instanceof Blob)}function l(t,e={}){return c(t,Object.assign(Object.assign({},o),e))}function c(t,e,n,i){const s=i||new FormData;let r=0;for(const o in t){if(t.hasOwnProperty(o)){let i=n||o;const l=e.mapping(t[o]);if(n&&a(t)&&(i=n+"["+o+"]"),n&&Array.isArray(t)&&(i=Array.isArray(l)||e.showLeafArrayIndexes?n+"["+r+"]":n+"[]"),Array.isArray(l)||a(l))c(l,e,i,s);else if(l instanceof FileList)for(let t=0;t<l.length;t++)s.append(i+"["+t+"]",l.item(t));else l instanceof Blob?s.append(i,l,l.name):(null===l&&e.includeNullValues||null!==l)&&void 0!==l&&s.append(i,l)}r++}return s}var u=n(6215),h=n(7716);let d=(()=>{class t{constructor(){this.config$=new u.X({})}setMultiple(t){if(!t)return;const e=Object.assign({},this.config$.value);Object.entries(t).forEach(([t,n])=>{"0"!==n&&"1"!==n||(n=parseInt(n)),i.set(t,n,e)}),this.config$.next(e)}merge(t){this.config$.next(r()(this.config$.value,t))}set(t,e){const n=Object.assign({},this.config$.value);i.set(t,e,n),this.config$.next(n)}replace(t){this.config$.next(t)}get(t,e=null){const n=i.pick(t,this.config$.value);return null==n?e:n}getFlat(t){return i.dot(t?this.config$.value[t]:this.config$.value)}all$(){return this.config$.asObservable()}getAll(){return this.config$.value}has(t){return!!i.pick(t,this.config$.value)}getJson(t,e=null){const n=this.get(t,e);return"string"!=typeof n?n:JSON.parse(n)}getBaseUrl(t=!1){return this.has("base_url")&&("production"===this.get("vebto.environment")||t)?this.get("base_url"):document.querySelector("base")?document.querySelector("base").href.replace(/\/$/,""):window.location.href.split("?")[0].replace(/([^\/]+\.\w+($|\/$))/,"")}getAssetUrl(t,e=!1){let n=(this.get("vebto.assetsUrl")||this.getBaseUrl(e))+"/";const i=this.get("vebto.assetsPrefix");return"production"===this.get("vebto.environment")&&i&&(n+=i+"/"),n+="assets/",t&&(n+=t),n}save(t){this.setMultiple(t.client);const e={files:t.files};e.client=JSON.stringify(t.client),e.server=JSON.stringify(t.server);const n=l(e);return this.http.post("settings",n)}anySocialLoginEnabled(){return["facebook","google","twitter"].some(t=>this.get("social."+t+".enable"))}setHttpClient(t){this.http=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=h.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},299:(t,e,n)=>{"use strict";n.d(e,{r:()=>l});var i=n(1841),s=n(5304),r=n(5435),o=n(7716),a=n(2124);let l=(()=>{class t{constructor(t,e){this.httpClient=t,this.errorHandler=e}static prefixUri(e){return e.indexOf("://")>-1||e.startsWith(t.prefix)||e.startsWith("api")?e:`${t.prefix}/${e}`}get(e,n={},i={}){const r=this.transformQueryParams(n);return this.httpClient.get(t.prefixUri(e),Object.assign({params:r},i)).pipe((0,s.K)(t=>this.errorHandler.handle(t,e,i)))}post(e,n=null){return this.httpClient.post(t.prefixUri(e),n).pipe((0,s.K)(t=>this.errorHandler.handle(t,e)))}put(e,n={}){return n=this.spoofHttpMethod(n,"PUT"),this.httpClient.post(t.prefixUri(e),n).pipe((0,s.K)(t=>this.errorHandler.handle(t,e)))}delete(e,n={}){return n=this.spoofHttpMethod(n,"DELETE"),this.httpClient.post(t.prefixUri(e),n).pipe((0,s.K)(t=>this.errorHandler.handle(t,e)))}postWithProgress(e,n){const o=new i.aW("POST",t.prefixUri(e),n,{reportProgress:!0});return this.httpClient.request(o).pipe((0,s.K)(t=>this.errorHandler.handle(t,e)),(0,r.h)(t=>[i.dt.Sent,i.dt.UploadProgress,i.dt.Response].includes(t.type)))}transformQueryParams(t){let e=new i.LE;return t&&Object.entries(t).forEach(([t,n])=>{e=e.append(t,null==n?"":n)}),e}spoofHttpMethod(t,e){return t instanceof FormData?t.append("_method",e):t._method=e,t}}return t.prefix="secure",t.\u0275fac=function(e){return new(e||t)(o.LFG(i.eN),o.LFG(a.k))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},2124:(t,e,n)=>{"use strict";n.d(e,{k:()=>l});var i=n(205),s=n(1769),r=n(7716),o=n(9244),a=n(5718);let l=(()=>{class t{constructor(t,e){this.i18n=t,this.toast=e}handle(t,e,n={}){const r="object"==typeof t.error&&null!==t.error?t.error:{};if(r.status=t.status,r.type="http",r.errors||(r.errors={}),Object.keys(r.errors).forEach(t=>{const e=r.errors[t];r.errors[t]=Array.isArray(e)?e[0]:e}),n.suppressAuthToast||403!==r.status&&401!==r.status){if(422===r.status&&r.message&&!Object.keys(r.errors).length)this.toast.open(r.message,{duration:15e3});else if(500===r.status){const t=((null==r?void 0:r.message)||s.v.Default).substring(0,200);this.toast.open(t,{duration:15e3})}}else this.handle403Error(r);return(0,i._)(r)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(o.Z),r.LFG(a.F))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},1769:(t,e,n)=>{"use strict";n.d(e,{v:()=>i,h:()=>s});var i=(()=>(function(t){t.Default="There was an issue. Please try again later.",t.DefaultUpload="Could not upload file. Please try again later."}(i||(i={})),i))();const s="https://support.vebto.com/help-center/articles/180/how-to-increase-file-maximum-upload-size"},9981:(t,e,n)=>{"use strict";n.d(e,{F:()=>u});var i=n(7574),s=n(5917),r=n(8819),o=n(299),a=n(7716),l=n(1841),c=n(2124);let u=(()=>{class t extends o.r{constructor(t,e){super(t,e),this.http=t,this.errorHandler=e,this.cache={}}getWithCache(t,e={}){const n=this.makeCacheKey(t,e);if(this.cache[n]instanceof i.y)return this.cache[n];if(this.cache[n])return(0,s.of)(this.cache[n]);{const i=this.get(t,e).pipe((0,r.B)());return i.subscribe(t=>this.cache[n]=t,()=>{}),this.cache[n]=i}}post(t,e){return this.clearCache(),super.post(t,e)}put(t,e){return this.clearCache(),super.put(t,e)}delete(t,e){return this.clearCache(),super.delete(t,e)}clearCache(){this.cache={}}makeCacheKey(t,e){return t+JSON.stringify(e)}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(l.eN),a.LFG(c.k))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},962:(t,e,n)=>{"use strict";n.d(e,{m:()=>s});var i=n(7716);let s=(()=>{class t{constructor(){this.storage=this.localStorageAvailable()?localStorage:null}get(t,e){if(!this.storage)return e;let n;try{n=JSON.parse(this.storage.getItem(t))}catch(i){}return null==n?e:n}set(t,e){if(!this.storage)return null;e=JSON.stringify(e),this.storage.setItem(t,e)}remove(t){if(!this.storage)return null;this.storage.removeItem(t)}localStorageAvailable(){const t="test";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(e){return!1}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},4388:(t,e,n)=>{"use strict";n.d(e,{l:()=>r});var i=n(7716),s=n(9981);let r=(()=>{class t{constructor(t){this.httpClient=t}get(e,n={}){return this.httpClient.getWithCache(`${t.BASE_URI}/${e.join(",")}`,n)}clearCache(){this.httpClient.clearCache()}}return t.BASE_URI="value-lists",t.\u0275fac=function(e){return new(e||t)(i.LFG(s.F))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},8849:(t,e,n)=>{"use strict";n.d(e,{f:()=>l});var i=n(6215),s=n(7716);let r=(()=>{class t{get(t){const e=this.getCookieRegExp(t).exec(document.cookie);return e&&e[1]}set(t,e,n=30){const i=new Date;i.setDate(i.getDate()+n),document.cookie=`${t}=${e}; expires=${i.toUTCString()}; path=/; SameSite=Strict`}getCookieRegExp(t){const e=t.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+e+"|;\\s*"+e+")=(.*?)(?:;|$)","g")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var o=n(4673);const a="theme";let l=(()=>{class t{constructor(t,e){this.cookie=t,this.settings=e,this.selectedTheme$=new i.X(null),this.rootEl=document.documentElement}registerThemes(t){this.registeredThemes=t||{},this.select(this.getPreferredTheme())}select(t){const e=this.registeredThemes[t];e&&(this.selectedTheme$.next(e),this.setPreferredTheme(t),e.is_dark?(this.rootEl.classList.remove("be-light-mode"),this.rootEl.classList.add("be-dark-mode")):(this.rootEl.classList.remove("be-dark-mode"),this.rootEl.classList.add("be-light-mode")),Object.entries(e.colors).forEach(([t,e])=>{this.rootEl.style.setProperty(t,e)}))}toggle(){this.select(this.selectedTheme$.value.is_dark?"light":"dark")}isDarkMode(){return this.selectedTheme$.value&&this.selectedTheme$.value.is_dark}getColor(t){return t.startsWith("--be-")||(t="--be-"+t),this.selectedTheme$.value.colors[t]}setRootEl(t){this.rootEl=t}getPreferredTheme(){const t=this.settings.get("themes.default_mode","light");return this.settings.get("themes.user_change")&&this.cookie.get(a)||t}setPreferredTheme(t){this.cookie.set(a,t,90)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(r),s.LFG(o.Z))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},9538:(t,e,n)=>{"use strict";n.d(e,{v:()=>o});var i=n(7716),s=n(299),r=n(4673);let o=(()=>{class t{constructor(t,e){this.http=t,this.settings=e}all(){return this.http.get("localizations")}get(t){return this.http.get("localizations/"+t)}create(t){return this.http.post("localizations",t)}update(t,e){return this.http.put("localizations/"+t,e)}delete(t){return this.http.delete("localizations/"+t)}setDefault(t){return this.settings.save({server:{app_locale:t.language}})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.r),i.LFG(r.Z))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},5515:(t,e,n)=>{"use strict";n.d(e,{P:()=>r});var i=n(7716),s=n(9244);let r=(()=>{class t{constructor(t,e){this.el=t,this.i18n=e,this.subscriptions=[]}ngAfterViewInit(){const t=this.i18n.localizationChange.subscribe(()=>this.translate());this.subscriptions.push(t),this.translate()}ngOnChanges(t){t.firstChange||this.translate()}translate(){if(!this.i18n.translationsEnabled()&&!this.transValues)return;const t=this.el.nativeElement;if(t.getAttribute("placeholder")){const e=t.getAttribute("placeholder");t.setAttribute("placeholder",this.i18n.t(e))}else if(t.getAttribute("title")){const e=t.getAttribute("title");t.setAttribute("title",this.i18n.t(e))}else this.translateTextContent(t)}translateTextContent(t){const e=Array.from(t.childNodes);e.sort((t,e)=>t.nodeType===Node.TEXT_NODE?-1:1);for(let n=0;n<e.length;n++){const t=e[n],i=t.textContent.trim();if(t.nodeType===Node.TEXT_NODE&&i.length>1)return this.originalValue||(this.originalValue=i),t.nodeValue=this.i18n.t(this.originalValue,this.transValues);if(this.translateTextContent(t))return}}ngOnDestroy(){this.subscriptions.filter(t=>!!t).forEach(t=>t.unsubscribe()),this.subscriptions=[]}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(s.Z))},t.\u0275dir=i.lG2({type:t,selectors:[["","trans",""],["","trans-placeholder",""],["","trans-title",""]],inputs:{transValues:"transValues"},features:[i.TTD]}),t})()},3297:(t,e,n)=>{"use strict";n.d(e,{R:()=>r});var i=n(7716),s=n(9244);let r=(()=>{class t{constructor(t){this.i18n=t}transform(t,e){return this.i18n.t(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s.Z,16))},t.\u0275pipe=i.Yjl({name:"trans",type:t,pure:!0}),t})()},9866:(t,e,n)=>{"use strict";n.d(e,{N:()=>s});var i=n(7716);let s=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},9244:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(7716),s=n(4673);let r=(()=>{class t{constructor(t){this.settings=t,this.localizationChange=new i.vpe,this.localization={model:{name:"English",id:1,language:"en"},name:"",lines:{}}}t(t,e){if(!t)return"";if(!this.translationsEnabled())return this.replacePlaceholders(t,e);const n=this.localization.lines[t.toLowerCase().trim()]||t;return this.replacePlaceholders(n,e)}replacePlaceholders(t,e){return e?(Object.keys(e).forEach(n=>{const i=new RegExp(":"+n,"g");t=t.replace(i,e[n])}),t):t}isActive(t){return t.id===this.localization.model.id}setLocalization(t){t&&t.lines&&t.model&&this.localization.model.name!==t.model.name&&(t.lines=this.objectKeysToLowerCase(t.lines),this.localization=t,this.localizationChange.emit())}objectKeysToLowerCase(t){const e={};return Object.keys(t).forEach(n=>{e[n.toLowerCase()]=t[n]}),e}translationsEnabled(){return this.settings.get("i18n.enable")&&("en"!==this.localization.model.language||this.localization.model.created_at!==this.localization.model.updated_at)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.Z))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},6097:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{i:()=>AdHostComponent});var _common_core_utils_random_string__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8480),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(7716),_common_core_config_settings_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4673),_common_auth_current_user__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4688),_common_core_utils_lazy_loader_service__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5402);let AdHostComponent=(()=>{class AdHostComponent{constructor(t,e,n,i,s){this.el=t,this.renderer=e,this.settings=n,this.currentUser=i,this.lazyLoader=s}ngOnInit(){this.settings.get("ads.disable")||this.currentUser.isSubscribed()||(this.randomId=(0,_common_core_utils_random_string__WEBPACK_IMPORTED_MODULE_1__.O)(),this.adCode=this.settings.get(this.slot),this.adCode&&(this.addClassToHost(),this.appendAdHtml(),this.loadAdScripts().then(()=>{this.executeAdJavascript()})))}addClassToHost(){const t=`${this.slot.replace(/\./g,"-")}-host`;this.el.nativeElement.classList.add(t)}ngOnDestroy(){delete window.google_ad_modifications}appendAdHtml(){const t=this.adCode.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").trim();t&&(this.el.nativeElement.innerHTML=t)}executeAdJavascript(){const pattern=/<script\b[^>]*>([\s\S]*?)<\/script>/g;let content;for(;content=pattern.exec(this.adCode);)if(content[1]){const r="var d = document.createElement('div'); d.innerHTML = $1; document.getElementById('"+this.randomId+"').appendChild(d.firstChild);",toEval=content[1].replace(/document.write\((.+?)\);/,r);eval(toEval)}}loadAdScripts(){const t=[],e=/<script.*?src=['"](.*?)['"]/g;let n;for(;n=e.exec(this.adCode);)n[1]&&t.push(this.lazyLoader.loadAsset(n[1],{type:"js",parentEl:this.el.nativeElement}));return Promise.all(t)}}return AdHostComponent.\u0275fac=function(t){return new(t||AdHostComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__.Y36(_angular_core__WEBPACK_IMPORTED_MODULE_2__.SBq),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Y36(_angular_core__WEBPACK_IMPORTED_MODULE_2__.Qsj),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Y36(_common_core_config_settings_service__WEBPACK_IMPORTED_MODULE_0__.Z),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Y36(_common_auth_current_user__WEBPACK_IMPORTED_MODULE_3__.I),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Y36(_common_core_utils_lazy_loader_service__WEBPACK_IMPORTED_MODULE_4__.j))},AdHostComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_2__.Xpm({type:AdHostComponent,selectors:[["ad-host"]],hostVars:1,hostBindings:function(t,e){2&t&&_angular_core__WEBPACK_IMPORTED_MODULE_2__.Ikx("id",e.randomId)},inputs:{slot:"slot"},decls:0,vars:0,template:function(t,e){},styles:["ad-host{display:flex;align-items:center;justify-content:center;width:100%;max-width:100%;overflow:hidden;min-height:90px;max-height:600px}ad-host:empty{display:none}ad-host.margin-bottom{margin-bottom:15px}ad-host.margin-top{margin-top:15px}ad-host>:not(img){width:100%;height:100%;max-width:1200px;min-height:90px;max-height:600px}@media only screen and (max-width: 599.99px){ad-host>:not(img){max-width:370px}}ad-host img{margin:auto}"],encapsulation:2,changeDetection:0}),AdHostComponent})()},6605:(t,e,n)=>{"use strict";n.d(e,{S:()=>o});var i=n(5072),s=n(6215),r=n(7716);let o=(()=>{class t{constructor(t){this.breakpointObserver=t,this.isMobile$=new s.X(!1),this.isTablet$=new s.X(!1),this.breakpointObserver.observe(i.u3.Handset).subscribe(t=>{this.isMobile$.next(t.matches)}),this.breakpointObserver.observe(i.u3.Tablet).subscribe(t=>{this.isTablet$.next(t.matches)})}observe(t){return this.breakpointObserver.observe(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.Yg))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},7738:(t,e,n)=>{"use strict";n.d(e,{G:()=>d});var i=n(8583),s=n(8341),r=n(6627),o=n(3679),a=n(9866),l=n(1554),c=n(1095),u=n(2458),h=n(7716);let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[i.ez,s.Hi,l.Bb,o.UX,a.N,c.ot,r.Ps,u.si]]}),t})()},8208:(t,e,n)=>{"use strict";n.d(e,{z:()=>h});var i=n(2238),s=n(7716),r=n(9244),o=n(4673),a=n(6627),l=n(8583),c=n(1095);function u(t,e){if(1&t&&(s.TgZ(0,"p",9),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.data.bodyBold)}}let h=(()=>{class t{constructor(t,e,n,i){this.dialogRef=t,this.data=e,this.i18n=n,this.settings=i}ngOnInit(){this.data.ok||(this.data.ok="Confirm"),this.data.cancel||(this.data.cancel="Cancel");for(const t in this.data)"string"==typeof this.data[t]&&(this.data[t]=this.i18n.t(this.data[t],this.data.replacements))}confirm(){this.dialogRef.close(!0)}close(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(i.so),s.Y36(i.WI),s.Y36(r.Z),s.Y36(o.Z))},t.\u0275cmp=s.Xpm({type:t,selectors:[["confirm-modal"]],decls:14,vars:5,consts:[[1,"modal-header"],["mat-dialog-title","",1,"modal-title"],["type","button","tabindex","-1",1,"close-button","no-style",3,"click"],["svgIcon","close"],["mat-dialog-content","",1,"mat-dialog-contents"],["class","bold",4,"ngIf"],["mat-dialog-actions","",1,"buttons","right","mat-dialog-actions"],["type","button","mat-button","",1,"button","cancel","cancel-button",3,"click"],["type","submit","mat-raised-button","","color","accent","cdkFocusInitial","",1,"button","primary","submit-button",3,"click"],[1,"bold"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h2",1),s._uU(2),s.qZA(),s.TgZ(3,"button",2),s.NdJ("click",function(){return e.close()}),s._UZ(4,"mat-icon",3),s.qZA(),s.qZA(),s.TgZ(5,"div",4),s.TgZ(6,"p"),s._uU(7),s.qZA(),s.YNc(8,u,2,1,"p",5),s.qZA(),s.TgZ(9,"div",6),s.TgZ(10,"button",7),s.NdJ("click",function(){return e.close()}),s._uU(11),s.qZA(),s.TgZ(12,"button",8),s.NdJ("click",function(){return e.confirm()}),s._uU(13),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Oqu(e.data.title),s.xp6(5),s.Oqu(e.data.body),s.xp6(1),s.Q6J("ngIf",e.data.bodyBold),s.xp6(3),s.Oqu(e.data.cancel),s.xp6(2),s.Oqu(e.data.ok))},directives:[i.uh,a.Hw,i.xY,l.O5,i.H8,c.lW],styles:["[_nghost-%COMP%]{display:block;max-width:500px}.modal-header[_ngcontent-%COMP%]{margin-bottom:10px}.bold[_ngcontent-%COMP%]{font-weight:500}p[_ngcontent-%COMP%]{font-size:1.5rem}"],changeDetection:0}),t})()},6638:(t,e,n)=>{"use strict";n.d(e,{x:()=>h});var i=n(7716),s=n(4655),r=n(7636),o=n(5435);class a{constructor(t){this.overlayRef=t}close(){this.overlayRef&&this.overlayRef.dispose()}backdropClick(){return this.overlayRef.backdropClick()}attachments(){return this.overlayRef.attachments()}detachments(){return this.overlayRef.detachments()}backdropElement(){return this.overlayRef.backdropElement}contextMenuElement(){return this.overlayRef.overlayElement}}const l=new i.OlP("CONTEXT_MENU_DATA");var c=n(625);const u="dynamic-context-menu-origin";let h=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.zone=e,this.injector=n,this.resolver=i,this.overlay=r,this.router.events.pipe((0,o.h)(t=>t instanceof s.OD)).subscribe(()=>this.close())}open(t,e,n={}){if(this.close(),!t)return;const i=this.createOverlay(e,n);this.openContextMenu=new a(i);const s=new r.nK(this.injector,new WeakMap([[l,n.data],[a,this.openContextMenu]])),o=new r.C5(t,null,s);return i.attach(o),this.bindEventsToOverlay(),this.openContextMenu}close(){this.removeLastOrigin(),this.openContextMenu&&(this.openContextMenu.close(),this.openContextMenu=null)}createOverlay(t,e){return this.overlay.create({positionStrategy:this.getMenuPositionStrategy(t,e),scrollStrategy:this.overlay.scrollStrategies.close(),hasBackdrop:!0,backdropClass:"context-menu-backdrop",panelClass:"context-menu-overlay"})}bindEventsToOverlay(){this.openContextMenu.contextMenuElement().addEventListener("click",()=>{this.close()}),this.openContextMenu.backdropClick().subscribe(()=>{this.close()}),this.openContextMenu.backdropElement().addEventListener("contextmenu",t=>{t.preventDefault(),this.close()}),this.openContextMenu.detachments().subscribe(()=>{this.close()})}getMenuPositionStrategy(t,e){this.createOriginFromEvent(t,e);const n={originX:e.originX||"center",originY:e.originY||"bottom",overlayX:e.overlayX||"center",overlayY:e.overlayY||"top"};return this.overlay.position().flexibleConnectedTo(new i.SBq(this.lastOrigin)).withPositions([n,{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"bottom"}])}createOriginFromEvent(t,e){this.removeLastOrigin(),t instanceof HTMLElement||t instanceof EventTarget?this.lastOrigin=t:(this.lastOrigin=document.createElement("div"),this.lastOrigin.style.position="fixed",this.lastOrigin.style.top=t.clientY+(e.offsetY||0)+"px",this.lastOrigin.style.left=t.clientX+(e.offsetX||0)+"px",this.lastOrigin.id=u,document.body.appendChild(this.lastOrigin))}removeLastOrigin(){this.lastOrigin&&this.lastOrigin.id===u&&this.lastOrigin.remove()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.F0),i.LFG(i.R0b),i.LFG(i.zs3),i.LFG(i._Vd),i.LFG(c.aV))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},4434:(t,e,n)=>{"use strict";n.d(e,{K:()=>E});var i=n(1669),s=n(5566);function r(t){if(-1===t.indexOf("?"))return;-1===t.indexOf("//")&&(t="https://"+t);const e=new URL(t).searchParams,n={};return e.forEach((t,e)=>{n[e]=t}),n}var o=n(7519),a=n(3653),l=n(7716),c=n(4673),u=n(4688),h=n(5809),d=n(8583),p=n(5515),g=n(6627),m=n(4655);function f(t,e){if(1&t&&(l.TgZ(0,"div",2),l._uU(1),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Oqu(t.menu.name)}}function _(t,e){if(1&t&&l._UZ(0,"mat-icon",9),2&t){const t=l.oxw(3).$implicit;l.Q6J("svgIcon",t.icon)}}function b(t,e){if(1&t&&(l.TgZ(0,"a",6),l.YNc(1,_,1,1,"mat-icon",7),l.TgZ(2,"span",8),l._uU(3),l.qZA(),l.qZA()),2&t){const t=l.oxw(2).$implicit,e=l.oxw();l.Gre("nav-item custom-menu-item link-nav-item ",e.itemClass,""),l.Q6J("href",t.action,l.LSH)("ngClass",e.toSnakeCase(t.label))("target",t.target),l.xp6(1),l.Q6J("ngIf",t.icon),l.xp6(2),l.Oqu(t.label)}}function v(t,e){if(1&t&&l._UZ(0,"mat-icon",9),2&t){const t=l.oxw(4).$implicit;l.Q6J("svgIcon",t.icon)}}const y=function(t){return{exact:t}};function w(t,e){if(1&t&&(l.TgZ(0,"a",11),l.YNc(1,v,1,1,"mat-icon",7),l.TgZ(2,"span",8),l._uU(3),l.qZA(),l.qZA()),2&t){const t=l.oxw().ngIf,e=l.oxw(2).$implicit,n=l.oxw();l.Gre("nav-item custom-menu-item route-nav-item ",n.itemClass,""),l.Q6J("routerLink","/"+t.link)("queryParams",t.queryParams)("ngClass",n.toSnakeCase(e.label))("routerLinkActiveOptions",l.VKq(10,y,"/"===e.action||e.activeExact))("target",e.target),l.xp6(1),l.Q6J("ngIf",e.icon),l.xp6(2),l.Oqu(e.label)}}function x(t,e){1&t&&(l.ynx(0),l.YNc(1,w,4,12,"a",10),l.BQk()),2&t&&(l.xp6(1),l.Q6J("ngSwitchCase","route"))}function C(t,e){if(1&t&&(l.ynx(0),l.ynx(1,4),l.YNc(2,b,4,8,"a",5),l.YNc(3,x,2,1,"ng-container",3),l.BQk(),l.BQk()),2&t){const t=l.oxw().$implicit,e=l.oxw();l.xp6(1),l.Q6J("ngSwitch",e.getItemType(t)),l.xp6(1),l.Q6J("ngSwitchCase","link"),l.xp6(1),l.Q6J("ngIf",e.parseRoute(t.action))}}function k(t,e){if(1&t&&(l.ynx(0),l.YNc(1,C,4,3,"ng-container",3),l.BQk()),2&t){const t=e.$implicit,n=l.oxw();l.xp6(1),l.Q6J("ngIf",n.shouldShow(null==t?null:t.condition))}}const A=["*"];let E=(()=>{class t{constructor(t,e,n,s,r){this.settings=t,this.currentUser=e,this.changeDetector=n,this.appearance=s,this.cd=r,this.shouldHide=!1,this.vertical=!1,this.horizontal=!1,this.compact=!1,this.showTitle=!1,this.menu=new i.v,this.subscriptions=[]}ngOnInit(){if(this.initMenu(),this.appearance.active){const e=this.settings.all$().pipe((0,a.T)(1),(t="menus",(0,o.x)((e,n)=>e[t]===n[t]))).subscribe(()=>{this.initMenu(),this.cd.markForCheck()});this.subscriptions.push(e)}var t}ngOnDestroy(){this.subscriptions.forEach(t=>{t&&t.unsubscribe()})}toSnakeCase(t){return t?(0,s.f)(t):null}shouldShow(t){if(!t)return!0;if(Array.isArray(t))return t.every(t=>this.shouldShow(t));if("function"==typeof t)return t(this.currentUser,this.settings);switch(t){case"auth":return this.currentUser.isLoggedIn();case"guest":return!this.currentUser.isLoggedIn();case"admin":return this.currentUser.hasPermission("admin");default:let e=!1;return t.startsWith("!")&&(t=t.substr(1),e=!0),!t.startsWith("permission:")||e!==this.currentUser.hasPermission(t.split(":")[1])}}getItemType(t){return"link"===t.type&&-1===t.action.indexOf("//")||t.action.indexOf(this.settings.getBaseUrl(!0))>-1?"route":t.type}parseRoute(t){return{link:t.split("?")[0],queryParams:r(t)}}initMenu(){if("string"!=typeof this.position)return void(this.menu=new i.v({items:this.position}));const t=this.settings.get("menus"),e=JSON.parse(t);if(!e)return this.shouldHide=!0;const n=e.find(t=>t.position===this.position);if(!n)return this.shouldHide=!0;this.menu=new i.v(n),this.shouldHide=!1}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(c.Z),l.Y36(u.I),l.Y36(l.sBO),l.Y36(h.f),l.Y36(l.sBO))},t.\u0275cmp=l.Xpm({type:t,selectors:[["custom-menu"]],hostVars:8,hostBindings:function(t,e){2&t&&l.ekj("hidden",e.shouldHide)("vertical",e.vertical)("horizontal",e.horizontal)("compact",e.compact)},inputs:{vertical:"vertical",horizontal:"horizontal",compact:"compact",position:"position",showTitle:"showTitle",itemClass:"itemClass"},ngContentSelectors:A,decls:3,vars:2,consts:[["class","menu-title",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"menu-title"],[4,"ngIf"],[3,"ngSwitch"],[3,"class","href","ngClass","target",4,"ngSwitchCase"],[3,"href","ngClass","target"],[3,"svgIcon",4,"ngIf"],["trans","",1,"text"],[3,"svgIcon"],["routerLinkActive","active",3,"class","routerLink","queryParams","ngClass","routerLinkActiveOptions","target",4,"ngSwitchCase"],["routerLinkActive","active",3,"routerLink","queryParams","ngClass","routerLinkActiveOptions","target"]],template:function(t,e){1&t&&(l.F$t(),l.YNc(0,f,2,1,"div",0),l.YNc(1,k,2,1,"ng-container",1),l.Hsn(2)),2&t&&(l.Q6J("ngIf",e.showTitle),l.xp6(1),l.Q6J("ngForOf",e.menu.items))},directives:[d.O5,d.sg,d.RF,d.n9,d.mk,p.P,g.Hw,m.yS,m.Od],styles:["[_nghost-%COMP%]{white-space:nowrap;max-width:100%}.mat-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-right:8px}.custom-menu-item[_ngcontent-%COMP%]{white-space:nowrap;border-radius:4px;outline:none}.vertical[_nghost-%COMP%]   .custom-menu-item[_ngcontent-%COMP%], .vertical   [_nghost-%COMP%]   .custom-menu-item[_ngcontent-%COMP%]{display:block;color:var(--be-secondary-text);padding:12px 16px;border-left:4px solid #0000;margin-bottom:8px}.vertical[_nghost-%COMP%]   .active[_ngcontent-%COMP%], .vertical   [_nghost-%COMP%]   .active[_ngcontent-%COMP%]{background-color:var(--be-accent-emphasis);border-color:var(--be-accent-default);color:var(--be-text)}.vertical[_nghost-%COMP%]   .text[_ngcontent-%COMP%], .vertical   [_nghost-%COMP%]   .text[_ngcontent-%COMP%]{font-weight:500;text-transform:capitalize}.horizontal[_nghost-%COMP%], .horizontal   [_nghost-%COMP%]{overflow:hidden}.horizontal[_nghost-%COMP%]   .custom-menu-item[_ngcontent-%COMP%], .horizontal   [_nghost-%COMP%]   .custom-menu-item[_ngcontent-%COMP%]{display:inline-block;padding:5px 15px;color:inherit}.horizontal[_nghost-%COMP%]   .custom-menu-item[_ngcontent-%COMP%]:hover, .horizontal   [_nghost-%COMP%]   .custom-menu-item[_ngcontent-%COMP%]:hover{text-decoration:underline}.horizontal[_nghost-%COMP%]   .active[_ngcontent-%COMP%], .horizontal   [_nghost-%COMP%]   .active[_ngcontent-%COMP%], .horizontal[_nghost-%COMP%]   .router-link-active[_ngcontent-%COMP%], .horizontal   [_nghost-%COMP%]   .router-link-active[_ngcontent-%COMP%]{color:var(--be-accent-contrast);background-color:var(--be-primary-lighter)}.color-accent[_nghost-%COMP%]   .active[_ngcontent-%COMP%], .color-accent   [_nghost-%COMP%]   .active[_ngcontent-%COMP%], .color-accent[_nghost-%COMP%]   .router-link-active[_ngcontent-%COMP%], .color-accent   [_nghost-%COMP%]   .router-link-active[_ngcontent-%COMP%]{color:var(--be-accent-contrast);background-color:var(--be-accent-emphasis)}.compact[_nghost-%COMP%]   .text[_ngcontent-%COMP%], .compact   [_nghost-%COMP%]   .text[_ngcontent-%COMP%]{display:none}"],changeDetection:0}),t})()},5122:(t,e,n)=>{"use strict";n.d(e,{N:()=>l});var i=n(8583),s=n(4655),r=n(6627),o=n(9866),a=n(7716);let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[i.ez,s.Bz,r.Ps,o.N]]}),t})()},1669:(t,e,n)=>{"use strict";n.d(e,{v:()=>i});class i{constructor(t={}){this.position="header",this.items=[];for(const e in t)this[e]=t[e]}}},5381:(t,e,n)=>{"use strict";n.d(e,{u:()=>r});var i=n(7716),s=n(2238);let r=(()=>{class t{constructor(t){this.dialog=t}open(t,e={},n={}){return e||(e={}),Array.isArray(n.panelClass)||(n.panelClass=[n.panelClass]),void 0===n.restoreFocus&&(n.restoreFocus=!1),n.panelClass.push("be-modal"),this.dialog.open(t,Object.assign(Object.assign({},n),{data:e}))}show(t,e={}){return this.open(t,e)}anyDialogOpen(){return this.dialog.openDialogs.length>0}closeAll(){this.dialog.closeAll()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.uw))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},38:(t,e,n)=>{"use strict";n.d(e,{j:()=>o});var i=n(4890),s=n(7716),r=n(4673);let o=(()=>{class t{constructor(t){this.settings=t}transform(t){return t&&"none"!==t?t.includes("linear-gradient")?t:((0,i.s)(t)||(t=t.startsWith("storage")?`${this.settings.getBaseUrl()}/${t}`:this.settings.getAssetUrl(`images/${t}`)),`url(${t})`):null}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.Z,16))},t.\u0275pipe=s.Yjl({name:"backgroundUrl",type:t,pure:!0}),t})()},2877:(t,e,n)=>{"use strict";n.d(e,{X:()=>o});var i=n(8583),s=n(38),r=n(7716);let o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[s.j],imports:[[i.ez]]}),t})()},8256:(t,e,n)=>{"use strict";n.d(e,{l:()=>o});var i=n(7716),s=n(8583),r=n(4673);let o=(()=>{class t{constructor(t,e){this.settings=t,this._locale=e,this.format=this.settings.get("dates.format","yyyy-MM-dd"),this.angularPipe=new s.uU(e)}transform(t,e,n,i){if(t&&"string"==typeof t){if(t.endsWith("ago"))return t;t=t.replace(/\//g,"-")}return this.angularPipe.transform(t,e||this.format,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.Z,16),i.Y36(i.soG,16))},t.\u0275pipe=i.Yjl({name:"formattedDate",type:t,pure:!0}),t})()},6452:(t,e,n)=>{"use strict";n.d(e,{A:()=>g});var i=n(6215),s=n(4890),r=n(7716),o=n(4673),a=n(8583),l=n(2861),c=n(6627);function u(t,e){if(1&t&&r._UZ(0,"img",4),2&t){const t=r.oxw();r.Q6J("src",t.src,r.LSH)("alt",t.alt)("ngClass",t.className)}}function h(t,e){if(1&t&&r._UZ(0,"img",4),2&t){const t=r.oxw();r.Q6J("src",t.src,r.LSH)("alt",t.alt)("ngClass",t.className)}}function d(t,e){if(1&t&&r._UZ(0,"svg-image",5),2&t){const t=r.oxw();r.Q6J("name",t.src)("ngClass",t.className)}}function p(t,e){if(1&t&&r._UZ(0,"mat-icon",6),2&t){const t=r.oxw();r.Q6J("svgIcon",t.src)("ngClass",t.className)}}let g=(()=>{class t{constructor(t,e){this.settings=t,this.el=e,this.alt="",this.className="",this.type$=new i.X(null)}ngOnInit(){this.type$.subscribe(t=>{this.el.nativeElement.classList.remove("image"),this.el.nativeElement.classList.remove("icon"),this.el.nativeElement.classList.remove("svg"),this.el.nativeElement.classList.add("absolute"===t||"relative"===t?"image":t)})}ngOnChanges(t){this.src&&((0,s.s)(this.src)?this.type$.next("absolute"):!this.src.includes("/")&&this.src.endsWith(".svg")?this.type$.next("svg"):this.src.indexOf(".")>-1?this.type$.next("relative"):this.type$.next("icon"))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(o.Z),r.Y36(r.SBq))},t.\u0275cmp=r.Xpm({type:t,selectors:[["image-or-icon"]],inputs:{src:"src",alt:"alt",className:"className"},features:[r.TTD],decls:6,vars:7,consts:[[3,"ngSwitch"],[3,"src","alt","ngClass",4,"ngSwitchCase"],[3,"name","ngClass",4,"ngSwitchCase"],[3,"svgIcon","ngClass",4,"ngSwitchCase"],[3,"src","alt","ngClass"],[3,"name","ngClass"],[3,"svgIcon","ngClass"]],template:function(t,e){1&t&&(r.ynx(0,0),r.ALo(1,"async"),r.YNc(2,u,1,3,"img",1),r.YNc(3,h,1,3,"img",1),r.YNc(4,d,1,2,"svg-image",2),r.YNc(5,p,1,2,"mat-icon",3),r.BQk()),2&t&&(r.Q6J("ngSwitch",r.lcZ(1,5,e.type$)),r.xp6(2),r.Q6J("ngSwitchCase","absolute"),r.xp6(1),r.Q6J("ngSwitchCase","relative"),r.xp6(1),r.Q6J("ngSwitchCase","svg"),r.xp6(1),r.Q6J("ngSwitchCase","icon"))},directives:[a.RF,a.n9,a.mk,l.L,c.Hw],pipes:[a.Ov],styles:[".inherit-size[_nghost-%COMP%]   img[_ngcontent-%COMP%], .inherit-size   [_nghost-%COMP%]   img[_ngcontent-%COMP%], .inherit-size[_nghost-%COMP%]   svg-image[_ngcontent-%COMP%], .inherit-size   [_nghost-%COMP%]   svg-image[_ngcontent-%COMP%]{width:100%;height:100%}.icon[_nghost-%COMP%], .icon   [_nghost-%COMP%]{display:inline-block;width:24px;height:24px}.mat-icon[_ngcontent-%COMP%]{width:100%;height:100%}img[_ngcontent-%COMP%], svg-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%;height:auto;object-fit:cover;object-position:top;margin:auto}"],changeDetection:0}),t})()},8285:(t,e,n)=>{"use strict";n.d(e,{T:()=>a});var i=n(8583),s=n(6627),r=n(5218),o=n(7716);let a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[i.ez,s.Ps,r.a]]}),t})()},616:(t,e,n)=>{"use strict";n.d(e,{Q:()=>r});var i=n(7238),s=n(7716);let r=(()=>{class t{constructor(){this.isVisible=!1}show(){this.isVisible=!0}hide(){this.isVisible=!1}toggle(){this.isVisible=!this.isVisible}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["loading-indicator"]],hostVars:1,hostBindings:function(t,e){2&t&&s.d8E("@visibility",e.isVisible)},inputs:{isVisible:"isVisible"},decls:9,vars:0,consts:[[1,"la-ball-spin-clockwise","spinner"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"div"),s._UZ(2,"div"),s._UZ(3,"div"),s._UZ(4,"div"),s._UZ(5,"div"),s._UZ(6,"div"),s._UZ(7,"div"),s._UZ(8,"div"),s.qZA())},styles:[".overlay[_nghost-%COMP%], .overlay   [_nghost-%COMP%]{position:fixed;width:100vw;height:100vh;top:0;left:0;z-index:10;background-color:#fafafab3}.overlay[_nghost-%COMP%]   .spinner[_ngcontent-%COMP%], .overlay   [_nghost-%COMP%]   .spinner[_ngcontent-%COMP%]{position:absolute;top:calc(50% - 32px);left:calc(50% - 32px)}.overlay-partial[_nghost-%COMP%], .overlay-partial   [_nghost-%COMP%]{position:absolute;width:100%;height:100%}.small[_nghost-%COMP%], .small   [_nghost-%COMP%]{width:22.8571428571px;height:22.8571428571px}.small[_nghost-%COMP%]   .spinner[_ngcontent-%COMP%], .small   [_nghost-%COMP%]   .spinner[_ngcontent-%COMP%]{width:22.8571428571px;height:22.8571428571px}.small[_nghost-%COMP%]   .spinner[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .small   [_nghost-%COMP%]   .spinner[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:5.7142857143px;height:5.7142857143px;margin-top:-2.8571428571px;margin-left:-2.8571428571px}.inline[_nghost-%COMP%], .inline   [_nghost-%COMP%]{position:relative;width:100%}.inline[_nghost-%COMP%]   .spinner[_ngcontent-%COMP%], .inline   [_nghost-%COMP%]   .spinner[_ngcontent-%COMP%]{margin:auto}[_nghost-%COMP%]{opacity:0;display:none;position:absolute;width:64px;height:64px;-webkit-user-select:none;user-select:none;background-color:initial}[_nghost-%COMP%]:empty{display:none}.spinner[_ngcontent-%COMP%]{width:64px;height:64px;color:var(--be-accent-default)}.spinner[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:16px;height:16px;margin-top:-8px;margin-left:-8px}.be-dark-mode.overlay[_nghost-%COMP%], .be-dark-mode   .overlay[_nghost-%COMP%]{background-color:#0006}.center[_nghost-%COMP%], .center   [_nghost-%COMP%]{top:calc(50% - 32px);left:calc(50% - 32px)}.overlay-light[_nghost-%COMP%], .overlay-light   [_nghost-%COMP%]{background-color:#ffffffe6}.overlay-dark[_nghost-%COMP%], .overlay-dark   [_nghost-%COMP%]{background-color:#0000001a}.overlay-transparent[_nghost-%COMP%], .overlay-transparent   [_nghost-%COMP%]{background-color:initial}.la-ball-spin-clockwise[_ngcontent-%COMP%], .la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{position:relative;box-sizing:border-box}.la-ball-spin-clockwise[_ngcontent-%COMP%]{display:block;font-size:0}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:inline-block;float:none;background-color:currentColor;border:0 solid;position:absolute;top:50%;left:50%;border-radius:100%;animation:ball-spin-clockwise 1s ease-in-out infinite}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{top:5%;left:50%;animation-delay:-.875s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){top:18.1801948466%;left:81.8198051534%;animation-delay:-.75s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){top:50%;left:95%;animation-delay:-.625s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){top:81.8198051534%;left:81.8198051534%;animation-delay:-.5s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){top:94.9999999966%;left:50.0000000005%;animation-delay:-.375s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){top:81.8198046966%;left:18.1801949248%;animation-delay:-.25s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){top:49.9999750815%;left:5.0000051215%;animation-delay:-.125s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){top:18.179464974%;left:18.1803700518%;animation-delay:0s}@keyframes ball-spin-clockwise{0%,to{opacity:1;transform:scale(1)}20%{opacity:1}80%{opacity:0;transform:scale(0)}}"],data:{animation:[(0,i.X$)("visibility",[(0,i.SB)("true",(0,i.oB)({opacity:"1",display:"block"})),(0,i.SB)("false",(0,i.oB)({opacity:"0",display:"none"})),(0,i.eR)("true <=> false",(0,i.jt)("125ms cubic-bezier(.4,0,.2,1)"))])]},changeDetection:0}),t})()},3389:(t,e,n)=>{"use strict";n.d(e,{p:()=>r});var i=n(8583),s=n(7716);let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez]]}),t})()},757:(t,e,n)=>{"use strict";n.d(e,{F:()=>S});var i=n(7716),s=n(4688),r=n(8805),o=n(4673),a=n(6605),l=n(8849),c=n(8583),u=n(4655),h=n(3935),d=n(6627),p=n(5515);function g(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",11),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).onItemClick()}),i._UZ(1,"mat-icon",12),i.TgZ(2,"span",7),i._uU(3,"Admin Area"),i.qZA(),i.qZA()}}function m(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",13),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).onItemClick()}),i._UZ(1,"mat-icon",14),i.TgZ(2,"span",7),i._uU(3,"Notifications"),i.qZA(),i.qZA()}}function f(t,e){if(1&t&&(i.TgZ(0,"a",17),i._UZ(1,"mat-icon",18),i.TgZ(2,"span",7),i._uU(3),i.qZA(),i.qZA()),2&t){const t=i.oxw().$implicit;i.Q6J("routerLink",t.route),i.xp6(1),i.Q6J("svgIcon",t.icon),i.xp6(2),i.Oqu(t.name)}}function _(t,e){if(1&t&&(i.ynx(0),i.YNc(1,f,4,3,"a",16),i.BQk()),2&t){const t=e.$implicit,n=i.oxw(3);i.xp6(1),i.Q6J("ngIf",n.shouldShowMenuItem(t))}}function b(t,e){if(1&t&&(i.ynx(0),i.YNc(1,_,2,1,"ng-container",15),i.BQk()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngForOf",t.config.get("vebto.navbar.dropdownItems"))}}function v(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"a",19),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).onItemClick()}),i._UZ(2,"mat-icon",20),i.TgZ(3,"span",7),i._uU(4,"Subscription"),i.qZA(),i.qZA(),i.TgZ(5,"a",21),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).onItemClick()}),i._UZ(6,"mat-icon",22),i.TgZ(7,"span",7),i._uU(8,"Invoices"),i.qZA(),i.qZA(),i.BQk()}}function y(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",25),i.TgZ(2,"span",7),i._uU(3,"Light Mode"),i.qZA(),i.BQk())}function w(t,e){1&t&&(i._UZ(0,"mat-icon",26),i.TgZ(1,"span",7),i._uU(2,"Dark Mode"),i.qZA())}function x(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",23),i.NdJ("click",function(){i.CHM(t);const e=i.oxw(2);return e.theme.toggle(),e.onItemClick()}),i.YNc(1,y,4,0,"ng-container",0),i.ALo(2,"async"),i.YNc(3,w,3,0,"ng-template",null,24,i.W1O),i.qZA()}if(2&t){const t=i.MAs(4),e=i.oxw(2);let n;i.xp6(1),i.Q6J("ngIf",null==(n=i.lcZ(2,2,e.theme.selectedTheme$))?null:n.is_dark)("ngIfElse",t)}}function C(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.YNc(1,g,4,0,"a",2),i.YNc(2,m,4,0,"a",3),i.ALo(3,"async"),i.Hsn(4),i.YNc(5,b,2,1,"ng-container",4),i.TgZ(6,"a",5),i.NdJ("click",function(){return i.CHM(t),i.oxw().onItemClick()}),i._UZ(7,"mat-icon",6),i.TgZ(8,"span",7),i._uU(9,"Account Settings"),i.qZA(),i.qZA(),i.YNc(10,v,9,0,"ng-container",4),i.YNc(11,x,5,4,"div",8),i.TgZ(12,"div",9),i.NdJ("click",function(){i.CHM(t);const e=i.oxw();return e.auth.logOut(),e.onItemClick()}),i._UZ(13,"mat-icon",10),i.TgZ(14,"span",7),i._uU(15,"Log Out"),i.qZA(),i.qZA(),i.BQk()}if(2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngIf",t.currentUser.hasPermission("admin.access")),i.xp6(1),i.Q6J("ngIf",t.forceNotifButton||i.lcZ(3,5,t.breakpoints.isMobile$)&&t.config.get("notifications.integrated")),i.xp6(3),i.Q6J("ngIf",!t.hideConfigItems),i.xp6(5),i.Q6J("ngIf",t.currentUser.isSubscribed()),i.xp6(1),i.Q6J("ngIf",t.config.get("themes.user_change"))}}function k(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",29),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).onItemClick()}),i._uU(1,"Register"),i.qZA()}}function A(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",27),i.NdJ("click",function(){return i.CHM(t),i.oxw().onItemClick()}),i._uU(1,"Login"),i.qZA(),i.YNc(2,k,2,0,"a",28)}if(2&t){const t=i.oxw();i.xp6(2),i.Q6J("ngIf",!t.config.get("registration.disable")&&!t.hideRegisterButton)}}const E=["*"];let S=(()=>{class t{constructor(t,e,n,s,r,o){this.currentUser=t,this.auth=e,this.config=n,this.breakpoints=s,this.theme=r,this.settings=o,this.hideRegisterButton=!1,this.hideConfigItems=!1,this.forceNotifButton=!1,this.itemClicked=new i.vpe}shouldShowMenuItem(t){const e=!t.permission||this.currentUser.hasPermission(t.permission),n=!t.role||this.currentUser.hasRole(t.role),i=!t.showFn||t.showFn(this.settings,this.currentUser);return e&&n&&i}onItemClick(){this.itemClicked.emit()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s.I),i.Y36(r.e),i.Y36(o.Z),i.Y36(a.S),i.Y36(l.f),i.Y36(o.Z))},t.\u0275cmp=i.Xpm({type:t,selectors:[["logged-in-user-menu"]],inputs:{hideRegisterButton:"hideRegisterButton",hideConfigItems:"hideConfigItems",forceNotifButton:"forceNotifButton"},outputs:{itemClicked:"itemClicked"},ngContentSelectors:E,decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["guestMenuItems",""],["class","admin-link","mat-menu-item","","routerLink","/admin",3,"click",4,"ngIf"],["class","notifications-link","mat-menu-item","","routerLink","/notifications",3,"click",4,"ngIf"],[4,"ngIf"],["mat-menu-item","","routerLink","/account/settings",1,"account-settings-link",3,"click"],["svgIcon","settings",1,"mat-icon"],["trans",""],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",1,"logout-item",3,"click"],["svgIcon","exit-to-app"],["mat-menu-item","","routerLink","/admin",1,"admin-link",3,"click"],["svgIcon","dashboard",1,"mat-icon"],["mat-menu-item","","routerLink","/notifications",1,"notifications-link",3,"click"],["svgIcon","notifications"],[4,"ngFor","ngForOf"],["mat-menu-item","",3,"routerLink",4,"ngIf"],["mat-menu-item","",3,"routerLink"],[3,"svgIcon"],["mat-menu-item","","routerLink","/billing/subscription",1,"subscription-link",3,"click"],["svgIcon","credit-card",1,"mat-icon"],["mat-menu-item","","routerLink","/billing/invoices",1,"subscription-link",3,"click"],["svgIcon","assignment",1,"mat-icon"],["mat-menu-item","",3,"click"],["lightMode",""],["svgIcon","light-mode"],["svgIcon","dark-mode"],["routerLink","/login","mat-menu-item","","trans","",3,"click"],["routerLink","/register","mat-menu-item","","trans","",3,"click",4,"ngIf"],["routerLink","/register","mat-menu-item","","trans","",3,"click"]],template:function(t,e){if(1&t&&(i.F$t(),i.YNc(0,C,16,7,"ng-container",0),i.ALo(1,"async"),i.YNc(2,A,3,1,"ng-template",null,1,i.W1O)),2&t){const t=i.MAs(3);i.Q6J("ngIf",i.lcZ(1,2,e.currentUser.isLoggedIn$))("ngIfElse",t)}},directives:[c.O5,u.yS,h.OP,d.Hw,p.P,c.sg],pipes:[c.Ov],styles:[""],changeDetection:0}),t})()},837:(t,e,n)=>{"use strict";n.d(e,{e:()=>H});var i=n(7716),s=n(6215),r=n(739),o=n(8002),a=n(4673),l=n(4688),c=n(6605),u=n(8849),h=n(8583),d=n(4655),p=n(1095),g=n(6627),m=n(3935),f=n(4434),_=n(757),b=n(5515);function v(t,e){if(1&t&&(i.ynx(0),i.TgZ(1,"div",2),i._UZ(2,"img",3),i.TgZ(3,"div",4),i._uU(4),i.qZA(),i._UZ(5,"mat-icon",5),i.TgZ(6,"button",6),i._UZ(7,"mat-icon",7),i.qZA(),i.qZA(),i.TgZ(8,"mat-menu",8,9),i._UZ(10,"logged-in-user-menu"),i.qZA(),i.BQk()),2&t){const t=i.MAs(9),e=i.oxw();i.xp6(1),i.Q6J("matMenuTriggerFor",t),i.xp6(1),i.Q6J("src",e.currentUser.get("avatar"),i.LSH),i.xp6(2),i.Oqu(e.currentUser.get("email")),i.xp6(4),i.Q6J("overlapTrigger",!1)}}function y(t,e){1&t&&(i.TgZ(0,"a",12),i._uU(1,"Register"),i.qZA())}function w(t,e){if(1&t&&(i.YNc(0,y,2,0,"a",10),i.TgZ(1,"a",11),i._uU(2,"Login"),i.qZA()),2&t){const t=i.oxw();i.Q6J("ngIf",!t.config.get("registration.disable")&&!t.hideRegisterButton)}}let x=(()=>{class t{constructor(t,e,n){this.currentUser=t,this.config=e,this.breakpoints=n,this.hideRegisterButton=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(l.I),i.Y36(a.Z),i.Y36(c.S))},t.\u0275cmp=i.Xpm({type:t,selectors:[["logged-in-user-widget"]],inputs:{hideRegisterButton:"hideRegisterButton"},decls:5,vars:6,consts:[[4,"ngIf","ngIfElse"],["authButtons",""],[1,"menu-trigger",3,"matMenuTriggerFor"],[1,"avatar",3,"src"],[1,"email"],["svgIcon","arrow-drop-down",1,"dropdown-icon"],["mat-icon-button","","aria-label","Show logged in user options",1,"mobile-toggle"],["svgIcon","person"],[1,"logged-in-user-widget-menu",3,"overlapTrigger"],["menu","matMenu"],["class","register-btn","routerLink","/register","mat-button","","trans","",4,"ngIf"],["routerLink","/login","mat-raised-button","","color","accent","trans","",1,"login-btn"],["routerLink","/register","mat-button","","trans","",1,"register-btn"]],template:function(t,e){if(1&t&&(i.YNc(0,v,11,4,"ng-container",0),i.ALo(1,"async"),i.ALo(2,"async"),i.YNc(3,w,3,1,"ng-template",null,1,i.W1O)),2&t){const t=i.MAs(4);i.Q6J("ngIf",i.lcZ(1,2,e.currentUser.isLoggedIn$)||i.lcZ(2,4,e.breakpoints.isMobile$))("ngIfElse",t)}},directives:[h.O5,m.p6,g.Hw,p.lW,m.VK,_.F,d.yS,p.zs,b.P],pipes:[h.Ov],styles:["[_nghost-%COMP%]{display:block;font-weight:400;position:relative;cursor:pointer;white-space:nowrap}[_nghost-%COMP%]:empty{display:none}.menu-trigger[_ngcontent-%COMP%]{display:flex;align-items:center;max-width:250px;overflow:hidden}.email[_ngcontent-%COMP%]{margin-left:10px;overflow:hidden;text-overflow:ellipsis}.avatar[_ngcontent-%COMP%]{height:40px;width:40px;flex-shrink:0;object-fit:cover;border-radius:4px}.mobile-toggle[_ngcontent-%COMP%]{display:none}@media only screen and (max-width: 1550px){.email[_ngcontent-%COMP%]{display:none}}@media only screen and (max-width: 1000px){.avatar[_ngcontent-%COMP%], .dropdown-icon[_ngcontent-%COMP%], .email[_ngcontent-%COMP%]{display:none}.mobile-toggle[_ngcontent-%COMP%]{display:block}}.logout-item[_ngcontent-%COMP%]{color:#f44336}.logout-item[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:inherit}a[_ngcontent-%COMP%]{text-transform:capitalize}"],changeDetection:0}),t})();var C=n(5978),k=n(8853),A=n(7238);const E=(0,A.X$)("bellAnimation",[(0,A.eR)("* => true",[(0,A.jt)("1000ms 0ms",(0,A.F4)([(0,A.oB)({visibility:A.l3,transform:"scale3d(1, 1, 1)",easing:"ease",offset:0}),(0,A.oB)({transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)",easing:"ease",offset:.1}),(0,A.oB)({transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)",easing:"ease",offset:.2}),(0,A.oB)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)",easing:"ease",offset:.3}),(0,A.oB)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)",easing:"ease",offset:.4}),(0,A.oB)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)",easing:"ease",offset:.5}),(0,A.oB)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)",easing:"ease",offset:.6}),(0,A.oB)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)",easing:"ease",offset:.7}),(0,A.oB)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)",easing:"ease",offset:.8}),(0,A.oB)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)",easing:"ease",offset:.9}),(0,A.oB)({transform:"scale3d(1, 1, 1)",easing:"ease",offset:1})]))])]);var S=n(7519),T=n(3653),O=n(7964),I=n(9665),P=n(346);const D=["notifButton"];let F=(()=>{class t{constructor(t,e){this.overlay=t,this.notifications=e,this.animationTrigger$=new s.X(!1)}ngOnInit(){this.notifications.unreadCount$.pipe((0,S.x)(),(0,T.T)(1)).subscribe(()=>{this.animationTrigger$.next(!0)})}openNotificationPanel(){this.overlay.open(k.w,{position:C.x,mobilePosition:"center",origin:this.notifButton})}stopAnimation(){this.animationTrigger$.next(!1)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(O.T),i.Y36(I.g))},t.\u0275cmp=i.Xpm({type:t,selectors:[["notification-button"]],viewQuery:function(t,e){if(1&t&&i.Gf(D,7,i.SBq),2&t){let t;i.iGM(t=i.CRH())&&(e.notifButton=t.first)}},decls:6,vars:9,consts:[["type","button","mat-icon-button","",1,"notification-button",3,"click"],["notifButton",""],["svgIcon","notifications","matBadgeColor","warn","matBadgeSize","small",3,"matBadge","matBadgeHidden"]],template:function(t,e){1&t&&(i.TgZ(0,"button",0,1),i.NdJ("click",function(){return e.openNotificationPanel()}),i.TgZ(2,"mat-icon",2),i.NdJ("@bellAnimation.done",function(){return e.stopAnimation()}),i.ALo(3,"async"),i.ALo(4,"async"),i.ALo(5,"async"),i.qZA(),i.qZA()),2&t&&(i.xp6(2),i.Q6J("matBadge",i.lcZ(3,3,e.notifications.unreadCount$))("matBadgeHidden",i.lcZ(4,5,e.notifications.unreadCount$)<1)("@bellAnimation",i.lcZ(5,7,e.animationTrigger$)))},directives:[p.lW,g.Hw,P.k],pipes:[h.Ov],styles:[".mat-icon[_ngcontent-%COMP%]{-webkit-backface-visibility:hidden;backface-visibility:hidden}"],data:{animation:[E]},changeDetection:0}),t})();var M=n(3297);function Z(t,e){if(1&t&&(i.TgZ(0,"a",7),i._UZ(1,"img",8),i.ALo(2,"trans"),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("alt",i.lcZ(2,2,"Site logo"))("src",t.config.get("branding.logo_light"),i.LSH)}}function R(t,e){if(1&t&&(i.TgZ(0,"a",9),i.TgZ(1,"div",10),i._uU(2),i.qZA(),i.qZA()),2&t){const t=i.oxw();i.xp6(2),i.Oqu(t.config.get("branding.site_name"))}}function L(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",11),i.NdJ("click",function(){return i.CHM(t),i.oxw().toggleButtonClick.emit()}),i._UZ(1,"mat-icon",12),i.qZA()}}function N(t,e){if(1&t&&(i.ynx(0),i.TgZ(1,"button",13),i._UZ(2,"mat-icon",12),i.qZA(),i.TgZ(3,"mat-menu",14,15),i._UZ(5,"custom-menu",16),i.qZA(),i.BQk()),2&t){const t=i.MAs(4),e=i.oxw();i.xp6(1),i.Q6J("matMenuTriggerFor",t),i.xp6(2),i.Q6J("overlapTrigger",!1),i.xp6(2),i.Q6J("position",e.menuPosition)}}function U(t,e){if(1&t&&i._UZ(0,"custom-menu",17),2&t){const t=i.oxw();i.ekj("color-accent","accent"===t.color),i.Q6J("position",t.menuPosition)("horizontal",!0)}}function q(t,e){1&t&&i._UZ(0,"notification-button")}function B(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",22),i.NdJ("click",function(){return i.CHM(t),i.oxw(3).openMobileSearch()}),i._UZ(1,"mat-icon",23),i.qZA()}}function j(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",22),i.NdJ("click",function(){return i.CHM(t),i.oxw(3).closeMobileSearch()}),i._UZ(1,"mat-icon",24),i.qZA()}}function z(t,e){if(1&t&&(i.ynx(0),i.YNc(1,B,2,0,"button",20),i.ALo(2,"async"),i.YNc(3,j,2,0,"ng-template",null,21,i.W1O),i.BQk()),2&t){const t=i.MAs(4),e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!i.lcZ(2,2,e.mobileSearchActive$))("ngIfElse",t)}}function $(t,e){if(1&t&&(i.TgZ(0,"div",18),i.Hsn(1,1),i.YNc(2,q,1,0,"notification-button",4),i.ALo(3,"async"),i.YNc(4,z,5,4,"ng-container",4),i.ALo(5,"async"),i._UZ(6,"logged-in-user-widget",19),i.qZA()),2&t){const t=i.oxw();i.xp6(2),i.Q6J("ngIf",i.lcZ(3,3,!t.isMobile()&&t.config.get("notifications.integrated")&&t.currentUser.isLoggedIn$)),i.xp6(2),i.Q6J("ngIf",t.searchInput&&i.lcZ(5,5,t.mobileOrTablet$)),i.xp6(2),i.Q6J("hideRegisterButton",t.hideRegisterButton)}}const Y=["*",[["","rightContent",""]]],V=["*","[rightContent]"];let H=(()=>{class t{constructor(t,e,n,a,l){this.config=t,this.currentUser=e,this.breakpoints=n,this.el=a,this.themes=l,this.showToggleButton=!1,this.hideToggleBtnOnDesktop=!1,this.container=!1,this.hideRightSideActions=!1,this.hideRegisterButton=!1,this.toggleButtonClick=new i.vpe,this.transparent=!1,this.color=this.config.get("vebto.navbar.defaultColor","primary"),this.mobileSearchActive$=new s.X(!1),this.mobileOrTablet$=(0,r.aj)([this.breakpoints.isTablet$,this.breakpoints.isMobile$]).pipe((0,o.U)(t=>t[0]||t[1]))}get isPrimary(){return this.themes.isDarkMode()||"primary"===this.color}get isAccent(){return!this.themes.isDarkMode()&&"accent"===this.color}ngOnInit(){this.searchInput=this.el.nativeElement.querySelector(".nav-searchbar input"),this.searchInput&&this.searchInput.addEventListener("blur",()=>{this.closeMobileSearch()})}openMobileSearch(){this.mobileSearchActive$.next(!0),this.el.nativeElement.classList.add("mobile-search-active"),setTimeout(()=>this.searchInput.focus())}closeMobileSearch(){return this.el.nativeElement.classList.remove("mobile-search-active"),this.mobileSearchActive$.next(!1)}isMobile(){return this.breakpoints.isMobile$.value}shouldShowToggleBtn(){return this.showToggleButton&&(this.mobileOrTablet()||!this.hideToggleBtnOnDesktop)}mobileOrTablet(){return this.breakpoints.isMobile$.value||this.breakpoints.isTablet$.value}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(a.Z),i.Y36(l.I),i.Y36(c.S),i.Y36(i.SBq),i.Y36(u.f))},t.\u0275cmp=i.Xpm({type:t,selectors:[["material-navbar"]],hostVars:6,hostBindings:function(t,e){2&t&&i.ekj("transparent",e.transparent)("primary",e.isPrimary)("accent",e.isAccent)},inputs:{menuPosition:"menuPosition",showToggleButton:"showToggleButton",hideToggleBtnOnDesktop:"hideToggleBtnOnDesktop",container:"container",hideRightSideActions:"hideRightSideActions",hideRegisterButton:"hideRegisterButton",transparent:"transparent",color:"color"},outputs:{toggleButtonClick:"toggleButtonClick"},ngContentSelectors:V,decls:10,vars:12,consts:[[1,"navbar-container"],["routerLink","/","class","logo-container img-logo-container",4,"ngIf"],["routerLink","/","class","logo-container",4,"ngIf"],["class","toggle-sidebar-button","mat-icon-button","","aria-label","Toggle sidebar visibility",3,"click",4,"ngIf"],[4,"ngIf"],[3,"position","horizontal","color-accent",4,"ngIf"],["class","right-side-actions",4,"ngIf"],["routerLink","/",1,"logo-container","img-logo-container"],[1,"logo",3,"alt","src"],["routerLink","/",1,"logo-container"],[1,"text-logo"],["mat-icon-button","","aria-label","Toggle sidebar visibility",1,"toggle-sidebar-button",3,"click"],["svgIcon","menu"],["mat-icon-button","",1,"toggle-sidebar-button",3,"matMenuTriggerFor"],[3,"overlapTrigger"],["menu","matMenu"],["itemClass","mat-menu-item",3,"position"],[3,"position","horizontal"],[1,"right-side-actions"],[3,"hideRegisterButton"],["mat-icon-button","","class","mobile-search-toggle",3,"click",4,"ngIf","ngIfElse"],["closeToggle",""],["mat-icon-button","",1,"mobile-search-toggle",3,"click"],["svgIcon","search"],["svgIcon","close"]],template:function(t,e){1&t&&(i.F$t(Y),i.TgZ(0,"div",0),i.YNc(1,Z,3,4,"a",1),i.YNc(2,R,3,1,"a",2),i.YNc(3,L,2,0,"button",3),i.Hsn(4),i.YNc(5,N,6,3,"ng-container",4),i.ALo(6,"async"),i.YNc(7,U,1,4,"custom-menu",5),i.ALo(8,"async"),i.YNc(9,$,7,7,"div",6),i.qZA()),2&t&&(i.ekj("container",e.container),i.xp6(1),i.Q6J("ngIf",e.config.get("branding.logo_light")),i.xp6(1),i.Q6J("ngIf",!e.config.get("branding.logo_light")),i.xp6(1),i.Q6J("ngIf",e.shouldShowToggleBtn()),i.xp6(2),i.Q6J("ngIf",i.lcZ(6,8,e.mobileOrTablet$)&&e.menuPosition&&!e.shouldShowToggleBtn()),i.xp6(2),i.Q6J("ngIf",!i.lcZ(8,10,e.mobileOrTablet$)),i.xp6(2),i.Q6J("ngIf",!e.hideRightSideActions))},directives:[h.O5,d.yS,p.lW,g.Hw,m.p6,m.VK,f.K,x,F],pipes:[h.Ov,M.R],styles:["material-navbar{display:block;color:var(--be-accent-contrast);position:relative;z-index:2;height:70px;width:100%}material-navbar:not(.transparent).primary{background-color:var(--be-primary-default)}material-navbar:not(.transparent).primary .nav-searchbar{background-color:var(--be-primary-lighter)}material-navbar:not(.transparent).accent{background-color:var(--be-accent-default)}material-navbar:not(.transparent).accent .nav-searchbar{background-color:var(--be-accent-emphasis)}material-navbar.box-shadow{box-shadow:0 3px 1px -2px #0003,0 2px 2px 0 #00000024,0 1px 5px 0 #0000001f}material-navbar .navbar-container{display:flex;align-items:center;padding:0 20px;margin:0 auto;width:100%;height:100%}material-navbar .logo-container{display:flex;align-items:center;justify-content:center;height:55%;width:auto;overflow:hidden}material-navbar .img-logo-container{flex-shrink:0}material-navbar .logo{display:block;max-height:100%;max-width:100%;width:auto;min-width:120px}material-navbar .text-logo{font-size:2.2rem;color:var(--be-accent-contrast);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}material-navbar .toggle-sidebar-button{display:block;margin:0 10px}material-navbar custom-menu{display:block;margin-left:15px;flex-shrink:0}material-navbar .mobile-search-toggle{position:relative;z-index:3;margin-right:10px}material-navbar.accent .nav-searchbar,material-navbar.primary .nav-searchbar{height:45px;max-width:650px;transition:background-color,color .1s ease-in-out;border-radius:4px;margin-left:30px;margin-right:30px}material-navbar.accent .nav-searchbar.always-white,material-navbar.accent .nav-searchbar:focus-within,material-navbar.primary .nav-searchbar.always-white,material-navbar.primary .nav-searchbar:focus-within{background-color:var(--be-background);color:var(--be-text)}material-navbar.accent .nav-searchbar.always-white+.mat-icon-button,material-navbar.accent .nav-searchbar.always-white::placeholder,material-navbar.accent .nav-searchbar:focus-within+.mat-icon-button,material-navbar.accent .nav-searchbar:focus-within::placeholder,material-navbar.primary .nav-searchbar.always-white+.mat-icon-button,material-navbar.primary .nav-searchbar.always-white::placeholder,material-navbar.primary .nav-searchbar:focus-within+.mat-icon-button,material-navbar.primary .nav-searchbar:focus-within::placeholder{color:var(--be-text)}material-navbar.accent .nav-searchbar .nav-searchbar-input,material-navbar.primary .nav-searchbar .nav-searchbar-input{height:100%;outline:none;border:none}material-navbar.accent .nav-searchbar .nav-searchbar-input::placeholder,material-navbar.primary .nav-searchbar .nav-searchbar-input::placeholder{color:currentColor}material-navbar.accent .nav-searchbar .nav-searchbar-input[aria-expanded=true],material-navbar.primary .nav-searchbar .nav-searchbar-input[aria-expanded=true]{border-bottom-right-radius:0;border-bottom-left-radius:0;border-bottom:1px solid var(--be-divider-lighter)}material-navbar.mobile-search-active .nav-searchbar{display:block;position:absolute;top:0;left:0;width:100%;height:100%;margin:0;max-height:100%;max-width:100%;z-index:2}material-navbar.mobile-search-active .nav-searchbar .mat-icon{display:none}material-navbar.mobile-search-active .nav-searchbar input{border-radius:0;background-color:var(--be-background);color:var(--be-text)}material-navbar.mobile-search-active .mobile-search-toggle{color:var(--be-text);left:35px}material-navbar.mobile-search-active .search-button{display:none}material-navbar .push-right{margin-left:auto}material-navbar .notification-button{margin:0 18px}material-navbar .right-side-actions{margin-left:auto;display:flex;align-items:center;padding-left:30px}material-navbar:not(.login-button-accent) .login-btn{background:#fff;color:#000000de}@media only screen and (max-width: 1000px){material-navbar .custom-menu,material-navbar .nav-searchbar{display:none}material-navbar .right-side-actions{padding-left:10px}}.be-dark-mode material-navbar.primary:not(.mobile-search-active) .nav-searchbar input{border:1px solid var(--be-divider-default);background-color:initial}"],encapsulation:2,changeDetection:0}),t})()},8295:(t,e,n)=>{"use strict";n.d(e,{l:()=>d});var i=n(8583),s=n(4655),r=n(1095),o=n(6627),a=n(3935),l=n(5122),c=n(744),u=n(9866),h=n(7716);let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[i.ez,s.Bz,o.Ps,r.ot,a.Tx,l.N,u.N,c.m],l.N]}),t})()},6403:(t,e,n)=>{"use strict";n.d(e,{U:()=>d});var i=n(7716),s=n(4673),r=n(8583),o=n(6627),a=n(2861);function l(t,e){if(1&t&&i._UZ(0,"mat-icon",5),2&t){const t=i.oxw();i.Q6J("svgIcon",t.svgIcon)}}function c(t,e){if(1&t&&i._UZ(0,"svg-image",6),2&t){const t=i.oxw();i.Q6J("name",t.svgImage)}}const u=[[["","primary-text",""]],[["","secondary-text",""]]],h=["[primary-text]","[secondary-text]"];let d=(()=>{class t{constructor(t){this.settings=t,this.svgImage="no-results.svg",this.horizontal=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s.Z))},t.\u0275cmp=i.Xpm({type:t,selectors:[["no-results-message"]],hostAttrs:[1,"no-results-message"],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("horizontal",e.horizontal)},inputs:{svgImage:"svgImage",svgIcon:"svgIcon",horizontal:"horizontal"},ngContentSelectors:h,decls:8,vars:2,consts:[["class","icon",3,"svgIcon",4,"ngIf","ngIfElse"],["svgImageRef",""],[1,"text"],[1,"main"],[1,"secondary"],[1,"icon",3,"svgIcon"],[1,"icon",3,"name"]],template:function(t,e){if(1&t&&(i.F$t(u),i.YNc(0,l,1,1,"mat-icon",0),i.YNc(1,c,1,1,"ng-template",null,1,i.W1O),i.TgZ(3,"div",2),i.TgZ(4,"div",3),i.Hsn(5),i.qZA(),i.TgZ(6,"div",4),i.Hsn(7,1),i.qZA(),i.qZA()),2&t){const t=i.MAs(2);i.Q6J("ngIf",e.svgIcon)("ngIfElse",t)}},directives:[r.O5,o.Hw,a.L],styles:[""],changeDetection:0}),t})()},5217:(t,e,n)=>{"use strict";n.d(e,{u:()=>a});var i=n(8583),s=n(5218),r=n(6627),o=n(7716);let a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[i.ez,s.a,r.Ps]]}),t})()},2100:(t,e,n)=>{"use strict";n.d(e,{p:()=>i});const i=new(n(7716).OlP)("OVERLAY_PANEL_DATA")},7310:(t,e,n)=>{"use strict";n.d(e,{L:()=>l});var i=n(6215),s=n(3653),r=n(5257),o=n(8002),a=n(8480);class l{constructor(t){this.overlayRef=t,this.id=(0,a.O)(15),this.value=new i.X(null)}isOpen(){return this.overlayRef&&this.overlayRef.hasAttached()}close(t){void 0!==t&&this.emitValue(t),this.overlayRef&&this.overlayRef.dispose()}emitValue(t){this.value.next(t)}valueChanged(){return this.value.pipe((0,s.T)(1))}getPanelEl(){return this.overlayRef.overlayElement}updatePosition(){return this.overlayRef.updatePosition()}afterClosed(){return this.overlayRef.detachments().pipe((0,r.q)(1),(0,o.U)(()=>this.value.value))}afterOpened(){return this.overlayRef.attachments().pipe((0,r.q)(1))}}},7964:(t,e,n)=>{"use strict";n.d(e,{T:()=>p});var i=n(7716),s=n(7636),r=n(7310),o=n(2100);class a{attach(){}enable(){document.documentElement.classList.add("be-fullscreen-overlay-scrollblock")}disable(){document.documentElement.classList.remove("be-fullscreen-overlay-scrollblock")}}var l=n(5435),c=n(6461),u=n(625),h=n(6605);const d={hasBackdrop:!0,closeOnBackdropClick:!0,panelClass:"overlay-panel"};let p=(()=>{class t{constructor(t,e,n){this.overlay=t,this.breakpoints=e,this.injector=n}open(t,e){const n=Object.assign({},d,e),o={positionStrategy:this.getPositionStrategy(n),hasBackdrop:n.hasBackdrop,panelClass:n.panelClass,backdropClass:n.backdropClass,scrollStrategy:this.getScrollStrategy(n),disposeOnNavigation:!0};n.width&&(o.width=n.width),n.height&&(o.height=n.height),n.maxHeight&&(o.maxHeight=n.maxHeight),n.maxWidth&&(o.maxWidth=n.maxWidth);const a=this.overlay.create(o),u=new r.L(a),h=t instanceof i.Rgc?new s.UE(t,n.viewContainerRef,n.data):new s.C5(t,n.viewContainerRef,this.createInjector(n,u));return u.componentRef=a.attach(h),n.closeOnBackdropClick&&(a.backdropClick().subscribe(()=>u.close()),a.keydownEvents().pipe((0,l.h)(t=>t.keyCode===c.hY)).subscribe(()=>u.close())),u}getScrollStrategy(t){return t.fullScreen?new a:"close"===t.scrollStrategy?this.overlay.scrollStrategies.close():null}createInjector(t,e){const n=new WeakMap;return n.set(r.L,e),n.set(o.p,t.data||null),new s.nK(this.injector,n)}getPositionStrategy(t){if(t.positionStrategy)return t.positionStrategy;const e=this.breakpoints.isMobile$.value&&t.mobilePosition||t.position;return"global"===t.origin||this.positionIsGlobal(e)?this.getGlobalPositionStrategy(e):this.getConnectedPositionStrategy(e,t.origin)}positionIsGlobal(t){return"center"===t||!Array.isArray(t)}getGlobalPositionStrategy(t){if("center"===t)return this.overlay.position().global().centerHorizontally().centerVertically();{const e=this.overlay.position().global();return Object.keys(t).forEach(n=>{e[n](t[n])}),e}}getConnectedPositionStrategy(t,e){return this.overlay.position().flexibleConnectedTo(e).withPositions(t).withPush(!0).withViewportMargin(5)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(u.aV),i.LFG(h.S),i.LFG(i.zs3))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},5978:(t,e,n)=>{"use strict";n.d(e,{x:()=>i});const i=[{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top"},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom"}]},2544:(t,e,n)=>{"use strict";n.d(e,{S:()=>h});var i=n(8583),s=n(1095),r=n(6627),o=n(3935),a=n(9866),l=n(3679),c=n(3389),u=n(7716);let h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({imports:[[i.ez,s.ot,o.Tx,a.N,l.UX,r.Ps,c.p]]}),t})()},2861:(t,e,n)=>{"use strict";n.d(e,{L:()=>g});var i=n(5257),s=n(7716),r=n(8002),o=n(3342),a=n(8939),l=n(8819),c=n(5917),u=n(8583),h=n(1841);let d=(()=>{class t{constructor(t,e){this.http=t,this.document=e,this.cache=new Map,this.inProgressUrlFetches=new Map}get(t){const e=t.endsWith(".svg")?t:`${t}.svg`;return this.cache.get(e)?(0,c.of)(p(this.cache.get(e))):this.fetchIcon(e).pipe((0,r.U)(t=>this.svgElementFromString(t,e)),(0,o.b)(t=>this.cache.set(e,t)),(0,r.U)(t=>p(t)))}fetchIcon(t){const e=this.inProgressUrlFetches.get(t);if(e)return e;const n=this.http.get(`client/assets/images/illustrations/${t}`,{responseType:"text"}).pipe((0,a.x)(()=>this.inProgressUrlFetches.delete(t)),(0,l.B)());return this.inProgressUrlFetches.set(t,n),n}svgElementFromString(t,e=""){const n=this.document.createElement("DIV");n.innerHTML=t;const i=n.querySelector("svg");if(!i)throw Error(`<svg> tag not found for ${e}`);return i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h.eN),s.LFG(u.K0,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function p(t){return t.cloneNode(!0)}let g=(()=>{class t{constructor(t,e){this.cache=t,this.el=e}ngOnChanges(t){var e;const n=t.name;n?(null===(e=this.currentSvgFetch)||void 0===e||e.unsubscribe(),this.name&&(this.currentSvgFetch=this.cache.get(this.name).pipe((0,i.q)(1)).subscribe(t=>this.setSvgElement(t)))):n.previousValue&&this.clearSvgElement()}ngOnDestroy(){var t;null===(t=this.currentSvgFetch)||void 0===t||t.unsubscribe()}setSvgElement(t){this.clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n<e.length;n++)e[n].textContent+=" ";this.el.nativeElement.appendChild(t)}clearSvgElement(){const t=this.el.nativeElement;let e=t.childNodes.length;for(;e--;){const n=t.childNodes[e];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||t.removeChild(n)}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(d),s.Y36(s.SBq))},t.\u0275cmp=s.Xpm({type:t,selectors:[["svg-image"]],hostAttrs:["role","img"],inputs:{name:"name"},features:[s.TTD],decls:0,vars:0,template:function(t,e){},styles:["svg-image{display:inline-block;background-repeat:no-repeat}svg-image svg{width:inherit;height:inherit}"],encapsulation:2,changeDetection:0}),t})()},5218:(t,e,n)=>{"use strict";n.d(e,{a:()=>r});var i=n(8583),s=n(7716);let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez]]}),t})()},5718:(t,e,n)=>{"use strict";n.d(e,{D:()=>a,F:()=>l});var i=n(7716),s=n(4673),r=n(9244),o=n(7001);const a=15e3;let l=(()=>{class t{constructor(t,e,n){this.settings=t,this.i18n=e,this.snackbar=n}open(t,e={}){e.duration||0===e.duration||(e.duration=e.action?a:3e3);const n="string"==typeof t?this.i18n.t(t):this.i18n.t(t.message,t.replacements);return this.snackbar.open(this.i18n.t(n),this.i18n.t(e.action),{duration:e.duration})}openComponent(t,e){return this.snackbar.openFromComponent(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.Z),i.LFG(r.Z),i.LFG(o.ux))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},6850:(t,e,n)=>{"use strict";function i(t,e){if(null===t)return null;switch(e){case"KB":return 1024*t;case"MB":return t*Math.pow(1024,2);case"GB":return t*Math.pow(1024,3);case"TB":return t*Math.pow(1024,4);case"PB":return t*Math.pow(1024,5);default:return t}}n.d(e,{F:()=>i})},4890:(t,e,n)=>{"use strict";function i(t){return!!t&&!/^[a-z]:\\/.test(t)&&/^[a-z][a-z\d+\-.]*:/.test(t)}n.d(e,{s:()=>i})},5402:(t,e,n)=>{"use strict";n.d(e,{j:()=>r});var i=n(4890),s=n(7716);let r=(()=>{class t{constructor(){this.loadedAssets={}}loadAsset(t,e={type:"js"}){return"loaded"!==this.loadedAssets[t]||e.force?!this.loadedAssets[t]||e.force&&"loaded"===this.loadedAssets[t]?(this.loadedAssets[t]=new Promise((n,s)=>{const r=(0,i.s)(t)?t:"client/assets/"+t,o=e.id||t.split("/").pop();"css"===e.type?this.loadStyleAsset(r,o,n):this.loadScriptAsset(r,o,n,e.parentEl)}),this.loadedAssets[t]):this.loadedAssets[t]:new Promise(t=>t())}loadStyleAsset(t,e,n){const i=document.createElement("link");i.rel="stylesheet",i.id=e||t.split("/").pop(),i.href=t,i.onload=()=>{this.loadedAssets[t]="loaded",n()},document.head.appendChild(i)}loadScriptAsset(t,e,n,i){const s=document.createElement("script");s.async=!0,s.id=e||t.split("/").pop(),s.src=t,s.onload=()=>{this.loadedAssets[t]="loaded",n()},(i||document.body).appendChild(s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},1796:(t,e,n)=>{"use strict";n.d(e,{H:()=>s});var i=n(568);function s(t,e){if(isNaN(parseFloat(String(t)))||!isFinite(t))return null;let n=0;for(;t>=1024;)t/=1024,n++;let s=i.L[n];return e||(e=function(t){switch(t){case"MB":return 1;case"GB":case"TB":case"PB":return 2;default:return 0}}(s)),"bytes"===s&&t<2&&(s="byte"),parseFloat(t.toFixed(+e).toString()).toString()+" "+s}},8480:(t,e,n)=>{"use strict";function i(t=36){let e="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let i=0;i<t;i++)e+=n.charAt(Math.floor(Math.random()*n.length));return e}n.d(e,{O:()=>i})},6966:(t,e,n)=>{"use strict";n.d(e,{V:()=>r});var i=n(3811),s=n.n(i);function r(t,e="-",n=!1){if(!t)return t;let i=s()(t,{lower:!0,replacement:e,strict:n,remove:/[*+~.()'"!:@?\|/]/g});return i||(i=t.replace(/\s+/g,"-").toLowerCase()),i}},5566:(t,e,n)=>{"use strict";function i(t){return t.replace(/\s/g,"_").replace(/\.?([A-Z]+)/g,(t,e)=>"_"+e).replace(/^_/,"").toLowerCase()}n.d(e,{f:()=>i})},568:(t,e,n)=>{"use strict";n.d(e,{L:()=>i});const i=["bytes","KB","MB","GB","TB","PB"]},3913:(t,e,n)=>{"use strict";function i(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""}n.d(e,{z:()=>i})},1023:(t,e,n)=>{"use strict";n.d(e,{M:()=>l});var i=n(6627),s=n(1095),r=n(2238),o=n(9866),a=n(7716);let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[o.N,i.Ps,s.ot,r.Is]]}),t})()},9654:(t,e,n)=>{"use strict";n.d(e,{c:()=>r});var i=n(7716),s=n(299);let r=(()=>{class t{constructor(t){this.http=t}index(e={}){return this.http.get(`${t.BASE_URI}`,e)}create(e){return this.http.post(t.BASE_URI,e)}update(e,n){return this.http.put(`${t.BASE_URI}/${e}`,n)}delete(e){return this.http.delete(`${t.BASE_URI}/${e}`)}validate(e){return this.http.post(`${t.BASE_URI}/validate/2BrM45vvfS/api`,{host:e})}authorizeCrupdate(e){return this.http.post(`${t.BASE_URI}/authorize/store`,e)}}return t.BASE_URI="custom-domain",t.\u0275fac=function(e){return new(e||t)(i.LFG(s.r))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},557:(t,e,n)=>{"use strict";n.d(e,{x:()=>f});var i=n(8583),s=n(6627),r=n(9866),o=n(7539),a=n(3679),l=n(1095),c=n(8341),u=n(2178),h=n(7738),d=n(5217),p=n(2877),g=n(7716);let m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=g.oAB({type:t}),t.\u0275inj=g.cJS({imports:[[i.ez,r.N,a.UX,s.Ps,l.ot]]}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=g.oAB({type:t}),t.\u0275inj=g.cJS({imports:[[i.ez,r.N,a.UX,a.u5,h.G,d.u,p.X,m,l.ot,s.Ps,o.p9,c.Hi,u.Cv],o.p9]}),t})()},2690:(t,e,n)=>{"use strict";n.d(e,{a:()=>o});var i=n(7716),s=n(4688),r=n(4655);let o=(()=>{class t{constructor(t,e){this.currentUser=t,this.router=e}canActivate(t,e){return this.handle(e.url)}canActivateChild(t,e){return this.handle(e.url)}canLoad(t){return this.handle(t.path)}handle(t){return!!this.currentUser.isLoggedIn()||(this.currentUser.redirectUri=t,this.router.navigate(["/login"]),!1)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.I),i.LFG(r.F0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},765:(t,e,n)=>{"use strict";n.d(e,{d:()=>l});var i=n(7716),s=n(4688),r=n(4655),o=n(8805),a=n(4673);let l=(()=>{class t{constructor(t,e,n,i){this.currentUser=t,this.router=e,this.auth=n,this.settings=i}canActivate(t,e){return this.runAuthCheck(t,e)}canActivateChild(t,e){return this.runAuthCheck(t,e)}runAuthCheck(t,e){return this.checkPermissions(t,e)}getActiveRoute(t){for(;t.firstChild;)t=t.firstChild;return t}checkPermissions(t,e){let n=!0;if(t.data.permissions&&(n=this.currentUser.hasPermissions(t.data.permissions)),n)return!0;if(this.currentUser.isLoggedIn()){const e=this.shouldRedirectToUpgrade(t.data.permissions)?"/billing/upgrade":this.auth.getRedirectUri();this.router.navigate([e])}else this.currentUser.redirectUri=e.url,this.router.navigate(["login"]);return n}shouldRedirectToUpgrade(t){return!(t.length&&t[0].includes("admin"))&&this.settings.get("billing.enable")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.I),i.LFG(r.F0),i.LFG(o.e),i.LFG(a.Z))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},744:(t,e,n)=>{"use strict";n.d(e,{m:()=>f});var i=n(8583),s=n(1682),r=n(8285),o=n(346),a=n(1095),l=n(6627),c=n(2178),u=n(3389),h=n(9866),d=n(4655),p=n(8853),g=n(7716),m=n(5515);let f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=g.oAB({type:t}),t.\u0275inj=g.cJS({imports:[[i.ez,d.Bz,r.T,l.Ps,a.ot,o.g,u.p,h.N,c.Cv]]}),t})();g.B6R(p.w,[m.P,i.O5,a.lW,c.pW,s.Z,d.yS,l.Hw],[i.Ov])},8853:(t,e,n)=>{"use strict";n.d(e,{w:()=>p});var i=n(2238),s=n(7716),r=n(9665),o=n(4673),a=n(7310),l=n(4688);function c(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().markAllAsRead()}),s._uU(1,"Mark all as read "),s.qZA()}}function u(t,e){1&t&&s._UZ(0,"mat-progress-bar",10)}function h(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"a",11),s.NdJ("click",function(){return s.CHM(t),s.oxw().closePanel()}),s.TgZ(1,"span",2),s._uU(2,"View all"),s.qZA(),s._UZ(3,"mat-icon",12),s.qZA()}}function d(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"a",13),s.NdJ("click",function(){return s.CHM(t),s.oxw().closePanel()}),s.TgZ(1,"span",2),s._uU(2,"Settings"),s.qZA(),s._UZ(3,"mat-icon",14),s.qZA()}}let p=(()=>{class t{constructor(t,e,n,i){this.notifications=t,this.settings=e,this.overlayPanelRef=n,this.currentUser=i}ngOnInit(){this.notifications.all$.value||this.notifications.load().subscribe()}closePanel(){this.overlayPanelRef.close()}markAllAsRead(){this.closePanel(),this.notifications.markAllAsRead().subscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.g),s.Y36(o.Z),s.Y36(a.L),s.Y36(l.I))},t.\u0275cmp=s.Xpm({type:t,selectors:[["notification-panel"]],hostAttrs:[1,"material-panel"],hostVars:1,hostBindings:function(t,e){2&t&&s.d8E("@dialogContainer","enter")},decls:15,vars:16,consts:[[1,"panel-content"],[1,"header"],["trans",""],["mat-button","","class","mark-as-read-button","type","button","trans","",3,"click",4,"ngIf"],["mode","indeterminate","color","accent",4,"ngIf"],[3,"notifications","compact"],[1,"footer"],["routerLink","notifications","class","view-all-button","trans","",3,"click",4,"ngIf"],["routerLink","notifications/settings","class","settings-button",3,"click",4,"ngIf"],["mat-button","","type","button","trans","",1,"mark-as-read-button",3,"click"],["mode","indeterminate","color","accent"],["routerLink","notifications","trans","",1,"view-all-button",3,"click"],["svgIcon","keyboard-arrow-right"],["routerLink","notifications/settings",1,"settings-button",3,"click"],["svgIcon","settings"]],template:function(t,e){if(1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"h2",2),s._uU(3,"Notifications"),s.qZA(),s.YNc(4,c,2,0,"button",3),s.ALo(5,"async"),s.qZA(),s.YNc(6,u,1,0,"mat-progress-bar",4),s.ALo(7,"async"),s._UZ(8,"notification-list",5),s.ALo(9,"async"),s.TgZ(10,"div",6),s.YNc(11,h,4,0,"a",7),s.ALo(12,"async"),s.YNc(13,d,4,0,"a",8),s.ALo(14,"async"),s.qZA(),s.qZA()),2&t){let t;s.xp6(4),s.Q6J("ngIf",s.lcZ(5,6,e.notifications.unreadCount$)),s.xp6(2),s.Q6J("ngIf",s.lcZ(7,8,e.notifications.loading$)),s.xp6(2),s.Q6J("notifications",s.lcZ(9,10,e.notifications.all$))("compact",!0),s.xp6(3),s.Q6J("ngIf",s.lcZ(12,12,e.notifications.canLoadMore)),s.xp6(2),s.Q6J("ngIf",e.settings.get("notif.subs.integrated")&&e.currentUser.hasPermission("notification.subscribe")&&(null==(t=s.lcZ(14,14,e.notifications.all$))?null:t.length))}},styles:["[_nghost-%COMP%]{display:block;background-color:var(--be-background);padding:0;width:460px;min-height:275px;max-height:90vh;max-width:95vw;margin:auto;position:relative;overflow:auto}.header[_ngcontent-%COMP%]{display:flex;align-items:center;padding:10px 20px;border-bottom:1px solid var(--be-divider-default)}h2[_ngcontent-%COMP%]{font-weight:400;margin:0;font-size:1.8rem}.mark-as-read-button[_ngcontent-%COMP%]{display:block;margin-left:auto;color:var(--be-secondary-text);font-size:1.3rem}.footer[_ngcontent-%COMP%]{display:flex;align-items:center;padding:15px}.footer[_ngcontent-%COMP%]:empty{display:none}.footer[_ngcontent-%COMP%]   .view-all-button[_ngcontent-%COMP%]{margin-right:auto}.footer[_ngcontent-%COMP%]   .settings-button[_ngcontent-%COMP%]{margin-left:auto}.footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;color:inherit}.footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline}.footer[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{vertical-align:middle;width:20px;height:20px;line-height:20px;margin-left:5px}.mat-progress-bar[_ngcontent-%COMP%]{position:absolute;width:100%;left:0;top:46px}"],data:{animation:[i.Nv.dialogContainer]},changeDetection:0}),t})()},9665:(t,e,n)=>{"use strict";n.d(e,{g:()=>p});var i=n(6215),s=n(9765),r=n(5435),o=n(5257),a=n(3342),l=n(8939),c=n(7716),u=n(299),h=n(4688);const d="notifications";let p=(()=>{class t{constructor(t,e){this.http=t,this.currentUser=e,this.all$=new i.X(null),this.loading$=new i.X(!1),this.canLoadMore=new i.X(!1),this.unreadCount$=new i.X(null),this.clickedOnNotification$=new s.xQ,this.currentUser.model$.pipe((0,r.h)(t=>!!t&&null!==t.unread_notifications_count),(0,o.q)(1)).subscribe(t=>{this.unreadCount$.next(t.unread_notifications_count)})}markAsRead(t){return this.http.post(`${d}/mark-as-read`,{ids:t}).pipe((0,a.b)(e=>{this.unreadCount$.next(this.unreadCount$.value-t.length||0),this.all$.value&&this.all$.next(this.all$.value.map(n=>(t.includes(n.id)&&(n.read_at=e.date),n)))}))}markAllAsRead(){const t=this.all$.value.map(t=>t.id);return this.markAsRead(t)}load(t={}){return this.loading$.next(!0),this.http.get(d,t).pipe((0,l.x)(()=>this.loading$.next(!1)),(0,a.b)(t=>{1===t.pagination.current_page&&(this.all$.next(t.pagination.data),this.canLoadMore.next(t.pagination.current_page<t.pagination.last_page))}))}add(t){this.unreadCount$.next(this.unreadCount$.value+1),this.all$.value&&this.all$.next([t,...this.all$.value])}delete(t){const e=t.filter(t=>!t.read_at).length,n=t.map(t=>t.id);return this.http.delete(`${d}/${n}`).pipe((0,a.b)(()=>{this.unreadCount$.next(this.unreadCount$.value-e),this.all$.next(this.all$.value.filter(t=>!n.includes(t.id)))}))}}return t.\u0275fac=function(e){return new(e||t)(c.LFG(u.r),c.LFG(h.I))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},1682:(t,e,n)=>{"use strict";n.d(e,{Z:()=>k});var i=n(7716),s=n(4890),r=n(4673),o=n(4655),a=n(9665),l=n(4688),c=n(7310),u=n(8583),h=n(6627),d=n(5515),p=n(6452),g=n(1095);function m(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",8),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).closePanel()}),i._uU(1,"Notification Settings"),i.qZA()}}function f(t,e){if(1&t&&(i.TgZ(0,"div",2),i._UZ(1,"mat-icon",3),i.TgZ(2,"div",4),i.TgZ(3,"div",5),i._uU(4,"Hang tight!"),i.qZA(),i.TgZ(5,"div",6),i._uU(6,"Notifications will start showing up here soon."),i.qZA(),i.YNc(7,m,2,0,"a",7),i.qZA(),i.qZA()),2&t){const t=i.oxw();i.xp6(7),i.Q6J("ngIf",t.settings.get("notif.subs.integrated"))}}function _(t,e){if(1&t&&(i.TgZ(0,"div",16),i._uU(1),i.qZA()),2&t){const t=i.oxw().$implicit;i.xp6(1),i.Oqu(t.time_period)}}function b(t,e){if(1&t&&i._UZ(0,"image-or-icon",20),2&t){const t=i.oxw().$implicit;i.Q6J("src",t.icon)}}function v(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",17),i.NdJ("click",function(e){const n=i.CHM(t).$implicit,s=i.oxw().$implicit;return i.oxw().performAction(n.action,s,e)}),i.YNc(1,b,1,1,"image-or-icon",18),i._UZ(2,"span",19),i.qZA()}if(2&t){const t=e.$implicit,n=e.index;i.ekj("has-action",t.action),i.Q6J("ngClass",t.type?t.type:0===n?"primary":"secondary")("title",(null==t.action?null:t.action.label)||""),i.xp6(1),i.Q6J("ngIf",t.icon),i.xp6(1),i.Q6J("innerHTML",t.content,i.oJD)}}function y(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",23),i.NdJ("click",function(){const e=i.CHM(t).$implicit,n=i.oxw(2).$implicit;return i.oxw().emitAction(e,n)}),i._uU(1),i.qZA()}if(2&t){const t=e.$implicit;i.Q6J("color",t.color||"accent"),i.xp6(1),i.Oqu(t.label)}}function w(t,e){if(1&t&&(i.TgZ(0,"div",21),i.YNc(1,y,2,2,"button",22),i.qZA()),2&t){const t=i.oxw().$implicit;i.xp6(1),i.Q6J("ngForOf",t.data.buttonActions)}}function x(t,e){if(1&t&&(i.TgZ(0,"div",24),i._uU(1),i.qZA()),2&t){const t=i.oxw().$implicit;i.xp6(1),i.Oqu(t.relative_created_at)}}function C(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.YNc(1,_,2,1,"div",9),i.TgZ(2,"div",10),i.NdJ("click",function(e){const n=i.CHM(t).$implicit;return i.oxw().performAction(n.data.mainAction,n,e)}),i._UZ(3,"image-or-icon",11),i.TgZ(4,"div",12),i.YNc(5,v,3,6,"div",13),i.YNc(6,w,2,1,"div",14),i.qZA(),i.YNc(7,x,2,1,"div",15),i.qZA(),i.BQk()}if(2&t){const t=e.$implicit,n=e.index,s=i.oxw();i.xp6(1),i.Q6J("ngIf",(null==s.notifications[n-1]?null:s.notifications[n-1].time_period)!==t.time_period),i.xp6(1),i.ekj("compact",s.compact)("unread",!t.read_at)("has-action",t.data.mainAction)("warning",t.data.warning),i.Q6J("title",(null==t.data.mainAction?null:t.data.mainAction.label)||""),i.xp6(1),i.Q6J("src",t.data.image),i.xp6(2),i.Q6J("ngForOf",t.data.lines),i.xp6(1),i.Q6J("ngIf",t.data.buttonActions),i.xp6(1),i.Q6J("ngIf",!s.compact)}}let k=(()=>{class t{constructor(t,e,n,s,r,o){this.settings=t,this.zone=e,this.router=n,this.api=s,this.currentUser=r,this.overlayPanelRef=o,this.compact=!1,this.markedAsRead=new i.vpe,this.trackByFn=(t,e)=>e.id}haveNotifications(){return this.notifications&&Object.keys(this.notifications).length}performAction(t,e,n){t&&(n.stopPropagation(),n.preventDefault(),this.overlayPanelRef&&this.overlayPanelRef.close(),e.read_at||this.api.markAsRead([e.id]).subscribe(t=>{e.read_at=t.date,this.markedAsRead.emit(e)}),this.emitAction(t,e),t.emitOnly||((0,s.s)(t.action)?window.open(t.action):this.router.navigate([t.action])))}closePanel(){this.overlayPanelRef&&this.overlayPanelRef.close()}emitAction(t,e){this.api.clickedOnNotification$.next({notification:e,action:t}),this.closePanel()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.Z),i.Y36(i.R0b),i.Y36(o.F0),i.Y36(a.g),i.Y36(l.I),i.Y36(c.L,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["notification-list"]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("compact",e.compact)},inputs:{compact:"compact",notifications:"notifications"},outputs:{markedAsRead:"markedAsRead"},decls:3,vars:3,consts:[["class","no-results-message",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"no-results-message"],["svgIcon","notifications",1,"icon"],[1,"text"],["trans","",1,"main"],["trans","",1,"secondary"],["routerLink","/notifications/settings","class","notif-settings-link","trans","",3,"click",4,"ngIf"],["routerLink","/notifications/settings","trans","",1,"notif-settings-link",3,"click"],["class","group-header","trans","",4,"ngIf"],[1,"notification",3,"title","click"],[1,"main-image","inherit-size",3,"src"],[1,"middle-column"],["class","line",3,"ngClass","title","has-action","click",4,"ngFor","ngForOf"],["class","line button-actions",4,"ngIf"],["class","right-column",4,"ngIf"],["trans","",1,"group-header"],[1,"line",3,"ngClass","title","click"],["class","line-icon",3,"src",4,"ngIf"],[3,"innerHTML"],[1,"line-icon",3,"src"],[1,"line","button-actions"],["type","button","mat-stroked-button","","trans","",3,"color","click",4,"ngFor","ngForOf"],["type","button","mat-stroked-button","","trans","",3,"color","click"],[1,"right-column"]],template:function(t,e){1&t&&(i.YNc(0,f,8,1,"div",0),i.GkF(1),i.YNc(2,C,8,14,"ng-container",1)),2&t&&(i.Q6J("ngIf",!e.haveNotifications()),i.xp6(2),i.Q6J("ngForOf",e.notifications)("ngForTrackBy",e.trackByFn))},directives:[u.O5,u.sg,h.Hw,d.P,o.yS,p.A,u.mk,g.lW],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}h1[_ngcontent-%COMP%]{font-weight:300;font-size:3.5rem;margin:0 0 20px}.notifications-wrapper[_ngcontent-%COMP%]{max-width:1200px;margin-left:auto;margin-right:auto;padding:0 25px}.group-header[_ngcontent-%COMP%]{padding:10px 20px;background-color:var(--be-background-alternative);color:var(--be-secondary-text);text-transform:uppercase;border-bottom:1px solid var(--be-divider-default);font-size:1.1rem;font-weight:500;letter-spacing:.5px;line-height:1}.notification[_ngcontent-%COMP%]{padding:20px;display:flex;background:var(--be-background)}.notification.compact[_ngcontent-%COMP%]{border-bottom:1px solid var(--be-divider-default)}.notification.compact[_ngcontent-%COMP%]   .main-image[_ngcontent-%COMP%]{width:32px;height:32px;margin-right:14px}.notification.compact[_ngcontent-%COMP%]   .secondary[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notification[_ngcontent-%COMP%]:not(.compact){margin:10px 0;border:1px solid var(--be-divider-default);border-radius:4px}.notification.unread[_ngcontent-%COMP%]{background-color:var(--be-accent-emphasis)}.notification[_ngcontent-%COMP%]:hover:not(.unread){background-color:var(--be-hover)}.notification.warning.unread[_ngcontent-%COMP%]{background-color:#fff8f9}.notification.warning[_ngcontent-%COMP%]   .main-image[_ngcontent-%COMP%]{color:#f44336}.notification[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]:not(:last-of-type){margin-bottom:2px}.notification[_ngcontent-%COMP%]   .secondary[_ngcontent-%COMP%]{font-size:1.4rem;color:var(--be-secondary-text)}.notification[_ngcontent-%COMP%]   .primary[_ngcontent-%COMP%]{font-size:1.5rem;color:var(--be-text)}.notification[_ngcontent-%COMP%]   .main-image[_ngcontent-%COMP%]{display:block;width:55px;height:55px;flex-shrink:0;margin-right:12px;border-radius:4px;overflow:hidden}.notification[_ngcontent-%COMP%]   .line-icon[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;color:var(--be-secondary-text);width:18px;height:18px;line-height:18px;margin-right:5px}.has-action[_ngcontent-%COMP%]{cursor:pointer}.button-actions[_ngcontent-%COMP%]{margin-top:10px}.button-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-right:5px}.line.has-action[_ngcontent-%COMP%]:hover{text-decoration:underline}.middle-column[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.right-column[_ngcontent-%COMP%]{margin-left:auto;padding-left:25px;color:var(--be-secondary-text);align-self:flex-start;white-space:nowrap}.track[_ngcontent-%COMP%], .username[_ngcontent-%COMP%]{color:var(--be-secondary-text);font-size:1.3rem}.quote[_ngcontent-%COMP%]:after, .quote[_ngcontent-%COMP%]:before{content:"\u201c"}.no-results-message[_ngcontent-%COMP%]{margin:30px 0}.no-results-message[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:70px;height:70px;margin-bottom:15px;color:var(--be-secondary-text)}.no-results-message[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;text-align:center;margin-top:10px}loading-indicator[_ngcontent-%COMP%]{margin-top:30px}'],changeDetection:0}),t})()},2470:(t,e,n)=>{"use strict";n.d(e,{Y:()=>c});var i=n(7157),s=n(5809),r=n(7716),o=n(4655),a=n(4673),l=n(4688);let c=(()=>{class t{constructor(t,e,n){this.router=t,this.settings=e,this.currentUser=n,this.defaultComponents=[{name:"Login Page",guestOnly:!0,routeConfig:{redirectTo:"/login",pathMatch:"full"}},{name:"Register Page",guestOnly:!0,routeConfig:{redirectTo:"/register",pathMatch:"full"}}],this.menuCategories=[{name:"Custom Page",route:{component:i.y}}]}select(t={}){this.defaultComponents=this.defaultComponents.concat(t.routes||[]),this.menuCategories=this.menuCategories.concat(t.menuCategories||[]);const e=this.settings.get("homepage.type")||"default",n=this.settings.get("homepage.value");if("default"!==e&&null!=e){if("component"===e)return this.setComponentAsHomepage(n);{const t=this.menuCategories.find(t=>t.name===e);if(t){const e=Object.assign(Object.assign({},t.route),{data:{id:n}});this.addRoute(e)}}}}getComponents(){return this.defaultComponents}setComponentAsHomepage(t){const e=this.defaultComponents.find(e=>e.name===t);if(!e||e.ignore)return;let n=Object.assign({},e.routeConfig);if(e.guestOnly&&this.currentUser.isLoggedIn()&&!this.isPreviewMode()){if(!this.originalRoute)return;n=this.originalRoute}this.addRoute(n,e.makeRoot)}addRoute(t,e=!1){const n=e?null:this.getParentHomeRoute();t=this.prepareRoute(t);const i=n?n.children:this.router.config,s=i.findIndex(t=>""===t.path);s>-1?(this.originalRoute=this.originalRoute||i[s],i[s]=t):i.unshift(t)}getParentHomeRoute(){return this.router.config.find(t=>t.data&&t.data.parentHomeRoute)}prepareRoute(t){return t.path="",t.data||(t.data={}),t.data.name||(t.data.name="home"),t}isPreviewMode(){return window.location.search.includes(`be-preview-mode=${s.B}`)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(o.F0),r.LFG(a.Z),r.LFG(l.I))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},7157:(t,e,n)=>{"use strict";n.d(e,{y:()=>m});var i=n(6215),s=n(4278),r=(n(1011),n(7119),n(1209),n(8556),n(4714),n(5435)),o=n(1289),a=n(7716),l=n(6251),c=n(4655),u=n(9075),h=n(4673),d=n(8583),p=n(837);function g(t,e){if(1&t&&a._UZ(0,"material-navbar",2),2&t){const t=a.oxw();a.Q6J("menuPosition",t.settings.get("vebto.navbar.defaultPosition","custom-page-navbar"))}}let m=(()=>{class t{constructor(t,e,n,s,r){this.pages=t,this.route=e,this.sanitizer=n,this.router=s,this.settings=r,this.page$=new i.X(null),this.body$=new i.X(null),this.showNavbar=!0}set page(t){this.page$.next(t),this.body$.next(this.sanitizer.bypassSecurityTrustHtml(t.body))}ngOnInit(){this.page$.value||(this.route.params.subscribe(t=>{this.pages.get(t.id||this.route.snapshot.data.id).subscribe(t=>{this.page=t.page},()=>{this.router.navigate(["/404"],{skipLocationChange:!0})})}),this.body$.pipe((0,r.h)(t=>!!t),(0,o.g)(0)).subscribe(()=>{s.highlightAll()}))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(l.i),a.Y36(c.gz),a.Y36(u.H7),a.Y36(c.F0),a.Y36(h.Z))},t.\u0275cmp=a.Xpm({type:t,selectors:[["custom-page"]],inputs:{showNavbar:"showNavbar",page:"page"},decls:4,vars:6,consts:[[3,"menuPosition",4,"ngIf"],[1,"page-body","container","article-body",3,"innerHTML"],[3,"menuPosition"]],template:function(t,e){if(1&t&&(a.YNc(0,g,1,1,"material-navbar",0),a.ALo(1,"async"),a._UZ(2,"div",1),a.ALo(3,"async")),2&t){let t;a.Q6J("ngIf",!(null!=(t=a.lcZ(1,2,e.page$))&&t.hide_nav)&&!e.settings.get("vebto.customPages.hideNavbar")&&e.showNavbar),a.xp6(2),a.Q6J("innerHTML",a.lcZ(3,4,e.body$),a.oJD)}},directives:[d.O5,p.e],pipes:[d.Ov],styles:['custom-page{display:block;min-height:100vh;flex:1 1 auto}custom-page .page-body{padding:25px;word-break:break-all;font-size:1.6rem;line-height:24px}custom-page h2{font-size:2.4rem;font-weight:400;line-height:normal}custom-page h2:not(:first-of-type){border-top:1px solid var(--be-divider-default);margin-top:45px;padding-top:30px}custom-page h4{font-size:1.6rem;margin:35px 0 10px;font-weight:500}custom-page ol,custom-page ul{font-size:inherit;font-weight:inherit;margin-top:10px;padding-left:40px;position:relative}custom-page ol li,custom-page ul li{margin-bottom:8px}custom-page ul{padding-left:40px;position:relative}custom-page ul li{list-style-type:disc;margin-bottom:7px}custom-page ol{counter-reset:custom-counter;list-style:none}custom-page ol li:before{content:counter(custom-counter,decimal) ".";counter-increment:custom-counter;font-weight:500;position:absolute;left:-10px;width:40px;text-align:right}custom-page p{word-break:break-word}custom-page .widget{background-color:#f3fbf7;max-width:100%;padding:14px;margin:35px 0;border-radius:3px;overflow-wrap:break-word;border-left:5px solid #5ac891;font-size:1.7rem}custom-page .widget .title{font-weight:500;color:#43484d}custom-page .widget.widget-important{background-color:#fef7ed;border-left:5px solid #f3a12c}custom-page .widget.widget-warning{background-color:#f2564d;border-left:5px solid #6b0d08}'],encapsulation:2,changeDetection:0}),t})()},6251:(t,e,n)=>{"use strict";n.d(e,{i:()=>r});var i=n(7716),s=n(9981);let r=(()=>{class t{constructor(t){this.http=t}getAll(e={}){return this.http.getWithCache(`${t.BASE_URI}`,e)}get(e){return this.http.getWithCache(`${t.BASE_URI}/${e}`)}create(e,n){return this.http.post(`${n||t.BASE_URI}`,e)}update(e,n,i){return this.http.put(`${i||t.BASE_URI}/${e}`,n)}delete(e){return this.http.delete(`${t.BASE_URI}/${e}`)}}return t.BASE_URI="page",t.\u0275fac=function(e){return new(e||t)(i.LFG(s.F))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},5809:(t,e,n)=>{"use strict";n.d(e,{B:()=>c,f:()=>u});var i=n(5347),s=n(5435),r=n(7716),o=n(5718),a=n(4655),l=n(4673);const c="t50b4BT5hWsvJMr7";let u=(()=>{class t{constructor(t,e,n){this.toast=t,this.router=e,this.settings=n,this.active=!1,this.dom={}}init(){this.active=window.location.search.includes(`be-preview-mode=${c}`),this.active&&(this.listenForMessages(),this.blockNotAllowedRoutes(),this.createDomNodes(),window.parent.postMessage(c,"*"))}listenForMessages(){window.addEventListener("message",t=>{this.isAppearanceEvent(t)&&this.eventIsTrusted(t)&&this.handleCommand(t.data)})}handleCommand(t){switch(t.type){case i.R.Navigate:return this.router.navigate([t.route],{queryParams:t.queryParams});case i.R.SetConfig:return this.settings.set(t.key,t.value);case i.R.Select:return function(t,e=0,n){const i=document.querySelectorAll(t)[e];if(!i)return;const s=i.getBoundingClientRect();s.height&&(i.scrollIntoView({block:"center",inline:"center",behavior:"smooth"}),n.style.width=s.width+"px",n.style.height=s.height+"px",n.style.top=document.documentElement.scrollTop+s.top+"px",n.style.left=s.left+"px",n.style.borderRadius=i.style.borderRadius)}(t.selector,t.index,this.dom.selectBox);case i.R.Deselect:return(e=this.dom.selectBox).style.width="0px",e.style.height="0px",e.style.left="-15px",void(e.style.top="-15px");case i.R.SetColors:return this.dom.colors.setProperty(t.key,t.value);case i.R.SetCustomCss:return this.renderCustomCode("css",t.content);case i.R.SetCustomHtml:return this.renderCustomCode("html",t.content)}var e}renderCustomCode(t,e){const n="html"===t?document.body:document.head,i="html"===t?"div":"style";let s=n.querySelector("#be-custom-css");return s||(s=document.createElement(i),s.id="be-custom-css",n.appendChild(s)),s.innerHTML=e}eventIsTrusted(t){return new URL(t.origin).hostname===window.location.hostname}isAppearanceEvent(t){const e=t.data;return e&&e.type in i.R}createDomNodes(){this.dom.selectBox=function(){const t=document.createElement("div");return t.classList.add("selected-el-box"),document.body.appendChild(t),t}(),this.dom.colors=document.documentElement.style}blockNotAllowedRoutes(){const t=[];this.router.events.pipe((0,s.h)(t=>0===t.toString().indexOf("NavigationStart"))).subscribe(e=>{if(t.find(t=>e.url.indexOf(t)>-1)){const t=this.router.url.split("?")[0];this.router.navigate([t],{queryParamsHandling:"preserve"}),setTimeout(()=>this.toast.open("That page is not supported by the editor."))}})}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(o.F),r.LFG(a.F0),r.LFG(l.Z))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},5347:(t,e,n)=>{"use strict";n.d(e,{R:()=>i});var i=(()=>(function(t){t[t.Navigate=0]="Navigate",t[t.SetConfig=1]="SetConfig",t[t.Select=2]="Select",t[t.Deselect=3]="Deselect",t[t.SetColors=4]="SetColors",t[t.SetCustomCss=5]="SetCustomCss",t[t.SetCustomHtml=6]="SetCustomHtml"}(i||(i={})),i))()},708:(t,e,n)=>{"use strict";n.d(e,{t:()=>r});var i=n(7716),s=n(299);let r=(()=>{class t{constructor(t){this.http=t}all(e){return this.http.get(t.BASE_URI,e)}get(e){return this.http.get(`${t.BASE_URI}/${e}`)}createOnStripe(e){return this.http.post(`${t.BASE_URI}/stripe`,e)}update(e,n){return this.http.put(`${t.BASE_URI}/${e}`,n)}create(e){return this.http.post(t.BASE_URI,e)}cancel(e,n){return this.http.delete(`${t.BASE_URI}/${e}`,n)}resume(e){return this.http.post(`${t.BASE_URI}/${e}/resume`)}changePlan(e,n){return this.http.post(`${t.BASE_URI}/${e}/change-plan`,{newPlanId:n.id})}addCard(t){return this.http.post("billing/stripe/cards/add",{token:t})}finalizeOnStripe(e,n){return this.http.post(`${t.BASE_URI}/stripe/finalize`,{reference:e,userId:n})}}return t.BASE_URI="billing/subscriptions",t.\u0275fac=function(e){return new(e||t)(i.LFG(s.r))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},8528:(t,e,n)=>{"use strict";n.d(e,{I:()=>c});var i=n(8583),s=n(3679),r=n(1095),o=n(6627),a=n(9866),l=n(7716);let c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[i.ez,s.UX,r.ot,a.N,o.Ps]]}),t})()},8371:(t,e,n)=>{"use strict";n.d(e,{D:()=>d});var i=n(6215),s=n(5917),r=n(8002),o=n(3190),a=n(3342),l=n(7716),c=n(4655),u=n(299),h=n(962);let d=(()=>{class t{constructor(t,e,n){this.router=t,this.http=e,this.localStorage=n,this.params$=new i.X({}),this.paginatedOnce$=new i.X(!1),this.loading$=new i.X(!1),this.response$=new i.X(null),this.dontUpdateQueryParams=!1,this.perPageCacheKey=null,this.noResults$=this.response$.pipe((0,r.U)(t=>this.paginatedOnce$.value&&0===t.pagination.data.length))}get params(){return this.params$.value}get currentPage(){var t,e;return null===(e=null===(t=this.response$.value)||void 0===t?void 0:t.pagination)||void 0===e?void 0:e.current_page}paginate(t={},e,n){const i=this.subscription?{}:this.currentQueryParams();this.params$.next(Object.assign(Object.assign(Object.assign({},this.response$.value?{perPage:this.response$.value.pagination.per_page,page:this.response$.value.pagination.current_page}:{}),i),t)),this.subscription||this.init(e,n)}nextPage(){const t=this.response$.value.pagination.current_page||0;this.paginate(Object.assign(Object.assign({},this.params$.value),{page:t+1,cursor:this.response$.value.pagination.next_cursor}))}previousPage(){const t=this.response$.value.pagination.current_page;this.paginate(Object.assign(Object.assign({},this.params$.value),{page:t-1||1,cursor:this.response$.value.pagination.prev_cursor}))}changePerPage(t){var e;t!==(null===(e=this.params$.value)||void 0===e?void 0:e.perPage)&&(this.perPageCacheKey&&this.localStorage.set(this.perPageCacheKey,t),this.paginate(Object.assign(Object.assign({},this.params$.value),{perPage:t})))}currentQueryParams(){return this.router.routerState.root.snapshot.queryParams}init(t,e){this.subscription=this.params$.pipe((0,o.w)(n=>{this.loading$.next(!0);const i=!this.paginatedOnce$.value;return i&&this.perPageCacheKey&&this.localStorage.get(this.perPageCacheKey)&&(n=Object.assign({perPage:this.localStorage.get(this.perPageCacheKey)},n)),(i&&e?(0,s.of)({pagination:e}):this.http.get(t,n)).pipe((0,a.b)(()=>{this.updateQueryParams(n),this.loading$.next(!1),this.paginatedOnce$.next(!0)},()=>{this.loading$.next(!1),this.paginatedOnce$.next(!0)}))})).subscribe(t=>{this.response$.next(t)})}updateQueryParams(t={}){if(!this.dontUpdateQueryParams){for(const e in t)Array.isArray(t[e])&&(t[e]=t[e].join(","));this.router.navigate([],{queryParams:t,replaceUrl:!0})}}canLoadNextPage(){var t;const e=null===(t=this.response$.value)||void 0===t?void 0:t.pagination;return!!e&&(!!e.next_cursor||this.currentPage<e.last_page)}canLoadPrevPage(){var t;const e=null===(t=this.response$.value)||void 0===t?void 0:t.pagination;return!!e&&(!!e.prev_cursor||this.currentPage>1)}}return t.\u0275fac=function(e){return new(e||t)(l.LFG(c.F0),l.LFG(u.r),l.LFG(h.m))},t.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac}),t})()},3534:(t,e,n)=>{"use strict";n.d(e,{j:()=>i});var i=(()=>(function(t){t.image="image/*",t.audio="audio/*",t.video="video/mp4,video/mpeg,video/x-m4v,video/*"}(i||(i={})),i))()},7312:(t,e,n)=>{"use strict";function i(t,e){const n=new FormData;return e&&Object.keys(e).forEach(t=>{let i=e[t];null===i&&(i=""),s(n,t,i)}),s(n,"file",t),n}function s(t,e,n){t.set?t.set(e,n):t.append(e,n)}n.d(e,{f:()=>w});var r=n(6421),o=n(8002),a=n(7716),l=n(299),c=n(5917),u=n(4402),h=n(3190),d=n(9773),p=n(3342),g=n(5435),m=n(9761),f=n(1841),_=n(551),b=n(6966),v=n(4673);let y=(()=>{class t{constructor(t,e){this.http=t,this.settings=e,this.uploadedChunksCount=0,this.sliceSize=this.settings.get("uploads.chunk_size",5242880)}start(t,e={}){return this.reset(t,e).pipe((0,h.w)(e=>{const n=Date.now(),i=e.uploadedChunks.reduce((t,e)=>t+e.size,0);let s=i;return e.fileEntry?(0,c.of)(this.transformUploadSessionResponse(e)):(0,u.D)(this.chunks).pipe((0,d.zg)(e=>{let n=0;return this.http.postWithProgress("uploads/sessions/chunks",e).pipe((0,o.U)(e=>{if(e.type===f.dt.UploadProgress){e.initiallyLoaded=i,e.total=t.size;const r=e.loaded-n;n=e.loaded,e.loaded=s+=r,e.loaded>e.total&&(e.loaded=e.total-1)}return e}))},3),(0,o.U)(t=>(0,r.M)(t,n)),(0,p.b)(t=>{t.name===r.b.COMPLETED&&this.uploadedChunksCount++}),(0,g.h)(t=>t.name===r.b.PROGRESS||this.isLastChunkCompletedEvent(t)),(0,h.w)(t=>{var e;return this.isLastChunkCompletedEvent(t)?(null===(e=null==(t=t)?void 0:t.body)||void 0===e?void 0:e.fileEntry)?(0,c.of)(this.transformUploadSessionResponse(t.body)):this.fetchUploadSession().pipe((0,o.U)(t=>this.transformUploadSessionResponse(t))):(0,c.of)(t)}),(0,m.O)(this.getInitialUploadProgressEvent()))}))}getInitialUploadProgressEvent(){const t=this.uploadedChunksCount*this.sliceSize;return{type:f.dt.UploadProgress,name:r.b.PROGRESS,totalBytes:this.file.size,completedBytes:t,progress:(0,_.q)(t,this.file.size),speed:null,eta:null}}isLastChunkCompletedEvent(t){return t.name===r.b.COMPLETED&&this.uploadedChunksCount===this.totalChunks}transformUploadSessionResponse(t){return{type:f.dt.Response,name:r.b.COMPLETED,body:t}}reset(t,e){return this.file=t,this.httParams=e,this.chunks=[],this.uploadedChunksCount=0,this.totalChunks=Math.ceil(this.file.size/this.sliceSize),this.generateFingerprint(),this.generateHttpParams(),this.loadExistingChunks().pipe((0,p.b)(t=>{this.uploadedChunksCount=t.uploadedChunks.length,this.generateChunks(t.uploadedChunks)}))}loadExistingChunks(){return this.settings.get("uploads.resume")?this.fetchUploadSession():(0,c.of)({uploadedChunks:[],fileEntry:null})}fetchUploadSession(){return this.http.post("uploads/sessions/load",this.httParams)}generateChunks(t=[]){let e=0;for(let n=0;n<this.file.size;n+=this.sliceSize){if(!t.find(t=>t.number===e)){const t=n+this.sliceSize,s=Object.assign(Object.assign({},this.httParams),{_chunkStart:n,_chunkEnd:t,_chunkNumber:e});this.chunks.push(i(this.file.native.slice(n,t),s))}e++}}generateFingerprint(){this.fingerprint=btoa(["be-upload",(0,b.V)(this.file.name,"-",!0),this.file.mime,this.file.size,this.file.lastModified,(0,b.V)(this.file.relativePath,"-",!0)].join("|"))}generateHttpParams(){this.httParams=Object.assign(Object.assign({},this.httParams),{_chunkCount:this.totalChunks,_originalFileName:this.file.name,_originalFileSize:this.file.size,_fingerprint:this.fingerprint})}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(l.r),a.LFG(v.Z))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),w=(()=>{class t{constructor(t,e,n){this.http=t,this.chunkedUpload=e,this.settings=n}getFileContents(e){return this.http.get(`${t.BASE_URI}/${e.id}}`,null,{responseType:"text"})}delete(e){return this.http.delete(t.BASE_URI,e)}upload(e,n={}){if(e.relativePath&&(n.httpParams.relativePath=e.relativePath),this.settings.get("uploads.chunk")&&e.size>this.chunkedUpload.sliceSize)return this.chunkedUpload.start(e,n.httpParams);{const s=Date.now();return this.http.postWithProgress(n.uri||t.BASE_URI,i(e.native,n.httpParams)).pipe((0,o.U)(t=>(0,r.M)(t,s)))}}}return t.BASE_URI="uploads",t.\u0275fac=function(e){return new(e||t)(a.LFG(l.r),a.LFG(y),a.LFG(v.Z))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},3412:(t,e,n)=>{"use strict";function i(t,e){const n=document.createElement("a");n.href=t,e&&(n.download=e),document.body.appendChild(n),n.click(),document.body.removeChild(n)}n.d(e,{k:()=>i})},551:(t,e,n)=>{"use strict";function i(t,e){return Math.floor(100*t/e)}n.d(e,{q:()=>i})},6313:(t,e,n)=>{"use strict";function i(t){return/(?:\.([^.]+))?$/.exec(t)[1]}n.d(e,{r:()=>r});class s{constructor(t,e){this.url=null,this.name=t.name,this.size=t.size,this.mime=function(t){const e={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",yaml:"text/yaml",yml:"text/yaml"},n=t.name?i(t.name):null;return t.type?t.type:n&&e[n]?e[n]:null}(t),this.lastModified=t.lastModified,this.extension=i(t.name),this.native=t,(e=e||t.webkitRelativePath||null)&&e.match(/\//g).length>1&&(this.relativePath=e)}getData(){return new Promise(t=>{const e=new FileReader;e.addEventListener("load",()=>{t(e.result)}),"json"===this.extension?e.readAsText(this.native):e.readAsDataURL(this.native)})}}function r(t={}){return new Promise(e=>{const n=function(t={}){const e=document.querySelector("#hidden-file-upload-input");e&&e.remove();const n=document.createElement("input");n.type="file",n.multiple=t.multiple,n.classList.add("hidden"),n.style.display="none",n.style.visibility="hidden",n.id="hidden-file-upload-input";const i=[];return t.extensions&&(t.extensions=t.extensions.map(t=>t.startsWith(".")?t:"."+t),i.push(t.extensions.join(","))),t.types&&i.push(t.types.join(",")),i.length&&(n.accept=i.join(",")),t.directory&&(n.webkitdirectory=!0),document.body.appendChild(n),n}(t);n.onchange=t=>{const i=Array.from(t.target.files).map(t=>new s(t));e(i),n.remove()},document.body.appendChild(n),n.click()})}},6421:(t,e,n)=>{"use strict";n.d(e,{b:()=>c,M:()=>u});var i=n(1841),s=n(551);function r(t,e){const n=t.initiallyLoaded?t.loaded-t.initiallyLoaded:t.loaded;return n?n/((new Date-e)/1e3):0}function o(t,e){if(!t.loaded)return 0;const n=r(t,e);let i=t.total-t.loaded;return i<0&&(i=0),Math.round(i/n*10)/10}function a(t){const e=(n=t,{hours:Math.floor(n/3600)%24,minutes:Math.floor(n/60)%60,seconds:Math.floor(n%60)});var n;e.seconds||(e.seconds=1);const i=e.hours?e.hours+"h ":"",s=e.hours?("0"+e.minutes).substr(-2):e.minutes;return`${i}${s?s+"m ":""}${(s?("0"+e.seconds).substr(-2):e.seconds)+"s"}`}var l=n(1796),c=(()=>(function(t){t.STARTED="uploadStarted",t.PROGRESS="uploadProgress",t.COMPLETED="uploadCompleted",t.OTHER="unrecognizedEvent"}(c||(c={})),c))();function u(t,e){switch(t.type){case i.dt.Sent:return{type:t.type,name:c.STARTED,time:e};case i.dt.UploadProgress:return{type:t.type,name:c.PROGRESS,totalBytes:t.total,completedBytes:t.loaded,progress:(0,s.q)(t.loaded,t.total),speed:(0,l.H)(r(t,e)),eta:a(o(t,e))};case i.dt.Response:return{type:t.type,name:c.COMPLETED,body:t.body};default:return null}}},8715:(t,e,n)=>{"use strict";n.d(e,{c:()=>a});var i=n(7716),s=n(4673),r=n(5718),o=n(9244);let a=(()=>{class t{constructor(t,e,n){this.settings=t,this.toast=e,this.i18n=n,this.validations=[]}validate(t){this.validations.length||this.initValidations();const e=this.validations.find(e=>e.fails(t));return e&&this.showToast&&this.openErrorToast(e.errorMessage),{failed:!!e,errorMessage:e?e.errorMessage:null}}validateWithToast(t){const e=this.validate(t);return e.failed&&this.openErrorToast(e.errorMessage),e}openErrorToast(t){this.toast.open(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.Z),i.LFG(r.F),i.LFG(o.Z))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},8756:(t,e,n)=>{"use strict";n.d(e,{p:()=>r});var i=n(6232),s=n(1796);class r extends i.y{constructor(t,e){super(),this.params=t,this.i18n=e,this.errorMessage=this.i18n.t("Maximum file size is :number",{number:(0,s.H)(+this.params.maxSize)})}fails(t){return this.params.maxSize<t.size}}},2655:(t,e,n)=>{"use strict";n.d(e,{p:()=>s});var i=n(6232);class s extends i.y{constructor(t,e){super(),this.params=t,this.i18n=e,this.errorMessage=this.params.types.length>1?this.getPluralMessage():this.getSingularMessage()}fails(t){return!this.params.types.some(e=>e===(t.mime&&t.mime.split("/")[0]))}getSingularMessage(){return this.i18n.t("File must be a :type.",{type:this.i18n.t(this.params.types[0])})}getPluralMessage(){return this.i18n.t("File must be one of these types: :types.",{types:this.i18n.t(this.params.types.join(", "))})}}},6232:(t,e,n)=>{"use strict";n.d(e,{y:()=>i});class i{passes(t){return!this.fails(t)}}},689:(t,e,n)=>{"use strict";var i=n(9075),s=n(7716),r=n(4655),o=n(5435),a=n(6638),l=n(2470),c=n(4673),u=n(299),h=n(4762),d=n(7310),p=n(5515),g=n(8583),m=n(1095);function f(t,e){1&t&&(s.TgZ(0,"a",3),s._uU(1,"Learn More"),s.qZA()),2&t&&s.Q6J("routerLink",e.ngIf)}let _=(()=>{class t{constructor(t,e){this.settings=t,this.overlayRef=e}hideNotice(){const t=new Date,e=new Date,n=e.setDate(e.getDate()+30);e.setTime(t.getTime()+n),document.cookie=`${this.settings.get("branding.site_name")}_cookie_notice=1; expires=${e.toUTCString()}; path=/;`,this.overlayRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.Z),s.Y36(d.L))},t.\u0275cmp=s.Xpm({type:t,selectors:[["cookie-notice"]],decls:5,vars:1,consts:[["trans","",1,"message"],["trans","",3,"routerLink",4,"ngIf"],["mat-flat-button","","color","accent","trans","",3,"click"],["trans","",3,"routerLink"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s._uU(1,"We use cookies to optimize site functionality and provide you with the best possible experience."),s.qZA(),s.YNc(2,f,2,1,"a",1),s.TgZ(3,"button",2),s.NdJ("click",function(){return e.hideNotice()}),s._uU(4,"OK"),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",e.settings.get("cookie_notice.learn_more")))},directives:[p.P,g.O5,m.lW,r.yS],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:center;background-color:#323232;color:#fff;padding:15px;width:100%;box-shadow:0 3px 3px -2px #0003,0 3px 4px 0 #00000024,0 1px 8px 0 #0000001f}a[_ngcontent-%COMP%]{display:block;margin-left:15px;color:var(--be-accent-lighter)}.mat-flat-button[_ngcontent-%COMP%]{margin-left:15px;line-height:28px;min-width:50px;font-size:1.3rem}.mat-flat-button[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{flex-shrink:0}"],changeDetection:0}),t})();var b=n(8002),v=n(5304);const y=["AT","BE","BG","BR","CY","CZ","DE","DK","EE","EL","ES","FI","FR","GB","HR","HU","IE","IT","LT","LU","LV","MT","NL","NO","PL","PT","RO","SE","SI","SK"];var w=n(5917),x=n(7964),C=n(5809);let k=(()=>{class t{constructor(t,e,n,i,s){this.panel=t,this.settings=e,this.http=n,this.appearance=i,this.router=s}maybeShow(){return(0,h.mG)(this,void 0,void 0,function*(){if(!(yield this.shouldShow()))return;const t=this.settings.get("cookie-notice.position","bottom");this.panel.open(_,{origin:"global",position:{[t]:0,left:0},width:"100%",hasBackdrop:!1})})}shouldShow(){return this.settings.get("cookie_notice.enable")&&!this.appearance.active&&!this.router.url.includes("embed")&&!this.alreadyAccepted()&&this.userIsFromEu()}alreadyAccepted(){return document.cookie.includes(`${this.settings.get("branding.site_name")}_cookie_notice`)}userIsFromEu(){return this.http.get("https://freegeoip.app/json/").pipe((0,b.U)(t=>y.includes(t.country_code)),(0,v.K)(()=>(0,w.of)(!0))).toPromise()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(x.T),s.LFG(c.Z),s.LFG(u.r),s.LFG(C.f),s.LFG(r.F0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var A=n(5257),E=n(6215),S=n(3913),T=n(9244);let O=(()=>{class t{constructor(t,e,n,i,s,r){this.document=t,this.router=e,this.settings=n,this.i18n=i,this.route=s,this.title=r,this.latestMetaTags$=new E.X(null)}set staticTitle(t){this._staticTitle=t,this.title.setTitle(t||this.getDefaultTitle())}init(){this.router.events.pipe((0,o.h)(t=>t instanceof r.OD)).subscribe(()=>{this.latestMetaTags$.next(null)}),this.activeRoute$().subscribe(t=>{this.latestMetaTags$.value?this.addTags(this.latestMetaTags$.value):t.data.willSetSeo?this.latestMetaTags$.pipe((0,o.h)(t=>!!t),(0,A.q)(1)).subscribe(t=>{this.addTags(t)}):t.routeConfig.path&&this.addTags(this.getDefaultTags(t.data))})}addTags(t){this.removeOldTags();const e=this.document.head.firstChild;t.forEach(t=>{const n=document.createElement(t.nodeName);n.classList.add("dst"),"title"===t.nodeName&&this._staticTitle&&(t=Object.assign(Object.assign({},t),{_text:this._staticTitle})),Object.keys(t).forEach(e=>{"nodeName"!==e&&("_text"===e?n.textContent="string"==typeof t[e]?t[e]:JSON.stringify(t[e]):n.setAttribute(e,t[e]))}),this.document.head.insertBefore(n,e)})}removeOldTags(){const t=Array.from(this.document.head.getElementsByClassName("dst"));for(let e=0;e<t.length;e++)this.document.head.removeChild(t[e])}activeRoute$(){return this.router.events.pipe((0,o.h)(t=>t instanceof r.m2),(0,b.U)(()=>this.route),(0,b.U)(t=>{for(;t.firstChild;)t=t.firstChild;return t}),(0,o.h)(t=>"primary"===t.outlet),(0,b.U)(t=>t.snapshot))}getDefaultTags(t={}){const e={nodeName:"title",_text:this.settings.get("branding.site_name")},n=t.title||t.name;if(n){const t=this.i18n.t(n.replace(/-/g," "));e._text=t+" - "+e._text}return e._text=(0,S.z)(e._text),[e]}getDefaultTitle(){return(this.latestMetaTags$.value||this.getDefaultTags()).find(t=>"title"===t.nodeName)._text}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(g.K0),s.LFG(r.F0),s.LFG(c.Z),s.LFG(T.Z),s.LFG(r.gz),s.LFG(i.Dx))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const I=["contextMenuViewRef"],P=["contextMenuOrigin"];let D=(()=>{class t{constructor(t,e,n,i,s,r,o){this.contextMenu=t,this.customHomepage=e,this.settings=n,this.httpClient=i,this.router=s,this.cookieNotice=r,this.meta=o}ngOnInit(){this.settings.setHttpClient(this.httpClient),this.meta.init(),this.settings.get("analytics.tracking_code")&&this.triggerAnalyticsPageView(),this.customHomepage.select(),this.cookieNotice.maybeShow()}triggerAnalyticsPageView(){this.router.events.pipe((0,o.h)(t=>t instanceof r.m2)).subscribe(t=>{window.ga&&(window.ga("set","page",t.urlAfterRedirects),window.ga("send","pageview"))})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.x),s.Y36(l.Y),s.Y36(c.Z),s.Y36(u.r),s.Y36(r.F0),s.Y36(k),s.Y36(O))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-root"]],viewQuery:function(t,e){if(1&t&&(s.Gf(I,7,s.s_b),s.Gf(P,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.contextMenuViewRef=t.first),s.iGM(t=s.CRH())&&(e.contextMenuOrigin=t.first)}},decls:5,vars:0,consts:[["contextMenuViewRef",""],[1,"context-menu-origin"],["contextMenuOrigin",""]],template:function(t,e){1&t&&(s._UZ(0,"router-outlet"),s.TgZ(1,"div",null,0),s._UZ(3,"div",1,2),s.qZA())},directives:[r.lC],styles:["app-root{display:block}app-root .be-container,app-root .container{margin:0 auto;padding-left:15px;padding-right:15px}@media screen and (min-width: 768px){app-root .be-container,app-root .container{max-width:750px}}@media screen and (min-width: 992px){app-root .be-container,app-root .container{max-width:970px}}@media screen and (min-width: 1200px){app-root .be-container,app-root .container{max-width:1170px}}"],encapsulation:2}),t})();var F=n(4688),M=n(8805);let Z=(()=>{class t{constructor(t,e,n,i,s){this.currentUser=t,this.auth=e,this.router=n,this.settings=i,this.listener=s}canActivate(t,e){return!!this.listener.active||!this.currentUser.isLoggedIn()||(this.router.navigate([this.auth.getRedirectUri()]),!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.I),s.LFG(M.e),s.LFG(r.F0),s.LFG(c.Z),s.LFG(C.f))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var R=n(3679),L=n(8939),N=n(5718),U=n(5402);let q=(()=>{class t{constructor(t,e,n,i,s){this.settings=t,this.http=e,this.lazyLoader=n,this.router=i,this.toast=s}enabledFor(t){return!this.router.url.includes("admin")&&this.settings.get("recaptcha.site_key")&&this.settings.get("recaptcha.secret_key")&&this.settings.get(`recaptcha.enable_for_${t}`)}loadIfEnableFor(t){if(this.enabledFor(t))return this.load()}load(){return this.lazyLoader.loadAsset("https://www.google.com/recaptcha/api.js?render="+this.settings.get("recaptcha.site_key"),{type:"js"})}verify(t){return(0,h.mG)(this,void 0,void 0,function*(){if(!window.grecaptcha||!this.enabledFor(t))return!0;const e=yield this.callRecaptcha(t);return e||this.toast.open("Could not verify you are human."),e})}callRecaptcha(t){return new Promise(e=>(0,h.mG)(this,void 0,void 0,function*(){yield this.load(),window.grecaptcha.ready(()=>(0,h.mG)(this,void 0,void 0,function*(){const n=yield grecaptcha.execute(this.settings.get("recaptcha.site_key"),{action:t});this.http.post("recaptcha/verify",{token:n}).subscribe(t=>e(t.success))}))}))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(c.Z),s.LFG(u.r),s.LFG(U.j),s.LFG(r.F0),s.LFG(N.F))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var B=n(837);function j(t,e){if(1&t&&(s.TgZ(0,"p",14),s._uU(1),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.Oqu(t.name)}}function z(t,e){if(1&t&&(s.TgZ(0,"p",14),s._uU(1),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.Oqu(t.email)}}function $(t,e){if(1&t&&(s.TgZ(0,"p",14),s._uU(1),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.Oqu(t.message)}}function Y(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"form",3),s.NdJ("ngSubmit",function(){return s.CHM(t),s.oxw().submitMessage()}),s.TgZ(1,"h1",4),s._uU(2,"Contact Us"),s.qZA(),s.TgZ(3,"p",4),s._uU(4,"Please use the form below to send us a message and we'll get back to you as soon as possible."),s.qZA(),s.TgZ(5,"div",5),s.TgZ(6,"label",6),s._uU(7,"Name"),s.qZA(),s._UZ(8,"input",7),s.YNc(9,j,2,1,"p",8),s.qZA(),s.TgZ(10,"div",5),s.TgZ(11,"label",9),s._uU(12,"Email"),s.qZA(),s._UZ(13,"input",10),s.YNc(14,z,2,1,"p",8),s.qZA(),s.TgZ(15,"div",5),s.TgZ(16,"label",11),s._uU(17,"Message"),s.qZA(),s._UZ(18,"textarea",12),s.YNc(19,$,2,1,"p",8),s.qZA(),s.TgZ(20,"button",13),s.ALo(21,"async"),s._uU(22,"Send"),s.qZA(),s.qZA()}if(2&t){const t=e.ngIf,n=s.oxw();s.Q6J("formGroup",n.form),s.xp6(9),s.Q6J("ngIf",t.name),s.xp6(5),s.Q6J("ngIf",t.email),s.xp6(5),s.Q6J("ngIf",t.message),s.xp6(1),s.Q6J("disabled",s.lcZ(21,5,n.loading$))}}let V=(()=>{class t{constructor(t,e,n,i,s){this.settings=t,this.http=e,this.toast=n,this.router=i,this.recaptcha=s,this.loading$=new E.X(!1),this.form=new R.cw({name:new R.NI,email:new R.NI,message:new R.NI}),this.errors$=new E.X({})}ngOnInit(){this.recaptcha.enabledFor("contact")&&this.recaptcha.load()}submitMessage(){return(0,h.mG)(this,void 0,void 0,function*(){if(this.loading$.next(!0),this.recaptcha.enabledFor("contact")&&!(yield this.recaptcha.verify("contact")))return this.toast.open("Could not verify you are human.");this.http.post("contact-page",this.form.value).pipe((0,L.x)(()=>{this.loading$.next(!1)})).subscribe(()=>{this.errors$.next({}),this.toast.open("Your message has been submitted."),this.router.navigate(["/"])},t=>this.errors$.next(t.errors))})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.Z),s.Y36(u.r),s.Y36(N.F),s.Y36(r.F0),s.Y36(q))},t.\u0275cmp=s.Xpm({type:t,selectors:[["contact"]],decls:4,vars:5,consts:[[3,"container","menuPosition"],[1,"form-container"],["class","many-inputs","ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["ngNativeValidate","",1,"many-inputs",3,"formGroup","ngSubmit"],["trans",""],[1,"input-container"],["for","name","trans",""],["type","text","id","name","formControlName","name","required",""],["class","error",4,"ngIf"],["for","email","trans",""],["type","email","id","email","formControlName","email","required",""],["for","message","trans",""],["id","message","formControlName","message","rows","10","required",""],["type","submit","mat-raised-button","","color","accent","trans","",3,"disabled"],[1,"error"]],template:function(t,e){1&t&&(s._UZ(0,"material-navbar",0),s.TgZ(1,"div",1),s.YNc(2,Y,23,7,"form",2),s.ALo(3,"async"),s.qZA()),2&t&&(s.Q6J("container",!0)("menuPosition",e.settings.get("vebto.navbar.defaultPosition","custom-page-navbar")),s.xp6(2),s.Q6J("ngIf",s.lcZ(3,3,e.errors$)))},directives:[B.e,g.O5,R.JL,R.sg,p.P,R.Fj,R.JJ,R.u,R.Q7,m.lW],pipes:[g.Ov],styles:[".form-container[_ngcontent-%COMP%]{min-height:calc(100vh - 70px);background:var(--be-background-alternative);padding:25px;display:flex}form[_ngcontent-%COMP%]{background-color:var(--be-background);box-shadow:none;border:1px solid var(--be-divider-default);width:675px;max-width:100%;padding:25px;margin:auto}form[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-weight:300;margin:0}form[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:5px 0 35px}"],changeDetection:0}),t})();var H=n(8849),G=n(4388),J=n(9538),Q=n(4434),W=n(3935),K=n(6627);function X(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",15),s.TgZ(2,"span",9),s._uU(3,"Light Mode"),s.qZA(),s.BQk())}function tt(t,e){1&t&&(s._UZ(0,"mat-icon",16),s.TgZ(1,"span",9),s._uU(2,"Dark Mode"),s.qZA())}function et(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",12),s.NdJ("click",function(){return s.CHM(t),s.oxw().theme.toggle()}),s.YNc(1,X,4,0,"ng-container",13),s.ALo(2,"async"),s.YNc(3,tt,3,0,"ng-template",null,14,s.W1O),s.qZA()}if(2&t){const t=s.MAs(4),e=s.oxw();let n;s.xp6(1),s.Q6J("ngIf",null==(n=s.lcZ(2,2,e.theme.selectedTheme$))?null:n.is_dark)("ngIfElse",t)}}function nt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",17),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().changeLanguage(e)}),s._UZ(1,"mat-icon",18),s._uU(2),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.xp6(1),s.ekj("invisible",!n.i18n.isActive(t)),s.xp6(1),s.hij(" ",t.name," ")}}let it=(()=>{class t{constructor(t,e,n,i,s){this.settings=t,this.i18n=e,this.theme=n,this.valueLists=i,this.localizations=s,this.localizations$=new E.X([{id:1,name:"English",language:"en"}]),this.changingLang$=new E.X(!1);const r=(new Date).getFullYear();this.copyrightText=this.i18n.t("Copyright \xa9 :year, All Rights Reserved",{year:r})}langMenuOpened(){this.valueLists.get(["localizations"]).subscribe(t=>{this.localizations$.next(t.localizations)})}changeLanguage(t){this.i18n.isActive(t)||(this.changingLang$.next(!0),this.localizations.get(t.name).pipe((0,L.x)(()=>this.changingLang$.next(!1))).subscribe(t=>{this.i18n.setLocalization(t.localization)}))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.Z),s.Y36(T.Z),s.Y36(H.f),s.Y36(G.l),s.Y36(J.v))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-footer"]],decls:17,vars:12,consts:[[1,"row","first-row"],["position","footer",1,"first-menu","first-col",3,"horizontal"],["position","footer-secondary",1,"second-menu","second-col",3,"horizontal"],[1,"row","second-row"],[1,"copyright","first-col"],[1,"selectors","second-col"],["type","button","mat-button","","class","button-with-icon",3,"click",4,"ngIf"],["type","button","mat-button","",1,"button-with-icon",3,"matMenuTriggerFor","disabled","menuOpened"],["svgIcon","language"],["trans",""],["menu","matMenu"],["mat-menu-item","","class","capitalize","trans","",3,"click",4,"ngFor","ngForOf"],["type","button","mat-button","",1,"button-with-icon",3,"click"],[4,"ngIf","ngIfElse"],["lightMode",""],["svgIcon","light-mode"],["svgIcon","dark-mode"],["mat-menu-item","","trans","",1,"capitalize",3,"click"],["svgIcon","check"]],template:function(t,e){if(1&t&&(s.TgZ(0,"div",0),s._UZ(1,"custom-menu",1),s._UZ(2,"custom-menu",2),s.qZA(),s.TgZ(3,"div",3),s.TgZ(4,"div",4),s._uU(5),s.qZA(),s.TgZ(6,"div",5),s.YNc(7,et,5,4,"button",6),s.TgZ(8,"button",7),s.NdJ("menuOpened",function(){return e.langMenuOpened()}),s.ALo(9,"async"),s._UZ(10,"mat-icon",8),s.TgZ(11,"span",9),s._uU(12),s.qZA(),s.qZA(),s.TgZ(13,"mat-menu",null,10),s.YNc(15,nt,3,3,"button",11),s.ALo(16,"async"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(14);s.xp6(1),s.Q6J("horizontal",!0),s.xp6(1),s.Q6J("horizontal",!0),s.xp6(3),s.hij(" ",e.copyrightText," "),s.xp6(2),s.Q6J("ngIf",e.settings.get("themes.user_change")),s.xp6(1),s.Q6J("matMenuTriggerFor",t)("disabled",s.lcZ(9,8,e.changingLang$)),s.xp6(4),s.Oqu((null==e.i18n.localization||null==e.i18n.localization.model?null:e.i18n.localization.model.name)||"English"),s.xp6(3),s.Q6J("ngForOf",s.lcZ(16,10,e.localizations$))}},directives:[Q.K,g.O5,m.lW,W.p6,K.Hw,p.P,W.VK,g.sg,W.OP],pipes:[g.Ov],styles:["[_nghost-%COMP%]{display:block;color:var(--be-secondary-text);font-size:1.5rem;padding:55px 0}.row[_ngcontent-%COMP%]{display:flex;align-items:center}.first-row[_ngcontent-%COMP%]{border-bottom:1px solid var(--be-divider-lighter);padding-bottom:20px}.second-row[_ngcontent-%COMP%]{padding-top:20px}.first-menu[_ngcontent-%COMP%]{color:var(--be-accent-default)}.first-menu[_ngcontent-%COMP%]     .custom-menu-item:first-child{padding-left:0!important}.second-menu[_ngcontent-%COMP%]     .custom-menu-item{padding-right:10px!important;padding-left:10px!important}.second-menu[_ngcontent-%COMP%]     .mat-icon{width:20px;height:20px}.first-col[_ngcontent-%COMP%]{margin-right:auto}.second-col[_ngcontent-%COMP%]{margin-left:15px}.button-with-icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-right:5px}.button-with-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{display:block}.invisible[_ngcontent-%COMP%]{visibility:hidden}@media only screen and (max-width: 768px){.row[_ngcontent-%COMP%]{flex-direction:column}.first-col[_ngcontent-%COMP%]{margin-right:0}}"],changeDetection:0}),t})();var st=n(6097),rt=n(6452);function ot(t,e){if(1&t&&(s.TgZ(0,"a",22),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.content.actions.cta1)}}function at(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",23),s.NdJ("click",function(){return s.CHM(t),s.oxw().scrollToFeatures()}),s._uU(1),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.hij(" ",t.content.actions.cta2," ")}}function lt(t,e){if(1&t&&(s.TgZ(0,"li",27),s._UZ(1,"image-or-icon",28),s.TgZ(2,"h3"),s._uU(3),s.qZA(),s.TgZ(4,"p"),s._uU(5),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("src",t.image),s.xp6(2),s.Oqu(t.title),s.xp6(2),s.Oqu(t.subtitle)}}function ct(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"div",7),s._UZ(2,"ad-host",24),s.TgZ(3,"ul",25),s.YNc(4,lt,6,3,"li",26),s.qZA(),s.qZA(),s._UZ(5,"div",16),s.BQk()),2&t){const t=s.oxw();s.xp6(4),s.Q6J("ngForOf",t.content.primaryFeatures)}}function ut(t,e){1&t&&s._UZ(0,"div",16)}function ht(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"li",29),s._UZ(2,"img",30),s.TgZ(3,"section",31),s.TgZ(4,"small"),s._uU(5),s.qZA(),s.TgZ(6,"h2"),s._uU(7),s.qZA(),s._UZ(8,"div",32),s.TgZ(9,"p"),s._uU(10),s.qZA(),s.qZA(),s.qZA(),s.YNc(11,ut,1,0,"div",33),s.BQk()),2&t){const t=e.$implicit,n=e.first,i=e.last,r=e.even;s.xp6(1),s.ekj("first-secondary-feature",n)("reverse",r),s.xp6(1),s.Q6J("src",t.image+"?v2",s.LSH),s.xp6(3),s.Oqu(t.subtitle),s.xp6(2),s.Oqu(t.title),s.xp6(3),s.Oqu(t.description),s.xp6(1),s.Q6J("ngIf",!i)}}function dt(t,e){if(1&t&&(s.TgZ(0,"a",34),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.content.actions.cta1)}}let pt=(()=>{class t{constructor(t,e,n,i,s){this.settings=t,this.i18n=e,this.router=n,this.cd=i,this.sanitizer=s}ngOnInit(){this.settings.all$().subscribe(()=>{this.content=this.settings.getJson("homepage.appearance"),this.overlayBackground=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(45deg, ${this.content.headerOverlayColor1} 0%, ${this.content.headerOverlayColor2} 100%)`),this.cd.markForCheck()})}scrollToFeatures(){document.querySelector(".first-secondary-feature").scrollIntoView({block:"center",inline:"center",behavior:"smooth"})}copyrightText(){const t=(new Date).getFullYear();return this.i18n.t("Copyright \xa9 :year, All Rights Reserved",{year:t})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.Z),s.Y36(T.Z),s.Y36(r.F0),s.Y36(s.sBO),s.Y36(i.H7))},t.\u0275cmp=s.Xpm({type:t,selectors:[["landing"]],decls:27,vars:20,consts:[[1,"hero","header-overlay"],[1,"background-image"],["viewBox","0 0 100 15",2,"position","absolute","bottom","0","left","0","z-index","2"],["fill","#fff","opacity","0.1","d","M0 30 V15 Q30 3 60 15 V30z"],["d","M0 30 V12 Q30 17 55 12 T100 11 V30z",1,"wave-fill"],[1,"hero-content"],[1,"login-button-white",3,"transparent","container","menuPosition"],[1,"be-container"],[1,"header-title"],[1,"header-description"],[1,"action-buttons"],["class","get-started-button","mat-raised-button","","color","accent","routerLink","/login",4,"ngIf"],["class","learn-more-button","mat-button","",3,"click",4,"ngIf"],[4,"ngIf"],[1,"big-features","unstyled-list"],[4,"ngFor","ngForOf"],[1,"spacer"],[1,"bottom-cta"],[1,"footer-title"],[1,"footer-description"],["mat-stroked-button","","routerLink","/login",4,"ngIf"],[1,"container"],["mat-raised-button","","color","accent","routerLink","/login",1,"get-started-button"],["mat-button","",1,"learn-more-button",3,"click"],["slot","ads.landing.top"],[1,"inline-features","unstyled-list"],["class","inline-feature",4,"ngFor","ngForOf"],[1,"inline-feature"],[1,"inherit-size",3,"src"],[1,"big-feature","be-container"],["alt","",3,"src"],[1,"info"],[1,"feature-border"],["class","spacer",4,"ngIf"],["mat-stroked-button","","routerLink","/login"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"div",1),s.O4$(),s.TgZ(2,"svg",2),s._UZ(3,"path",3),s._UZ(4,"path",4),s.qZA(),s.kcU(),s.TgZ(5,"div",5),s._UZ(6,"material-navbar",6),s.TgZ(7,"div",7),s.TgZ(8,"h1",8),s._uU(9),s.qZA(),s.TgZ(10,"p",9),s._uU(11),s.qZA(),s.TgZ(12,"div",10),s.YNc(13,ot,2,1,"a",11),s.YNc(14,at,2,1,"button",12),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.YNc(15,ct,6,1,"ng-container",13),s.TgZ(16,"ul",14),s.YNc(17,ht,12,9,"ng-container",15),s.qZA(),s._UZ(18,"div",16),s.TgZ(19,"div",17),s.TgZ(20,"div",7),s.TgZ(21,"h2",18),s._uU(22),s.qZA(),s.TgZ(23,"p",19),s._uU(24),s.qZA(),s.YNc(25,dt,2,1,"a",20),s.qZA(),s.qZA(),s._UZ(26,"app-footer",21)),2&t&&(s.Udp("background",e.overlayBackground),s.xp6(1),s.Udp("background-image","url("+e.content.headerImage+")")("opacity",e.content.headerImageOpacity),s.xp6(5),s.Q6J("transparent",!0)("container",!0)("menuPosition",e.settings.get("vebto.navbar.defaultPosition")),s.xp6(3),s.Oqu(e.content.headerTitle),s.xp6(2),s.Oqu(e.content.headerSubtitle),s.xp6(2),s.Q6J("ngIf",null==e.content||null==e.content.actions?null:e.content.actions.cta1),s.xp6(1),s.Q6J("ngIf",null==e.content||null==e.content.actions?null:e.content.actions.cta2),s.xp6(1),s.Q6J("ngIf",e.content.primaryFeatures.length),s.xp6(2),s.Q6J("ngForOf",e.content.secondaryFeatures),s.xp6(2),s.Udp("background-image","url("+e.content.footerImage+")"),s.xp6(3),s.Oqu(e.content.footerTitle),s.xp6(2),s.Oqu(e.content.footerSubtitle),s.xp6(1),s.Q6J("ngIf",null==e.content.actions?null:e.content.actions.cta1))},directives:[B.e,g.O5,g.sg,it,m.zs,r.yS,m.lW,st.i,rt.A],styles:['.hero[_ngcontent-%COMP%]{text-align:center;position:relative;padding-bottom:140px;margin-bottom:60px}@media only screen and (max-width: 768px){.hero[_ngcontent-%COMP%]{padding-bottom:30px}}.hero-content[_ngcontent-%COMP%]{position:relative;z-index:3}svg[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.wave-fill[_ngcontent-%COMP%]{fill:var(--be-background)}material-navbar[_ngcontent-%COMP%]{box-shadow:none;margin-bottom:40px}h1[_ngcontent-%COMP%]{font-size:4.4rem;margin:0 0 10px}.header-description[_ngcontent-%COMP%], h1[_ngcontent-%COMP%]{font-weight:300;text-shadow:1px 1px 5px #0000001a}.header-description[_ngcontent-%COMP%]{margin:0 auto;font-size:1.8rem;max-width:600px}.action-buttons[_ngcontent-%COMP%]{margin:50px 0}.get-started-button[_ngcontent-%COMP%]{min-width:180px;height:50px;border-radius:30px;line-height:50px;margin-right:15px;font-size:1.7rem;background:var(--be-accent-contrast);color:#000000de}.learn-more-button[_ngcontent-%COMP%]{font-size:1.6rem}.inline-features[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-column-gap:20px;justify-content:space-between;margin-top:60px;text-align:center}@media only screen and (max-width: 768px){.inline-features[_ngcontent-%COMP%]{display:block}.inline-features[_ngcontent-%COMP%]   .inline-feature[_ngcontent-%COMP%]{min-width:auto}}.inline-feature[_ngcontent-%COMP%]{box-shadow:0 3px 3px -2px #0003,0 3px 4px 0 #00000024,0 1px 8px 0 #0000001f;border-radius:10px;padding:34px 26px;box-shadow:0 10px 30px #00000014}.inline-feature[_ngcontent-%COMP%]   image-or-icon[_ngcontent-%COMP%]{display:block;width:150px;height:120px;margin:0 auto 30px}.inline-feature[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1.8rem;margin-bottom:15px}.inline-feature[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:1.5rem;color:var(--be-secondary-text)}.spacer[_ngcontent-%COMP%]{border-bottom:1px solid var(--be-divider-lighter);margin-bottom:40px;margin-top:40px}.big-feature[_ngcontent-%COMP%]{display:flex;padding:15px 0}.big-feature.reverse[_ngcontent-%COMP%]{flex-direction:row-reverse}.big-feature[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:10px;width:580px;max-width:100%;margin-right:auto;box-shadow:0 0 80px 10px #00000014}.big-feature[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{margin-left:30px;margin-right:auto;max-width:350px;padding-top:30px}.big-feature[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{text-transform:uppercase;margin:0 0 15px;letter-spacing:1px;font-weight:500;font-size:1.2rem;color:var(--be-secondary-text)}.big-feature[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:15px 0;font-size:3.1rem;font-weight:400}.big-feature[_ngcontent-%COMP%]   .feature-border[_ngcontent-%COMP%]{width:50px;height:2px;background-color:var(--be-primary-default)}.big-feature[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:1.5rem;margin:20px 0}@media only screen and (max-width: 768px){.big-feature[_ngcontent-%COMP%]{display:block;padding:0 15px}.big-feature[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{margin-left:0}}.stats[_ngcontent-%COMP%]{margin:90px auto}@media only screen and (max-width: 768px){.stats[_ngcontent-%COMP%]{display:none}}.bottom-cta[_ngcontent-%COMP%]{padding:70px 0;color:var(--be-accent-contrast);background-repeat:no-repeat;background-color:#2b2b2b;background-attachment:fixed;text-align:center}.bottom-cta[_ngcontent-%COMP%], .bottom-cta[_ngcontent-%COMP%]   .be-container[_ngcontent-%COMP%]{position:relative}.bottom-cta[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:3.4rem;margin:0 auto;max-width:600px;font-weight:400}.bottom-cta[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:2.6rem;margin:8px auto 50px;font-weight:300;max-width:600px}.bottom-cta[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]{min-width:185px;height:50px;line-height:50px;font-size:1.7rem;font-weight:500;border-color:var(--be-accent-contrast)}@media only screen and (max-width: 768px){.bottom-cta[_ngcontent-%COMP%]{display:none}}footer[_ngcontent-%COMP%]{padding:50px 0;font-size:1.5rem}footer[_ngcontent-%COMP%]   .be-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit}@media only screen and (max-width: 768px){footer[_ngcontent-%COMP%]{padding:25px 0;text-align:center}footer[_ngcontent-%COMP%]   .be-container[_ngcontent-%COMP%]{display:block}}.ads-landing-top-host[_ngcontent-%COMP%]{margin-top:60px}.header-overlay[_ngcontent-%COMP%]{color:var(--be-accent-contrast)}.background-image[_ngcontent-%COMP%]{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;background-size:cover;background-repeat:no-repeat;background-position:50%}'],changeDetection:0}),t})();var gt=n(2690);const mt=[{path:"",component:pt,canActivate:[Z]},{path:"design",canLoad:[gt.a],loadChildren:()=>n.e(953).then(n.bind(n,3953)).then(t=>t.HtmlBuilderModule)},{path:"admin",loadChildren:()=>n.e(244).then(n.bind(n,1244)).then(t=>t.AppAdminModule)},{path:"billing",loadChildren:()=>n.e(819).then(n.bind(n,7819)).then(t=>t.BillingModule)},{path:"notifications",loadChildren:()=>n.e(72).then(n.bind(n,1072)).then(t=>t.NotificationsModule)},{path:"api-docs",loadChildren:()=>n.e(232).then(n.bind(n,3232)).then(t=>t.ApiDocsModule)},{path:"contact",component:V}];let ft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.Bz.forRoot(mt,{relativeLinkResolution:"legacy"})],r.Bz]}),t})();const _t=function(){return["/register"]};function bt(t,e){1&t&&(s.ynx(0),s.TgZ(1,"span",9),s._uU(2,"Don't have an account?"),s.qZA(),s._uU(3," "),s.TgZ(4,"a",10),s._uU(5,"Sign up."),s.qZA(),s.BQk()),2&t&&(s.xp6(4),s.Q6J("routerLink",s.DdM(1,_t)))}const vt=function(){return["/login"]};function yt(t,e){1&t&&(s.ynx(0),s.TgZ(1,"span",9),s._uU(2,"Already have an account?"),s.qZA(),s._uU(3," "),s.TgZ(4,"a",11),s._uU(5,"Sign in."),s.qZA(),s.BQk()),2&t&&(s.xp6(4),s.Q6J("routerLink",s.DdM(1,vt)))}const wt=function(){return["/"]},xt=["*"];let Ct=(()=>{class t{constructor(t,e,n,i){this.settings=t,this.theme=e,this.route=n,this.auth=i,this.infoRowTarget="signup"}ngOnInit(){this.route.snapshot.queryParams.email&&this.auth.forcedEmail$.next(this.route.snapshot.queryParams.email)}logoUrl(){return this.settings.get("branding.logo_"+(this.theme.isDarkMode()?"light":"dark"))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.Z),s.Y36(H.f),s.Y36(r.gz),s.Y36(M.e))},t.\u0275cmp=s.Xpm({type:t,selectors:[["auth-page"]],inputs:{infoRowTarget:"infoRowTarget"},ngContentSelectors:xt,decls:12,vars:7,consts:[[1,"auth-page-content"],[1,"logo",3,"routerLink"],["alt","logo",3,"src"],[1,"auth-panel"],[1,"info-row"],[4,"ngIf"],[1,"custom-menu-container"],["routerLink","/",1,"copyright"],["position","auth-page-footer",3,"horizontal"],["trans",""],["trans","",1,"register-link",3,"routerLink"],["trans","",3,"routerLink"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.TgZ(1,"a",1),s._UZ(2,"img",2),s.qZA(),s.TgZ(3,"div",3),s.Hsn(4),s.qZA(),s.TgZ(5,"div",4),s.YNc(6,bt,6,2,"ng-container",5),s.YNc(7,yt,6,2,"ng-container",5),s.qZA(),s.qZA(),s.TgZ(8,"div",6),s.TgZ(9,"a",7),s._uU(10),s.qZA(),s._UZ(11,"custom-menu",8),s.qZA()),2&t&&(s.xp6(1),s.Q6J("routerLink",s.DdM(6,wt)),s.xp6(1),s.Q6J("src",e.logoUrl(),s.LSH),s.xp6(4),s.Q6J("ngIf","signup"===e.infoRowTarget&&!e.settings.get("registration.disable")),s.xp6(1),s.Q6J("ngIf","signin"===e.infoRowTarget),s.xp6(3),s.hij("\xa9 ",e.settings.get("branding.site_name"),""),s.xp6(1),s.Q6J("horizontal",!0))},directives:[r.yS,g.O5,Q.K,p.P],styles:[".be-dark-mode auth-page{background-image:none}.be-dark-mode auth-page .auth-panel{box-shadow:none}auth-page{display:flex;flex-direction:column;background-color:var(--be-background-alternative);min-height:100vh;padding-top:72px;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 304 304' width='304' height='304'%3E%3Cpath fill='%23e2e9f1' fill-opacity='0.4' d='M44.1 224a5 5 0 1 1 0 2H0v-2h44.1zm160 48a5 5 0 1 1 0 2H82v-2h122.1zm57.8-46a5 5 0 1 1 0-2H304v2h-42.1zm0 16a5 5 0 1 1 0-2H304v2h-42.1zm6.2-114a5 5 0 1 1 0 2h-86.2a5 5 0 1 1 0-2h86.2zm-256-48a5 5 0 1 1 0 2H0v-2h12.1zm185.8 34a5 5 0 1 1 0-2h86.2a5 5 0 1 1 0 2h-86.2zM258 12.1a5 5 0 1 1-2 0V0h2v12.1zm-64 208a5 5 0 1 1-2 0v-54.2a5 5 0 1 1 2 0v54.2zm48-198.2V80h62v2h-64V21.9a5 5 0 1 1 2 0zm16 16V64h46v2h-48V37.9a5 5 0 1 1 2 0zm-128 96V208h16v12.1a5 5 0 1 1-2 0V210h-16v-76.1a5 5 0 1 1 2 0zm-5.9-21.9a5 5 0 1 1 0 2H114v48H85.9a5 5 0 1 1 0-2H112v-48h12.1zm-6.2 130a5 5 0 1 1 0-2H176v-74.1a5 5 0 1 1 2 0V242h-60.1zm-16-64a5 5 0 1 1 0-2H114v48h10.1a5 5 0 1 1 0 2H112v-48h-10.1zM66 284.1a5 5 0 1 1-2 0V274H50v30h-2v-32h18v12.1zM236.1 176a5 5 0 1 1 0 2H226v94h48v32h-2v-30h-48v-98h12.1zm25.8-30a5 5 0 1 1 0-2H274v44.1a5 5 0 1 1-2 0V146h-10.1zm-64 96a5 5 0 1 1 0-2H208v-80h16v-14h-42.1a5 5 0 1 1 0-2H226v18h-16v80h-12.1zm86.2-210a5 5 0 1 1 0 2H272V0h2v32h10.1zM98 101.9V146H53.9a5 5 0 1 1 0-2H96v-42.1a5 5 0 1 1 2 0zM53.9 34a5 5 0 1 1 0-2H80V0h2v34H53.9zm60.1 3.9V66H82v64H69.9a5 5 0 1 1 0-2H80V64h32V37.9a5 5 0 1 1 2 0zM101.9 82a5 5 0 1 1 0-2H128V37.9a5 5 0 1 1 2 0V82h-28.1zm16-64a5 5 0 1 1 0-2H146v44.1a5 5 0 1 1-2 0V18h-26.1zm102.2 270a5 5 0 1 1 0 2H98v14h-2v-16h124.1zM242 149.9V160h16v34h-16v62h48v48h-2v-46h-48v-66h16v-30h-16v-12.1a5 5 0 1 1 2 0zM53.9 18a5 5 0 1 1 0-2H64V2H48V0h18v18H53.9zm112 32a5 5 0 1 1 0-2H192V0h50v2h-48v48h-28.1zm-48-48a5 5 0 0 1-9.8-2h2.07a3 3 0 1 0 5.66 0H178v34h-18V21.9a5 5 0 1 1 2 0V32h14V2h-58.1zm0 96a5 5 0 1 1 0-2H137l32-32h39V21.9a5 5 0 1 1 2 0V66h-40.17l-32 32H117.9zm28.1 90.1a5 5 0 1 1-2 0v-76.51L175.59 80H224V21.9a5 5 0 1 1 2 0V82h-49.59L146 112.41v75.69zm16 32a5 5 0 1 1-2 0v-99.51L184.59 96H300.1a5 5 0 0 1 3.9-3.9v2.07a3 3 0 0 0 0 5.66v2.07a5 5 0 0 1-3.9-3.9H185.41L162 121.41v98.69zm-144-64a5 5 0 1 1-2 0v-3.51l48-48V48h32V0h2v50H66v55.41l-48 48v2.69zM50 53.9v43.51l-48 48V208h26.1a5 5 0 1 1 0 2H0v-65.41l48-48V53.9a5 5 0 1 1 2 0zm-16 16V89.41l-34 34v-2.82l32-32V69.9a5 5 0 1 1 2 0zM12.1 32a5 5 0 1 1 0 2H9.41L0 43.41V40.6L8.59 32h3.51zm265.8 18a5 5 0 1 1 0-2h18.69l7.41-7.41v2.82L297.41 50H277.9zm-16 160a5 5 0 1 1 0-2H288v-71.41l16-16v2.82l-14 14V210h-28.1zm-208 32a5 5 0 1 1 0-2H64v-22.59L40.59 194H21.9a5 5 0 1 1 0-2H41.41L66 216.59V242H53.9zm150.2 14a5 5 0 1 1 0 2H96v-56.6L56.6 162H37.9a5 5 0 1 1 0-2h19.5L98 200.6V256h106.1zm-150.2 2a5 5 0 1 1 0-2H80v-46.59L48.59 178H21.9a5 5 0 1 1 0-2H49.41L82 208.59V258H53.9zM34 39.8v1.61L9.41 66H0v-2h8.59L32 40.59V0h2v39.8zM2 300.1a5 5 0 0 1 3.9 3.9H3.83A3 3 0 0 0 0 302.17V256h18v48h-2v-46H2v42.1zM34 241v63h-2v-62H0v-2h34v1zM17 18H0v-2h16V0h2v18h-1zm273-2h14v2h-16V0h2v16zm-32 273v15h-2v-14h-14v14h-2v-16h18v1zM0 92.1A5.02 5.02 0 0 1 6 97a5 5 0 0 1-6 4.9v-2.07a3 3 0 1 0 0-5.66V92.1zM80 272h2v32h-2v-32zm37.9 32h-2.07a3 3 0 0 0-5.66 0h-2.07a5 5 0 0 1 9.8 0zM5.9 0A5.02 5.02 0 0 1 0 5.9V3.83A3 3 0 0 0 3.83 0H5.9zm294.2 0h2.07A3 3 0 0 0 304 3.83V5.9a5 5 0 0 1-3.9-5.9zm3.9 300.1v2.07a3 3 0 0 0-1.83 1.83h-2.07a5 5 0 0 1 3.9-3.9zM97 100a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-48 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 96a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-144a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM49 36a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM33 68a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 240a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm80-176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm112 176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 180a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 84a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'%3E%3C/path%3E%3C/svg%3E\")}auth-page .header{font-size:2rem;margin-bottom:20px;opacity:.85}auth-page .input-container{position:relative}auth-page .input-container label{padding-bottom:8px;line-height:20px;color:inherit}auth-page .input-container .label-with-action{display:flex;align-items:center;padding-bottom:8px}auth-page .input-container .label-with-action label{padding-bottom:0}auth-page .input-container input{font-size:1.5rem;letter-spacing:.5px;height:44px;padding:6px 12px;background-color:var(--be-background);color:inherit}auth-page .input-container .error.big-error{font-size:1.4rem;font-weight:500;margin-top:12px}auth-page .input-container .error .mat-icon{width:12px;height:12px;margin-right:6px;transform:translateY(1.1px)}auth-page .many-inputs .input-container{margin-bottom:32px}auth-page .many-inputs .input-container:last-of-type{margin-bottom:0}auth-page .logo{display:block;width:100%;margin:0 auto 40px;min-height:41px;flex-shrink:0}auth-page .logo img{display:block;margin:auto;width:180px}auth-page .forgot-password{margin-left:auto}auth-page .remember-me{display:block;margin-top:32px}auth-page .primary-button{width:100%;line-height:48px;margin-top:32px;font-weight:500;font-size:1.6rem}auth-page .social-icons{margin-top:32px;text-align:center}auth-page .alternative-signin-method{display:block;margin-top:32px;text-align:center;font-weight:500;width:100%;color:#82b541}auth-page .alternative-signin-method .mat-icon{vertical-align:middle;margin-right:5px}auth-page .auth-panel{position:relative;width:90%;max-width:448px;padding:44px 44px 32px;background-color:var(--be-background);box-shadow:0 7px 14px 0 #3c42571f,0 3px 6px 0 #0000001f;border-radius:4px;margin:0 auto}auth-page .info-row{margin-top:36px;text-align:center}auth-page .custom-menu-container{text-align:center;padding:42px 0 32px;flex-shrink:0;margin-top:auto;color:var(--be-secondary-text)}auth-page .copyright{padding:5px 15px;color:inherit}"],encapsulation:2,changeDetection:0}),t})();function kt(t,e){if(1&t&&(s.TgZ(0,"p",9),s._UZ(1,"mat-icon",10),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(3),s.Oqu(t.email)}}function At(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"form",1),s.NdJ("ngSubmit",function(){return s.CHM(t),s.oxw().sendPasswordResetLink()}),s.TgZ(1,"div",2),s._uU(2,"Enter your email address below and we will send you a link to reset or create your password."),s.qZA(),s.TgZ(3,"div",3),s.TgZ(4,"div",4),s.TgZ(5,"label",5),s._uU(6,"Email"),s.qZA(),s._UZ(7,"input",6),s.YNc(8,kt,4,1,"p",7),s.qZA(),s.TgZ(9,"button",8),s.ALo(10,"async"),s._uU(11,"Continue"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.ngIf,n=s.oxw();s.Q6J("formGroup",n.form),s.xp6(8),s.Q6J("ngIf",t.email),s.xp6(1),s.Q6J("disabled",s.lcZ(10,3,n.loading$))}}let Et=(()=>{class t{constructor(t,e,n,i,s){this.auth=t,this.settings=e,this.toast=n,this.router=i,this.fb=s,this.loading$=new E.X(!1),this.form=this.fb.group({email:[""]}),this.errors$=new E.X({})}ngOnInit(){this.auth.forcedEmail$.pipe((0,o.h)(t=>!!t)).subscribe(t=>{this.form.get("email").setValue(t),this.form.get("email").disable()})}sendPasswordResetLink(){this.loading$.next(!0),this.auth.sendPasswordResetLink(this.form.value).subscribe(t=>{this.router.navigate(["/login"]).then(()=>{this.loading$.next(!1),this.toast.open(t.data)})},t=>{this.errors$.next(t.errors),this.loading$.next(!1)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(M.e),s.Y36(c.Z),s.Y36(N.F),s.Y36(r.F0),s.Y36(R.qu))},t.\u0275cmp=s.Xpm({type:t,selectors:[["forgot-password"]],decls:3,vars:3,consts:[["ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["ngNativeValidate","",3,"formGroup","ngSubmit"],["trans","",1,"page-header"],[1,"page-content"],[1,"input-container"],["for","email","trans",""],["type","email","formControlName","email","id","email","required",""],["class","error big-error",4,"ngIf"],["mat-raised-button","","color","accent","type","submit","trans","",1,"primary-button",3,"disabled"],[1,"error","big-error"],["svgIcon","warning"]],template:function(t,e){1&t&&(s.TgZ(0,"auth-page"),s.YNc(1,At,12,5,"form",0),s.ALo(2,"async"),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",s.lcZ(2,1,e.errors$)))},directives:[Ct,g.O5,R.JL,R.sg,p.P,R.Fj,R.JJ,R.u,R.Q7,m.lW,K.Hw],pipes:[g.Ov],styles:[".page-header[_ngcontent-%COMP%]{margin-bottom:32px}"],changeDetection:0}),t})();var St=n(2238),Tt=n(9765);function Ot(t,e){if(1&t&&(s.TgZ(0,"div",16),s._uU(1),s.qZA()),2&t){const t=s.oxw(2).ngIf;s.xp6(1),s.Oqu(t.email)}}function It(t,e){if(1&t&&(s.TgZ(0,"div",11),s.TgZ(1,"label",12),s._uU(2,"Email Address"),s.qZA(),s._UZ(3,"input",13),s.YNc(4,Ot,2,1,"div",14),s.TgZ(5,"p",15),s._uU(6,"We need your email address to create an account for you, please enter it above."),s.qZA(),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(4),s.Q6J("ngIf",t.email)}}function Pt(t,e){if(1&t&&(s.TgZ(0,"div",16),s._uU(1),s.qZA()),2&t){const t=s.oxw(2).ngIf;s.xp6(1),s.Oqu(t.password)}}function Dt(t,e){if(1&t&&(s.TgZ(0,"div",17),s.TgZ(1,"label",18),s._uU(2,"Password"),s.qZA(),s._UZ(3,"input",19),s.YNc(4,Pt,2,1,"div",14),s.TgZ(5,"p",15),s._uU(6,"An account with this email address already exists, if you want to connect the two account's please enter existing accounts password above."),s.qZA(),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(4),s.Q6J("ngIf",t.password)}}function Ft(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"form",5),s.NdJ("ngSubmit",function(){return s.CHM(t),s.oxw().confirm()}),s.TgZ(1,"mat-dialog-content"),s.TgZ(2,"div",6),s.YNc(3,It,7,1,"div",7),s.YNc(4,Dt,7,1,"div",8),s.qZA(),s.qZA(),s.TgZ(5,"mat-dialog-actions"),s.TgZ(6,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().close()}),s._uU(7,"Cancel"),s.qZA(),s.TgZ(8,"button",10),s._uU(9,"Connect"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("formGroup",t.form),s.xp6(3),s.Q6J("ngIf",t.shouldCredentialBeRequested("email")),s.xp6(1),s.Q6J("ngIf",t.shouldCredentialBeRequested("password"))}}let Mt=(()=>{class t{constructor(t,e,n,i,s){this.dialogRef=t,this.data=e,this.zone=n,this.settings=i,this.fb=s,this.form=this.fb.group({email:[""],password:[""]}),this.errors$=new E.X({}),this.onSubmit$=new Tt.xQ}ngOnInit(){this.zone.run(()=>{this.credentialsToRequest=this.data.credentials})}shouldCredentialBeRequested(t){return this.credentialsToRequest.indexOf(t)>-1}confirm(){this.onSubmit$.next(Object.assign({},this.form.value))}close(){this.onSubmit$.complete(),this.dialogRef.close()}handleErrors(t){t.errors.email&&this.credentialsToRequest.push("password"),this.zone.run(()=>{this.errors$.next(t.errors)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(St.so),s.Y36(St.WI),s.Y36(s.R0b),s.Y36(c.Z),s.Y36(R.qu))},t.\u0275cmp=s.Xpm({type:t,selectors:[["request-extra-credentials-modal"]],decls:7,vars:3,consts:[[1,"modal-header"],["mat-dialog-title","","trans","",1,"modal-title"],["type","button","tabindex","-1",1,"close-button","no-style",3,"click"],["svgIcon","close"],["ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["ngNativeValidate","",3,"formGroup","ngSubmit"],[1,"many-inputs"],["class","input-container email-address-container",4,"ngIf"],["class","input-container password-container",4,"ngIf"],["type","button","mat-button","","trans","",3,"click"],["type","submit","mat-raised-button","","color","accent","trans",""],[1,"input-container","email-address-container"],["for","email","trans",""],["type","email","id","email","formControlName","email","required",""],["class","error",4,"ngIf"],["trans",""],[1,"error"],[1,"input-container","password-container"],["for","password","trans",""],["type","password","id","password","formControlName","password","required",""]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h2",1),s._uU(2,"Credentials Required"),s.qZA(),s.TgZ(3,"button",2),s.NdJ("click",function(){return e.close()}),s._UZ(4,"mat-icon",3),s.qZA(),s.qZA(),s.YNc(5,Ft,10,3,"form",4),s.ALo(6,"async")),2&t&&(s.xp6(5),s.Q6J("ngIf",s.lcZ(6,1,e.errors$)))},directives:[St.uh,p.P,K.Hw,g.O5,R.JL,R.sg,St.xY,St.H8,m.lW,R.Fj,R.JJ,R.u,R.Q7],pipes:[g.Ov],styles:["[_nghost-%COMP%]{display:block;width:400px;max-width:100%}"],changeDetection:0}),t})();var Zt=n(5381);let Rt=(()=>{class t{constructor(t,e,n,i,s,r,o,a){this.httpClient=t,this.currentUser=e,this.router=n,this.settings=i,this.toast=s,this.auth=r,this.i18n=o,this.modal=a,this.windowHeight=550,this.windowWidth=650,this.listenForMessageFromPopup()}loginWith(t){return this.openNewSocialAuthWindow("secure/auth/social/"+t+"/login")}connect(t){return this.openNewSocialAuthWindow("secure/auth/social/"+t+"/connect")}retrieveProfile(t){return this.openNewSocialAuthWindow("secure/auth/social/"+t+"/retrieve-profile")}disconnect(t){return this.httpClient.post("auth/social/"+t+"/disconnect")}socialLoginCallback(t,e=null){if(t)switch(t.toUpperCase()){case"SUCCESS":this.currentUser.assignCurrent(e.user),this.router.navigate([this.auth.getRedirectUri()]);break;case"SUCCESS_CONNECTED":this.resolve&&this.resolve(e.user);break;case"SUCCESS_PROFILE_RETRIEVE":this.resolve&&this.resolve(e.profile);break;case"ALREADY_LOGGED_IN":this.router.navigate([this.auth.getRedirectUri()]);break;case"REQUEST_EXTRA_CREDENTIALS":this.showRequestExtraCredentialsModal({credentials:e});break;case"ERROR":const t=e||this.i18n.t("An error occurred. Please try again later");this.toast.open(t,{duration:6e3})}}showRequestExtraCredentialsModal(t){this.extraCredentialsModal=this.modal.open(Mt,t),this.extraCredentialsModal.componentInstance.onSubmit$.subscribe(t=>{t&&this.sendExtraCredentialsToBackend(t)})}sendExtraCredentialsToBackend(t){this.httpClient.post("auth/social/extra-credentials",t).subscribe(t=>{this.currentUser.assignCurrent(t.data),this.extraCredentialsModal.close(),this.router.navigate([this.auth.getRedirectUri()]).then(()=>{this.toast.open("Accounts connected")})},this.extraCredentialsModal.componentInstance.handleErrors.bind(this.extraCredentialsModal.componentInstance))}openNewSocialAuthWindow(t){const e=screen.width/2-this.windowWidth/2,n=screen.height/2-this.windowHeight/2;return new Promise(i=>{this.resolve=i,window.open(t,"Authenticate Account","menubar=0, location=0, toolbar=0, titlebar=0, status=0, scrollbars=1, width="+this.windowWidth+", height="+this.windowHeight+", left="+e+", top="+n)})}listenForMessageFromPopup(){window.addEventListener("message",t=>{"social-auth"===t.data.type&&-1!==this.settings.getBaseUrl().indexOf(t.origin)&&this.socialLoginCallback(t.data.status,t.data.callbackData)},!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(u.r),s.LFG(F.I),s.LFG(r.F0),s.LFG(c.Z),s.LFG(N.F),s.LFG(M.e),s.LFG(T.Z),s.LFG(Zt.u))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Lt=new s.OlP("APP_CONFIG");let Nt=(()=>{class t{constructor(t){this.injector=t,this.settings=this.injector.get(c.Z),this.currentUser=this.injector.get(F.I),this.i18n=this.injector.get(T.Z),this.injector.get(Lt).forEach(t=>this.settings.merge({vebto:t})),this.registerIcons()}bootstrap(t){return t||(t=window.bootstrapData),t?(this.handleData(t),new Promise(t=>t())):new Promise((t,e)=>{const n=encodeURIComponent(window.location.href);this.injector.get(u.r).get("bootstrap-data?original_url="+n).subscribe(e=>{this.handleData(e.data),t()},t=>{console.log("bootstrap error",t),e()})})}handleData(t){const e=JSON.parse(atob(t));return this.settings.setMultiple(e.settings),e.i18n&&this.i18n.setLocalization(e.i18n),this.currentUser.init({guestsRole:e.guests_role,user:e.user}),this.data=e,this.settings.csrfToken=e.csrf_token,this.injector.get(H.f).registerThemes(this.data.themes),this.injector.get(C.f).init(),e}registerIcons(){const t=this.settings.getAssetUrl("icons/merged.svg?v6");this.injector.get(K.jv).addSvgIconSet(this.injector.get(i.H7).bypassSecurityTrustResourceUrl(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Ut=n(7539),qt=n(1436),Bt=n(3297);function jt(t,e){if(1&t&&(s.TgZ(0,"p",15),s._UZ(1,"mat-icon",16),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(3),s.Oqu(t.email)}}function zt(t,e){if(1&t&&(s.TgZ(0,"p",15),s._UZ(1,"mat-icon",16),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(3),s.Oqu(t.password)}}function $t(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",19),s.NdJ("click",function(){return s.CHM(t),s.oxw(3).socialAuth.loginWith("envato")}),s._UZ(1,"mat-icon",20),s.TgZ(2,"span",21),s._uU(3,"Sign in with Envato instead"),s.qZA(),s.qZA()}}function Yt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",26),s.NdJ("click",function(){return s.CHM(t),s.oxw(4).socialAuth.loginWith("facebook")}),s.ALo(1,"trans"),s._UZ(2,"mat-icon",27),s.qZA()}2&t&&s.Q6J("matTooltip",s.lcZ(1,1,"Login with facebook"))}function Vt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",28),s.NdJ("click",function(){return s.CHM(t),s.oxw(4).socialAuth.loginWith("google")}),s.ALo(1,"trans"),s._UZ(2,"mat-icon",29),s.qZA()}2&t&&s.Q6J("matTooltip",s.lcZ(1,1,"Login with google"))}function Ht(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",30),s.NdJ("click",function(){return s.CHM(t),s.oxw(4).socialAuth.loginWith("twitter")}),s.ALo(1,"trans"),s._UZ(2,"mat-icon",31),s.qZA()}2&t&&s.Q6J("matTooltip",s.lcZ(1,1,"Login with twitter"))}function Gt(t,e){if(1&t&&(s.TgZ(0,"div",22),s.YNc(1,Yt,3,3,"button",23),s.YNc(2,Vt,3,3,"button",24),s.YNc(3,Ht,3,3,"button",25),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.Q6J("ngIf",t.settings.get("social.facebook.enable")),s.xp6(1),s.Q6J("ngIf",t.settings.get("social.google.enable")),s.xp6(1),s.Q6J("ngIf",t.settings.get("social.twitter.enable"))}}function Jt(t,e){if(1&t&&(s.ynx(0),s.YNc(1,$t,4,0,"button",17),s.YNc(2,Gt,4,3,"ng-template",null,18,s.W1O),s.BQk()),2&t){const t=s.MAs(3),e=s.oxw(2);s.xp6(1),s.Q6J("ngIf",e.settings.get("social.envato.enable"))("ngIfElse",t)}}const Qt=function(t){return{siteName:t}},Wt=function(){return["/forgot-password"]};function Kt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"form",1),s.NdJ("ngSubmit",function(){return s.CHM(t),s.oxw().login()}),s.TgZ(1,"div",2),s._uU(2),s.qZA(),s.TgZ(3,"div",3),s.TgZ(4,"div",4),s.TgZ(5,"label",5),s._uU(6,"Email"),s.qZA(),s._UZ(7,"input",6),s.YNc(8,jt,4,1,"p",7),s.qZA(),s.TgZ(9,"div",4),s.TgZ(10,"div",8),s.TgZ(11,"label",9),s._uU(12,"Password"),s.qZA(),s.TgZ(13,"a",10),s._uU(14,"Forgot your password?"),s.qZA(),s.qZA(),s._UZ(15,"input",11),s.YNc(16,zt,4,1,"p",7),s.qZA(),s.qZA(),s.TgZ(17,"mat-checkbox",12),s._uU(18,"Stay signed in for a month"),s.qZA(),s.TgZ(19,"button",13),s.ALo(20,"async"),s._uU(21,"Continue"),s.qZA(),s.YNc(22,Jt,4,2,"ng-container",14),s.qZA()}if(2&t){const t=e.ngIf,n=s.oxw();s.Q6J("formGroup",n.form),s.xp6(1),s.Q6J("transValues",s.VKq(10,Qt,n.settings.get("branding.site_name"))),s.xp6(1),s.hij(" ",n.route.snapshot.data.message||"Sign in to your account"," "),s.xp6(6),s.Q6J("ngIf",t.email),s.xp6(5),s.Q6J("routerLink",s.DdM(12,Wt)),s.xp6(3),s.Q6J("ngIf",t.password),s.xp6(3),s.Q6J("disabled",s.lcZ(20,8,n.loading$)),s.xp6(3),s.Q6J("ngIf",!n.settings.get("registration.disable"))}}let Xt=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l){this.auth=t,this.socialAuth=e,this.settings=n,this.route=i,this.router=s,this.user=r,this.bootstrapper=o,this.fb=a,this.toast=l,this.loading$=new E.X(!1),this.form=this.fb.group({email:[""],password:[""],remember:[!0]}),this.errResponse$=new E.X({}),this.hydrateModel()}ngOnInit(){this.auth.forcedEmail$.pipe((0,o.h)(t=>!!t)).subscribe(t=>{this.form.get("email").setValue(t),this.form.get("email").disable()})}login(){this.loading$.next(!0),this.auth.login(this.form.getRawValue()).subscribe(t=>{this.bootstrapper.bootstrap(t.data),this.router.navigate([this.auth.getRedirectUri()]).then(()=>{this.loading$.next(!1)})},t=>this.handleLoginError(t))}hydrateModel(){if(this.settings.get("common.site.demo"))if(this.settings.get("vebto.demo.email"))this.form.patchValue({email:this.settings.get("vebto.demo.email"),password:this.settings.get("vebto.demo.password")});else{let t=""+Math.floor(100*Math.random());t=("0000"+t).substr(-3,3),this.form.patchValue({email:"admin@demo"+t+".com",password:"admin"})}}handleLoginError(t){var e;this.loading$.next(!1),"validation.email_confirmed"===(null===(e=t.errors)||void 0===e?void 0:e.email)?this.toast.open("Please confirm your email address.",{action:"Resend Email",duration:6e3}).onAction().subscribe(()=>{this.loading$.next(!0),this.auth.resendEmailConfirmation(this.form.value.email).pipe((0,L.x)(()=>this.loading$.next(!1))).subscribe(()=>{this.toast.open("Confirmation email sent.")})}):this.errResponse$.next(t.errors)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(M.e),s.Y36(Rt),s.Y36(c.Z),s.Y36(r.gz),s.Y36(r.F0),s.Y36(F.I),s.Y36(Nt),s.Y36(R.qu),s.Y36(N.F))},t.\u0275cmp=s.Xpm({type:t,selectors:[["login"]],decls:3,vars:3,consts:[["ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["ngNativeValidate","",3,"formGroup","ngSubmit"],["trans","",1,"header",3,"transValues"],[1,"many-inputs"],[1,"input-container"],["for","login-email","trans",""],["type","email","formControlName","email","id","login-email","required",""],["class","error big-error",4,"ngIf"],[1,"label-with-action"],["for","login-password","trans",""],["tabindex","-1","trans","",1,"forgot-password",3,"routerLink"],["type","password","formControlName","password","id","login-password","required",""],["name","remember-me","color","accent","formControlName","remember","trans","",1,"remember-me"],["mat-raised-button","","color","accent","type","submit","trans","",1,"primary-button",3,"disabled"],[4,"ngIf"],[1,"error","big-error"],["svgIcon","warning"],["type","button","class","no-style alternative-signin-method",3,"click",4,"ngIf","ngIfElse"],["defaultSocialAuth",""],["type","button",1,"no-style","alternative-signin-method",3,"click"],["svgIcon","envato-custom"],["trans",""],[1,"social-icons","center"],["type","button","mat-icon-button","","class","social-icon no-style facebook",3,"matTooltip","click",4,"ngIf"],["type","button","mat-icon-button","","class","social-icon no-style google",3,"matTooltip","click",4,"ngIf"],["type","button","mat-icon-button","","class","social-icon no-style twitter",3,"matTooltip","click",4,"ngIf"],["type","button","mat-icon-button","",1,"social-icon","no-style","facebook",3,"matTooltip","click"],["svgIcon","facebook"],["type","button","mat-icon-button","",1,"social-icon","no-style","google",3,"matTooltip","click"],["svgIcon","google"],["type","button","mat-icon-button","",1,"social-icon","no-style","twitter",3,"matTooltip","click"],["svgIcon","twitter"]],template:function(t,e){1&t&&(s.TgZ(0,"auth-page"),s.YNc(1,Kt,23,13,"form",0),s.ALo(2,"async"),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",s.lcZ(2,1,e.errResponse$)))},directives:[Ct,g.O5,R.JL,R.sg,p.P,R.Fj,R.JJ,R.u,R.Q7,r.yS,Ut.oG,m.lW,K.Hw,qt.gM],pipes:[g.Ov,Bt.R],styles:[""],changeDetection:0}),t})();var te=n(6966);function ee(t,e){if(1&t&&(s.TgZ(0,"p",17),s._UZ(1,"mat-icon",18),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(3),s.Oqu(t.email)}}function ne(t,e){if(1&t&&(s.TgZ(0,"p",17),s._UZ(1,"mat-icon",18),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(3),s.Oqu(t.password)}}function ie(t,e){if(1&t&&(s.TgZ(0,"p",17),s._UZ(1,"mat-icon",18),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.qZA()),2&t){const t=s.oxw(2).ngIf;s.xp6(3),s.Oqu(t.purchase_code)}}function se(t,e){if(1&t&&(s.TgZ(0,"div",5),s.TgZ(1,"label",19),s._uU(2,"Envato Purchase Code"),s.qZA(),s._UZ(3,"input",20),s.YNc(4,ie,4,1,"p",8),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(4),s.Q6J("ngIf",t.purchase_code)}}function re(t,e){if(1&t&&(s.TgZ(0,"a",26),s.TgZ(1,"strong"),s._uU(2),s.ALo(3,"trans"),s.qZA(),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("href","link"===t.type?t.action:e.settings.getBaseUrl()+"/"+t.action,s.LSH),s.xp6(2),s.Oqu(s.lcZ(3,2,t.label))}}function oe(t,e){if(1&t&&(s.TgZ(0,"strong"),s._uU(1),s.ALo(2,"trans"),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.Oqu(s.lcZ(2,1,t.label))}}function ae(t,e){if(1&t&&(s.TgZ(0,"mat-checkbox",23),s.TgZ(1,"span",24),s._uU(2,"I accept the"),s.qZA(),s._uU(3," "),s.YNc(4,re,4,4,"a",25),s.YNc(5,oe,3,3,"strong",16),s.qZA()),2&t){const t=e.$implicit;s.Q6J("formControlName",t.id),s.xp6(4),s.Q6J("ngIf",t.action),s.xp6(1),s.Q6J("ngIf",!t.action)}}function le(t,e){if(1&t&&(s.TgZ(0,"div",21),s.YNc(1,ae,6,3,"mat-checkbox",22),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("ngForOf",t.registerPolicies)}}function ce(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",29),s.NdJ("click",function(){return s.CHM(t),s.oxw(3).socialAuth.loginWith("envato")}),s._UZ(1,"mat-icon",30),s.TgZ(2,"span",24),s._uU(3,"Sign in with Envato instead"),s.qZA(),s.qZA()}}function ue(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",35),s.NdJ("click",function(){return s.CHM(t),s.oxw(4).socialAuth.loginWith("facebook")}),s.ALo(1,"trans"),s._UZ(2,"mat-icon",36),s.qZA()}2&t&&s.Q6J("matTooltip",s.lcZ(1,1,"Login with facebook"))}function he(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",37),s.NdJ("click",function(){return s.CHM(t),s.oxw(4).socialAuth.loginWith("google")}),s.ALo(1,"trans"),s._UZ(2,"mat-icon",38),s.qZA()}2&t&&s.Q6J("matTooltip",s.lcZ(1,1,"Login with google"))}function de(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",39),s.NdJ("click",function(){return s.CHM(t),s.oxw(4).socialAuth.loginWith("twitter")}),s.ALo(1,"trans"),s._UZ(2,"mat-icon",40),s.qZA()}2&t&&s.Q6J("matTooltip",s.lcZ(1,1,"Login with twitter"))}function pe(t,e){if(1&t&&(s.TgZ(0,"div",31),s.YNc(1,ue,3,3,"button",32),s.YNc(2,he,3,3,"button",33),s.YNc(3,de,3,3,"button",34),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.Q6J("ngIf",t.settings.get("social.facebook.enable")),s.xp6(1),s.Q6J("ngIf",t.settings.get("social.google.enable")),s.xp6(1),s.Q6J("ngIf",t.settings.get("social.twitter.enable"))}}function ge(t,e){if(1&t&&(s.ynx(0),s.YNc(1,ce,4,0,"button",27),s.YNc(2,pe,4,3,"ng-template",null,28,s.W1O),s.BQk()),2&t){const t=s.MAs(3),e=s.oxw(2);s.xp6(1),s.Q6J("ngIf",e.settings.get("social.envato.enable"))("ngIfElse",t)}}const me=function(t){return{siteName:t}};function fe(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"form",2),s.NdJ("ngSubmit",function(){return s.CHM(t),s.oxw().register()}),s.TgZ(1,"div",3),s._uU(2),s.qZA(),s.TgZ(3,"div",4),s.TgZ(4,"div",5),s.TgZ(5,"label",6),s._uU(6,"Email"),s.qZA(),s._UZ(7,"input",7),s.YNc(8,ee,4,1,"p",8),s.qZA(),s.TgZ(9,"div",5),s.TgZ(10,"label",9),s._uU(11,"Password"),s.qZA(),s._UZ(12,"input",10),s.YNc(13,ne,4,1,"p",8),s.qZA(),s.TgZ(14,"div",5),s.TgZ(15,"label",11),s._uU(16,"Confirm Password"),s.qZA(),s._UZ(17,"input",12),s.qZA(),s.YNc(18,se,5,1,"div",13),s.qZA(),s.YNc(19,le,2,1,"div",14),s.TgZ(20,"button",15),s.ALo(21,"async"),s._uU(22,"Create Account"),s.qZA(),s.YNc(23,ge,4,2,"ng-container",16),s.qZA()}if(2&t){const t=e.ngIf,n=s.oxw();s.Q6J("formGroup",n.form),s.xp6(1),s.Q6J("transValues",s.VKq(11,me,n.settings.get("branding.site_name"))),s.xp6(1),s.hij(" ",n.route.snapshot.data.message||"Create a new account"," "),s.xp6(6),s.Q6J("ngIf",t.email),s.xp6(5),s.Q6J("ngIf",t.password),s.xp6(5),s.Q6J("ngIf",n.settings.get("envato.enable")&&n.settings.get("envato.require_purchase_code")),s.xp6(1),s.Q6J("ngIf",n.registerPolicies.length),s.xp6(1),s.Q6J("disabled",s.lcZ(21,9,n.loading$)),s.xp6(3),s.Q6J("ngIf",!n.settings.get("registration.disable"))}}let _e=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c){this.auth=t,this.socialAuth=e,this.settings=n,this.route=i,this.user=s,this.router=r,this.toast=o,this.bootstrapper=a,this.recaptcha=l,this.fb=c,this.loading$=new E.X(!1),this.registerPolicies=[],this.form=this.fb.group({email:[""],password:[""],password_confirmation:[""],purchase_code:[""]}),this.errors$=new E.X({})}ngOnInit(){this.registerPolicies=this.settings.getJson("register_policies",[]),this.registerPolicies.forEach(t=>{t.id=(0,te.V)(t.label,"_"),this.form.addControl(t.id,new R.NI(!1))}),this.recaptcha.enabledFor("registration")&&this.recaptcha.load(),this.auth.forcedEmail$.pipe((0,o.h)(t=>!!t)).subscribe(t=>{this.form.get("email").setValue(t),this.form.get("email").disable()})}register(){return(0,h.mG)(this,void 0,void 0,function*(){if(this.loading$.next(!0),this.recaptcha.enabledFor("registration")&&!(yield this.recaptcha.verify("registration")))return this.loading$.next(!1),this.toast.open("Could not verify you are human.");this.auth.register(this.form.getRawValue()).subscribe(t=>{"needs_email_verification"===t.status?this.router.navigate(["/login"]).then(()=>{this.loading$.next(!1),this.toast.open(t.message,{duration:12e3})}):(this.bootstrapper.bootstrap(t.bootstrapData),this.router.navigate([this.auth.getRedirectUri()]).then(()=>{this.loading$.next(!1),this.toast.open("Registered successfully.")}))},t=>{this.errors$.next(t.errors),this.loading$.next(!1)})})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(M.e),s.Y36(Rt),s.Y36(c.Z),s.Y36(r.gz),s.Y36(F.I),s.Y36(r.F0),s.Y36(N.F),s.Y36(Nt),s.Y36(q),s.Y36(R.qu))},t.\u0275cmp=s.Xpm({type:t,selectors:[["register"]],decls:3,vars:3,consts:[["infoRowTarget","signin"],["ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["ngNativeValidate","",3,"formGroup","ngSubmit"],["trans","",1,"header",3,"transValues"],[1,"many-inputs"],[1,"input-container"],["for","email","trans",""],["type","email","formControlName","email","id","email","required",""],["class","error",4,"ngIf"],["for","register_password","trans",""],["type","password","formControlName","password","id","register_password","required",""],["for","register_password_confirmation","trans",""],["type","password","formControlName","password_confirmation","id","register_password_confirmation","required",""],["class","input-container",4,"ngIf"],["class","policies",4,"ngIf"],["mat-raised-button","","color","accent","type","submit","trans","",1,"primary-button",3,"disabled"],[4,"ngIf"],[1,"error"],["svgIcon","warning"],["for","purchase_code","trans",""],["type","text","formControlName","purchase_code","id","purchase_code","required",""],[1,"policies"],["name","remember-me","class","policy-checkbox","color","accent","required","","trans","",3,"formControlName",4,"ngFor","ngForOf"],["name","remember-me","color","accent","required","","trans","",1,"policy-checkbox",3,"formControlName"],["trans",""],["target","_blank",3,"href",4,"ngIf"],["target","_blank",3,"href"],["type","button","class","no-style alternative-signin-method",3,"click",4,"ngIf","ngIfElse"],["defaultSocialAuth",""],["type","button",1,"no-style","alternative-signin-method",3,"click"],["svgIcon","envato-custom"],[1,"social-icons","center"],["type","button","mat-icon-button","","class","social-icon no-style facebook",3,"matTooltip","click",4,"ngIf"],["type","button","mat-icon-button","","class","social-icon no-style google",3,"matTooltip","click",4,"ngIf"],["type","button","mat-icon-button","","class","social-icon no-style twitter",3,"matTooltip","click",4,"ngIf"],["type","button","mat-icon-button","",1,"social-icon","no-style","facebook",3,"matTooltip","click"],["svgIcon","facebook"],["type","button","mat-icon-button","",1,"social-icon","no-style","google",3,"matTooltip","click"],["svgIcon","google"],["type","button","mat-icon-button","",1,"social-icon","no-style","twitter",3,"matTooltip","click"],["svgIcon","twitter"]],template:function(t,e){1&t&&(s.TgZ(0,"auth-page",0),s.YNc(1,fe,24,13,"form",1),s.ALo(2,"async"),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",s.lcZ(2,1,e.errors$)))},directives:[Ct,g.O5,R.JL,R.sg,p.P,R.Fj,R.JJ,R.u,R.Q7,m.lW,K.Hw,g.sg,Ut.oG,Ut.e_,qt.gM],pipes:[g.Ov,Bt.R],styles:[".policies[_ngcontent-%COMP%]{margin-top:32px}.policy-checkbox[_ngcontent-%COMP%]{display:block;margin-bottom:3px}"],changeDetection:0}),t})();var be=n(6584),ve=n(962);function ye(t,e){if(1&t&&(s.TgZ(0,"p",14),s._uU(1),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.Oqu(t.email)}}function we(t,e){if(1&t&&(s.TgZ(0,"p",15),s._uU(1),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.Oqu(t.password)}}function xe(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"form",1),s.NdJ("ngSubmit",function(){return s.CHM(t),s.oxw().resetPassword()}),s.TgZ(1,"div",2),s._uU(2,"Reset your account password"),s.qZA(),s.TgZ(3,"div",3),s.TgZ(4,"div",4),s.TgZ(5,"label",5),s._uU(6,"Email"),s.qZA(),s._UZ(7,"input",6),s.YNc(8,ye,2,1,"p",7),s.qZA(),s.TgZ(9,"div",4),s.TgZ(10,"label",8),s._uU(11,"New Password"),s.qZA(),s._UZ(12,"input",9),s.YNc(13,we,2,1,"p",10),s.qZA(),s.TgZ(14,"div",4),s.TgZ(15,"label",11),s._uU(16,"Confirm New Password"),s.qZA(),s._UZ(17,"input",12),s.qZA(),s.qZA(),s.TgZ(18,"button",13),s.ALo(19,"async"),s._uU(20,"Reset Password"),s.qZA(),s.qZA()}if(2&t){const t=e.ngIf,n=s.oxw();s.Q6J("formGroup",n.form),s.xp6(8),s.Q6J("ngIf",t.email),s.xp6(5),s.Q6J("ngIf",t.password),s.xp6(5),s.Q6J("disabled",s.lcZ(19,4,n.loading$))}}const Ce=[{path:"login",component:Xt,canActivate:[Z]},{path:"register",component:_e,canActivate:[Z,(()=>{class t{constructor(t,e,n){this.settings=t,this.router=e,this.localStorage=n}canActivate(t,e){return!(this.settings.get("registration.disable")&&!this.localStorage.get(be.b)&&(this.router.navigate(["/login"]),1))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(c.Z),s.LFG(r.F0),s.LFG(ve.m))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()]},{path:"forgot-password",component:Et,canActivate:[Z]},{path:"password/reset/:token",component:(()=>{class t{constructor(t,e,n,i,s,r,o){this.auth=t,this.settings=e,this.route=n,this.router=i,this.toast=s,this.currentUser=r,this.fb=o,this.loading$=new E.X(!1),this.form=this.fb.group({email:[""],password:[""],password_confirmation:[""],token:[""]}),this.errors$=new E.X({})}resetPassword(){this.loading$.next(!0),this.form.patchValue({token:this.route.snapshot.params.token}),this.auth.resetPassword(this.form.value).subscribe(t=>{this.currentUser.assignCurrent(t.data),this.router.navigate([this.auth.getRedirectUri()]).then(()=>{this.loading$.next(!1),this.toast.open("Your password has been reset.")})},t=>{this.errors$.next(t.errors),this.loading$.next(!1)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(M.e),s.Y36(c.Z),s.Y36(r.gz),s.Y36(r.F0),s.Y36(N.F),s.Y36(F.I),s.Y36(R.qu))},t.\u0275cmp=s.Xpm({type:t,selectors:[["reset-password"]],hostAttrs:[1,"auth-page"],decls:3,vars:3,consts:[["ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["ngNativeValidate","",3,"formGroup","ngSubmit"],["trans","",1,"header"],[1,"many-inputs"],[1,"input-container"],["for","email","trans",""],["type","email","formControlName","email","id","email","required",""],["class","error email-error",4,"ngIf"],["for","password","trans",""],["type","password","formControlName","password","id","password","required",""],["class","error password-error",4,"ngIf"],["for","password_confirmation","trans",""],["type","password","formControlName","password_confirmation","name","password_confirmation","id","password_confirmation","required",""],["mat-raised-button","","color","accent","type","submit","trans","",1,"primary-button",3,"disabled"],[1,"error","email-error"],[1,"error","password-error"]],template:function(t,e){1&t&&(s.TgZ(0,"auth-page"),s.YNc(1,xe,21,6,"form",0),s.ALo(2,"async"),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",s.lcZ(2,1,e.errors$)))},directives:[Ct,g.O5,R.JL,R.sg,p.P,R.Fj,R.JJ,R.u,R.Q7,m.lW],pipes:[g.Ov],styles:[""],changeDetection:0}),t})(),canActivate:[Z]},{path:"workspace/join/register",component:_e,data:{message:"To join your team on :siteName, create an account"}},{path:"workspace/join/login",component:Xt,data:{message:"To join your team on :siteName, login to your account"}}];let ke=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.Bz.forChild(Ce)],r.Bz]}),t})();var Ae=n(9866),Ee=n(3389),Se=n(5122);let Te=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ke,g.ez,R.u5,R.UX,r.Bz,Ee.p,Ae.N,Se.N,St.Is,K.Ps,m.ot,qt.AV,Ut.p9]]}),t})();var Oe=n(9773),Ie=n(5758),Pe=n(9193),De=n(3429);let Fe=(()=>{class t{constructor(t,e,n,i,s){this.users=t,this.router=e,this.currentUser=n,this.values=i,this.auth=s}resolve(t){return(0,Ie.D)([this.users.get(this.currentUser.get("id"),{with:["roles","social_profiles"]}).pipe((0,b.U)(t=>t.user)),this.values.get(["timezones","countries","localizations"])]).pipe((0,v.K)(()=>(this.router.navigate([this.auth.getRedirectUri()]),Pe.E)),(0,Oe.zg)(t=>t?(0,w.of)({user:t[0],selects:t[1]}):(this.router.navigate([this.auth.getRedirectUri()]),Pe.E)))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(De.Q),s.LFG(r.F0),s.LFG(F.I),s.LFG(G.l),s.LFG(M.e))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Me=n(6313),Ze=n(3534);const Re=new s.OlP("ACCOUNT_SETTINGS_PANELS");var Le=n(8208),Ne=n(6967),Ue=n.n(Ne);function qe(t,e){if(1&t&&(s.TgZ(0,"div",12),s._uU(1),s.ALo(2,"async"),s.qZA()),2&t){const t=s.oxw(2);let e;s.xp6(1),s.Oqu(null==(e=s.lcZ(2,1,t.errors$))?null:e.tokenName)}}function Be(t,e){if(1&t&&(s.TgZ(0,"div",9),s._UZ(1,"input",10),s.YNc(2,qe,3,3,"div",11),s.ALo(3,"async"),s.qZA()),2&t){const t=s.oxw();let e;s.xp6(2),s.Q6J("ngIf",null==(e=s.lcZ(3,1,t.errors$))?null:e.tokenName)}}function je(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",13),s.TgZ(2,"input",14),s.NdJ("click",function(){return s.CHM(t),s.oxw().focusInput()})("change",function(){return s.CHM(t),s.oxw().focusInput()}),s.ALo(3,"async"),s.qZA(),s.TgZ(4,"button",15),s.NdJ("click",function(){return s.CHM(t),s.oxw().copyLinkToClipboard()}),s._uU(5,"Copy"),s.qZA(),s.qZA(),s.TgZ(6,"p"),s._UZ(7,"mat-icon",16),s.TgZ(8,"span",17),s._uU(9,"Make sure to store this token in a safe place. After this dialog is closed, token will not be viewable anymore."),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.Q6J("value",s.lcZ(3,1,t.plainTextToken$))}}function ze(t,e){if(1&t){const t=s.EpF();s.ynx(0),s.TgZ(1,"button",18),s.NdJ("click",function(){return s.CHM(t),s.oxw().close()}),s._uU(2,"Cancel"),s.qZA(),s.TgZ(3,"button",19),s.ALo(4,"async"),s._uU(5,"create"),s.qZA(),s.BQk()}if(2&t){const t=s.oxw();s.xp6(3),s.Q6J("disabled",s.lcZ(4,1,t.loading$))}}function $e(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",18),s.NdJ("click",function(){const e=s.CHM(t).ngIf;return s.oxw().close(e)}),s._uU(1,"Close"),s.qZA()}}let Ye=(()=>{class t{constructor(t,e,n){this.auth=t,this.dialogRef=e,this.toast=n,this.form=new R.cw({name:new R.NI("")}),this.errors$=new E.X({}),this.loading$=new E.X(!1),this.plainTextToken$=new E.X(null),this.token$=new E.X(null)}close(t){this.dialogRef.close(t)}confirm(){this.loading$.next(!0),this.auth.createAccessToken(this.form.value.name).subscribe(t=>{this.loading$.next(!1),this.plainTextToken$.next(t.plainTextToken),this.token$.next(t.token)},t=>{this.loading$.next(!1),this.errors$.next(t.errors)})}copyLinkToClipboard(){this.focusInput(),Ue()(this.plainTextToken$.value)&&this.toast.open("Token copied to clipboard")}focusInput(){const t=document.getElementById("access-token-name");t.focus(),t.select()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(M.e),s.Y36(St.so),s.Y36(N.F))},t.\u0275cmp=s.Xpm({type:t,selectors:[["create-access-token-dialog"]],decls:16,vars:13,consts:[[1,"modal-header"],["mat-dialog-title","","trans",""],["type","button","mat-icon-button","","tabindex","-1",1,"close-button",3,"click"],["svgIcon","close"],["ngNativeValidate","",3,"formGroup","ngSubmit"],[1,"many-inputs"],["class","input-container",4,"ngIf"],[4,"ngIf"],["type","button","mat-button","","class","cancel-button","trans","",3,"click",4,"ngIf"],[1,"input-container"],["type","text","formControlName","name","placeholder","Enter a name...","trans-placeholder","","required","","min","3"],["class","error",4,"ngIf"],[1,"error"],[1,"input-container","plaintext-token-input-container"],["id","access-token-name","type","text","readonly","",3,"value","click","change"],["type","button","mat-flat-button","","color","accent","trans","",3,"click"],["svgIcon","warning",1,"warning-icon"],["trans",""],["type","button","mat-button","","trans","",1,"cancel-button",3,"click"],["type","submit","mat-raised-button","","color","accent","trans","",1,"submit-button",3,"disabled"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h2",1),s._uU(2,"Create new token"),s.qZA(),s.TgZ(3,"button",2),s.NdJ("click",function(){return e.close()}),s._UZ(4,"mat-icon",3),s.qZA(),s.qZA(),s.TgZ(5,"form",4),s.NdJ("ngSubmit",function(){return e.confirm()}),s.TgZ(6,"mat-dialog-content",5),s.YNc(7,Be,4,3,"div",6),s.ALo(8,"async"),s.YNc(9,je,10,3,"div",7),s.ALo(10,"async"),s.qZA(),s.TgZ(11,"mat-dialog-actions"),s.YNc(12,ze,6,3,"ng-container",7),s.ALo(13,"async"),s.YNc(14,$e,2,0,"button",8),s.ALo(15,"async"),s.qZA(),s.qZA()),2&t&&(s.xp6(5),s.Q6J("formGroup",e.form),s.xp6(2),s.Q6J("ngIf",!s.lcZ(8,5,e.plainTextToken$)),s.xp6(2),s.Q6J("ngIf",s.lcZ(10,7,e.plainTextToken$)),s.xp6(3),s.Q6J("ngIf",!s.lcZ(13,9,e.plainTextToken$)),s.xp6(2),s.Q6J("ngIf",s.lcZ(15,11,e.token$)))},directives:[St.uh,p.P,m.lW,K.Hw,R.JL,R.sg,St.xY,g.O5,St.H8,R.Fj,R.JJ,R.u,R.Q7],pipes:[g.Ov],styles:["[_nghost-%COMP%]{display:block;width:400px;max-width:100%}.plaintext-token-input-container[_ngcontent-%COMP%]{display:flex}.plaintext-token-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{flex:1 1 auto;border-top-right-radius:0;border-bottom-right-radius:0}.plaintext-token-input-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:88px;flex:0 0 88px;border-top-left-radius:0;border-bottom-left-radius:0}.warning-icon[_ngcontent-%COMP%]{color:#f44336;width:14px;height:14px;line-height:14px;margin-right:8px;vertical-align:text-top}"],changeDetection:0}),t})();var Ve=n(7312),He=n(1378),Ge=n(6605),Je=n(757);function Qe(t,e){if(1&t){const t=s.EpF();s.ynx(0),s.TgZ(1,"span",10),s._uU(2),s.qZA(),s.TgZ(3,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).disconnectSocialAccount("envato")}),s._uU(4,"Disable"),s.qZA(),s.BQk()}if(2&t){const t=e.ngIf;s.xp6(2),s.Oqu(t)}}function We(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",12),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).connectSocialAccount("envato")}),s._uU(1,"Enable"),s.qZA()}}function Ke(t,e){if(1&t&&(s.TgZ(0,"div",4),s.TgZ(1,"div",5),s._UZ(2,"mat-icon",6),s.qZA(),s.TgZ(3,"div",7),s._uU(4,"Envato Account"),s.qZA(),s.YNc(5,Qe,5,1,"ng-container",8),s.YNc(6,We,2,0,"ng-template",null,9,s.W1O),s.qZA()),2&t){const t=s.MAs(7),e=s.oxw();s.xp6(5),s.Q6J("ngIf",e.getSocialAccountUsername("envato"))("ngIfElse",t)}}function Xe(t,e){if(1&t){const t=s.EpF();s.ynx(0),s.TgZ(1,"span",10),s._uU(2),s.qZA(),s.TgZ(3,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).disconnectSocialAccount("google")}),s._uU(4,"Disable"),s.qZA(),s.BQk()}if(2&t){const t=e.ngIf;s.xp6(2),s.Oqu(t)}}function tn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",12),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).connectSocialAccount("google")}),s._uU(1,"Enable"),s.qZA()}}function en(t,e){if(1&t&&(s.TgZ(0,"div",13),s.TgZ(1,"div",14),s._UZ(2,"mat-icon",15),s.qZA(),s.TgZ(3,"div",7),s._uU(4,"Google+ Account"),s.qZA(),s.YNc(5,Xe,5,1,"ng-container",8),s.YNc(6,tn,2,0,"ng-template",null,16,s.W1O),s.qZA()),2&t){const t=s.MAs(7),e=s.oxw();s.xp6(5),s.Q6J("ngIf",e.getSocialAccountUsername("google"))("ngIfElse",t)}}function nn(t,e){if(1&t){const t=s.EpF();s.ynx(0),s.TgZ(1,"span",10),s._uU(2),s.qZA(),s.TgZ(3,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).disconnectSocialAccount("facebook")}),s._uU(4,"Disable"),s.qZA(),s.BQk()}if(2&t){const t=e.ngIf;s.xp6(2),s.Oqu(t)}}function sn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",12),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).connectSocialAccount("facebook")}),s._uU(1,"Enable"),s.qZA()}}function rn(t,e){if(1&t&&(s.TgZ(0,"div",17),s.TgZ(1,"div",18),s._UZ(2,"mat-icon",19),s.qZA(),s.TgZ(3,"div",7),s._uU(4,"Facebook Account"),s.qZA(),s.YNc(5,nn,5,1,"ng-container",8),s.YNc(6,sn,2,0,"ng-template",null,20,s.W1O),s.qZA()),2&t){const t=s.MAs(7),e=s.oxw();s.xp6(5),s.Q6J("ngIf",e.getSocialAccountUsername("facebook"))("ngIfElse",t)}}function on(t,e){if(1&t){const t=s.EpF();s.ynx(0),s.TgZ(1,"span",10),s._uU(2),s.qZA(),s.TgZ(3,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).disconnectSocialAccount("twitter")}),s._uU(4,"Disable"),s.qZA(),s.BQk()}if(2&t){const t=e.ngIf;s.xp6(2),s.Oqu(t)}}function an(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",12),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).connectSocialAccount("twitter")}),s._uU(1,"Enable"),s.qZA()}}function ln(t,e){if(1&t&&(s.TgZ(0,"div",21),s.TgZ(1,"div",22),s._UZ(2,"mat-icon",23),s.qZA(),s.TgZ(3,"div",7),s._uU(4,"Twitter Account"),s.qZA(),s.YNc(5,on,5,1,"ng-container",8),s.YNc(6,an,2,0,"ng-template",null,24,s.W1O),s.qZA()),2&t){const t=s.MAs(7),e=s.oxw();s.xp6(5),s.Q6J("ngIf",e.getSocialAccountUsername("twitter"))("ngIfElse",t)}}let cn=(()=>{class t{constructor(t,e,n,i){this.social=t,this.toast=e,this.settings=n,this.cd=i}connectSocialAccount(t){this.social.connect(t).then(e=>{this.user.social_profiles=e.social_profiles,this.toast.open("Connected: "+t),this.cd.markForCheck()})}disconnectSocialAccount(t){this.social.disconnect(t).subscribe(()=>{this.toast.open("Disconnected: "+t);const e=this.user.social_profiles.findIndex(e=>e.service_name===t);this.user.social_profiles.splice(e,1),this.cd.markForCheck()})}getSocialAccountUsername(t){if(!this.user.social_profiles)return;const e=this.user.social_profiles.find(e=>e.service_name===t);return e&&e.username}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Rt),s.Y36(N.F),s.Y36(c.Z),s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["connect-social-accounts-panel"]],inputs:{user:"user"},decls:4,vars:4,consts:[["class","social-login-row envato-row",4,"ngIf"],["class","social-login-row google-row",4,"ngIf"],["class","social-login-row facebook-row",4,"ngIf"],["class","social-login-row twitter-row last",4,"ngIf"],[1,"social-login-row","envato-row"],[1,"icon-container","envato"],["svgIcon","envato-custom"],["trans","",1,"name"],[4,"ngIf","ngIfElse"],["envatoBlock",""],[1,"social-account-username"],["mat-raised-button","","color","accent","trans","",1,"button","primary","disable-button",3,"click"],["mat-raised-button","","color","accent","trans","",1,"button","primary","enable-button",3,"click"],[1,"social-login-row","google-row"],[1,"icon-container","google"],["svgIcon","google"],["googleBlock",""],[1,"social-login-row","facebook-row"],[1,"icon-container","facebook"],["svgIcon","facebook"],["facebookBlock",""],[1,"social-login-row","twitter-row","last"],[1,"icon-container","twitter"],["svgIcon","twitter"],["twitterBlock",""]],template:function(t,e){1&t&&(s.YNc(0,Ke,8,2,"div",0),s.YNc(1,en,8,2,"div",1),s.YNc(2,rn,8,2,"div",2),s.YNc(3,ln,8,2,"div",3)),2&t&&(s.Q6J("ngIf",e.settings.get("social.envato.enable")),s.xp6(1),s.Q6J("ngIf",e.settings.get("social.google.enable")),s.xp6(1),s.Q6J("ngIf",e.settings.get("social.facebook.enable")),s.xp6(1),s.Q6J("ngIf",e.settings.get("social.twitter.enable")))},directives:[g.O5,K.Hw,p.P,m.lW],styles:["[_nghost-%COMP%]{display:block}.social-login-row[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid var(--be-divider-default)}.social-login-row.last[_ngcontent-%COMP%]{border-bottom:none;margin-bottom:0}.social-login-row[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{display:inline-block;margin-left:15px;flex:1 1 auto}.social-login-row[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{margin-left:auto}.social-login-row[_ngcontent-%COMP%]   .button.disable-button[_ngcontent-%COMP%]{background-color:#f44336;border-color:#f44336}.social-account-username[_ngcontent-%COMP%]{margin-left:auto;margin-right:10px;color:var(--be-link);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;border-radius:3px}.icon-container.facebook[_ngcontent-%COMP%]{color:#3b5998;background-color:#3b5998}.icon-container.facebook[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{background-color:#fff}.icon-container.twitter[_ngcontent-%COMP%]{background-color:#1da1f2;color:#fff}.icon-container.google[_ngcontent-%COMP%]{background-color:#d34836;color:#fff}.icon-container.envato[_ngcontent-%COMP%]{background-color:#82b541;color:#fff}"],changeDetection:0}),t})();var un=n(6403),hn=n(8256);const dn=["extraPanelRef"];function pn(t,e){if(1&t&&s._UZ(0,"material-navbar",2),2&t){const t=s.oxw();s.Q6J("menuPosition",t.settings.get("vebto.navbar.defaultPosition"))}}function gn(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"button",50),s._UZ(2,"mat-icon",51),s.qZA(),s.TgZ(3,"mat-menu",null,52),s._UZ(5,"logged-in-user-menu"),s.qZA(),s.BQk()),2&t){const t=s.MAs(4);s.xp6(1),s.Q6J("matMenuTriggerFor",t)}}function mn(t,e){}function fn(t,e){if(1&t&&(s.TgZ(0,"div",53),s._uU(1),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.hij(" ",t.first_name," ")}}function _n(t,e){if(1&t&&(s.TgZ(0,"div",54),s._uU(1),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.hij(" ",t.last_name," ")}}function bn(t,e){if(1&t&&(s.TgZ(0,"div",55),s.TgZ(1,"div",11),s._uU(2,"Manage Social Login"),s.qZA(),s.TgZ(3,"div",12),s.TgZ(4,"div",24),s._uU(5,"Enable or disable connected social services"),s.qZA(),s._UZ(6,"connect-social-accounts-panel",56),s.ALo(7,"async"),s.qZA(),s.qZA()),2&t){const t=s.oxw(2);s.xp6(6),s.Q6J("user",s.lcZ(7,1,t.initialUser$))}}function vn(t,e){if(1&t&&(s.TgZ(0,"div",68),s._uU(1),s.qZA()),2&t){const t=s.oxw(2).ngIf;s.xp6(1),s.hij(" ",t.current_password," ")}}function yn(t,e){if(1&t&&(s.TgZ(0,"div",13),s.TgZ(1,"label",65),s._uU(2,"Current Password"),s.qZA(),s._UZ(3,"input",66),s.YNc(4,vn,2,1,"div",67),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(4),s.Q6J("ngIf",t.current_password)}}function wn(t,e){if(1&t&&(s.TgZ(0,"div",69),s._uU(1),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.hij(" ",t.new_password," ")}}function xn(t,e){if(1&t&&(s.TgZ(0,"div",70),s._uU(1),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.hij(" ",t.new_password_confirmation," ")}}function Cn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"form",57),s.NdJ("ngSubmit",function(){return s.CHM(t),s.oxw(2).changeUserPassword()}),s.TgZ(1,"div",11),s._uU(2,"Update Password"),s.qZA(),s.TgZ(3,"div",12),s.YNc(4,yn,5,1,"div",58),s.TgZ(5,"div",13),s.TgZ(6,"label",59),s._uU(7,"New Password"),s.qZA(),s._UZ(8,"input",60),s.YNc(9,wn,2,1,"div",61),s.qZA(),s.TgZ(10,"div",13),s.TgZ(11,"label",62),s._uU(12,"Confirm Password"),s.qZA(),s._UZ(13,"input",63),s.YNc(14,xn,2,1,"div",64),s.qZA(),s.qZA(),s.TgZ(15,"div",27),s.TgZ(16,"button",28),s.ALo(17,"async"),s._uU(18," Update "),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.ngIf,n=s.oxw(2);s.Q6J("formGroup",n.passwordForm),s.xp6(4),s.Q6J("ngIf",n.currentUser.get("has_password")),s.xp6(5),s.Q6J("ngIf",t.new_password),s.xp6(5),s.Q6J("ngIf",t.new_password_confirmation),s.xp6(2),s.Q6J("disabled",s.lcZ(17,5,n.loading$))}}function kn(t,e){if(1&t&&(s.TgZ(0,"option",71),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t.language),s.xp6(1),s.hij(" ",t.name," ")}}function An(t,e){if(1&t&&(s.TgZ(0,"div",72),s._uU(1),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.hij(" ",t.language," ")}}function En(t,e){if(1&t&&(s.TgZ(0,"option",71),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.s9C("value",t.code),s.xp6(1),s.hij(" ",t.name," ")}}function Sn(t,e){if(1&t&&(s.TgZ(0,"div",73),s._uU(1),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.hij(" ",t.country," ")}}function Tn(t,e){if(1&t&&(s.TgZ(0,"option",71),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t.value),s.xp6(1),s.hij(" ",t.text," ")}}function On(t,e){if(1&t&&(s.TgZ(0,"optgroup",74),s.YNc(1,Tn,2,2,"option",34),s.qZA()),2&t){const t=e.$implicit;s.Q6J("label",t.key),s.xp6(1),s.Q6J("ngForOf",t.value)}}function In(t,e){if(1&t&&(s.TgZ(0,"div",75),s._uU(1),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.hij(" ",t.timezone," ")}}function Pn(t,e){1&t&&(s.TgZ(0,"no-results-message",84),s.TgZ(1,"span",85),s._uU(2,"You have no personal access tokens yet"),s.qZA(),s.qZA())}function Dn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"li"),s.TgZ(1,"dl"),s.TgZ(2,"dt",49),s._uU(3,"Name"),s.qZA(),s.TgZ(4,"dd"),s._uU(5),s.qZA(),s.TgZ(6,"dt",49),s._uU(7,"Last Used"),s.qZA(),s.TgZ(8,"dd"),s._uU(9),s.ALo(10,"formattedDate"),s.qZA(),s.qZA(),s.TgZ(11,"button",45),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(3).maybeDeleteToken(e)}),s._uU(12," Delete "),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(5),s.Oqu(t.name),s.xp6(4),s.hij(" ",t.last_used_at?s.lcZ(10,2,t.last_used_at):"-"," ")}}const Fn=function(){return[]};function Mn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",76),s.TgZ(1,"div",77),s.TgZ(2,"div",78),s._uU(3,"Manage API Access Tokens"),s.qZA(),s.TgZ(4,"a",79),s._uU(5,"Documentation"),s.qZA(),s.qZA(),s.TgZ(6,"div",12),s.YNc(7,Pn,3,0,"no-results-message",80),s.ALo(8,"async"),s.TgZ(9,"ul",81),s.YNc(10,Dn,13,4,"li",82),s.ALo(11,"async"),s.qZA(),s.qZA(),s.TgZ(12,"div",27),s.TgZ(13,"button",83),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).openCreateTokenDialog()}),s._uU(14," Create new token "),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.xp6(7),s.Q6J("ngIf",!(null!=s.lcZ(8,2,t.initialUser$).tokens&&s.lcZ(8,2,t.initialUser$).tokens.length)),s.xp6(3),s.Q6J("ngForOf",s.lcZ(11,4,t.initialUser$).tokens||s.DdM(6,Fn))}}function Zn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",3),s.TgZ(1,"h1",4),s.TgZ(2,"span",5),s._uU(3,"Account Settings"),s.qZA(),s.YNc(4,gn,6,1,"ng-container",6),s.ALo(5,"async"),s.qZA(),s.TgZ(6,"div",7),s._uU(7," View and update your account details, profile and more. "),s.qZA(),s.TgZ(8,"div",8),s.YNc(9,mn,0,0,"ng-template",null,9,s.W1O),s.TgZ(11,"form",10),s.NdJ("ngSubmit",function(){return s.CHM(t),s.oxw().updateAccountSettings()}),s.TgZ(12,"div",11),s._uU(13,"Update Name or Profile Image"),s.qZA(),s.TgZ(14,"div",12),s.TgZ(15,"div",13),s.TgZ(16,"label",14),s._uU(17,"First Name"),s.qZA(),s._UZ(18,"input",15),s.YNc(19,fn,2,1,"div",16),s.qZA(),s.TgZ(20,"div",13),s.TgZ(21,"label",17),s._uU(22,"Last Name"),s.qZA(),s._UZ(23,"input",18),s.YNc(24,_n,2,1,"div",19),s.qZA(),s.TgZ(25,"div",20),s.TgZ(26,"label",17),s._uU(27,"Profile image"),s.qZA(),s.TgZ(28,"div",21),s._UZ(29,"img",22),s.ALo(30,"async"),s.TgZ(31,"div",23),s.TgZ(32,"div",24),s._uU(33," For best results, upload a high resolution image. "),s.qZA(),s.TgZ(34,"button",25),s.NdJ("click",function(){return s.CHM(t),s.oxw().openAvatarUploadDialog()}),s._uU(35," Upload Image "),s.qZA(),s.TgZ(36,"button",26),s.NdJ("click",function(){return s.CHM(t),s.oxw().deleteAvatar()}),s._uU(37," Remove Image "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(38,"div",27),s.TgZ(39,"button",28),s.ALo(40,"async"),s._uU(41," Save Changes "),s.qZA(),s.qZA(),s.qZA(),s.YNc(42,bn,8,3,"div",29),s.YNc(43,Cn,19,7,"form",30),s.ALo(44,"async"),s.TgZ(45,"form",31),s.NdJ("ngSubmit",function(){return s.CHM(t),s.oxw().updateAccountSettings()}),s.TgZ(46,"div",11),s._uU(47,"Update Account Preferences"),s.qZA(),s.TgZ(48,"div",12),s.TgZ(49,"div",13),s.TgZ(50,"label",32),s._uU(51,"Language"),s.qZA(),s.TgZ(52,"select",33),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().changeLanguage(e)}),s.YNc(53,kn,2,2,"option",34),s.qZA(),s.YNc(54,An,2,1,"div",35),s.qZA(),s.TgZ(55,"div",13),s.TgZ(56,"label",36),s._uU(57,"Country"),s.qZA(),s.TgZ(58,"select",37),s.YNc(59,En,2,2,"option",34),s.qZA(),s.YNc(60,Sn,2,1,"div",38),s.qZA(),s.TgZ(61,"div",13),s.TgZ(62,"label",39),s._uU(63,"Timezone"),s.qZA(),s.TgZ(64,"select",40),s.YNc(65,On,2,2,"optgroup",41),s.ALo(66,"keyvalue"),s.qZA(),s.YNc(67,In,2,1,"div",42),s.qZA(),s.qZA(),s.TgZ(68,"div",27),s.TgZ(69,"button",28),s.ALo(70,"async"),s._uU(71," Save Changes "),s.qZA(),s.qZA(),s.qZA(),s.YNc(72,Mn,15,7,"div",43),s.TgZ(73,"div",44),s.TgZ(74,"div",11),s._uU(75,"Danger Zone"),s.qZA(),s.TgZ(76,"div",12),s.TgZ(77,"button",45),s.NdJ("click",function(){return s.CHM(t),s.oxw().openConfirmAccountDeleteDialog()}),s._uU(78," Delete Account "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(79,"div",46),s.TgZ(80,"button",47),s.NdJ("click",function(){return s.CHM(t),s.oxw().auth.logOut()}),s._UZ(81,"mat-icon",48),s.TgZ(82,"span",49),s._uU(83,"Logout"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.ngIf,n=s.oxw();s.xp6(4),s.Q6J("ngIf",s.lcZ(5,17,n.breakpoints.isMobile$)),s.xp6(7),s.Q6J("formGroup",n.userForm),s.xp6(8),s.Q6J("ngIf",t.first_name),s.xp6(5),s.Q6J("ngIf",t.last_name),s.xp6(5),s.Q6J("src",s.lcZ(30,19,n.avatar$),s.LSH),s.xp6(10),s.Q6J("disabled",s.lcZ(40,21,n.loading$)),s.xp6(3),s.Q6J("ngIf",n.settings.anySocialLoginEnabled()),s.xp6(1),s.Q6J("ngIf",s.lcZ(44,23,n.passwordErrors$)),s.xp6(2),s.Q6J("formGroup",n.userForm),s.xp6(8),s.Q6J("ngForOf",n.selects.localizations),s.xp6(1),s.Q6J("ngIf",t.language),s.xp6(5),s.Q6J("ngForOf",n.selects.countries),s.xp6(1),s.Q6J("ngIf",t.country),s.xp6(5),s.Q6J("ngForOf",s.lcZ(66,25,n.selects.timezones)),s.xp6(2),s.Q6J("ngIf",t.timezone),s.xp6(2),s.Q6J("disabled",s.lcZ(70,27,n.loading$)),s.xp6(3),s.Q6J("ngIf",n.apiEnabled())}}let Rn=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,u,h,d,p,g,m){this.settings=t,this.route=e,this.users=n,this.currentUser=i,this.toast=s,this.uploads=r,this.i18n=o,this.localizations=a,this.auth=l,this.avatarValidator=c,this.fb=u,this.componentFactoryResolver=h,this.breakpoints=d,this.cd=p,this.dialog=g,this.extraPanels=m,this.loading$=new E.X(!1),this.avatar$=new E.X(null),this.initialUser$=new E.X(null),this.userErrors$=new E.X({}),this.passwordErrors$=new E.X({}),this.userForm=this.fb.group({first_name:[""],last_name:[""],language:[""],timezone:[""],country:[""]}),this.passwordForm=this.fb.group({current_password:[""],new_password:[""],new_password_confirmation:[""]}),this.selects={timezones:{},countries:[],localizations:[]}}ngOnInit(){this.route.data.subscribe(t=>{this.initialUser$.next(t.api.user),this.userForm.patchValue(t.api.user),this.avatar$.next(t.api.user.avatar),this.selects=t.api.selects})}ngAfterViewInit(){this.loadExtraPanels()}updateAccountSettings(){this.loading$.next(!0),this.users.update(this.currentUser.get("id"),this.userForm.value).pipe((0,L.x)(()=>this.loading$.next(!1))).subscribe(()=>{this.toast.open("Account settings updated"),this.userErrors$.next({})},t=>this.userErrors$.next(t.errors))}openAvatarUploadDialog(){this.loading$.next(!0),(0,Me.r)({types:[Ze.j.image]}).then(t=>{this.avatarValidator.validateWithToast(t[0]).failed||this.users.uploadAvatar(this.currentUser.get("id"),t).pipe((0,L.x)(()=>this.loading$.next(!1))).subscribe(t=>{this.userForm.patchValue({avatar:t.user.avatar}),this.currentUser.set("avatar",t.user.avatar),this.avatar$.next(t.user.avatar),this.toast.open("Avatar updated")},t=>{const e=Object.keys(t.errors)[0];this.toast.open(t.errors[e])})})}deleteAvatar(){this.loading$.next(!0),this.users.deleteAvatar(this.currentUser.get("id")).pipe((0,L.x)(()=>this.loading$.next(!1))).subscribe(t=>{this.userForm.patchValue({avatar:t.avatar}),this.currentUser.set("avatar",t.avatar),this.avatar$.next(t.avatar),this.toast.open("Avatar removed")})}changeUserPassword(){this.loading$.next(!0),this.users.changePassword(this.currentUser.get("id"),this.passwordForm.value).pipe((0,L.x)(()=>this.loading$.next(!1))).subscribe(()=>{this.toast.open("Password updated"),this.passwordErrors$.next({}),this.passwordForm.reset(),this.currentUser.set("has_password",!0)},t=>this.passwordErrors$.next(t.errors))}changeLanguage(t){this.loading$.next(!0),this.localizations.get(t).pipe((0,L.x)(()=>this.loading$.next(!1))).subscribe(t=>{this.i18n.setLocalization(t.localization)})}loadExtraPanels(){this.extraPanels&&this.extraPanels.length&&this.extraPanels.forEach(t=>{const e=this.componentFactoryResolver.resolveComponentFactory(t.component);this.extraPanelRef.clear(),this.extraPanelRef.createComponent(e).instance.user=this.initialUser$.value,this.cd.detectChanges()})}apiEnabled(){return this.settings.get("api.integrated")&&this.currentUser.hasPermission("api.access")}maybeDeleteToken(t){this.dialog.open(Le.z,{title:"Delete Access Token",body:"This token will be deleted immediately and permanently. Once deleted, it can no longer be used to make API requests.",bodyBold:"Do you want to delete the token?",ok:"Delete"}).beforeClosed().subscribe(e=>{e&&this.auth.revokeAccessToken(t.id).subscribe(()=>{this.initialUser$.next(Object.assign(Object.assign({},this.initialUser$.value),{tokens:this.initialUser$.value.tokens.filter(e=>e.id!==t.id)})),this.toast.open("Access token deleted")})})}openCreateTokenDialog(){this.dialog.open(Ye).afterClosed().subscribe(t=>{t&&this.initialUser$.next(Object.assign(Object.assign({},this.initialUser$.value),{tokens:[...this.initialUser$.value.tokens,t]}))})}openConfirmAccountDeleteDialog(){this.dialog.open(Le.z,{title:"Delete Account",body:"Your account will be deleted immediately and permanently. Once deleted, accounts can not be restored.",bodyBold:"Do you want to delete the account?",ok:"Delete"}).beforeClosed().subscribe(t=>{t&&this.users.delete([this.currentUser.get("id")],{deleteCurrentUser:!0}).subscribe(()=>{this.auth.logOut()})})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.Z),s.Y36(r.gz),s.Y36(De.Q),s.Y36(F.I),s.Y36(N.F),s.Y36(Ve.f),s.Y36(T.Z),s.Y36(J.v),s.Y36(M.e),s.Y36(He.m),s.Y36(R.qu),s.Y36(s._Vd),s.Y36(Ge.S),s.Y36(s.sBO),s.Y36(Zt.u),s.Y36(Re,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["account-settings"]],viewQuery:function(t,e){if(1&t&&s.Gf(dn,5,s.s_b),2&t){let t;s.iGM(t=s.CRH())&&(e.extraPanelRef=t.first)}},decls:3,vars:4,consts:[[3,"menuPosition",4,"ngIf"],["class","content container",4,"ngIf"],[3,"menuPosition"],[1,"content","container"],[1,"header"],["trans","",1,"header-text"],[4,"ngIf"],["trans","",1,"header-description"],[1,"panels"],["extraPanelRef",""],["id","test","ngNativeValidate","",1,"panel","account-settings-panel",3,"formGroup","ngSubmit"],["trans","",1,"panel-header"],[1,"panel-body"],[1,"input-container","input-inline"],["for","first_name","trans",""],["type","text","id","first_name","name","first_name","formControlName","first_name"],["class","error first-name-error",4,"ngIf"],["for","last_name","trans",""],["type","text","id","last_name","name","last_name","formControlName","last_name"],["class","error last-name-error",4,"ngIf"],[1,"input-container","input-inline","avatar-input-container"],[1,"avatar-input"],["alt","User avatar",3,"src"],[1,"avatar-actions-container"],["trans","",1,"info"],["type","button","mat-flat-button","","color","accent","trans","",1,"button","flat","avatar-upload-button",3,"click"],["type","button","mat-stroked-button","","color","warn","trans","",1,"avatar-remove-button",3,"click"],[1,"panel-footer"],["type","submit","mat-raised-button","","color","accent","trans","",3,"disabled"],["class","panel account-settings-panel social-login-panel",4,"ngIf"],["class","panel account-settings-panel change-password-panel","ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["ngNativeValidate","",1,"panel","account-settings-panel","preferences-panel",3,"formGroup","ngSubmit"],["for","language","trans",""],["name","language","id","language","formControlName","language",3,"ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["class","error language-error",4,"ngIf"],["for","country","trans",""],["name","country","id","country","formControlName","country"],["class","error country-error",4,"ngIf"],["for","timezone","trans",""],["name","timezone","id","timezone","formControlName","timezone"],[3,"label",4,"ngFor","ngForOf"],["class","error timezone-error",4,"ngIf"],["class","panel account-settings-panel api-panel",4,"ngIf"],[1,"panel","account-settings-panel"],["type","button","mat-raised-button","","color","warn","trans","",3,"click"],[1,"logout-button-container"],["mat-raised-button","","color","warn","type","button",1,"logout-button",3,"click"],["svgIcon","exit-to-app"],["trans",""],["mat-icon-button","",1,"mobile-toggle-button",3,"matMenuTriggerFor"],["svgIcon","settings"],["navSidebarMenu","matMenu"],[1,"error","first-name-error"],[1,"error","last-name-error"],[1,"panel","account-settings-panel","social-login-panel"],[3,"user"],["ngNativeValidate","",1,"panel","account-settings-panel","change-password-panel",3,"formGroup","ngSubmit"],["class","input-container input-inline",4,"ngIf"],["for","new_password","trans",""],["type","password","id","new_password","name","new_password","formControlName","new_password","required",""],["class","error new-password-error",4,"ngIf"],["for","new_password_confirmation","trans",""],["type","password","id","new_password_confirmation","name","new_password_confirmation","formControlName","new_password_confirmation","required",""],["class","error new-password-confirmation-error",4,"ngIf"],["for","current_password","trans",""],["type","password","id","current_password","name","current_password","formControlName","current_password","required",""],["class","error current-password-error",4,"ngIf"],[1,"error","current-password-error"],[1,"error","new-password-error"],[1,"error","new-password-confirmation-error"],[3,"value"],[1,"error","language-error"],[1,"error","country-error"],[3,"label"],[1,"error","timezone-error"],[1,"panel","account-settings-panel","api-panel"],[1,"panel-header"],["trans","",1,"panel-header-title"],["routerLink","/api-docs","target","_blank","trans","",1,"panel-header-action"],["svgImage","secure-data.svg",4,"ngIf"],[1,"unstyled-list"],[4,"ngFor","ngForOf"],["type","button","secondary-text","","mat-raised-button","","color","accent","trans","",3,"click"],["svgImage","secure-data.svg"],["primary-text","","trans",""]],template:function(t,e){1&t&&(s.YNc(0,pn,1,1,"material-navbar",0),s.YNc(1,Zn,84,29,"div",1),s.ALo(2,"async")),2&t&&(s.Q6J("ngIf",!e.settings.get("vebto.accountSettings.hideNavbar")),s.xp6(1),s.Q6J("ngIf",s.lcZ(2,2,e.userErrors$)))},directives:[g.O5,B.e,p.P,R.JL,R.sg,R.Fj,R.JJ,R.u,m.lW,R.EJ,g.sg,K.Hw,W.p6,W.VK,Je.F,cn,R.Q7,R.YN,R.Kr,r.yS,un.U],pipes:[g.Ov,g.Nd,hn.l],styles:["[_nghost-%COMP%]{display:block;min-height:100vh;flex:1 1 auto;background-color:var(--be-background-alternative)}.content[_ngcontent-%COMP%]{margin:0 auto}.header[_ngcontent-%COMP%]{font-size:3.6rem;margin:25px 0 0;font-weight:400;display:flex;align-items:center}.header-description[_ngcontent-%COMP%]{font-size:1.6rem;margin-bottom:40px;color:var(--be-secondary-text)}.header-text[_ngcontent-%COMP%]{white-space:nowrap;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis}.mobile-toggle-button[_ngcontent-%COMP%]{flex-shrink:0;margin-left:30px}.panels[_ngcontent-%COMP%]{width:820px;max-width:100%}  .account-settings-panel{border:1px solid var(--be-divider-default);border-radius:4px;padding:15px;background-color:var(--be-background);margin-bottom:25px}  .account-settings-panel .panel-header{display:flex;vertical-align:middle;background-color:initial;font-size:1.8rem;font-weight:300;padding:0 0 10px;border-bottom:1px solid var(--be-divider-default)}  .account-settings-panel .panel-header-title{flex:1 1 auto}  .account-settings-panel .panel-header-action{font-size:1.5rem;display:block}  .account-settings-panel .panel-body{padding:25px 0 0}  .account-settings-panel .panel-footer{padding:10px 0 0;margin-top:35px;border-top:1px solid var(--be-divider-default);text-align:right}.input-inline[_ngcontent-%COMP%]{display:flex;margin-bottom:26px;align-items:center;position:relative}.input-inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{flex:0 0 30%;min-width:200px;line-height:42px;vertical-align:middle}.input-inline[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .input-inline[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{flex:1 1 auto;height:48px;border-radius:3px;border-color:var(--be-divider-default);background-color:var(--be-background)}.input-inline[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{text-transform:capitalize}.input-inline[_ngcontent-%COMP%]   .error[_ngcontent-%COMP%]{color:#f44336;font-size:1.3rem;position:absolute;bottom:-20px;right:0}.avatar-input[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.avatar-input[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{flex:0 0 90px;width:90px;height:90px;object-fit:cover;margin-right:15px}.avatar-input[_ngcontent-%COMP%]   .avatar-actions-container[_ngcontent-%COMP%]{flex:1 1 auto;max-width:130px}.avatar-input[_ngcontent-%COMP%]   .avatar-actions-container[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{padding-top:5px;color:var(--be-secondary-text);font-size:1.2rem;margin-bottom:10px}.avatar-input[_ngcontent-%COMP%]   .avatar-actions-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:block;margin-bottom:10px}.social-login-panel[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{margin-bottom:35px}.logout-button-container[_ngcontent-%COMP%]{padding:20px 0 15px;display:none}.logout-button-container[_ngcontent-%COMP%]   .logout-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.api-input-container[_ngcontent-%COMP%]{border-top:1px solid var(--be-divider-lighter);padding-top:25px;margin-top:20px}.api-panel[_ngcontent-%COMP%]   dd[_ngcontent-%COMP%], .api-panel[_ngcontent-%COMP%]   dt[_ngcontent-%COMP%]{margin:0}.api-panel[_ngcontent-%COMP%]   dt[_ngcontent-%COMP%]{font-weight:500;font-size:1.5rem;text-transform:capitalize}.api-panel[_ngcontent-%COMP%]   dd[_ngcontent-%COMP%]{margin-bottom:10px}.api-panel[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{max-height:400px;overflow:auto}.api-panel[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:10px;padding-bottom:10px}.api-panel[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:last-of-type){border-bottom:1px solid var(--be-divider-default)}@media only screen and (max-width: 1024px){.panel[_ngcontent-%COMP%]   .input-inline[_ngcontent-%COMP%]{display:block}.panel[_ngcontent-%COMP%]   .input-inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{line-height:normal}}@media only screen and (max-width: 768px){.logout-button-container[_ngcontent-%COMP%], .panels[_ngcontent-%COMP%]{display:block}.panels[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]{width:auto}.panels[_ngcontent-%COMP%]   .input-inline[_ngcontent-%COMP%]{display:block}.panels[_ngcontent-%COMP%]   .input-inline[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .panels[_ngcontent-%COMP%]   .input-inline[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{width:100%}}@media only screen and (max-width: 375px){.social-account-username[_ngcontent-%COMP%]{display:none}}"],changeDetection:0}),t})();var Ln=n(765);const Nn=[{path:"account/settings",component:Rn,resolve:{api:Fe},canActivate:[gt.a,Ln.d],data:{name:"account-settings"}}];let Un=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.Bz.forChild(Nn)],r.Bz]}),t})();var qn=n(8295),Bn=n(5217),jn=n(2877),zn=n(5939);let $n=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Fe],imports:[[g.ez,R.u5,R.UX,qn.l,Un,Ae.N,Bn.u,St.Is,jn.X,m.ot,K.Ps,W.Tx,zn.Nh],Un]}),t})();var Yn=n(4466),Vn=n(6052),Hn=n(3653),Gn=n(4395),Jn=n(7519),Qn=n(8371),Wn=n(5756),Kn=n(1371),Xn=n(8518),ti=n(6397),ei=n(616);function ni(t,e){1&t&&(s.TgZ(0,"a",33),s._UZ(1,"mat-icon",34),s.TgZ(2,"span",35),s._uU(3,"Manage Subscription"),s.qZA(),s.qZA())}function ii(t,e){1&t&&(s.TgZ(0,"a",36),s._UZ(1,"mat-icon",34),s.TgZ(2,"span",35),s._uU(3,"Upgrade to Premium"),s.qZA(),s.qZA())}function si(t,e){if(1&t&&(s.ynx(0),s.YNc(1,ni,4,0,"a",31),s.YNc(2,ii,4,0,"a",32),s.BQk()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngIf",t.currentUser.isSubscribed()),s.xp6(1),s.Q6J("ngIf",!t.currentUser.isSubscribed())}}function ri(t,e){if(1&t){const t=s.EpF();s.ynx(0),s.TgZ(1,"div",37),s.TgZ(2,"div",38),s.TgZ(3,"div",39),s.TgZ(4,"img",40),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().openBuilder(e)}),s.qZA(),s.qZA(),s.qZA(),s.TgZ(5,"div",41),s.TgZ(6,"div",42),s.TgZ(7,"div",43),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().openBuilder(e)}),s._uU(8),s.qZA(),s.TgZ(9,"a",44),s._uU(10),s.qZA(),s.TgZ(11,"div",45),s._uU(12),s.ALo(13,"formattedDate"),s.qZA(),s.qZA(),s.TgZ(14,"div",17),s.TgZ(15,"button",46),s._UZ(16,"mat-icon",47),s.qZA(),s.TgZ(17,"mat-menu",null,48),s.TgZ(19,"button",49),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().openBuilder(e)}),s._uU(20,"Edit"),s.qZA(),s.TgZ(21,"a",50),s._uU(22,"Preview"),s.qZA(),s.TgZ(23,"button",51),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().openProjectSettingsModal(e)}),s._uU(24," Settings "),s.qZA(),s.TgZ(25,"button",49),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().deleteProjectWithConfirmation(e)}),s._uU(26," Delete "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.BQk()}if(2&t){const t=e.$implicit,n=s.MAs(18),i=s.oxw();s.xp6(4),s.MGl("alt","",t.name," image"),s.Q6J("src",i.getProjectImage(t),s.LSH),s.xp6(4),s.Oqu(t.name),s.xp6(1),s.Q6J("href",i.getProjectUrl(t),s.LSH),s.xp6(1),s.Oqu(i.getProjectUrl(t,!0)),s.xp6(2),s.Oqu(s.lcZ(13,9,t.created_at)),s.xp6(3),s.Q6J("matMenuTriggerFor",n),s.xp6(6),s.Q6J("href",i.getProjectUrl(t),s.LSH),s.xp6(2),s.Q6J("disabled",!i.currentUser.hasPermission("projects.publish"))}}function oi(t,e){1&t&&(s.TgZ(0,"span",54),s._uU(1,"Not matching projects found."),s.qZA())}function ai(t,e){1&t&&(s.TgZ(0,"span",54),s._uU(1,"You have not created any projects yet."),s.qZA())}function li(t,e){if(1&t&&(s.TgZ(0,"no-results-message",52),s.YNc(1,oi,2,0,"span",53),s.YNc(2,ai,2,0,"span",53),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngIf",t.models.controls.query.value),s.xp6(1),s.Q6J("ngIf",!t.models.controls.query.value)}}function ci(t,e){if(1&t&&(s.TgZ(0,"div",70),s._UZ(1,"img",71),s.TgZ(2,"div",72),s._uU(3),s.qZA(),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(2);s.xp6(1),s.Q6J("src",e.getProjectImage(t.resource),s.LSH),s.xp6(2),s.Oqu(t.resource.name)}}function ui(t,e){1&t&&(s.TgZ(0,"div",73),s._uU(1," This domain is not attached to any project. "),s.qZA())}function hi(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",74),s.NdJ("click",function(){const e=s.CHM(t).$implicit,n=s.oxw().$implicit;return s.oxw(2).userDomains.attachDomainToProject(e,n).subscribe()}),s._UZ(1,"img",71),s.TgZ(2,"div",75),s._uU(3),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw(3);s.xp6(1),s.Q6J("src",n.getProjectImage(t),s.LSH),s.xp6(2),s.Oqu(t.name)}}function di(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"li",60),s.TgZ(1,"div",61),s.TgZ(2,"div",62),s._uU(3),s.qZA(),s.TgZ(4,"div",63),s._uU(5),s.ALo(6,"formattedDate"),s.qZA(),s.YNc(7,ci,4,2,"div",64),s.YNc(8,ui,2,0,"div",65),s.qZA(),s.TgZ(9,"div",66),s.TgZ(10,"button",46),s._UZ(11,"mat-icon",47),s.qZA(),s.TgZ(12,"mat-menu",null,48),s.TgZ(14,"button",67),s._uU(15,"Change Project"),s.qZA(),s.TgZ(16,"button",49),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(2).userDomains.maybeRemoveDomain(e)}),s._uU(17," Remove "),s.qZA(),s.qZA(),s.TgZ(18,"mat-menu",null,68),s.YNc(20,hi,4,2,"div",69),s.ALo(21,"async"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.MAs(13),i=s.MAs(19),r=s.oxw(2);s.xp6(3),s.Oqu(t.host),s.xp6(2),s.Oqu(s.lcZ(6,7,t.created_at)),s.xp6(2),s.Q6J("ngIf",t.resource),s.xp6(1),s.Q6J("ngIf",!t.resource),s.xp6(2),s.Q6J("matMenuTriggerFor",n),s.xp6(4),s.Q6J("matMenuTriggerFor",i),s.xp6(6),s.Q6J("ngForOf",s.lcZ(21,9,r.projects$))}}function pi(t,e){1&t&&(s.TgZ(0,"no-results-message",76),s.TgZ(1,"span",54),s._uU(2,"You have not attached any domains yet."),s.qZA(),s.qZA())}function gi(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-tab",23),s.ALo(1,"trans"),s.TgZ(2,"div",55),s.TgZ(3,"button",56),s.NdJ("click",function(){return s.CHM(t),s.oxw().userDomains.openConnectDomainModal().subscribe()}),s._uU(4," Connect Domain "),s.qZA(),s.TgZ(5,"ul",57),s.YNc(6,di,22,11,"li",58),s.ALo(7,"async"),s.qZA(),s.YNc(8,pi,3,0,"no-results-message",59),s.ALo(9,"async"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("label",s.lcZ(1,3,"Domains")),s.xp6(6),s.Q6J("ngForOf",s.lcZ(7,5,t.userDomains.domains$)),s.xp6(2),s.Q6J("ngIf",!s.lcZ(9,7,t.userDomains.domains$).length)}}let mi=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c){this.route=t,this.router=e,this.settings=n,this.currentUser=i,this.projectsApi=s,this.toast=r,this.modal=o,this.projectUrl=a,this.http=l,this.userDomains=c,this.loading$=new E.X(!1),this.projects$=new E.X([]),this.models=new R.cw({query:new R.NI(""),order:new R.NI("created_at|desc"),published:new R.NI("all")})}ngOnInit(){this.userDomains.fetch(),this.route.data.subscribe(t=>{this.projects$.next(t.projects||[])}),this.bindToProjectFilters()}openBuilder(t){this.loading$.next(!0),this.router.navigate(["/design",t.id]).then(()=>{this.loading$.next(!0)})}getProjectImage(t){return`${this.projectUrl.getBaseUrl(t)}thumbnail.png?timestamp=${t.created_at}`}getProjectUrl(t,e=!1){let n=this.projectUrl.getProductionUrl(t);return e&&(n=function(t){return t.replace(/(^\w+:|^)\/\//,"")}(n)),n}openProjectSettingsModal(t){this.modal.open(Wn.M,{project:t}).afterClosed().subscribe(t=>{if(!t||!t.model)return;const e=[...this.projects$.value],n=e.findIndex(e=>e.id===t.model.id);e[n]=t.model,this.projects$.next(e)})}deleteProjectWithConfirmation(t){this.modal.open(Le.z,{title:"Delete Project",body:"Are you sure you want to delete this project?",ok:"Delete"}).afterClosed().subscribe(e=>{e&&this.projectsApi.delete([t.id]).subscribe(()=>{this.toast.open("Project deleted");const e=[...this.projects$.value];e.splice(e.indexOf(t),1),this.projects$.next(e)})})}bindToProjectFilters(){this.projectPaginator=new Qn.D(this.router,this.http),this.projectPaginator.dontUpdateQueryParams=!0,this.projectPaginator.response$.pipe((0,Hn.T)(1)).subscribe(t=>{this.loading$.next(!1),this.projects$.next(t.pagination.data)},()=>this.loading$.next(!1)),this.models.valueChanges.pipe((0,Gn.b)(250),(0,Jn.x)()).subscribe(t=>{this.loading$.next(!0);const e=Object.assign(Object.assign({},t),{user_id:this.currentUser.get("id"),per_page:20});this.projectPaginator.paginate(e,"projects")})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.gz),s.Y36(r.F0),s.Y36(c.Z),s.Y36(F.I),s.Y36(Kn.p),s.Y36(N.F),s.Y36(Zt.u),s.Y36(Xn.b),s.Y36(u.r),s.Y36(ti.o))},t.\u0275cmp=s.Xpm({type:t,selectors:[["dashboard"]],decls:49,vars:18,consts:[[1,"page-header"],["menuPosition","dashboard",3,"container"],[1,"header-body","container"],[1,"inputs",3,"formGroup"],[1,"input-container"],["for","search-query","trans",""],["type","text","formControlName","query","id","search-query"],["for","project-status","trans",""],["formControlName","published","id","project-status"],["value","all","trans",""],["trans","",3,"ngValue"],["for","project-order","trans",""],["formControlName","order","id","project-order"],["value","created_at|desc","trans",""],["value","created_at|asc","trans",""],["value","name|desc","trans",""],["value","name|asc","trans",""],[1,"actions"],[4,"ngIf"],["mat-raised-button","","color","accent","routerLink","/dashboard/projects/new","trans","",1,"new-project-button"],[1,"be-container"],["slot","ads.dashboard_top",1,"ad-host-top"],["color","accent","animationDuration","0"],[3,"label"],[1,"tab-content","projects"],[1,"auto-height-grid","template-grid"],[4,"ngFor","ngForOf"],["svgImage","website-builder.svg",4,"ngIf"],[3,"label",4,"ngIf"],["slot","ads.dashboard_bottom",1,"ad-host-bottom"],[1,"overlay",3,"isVisible"],["class","upgrade-button","mat-raised-button","","color","accent","routerLink","/billing/subscription",4,"ngIf"],["class","upgrade-button","mat-raised-button","","color","accent","routerLink","/billing/upgrade",4,"ngIf"],["mat-raised-button","","color","accent","routerLink","/billing/subscription",1,"upgrade-button"],["svgIcon","flash-on"],["trans",""],["mat-raised-button","","color","accent","routerLink","/billing/upgrade",1,"upgrade-button"],[1,"grid-wrapper"],[1,"grid-item"],[1,"grid-content"],[3,"src","alt","click"],[1,"grid-label"],[1,"title"],[1,"name",3,"click"],["target","_blank",1,"url",3,"href"],[1,"updated"],["type","button","mat-icon-button","",3,"matMenuTriggerFor"],["svgIcon","more-vert"],["menu","matMenu"],["mat-menu-item","","trans","",3,"click"],["target","_blank","mat-menu-item","","trans","",3,"href"],["mat-menu-item","","trans","",3,"disabled","click"],["svgImage","website-builder.svg"],["primary-text","","trans","",4,"ngIf"],["primary-text","","trans",""],[1,"domains-tab","tab-content"],["type","button","mat-raised-button","","color","accent","trans","",3,"click"],[1,"domains","unstyled-list"],["class","domain",4,"ngFor","ngForOf"],["svgImage","custom-domain.svg",4,"ngIf"],[1,"domain"],[1,"domain-content"],[1,"host"],[1,"date"],["class","domain-project",4,"ngIf"],["class","domain-project","trans","",4,"ngIf"],[1,"domain-actions"],["mat-menu-item","","trans","",3,"matMenuTriggerFor"],["projects","matMenu"],["mat-menu-item","","class","project-menu-item",3,"click",4,"ngFor","ngForOf"],[1,"domain-project"],["alt","",3,"src"],[1,"name"],["trans","",1,"domain-project"],["mat-menu-item","",1,"project-menu-item",3,"click"],[1,"project-name"],["svgImage","custom-domain.svg"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"material-navbar",1),s.TgZ(2,"div",2),s.TgZ(3,"form",3),s.TgZ(4,"div",4),s.TgZ(5,"label",5),s._uU(6,"Search"),s.qZA(),s._UZ(7,"input",6),s.qZA(),s.TgZ(8,"div",4),s.TgZ(9,"label",7),s._uU(10,"Status"),s.qZA(),s.TgZ(11,"select",8),s.TgZ(12,"option",9),s._uU(13,"All"),s.qZA(),s.TgZ(14,"option",10),s._uU(15,"Published"),s.qZA(),s.TgZ(16,"option",10),s._uU(17,"Unpublished"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(18,"div",4),s.TgZ(19,"label",11),s._uU(20,"Sort"),s.qZA(),s.TgZ(21,"select",12),s.TgZ(22,"option",13),s._uU(23,"Newest"),s.qZA(),s.TgZ(24,"option",14),s._uU(25,"Oldest"),s.qZA(),s.TgZ(26,"option",15),s._uU(27,"A-Z"),s.qZA(),s.TgZ(28,"option",16),s._uU(29,"Z-A"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(30,"div",17),s.YNc(31,si,3,2,"ng-container",18),s.TgZ(32,"a",19),s._uU(33,"New Project"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(34,"section",20),s._UZ(35,"ad-host",21),s.TgZ(36,"mat-tab-group",22),s.TgZ(37,"mat-tab",23),s.ALo(38,"trans"),s.TgZ(39,"div",24),s.TgZ(40,"div",25),s.YNc(41,ri,27,11,"ng-container",26),s.ALo(42,"async"),s.qZA(),s.qZA(),s.YNc(43,li,3,2,"no-results-message",27),s.ALo(44,"async"),s.qZA(),s.YNc(45,gi,10,9,"mat-tab",28),s.qZA(),s._UZ(46,"ad-host",29),s.qZA(),s._UZ(47,"loading-indicator",30),s.ALo(48,"async")),2&t&&(s.xp6(1),s.Q6J("container",!0),s.xp6(2),s.Q6J("formGroup",e.models),s.xp6(11),s.Q6J("ngValue",1),s.xp6(2),s.Q6J("ngValue",0),s.xp6(15),s.Q6J("ngIf",e.settings.get("billing.enable")),s.xp6(6),s.Q6J("label",s.lcZ(38,10,"Projects")),s.xp6(4),s.Q6J("ngForOf",s.lcZ(42,12,e.projects$)),s.xp6(2),s.Q6J("ngIf",!s.lcZ(44,14,e.projects$).length),s.xp6(2),s.Q6J("ngIf",e.settings.get("builder.enable_custom_domains")&&e.currentUser.hasPermission("custom_domains.create")),s.xp6(2),s.Q6J("isVisible",s.lcZ(48,16,e.loading$)))},directives:[B.e,R._Y,R.JL,R.sg,p.P,R.Fj,R.JJ,R.u,R.EJ,R.YN,R.Kr,g.O5,m.zs,r.yS,st.i,zn.SP,zn.uX,g.sg,ei.Q,K.Hw,m.lW,W.p6,W.VK,W.OP,un.U],pipes:[Bt.R,g.Ov,hn.l],styles:["[_nghost-%COMP%]{display:block;min-height:100vh;background-color:var(--be-background-alternative)}.be-dark-mode[_nghost-%COMP%]   .page-header[_ngcontent-%COMP%], .be-dark-mode   [_nghost-%COMP%]   .page-header[_ngcontent-%COMP%]{background-color:var(--be-background)}.page-header[_ngcontent-%COMP%]{background-color:var(--be-primary-default);color:#fff}.page-header[_ngcontent-%COMP%]   material-navbar[_ngcontent-%COMP%]{background-color:initial}.page-header[_ngcontent-%COMP%]   material-navbar[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{max-height:48%;margin-right:20px}.page-header[_ngcontent-%COMP%]   .input-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{color:inherit}.header-body[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.header-body[_ngcontent-%COMP%], .header-body[_ngcontent-%COMP%]   .inputs[_ngcontent-%COMP%]{display:flex;align-items:center}.header-body[_ngcontent-%COMP%]   .input-container[_ngcontent-%COMP%]{margin-right:20px}.header-body[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .header-body[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{background-color:#fff;color:#000000de}.header-body[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{margin-left:auto}.header-body[_ngcontent-%COMP%]   .upgrade-button[_ngcontent-%COMP%]{margin-right:20px}@media only screen and (max-width: 768px){.header-body[_ngcontent-%COMP%]{padding:25px 0}.header-body[_ngcontent-%COMP%]   .inputs[_ngcontent-%COMP%]{display:none}.header-body[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{margin:0 auto}}.ad-host-top[_ngcontent-%COMP%]{margin-top:35px}.ad-host-bottom[_ngcontent-%COMP%]{margin-bottom:35px}.mat-tab-group[_ngcontent-%COMP%]{margin-top:40px}.projects[_ngcontent-%COMP%]{padding:25px 2px;overflow:hidden;width:100%}.grid-label[_ngcontent-%COMP%]{display:flex;align-items:center;padding:22px;border-top:1px solid var(--be-divider-lighter)}.grid-label[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:15px}.grid-label[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:500}.grid-label[_ngcontent-%COMP%]   .updated[_ngcontent-%COMP%]{font-size:1rem;color:var(--be-secondary-text)}.grid-label[_ngcontent-%COMP%]   .url[_ngcontent-%COMP%]{display:block;font-size:1.3rem;margin-bottom:10px;color:var(--be-secondary-text)}.grid-label[_ngcontent-%COMP%]   .url[_ngcontent-%COMP%]:hover{text-decoration:underline}.grid-label[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{margin-left:auto;color:var(--be-secondary-text)}.domains[_ngcontent-%COMP%], .domains-tab[_ngcontent-%COMP%]{margin-top:25px}.domain[_ngcontent-%COMP%]{display:flex;align-items:center;padding:15px;border-radius:4px;margin-bottom:10px;background-color:var(--be-background);box-shadow:0 2px 1px -1px #0003,0 1px 1px 0 #00000024,0 1px 3px 0 #0000001f}.domain[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%]{font-size:1.7rem}.domain[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{color:var(--be-secondary-text)}.domain-project[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:15px;font-size:1.5rem}.domain-project[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50px;height:50px;border-radius:4px;margin-right:10px;flex-shrink:0}.domain-content[_ngcontent-%COMP%]{flex:1 1 auto}.domain-actions[_ngcontent-%COMP%]{flex-shrink:0}.project-menu-item[_ngcontent-%COMP%]{display:flex;align-items:center;line-height:50px;height:50px;padding-top:5px;padding-bottom:5px}.project-menu-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:4px;margin-right:10px;flex-shrink:0}"],changeDetection:0}),t})();var fi=n(526),_i=n(2759);let bi=(()=>{class t{constructor(){this.threshold=50}ngOnInit(){this.el||(this.el=new s.SBq(document)),this.zone.runOutsideAngular(()=>{this.scrollSub=(0,_i.R)(this.getScrollContainer(),"scroll",{capture:!0,passive:!0}).pipe((0,Gn.b)(20)).subscribe(t=>this.onScroll(t.target))})}ngOnDestroy(){this.scrollSub&&this.scrollSub.unsubscribe()}getScrollContainer(){return this.el?this.el.nativeElement:document}onScroll(t){if(!t||t!==this.el.nativeElement||!this.canLoadMore()||this.isLoading())return;const e=parseInt(this.threshold),n=this.el&&void 0!==t.scrollTop;(n?t.scrollTop+t.offsetHeight:window.scrollY+window.innerHeight)>=(n?t.scrollHeight-e:document.documentElement.scrollHeight-e)&&this.zone.run(()=>{this.loadMoreItems()})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t})();var vi=n(9970);function yi(t,e){if(1&t&&(s.TgZ(0,"option",22),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t," ")}}function wi(t,e){if(1&t){const t=s.EpF();s.ynx(0),s.TgZ(1,"div",23),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().openNewProjectModal(e.name)}),s.TgZ(2,"div",24),s.TgZ(3,"div",25),s._UZ(4,"img",26),s.qZA(),s.qZA(),s.TgZ(5,"div",27),s._uU(6),s.qZA(),s.qZA(),s.BQk()}if(2&t){const t=e.$implicit,n=s.oxw();s.xp6(4),s.Q6J("src",n.getTemplateThumbnail(t),s.LSH),s.xp6(2),s.Oqu((null==t||null==t.config?null:t.config.name)||t.name)}}let xi=(()=>{class t extends bi{constructor(t,e,n,i,s,r){super(),this.route=t,this.settings=e,this.modal=n,this.router=i,this.zone=s,this.templates=r,this.allCategories=[],this.filteredTemplates=[],this.loading=!1,this.filterForm=new R.cw({search:new R.NI,category:new R.NI(null)})}ngOnInit(){this.allCategories=this.settings.getJson("builder.template_categories",[]),this.filterForm.valueChanges.subscribe(t=>{this.applyFilters(t)}),this.route.data.subscribe(t=>{this.templatePagination=t.templates,this.filteredTemplates=t.templates.data}),super.ngOnInit()}openNewProjectModal(t){this.modal.open(fi.v,{templateName:t}).afterClosed().subscribe(t=>{t&&this.router.navigate(["/design",t.model.id])})}getTemplateThumbnail(t){return this.settings.getBaseUrl(!0)+"/"+t.thumbnail}applyFilters(t){this.filteredTemplates=this.templatePagination.data.filter(e=>{const n=!t.category||e.config.category===t.category,i=!t.search||(e.name||e.config.name||"").toLowerCase().indexOf(t.search.toLowerCase())>-1;return n&&i})}canLoadMore(){return this.templatePagination.current_page<this.templatePagination.last_page}isLoading(){return this.loading}loadMoreItems(){this.loading=!0,this.templates.all({page:this.templatePagination.current_page+1,perPage:25}).pipe((0,L.x)(()=>this.loading=!1)).subscribe(t=>{const e=[...this.templatePagination.data,...t.pagination.data];this.templatePagination=Object.assign(Object.assign({},t.pagination),{data:e}),this.filteredTemplates=e})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.gz),s.Y36(c.Z),s.Y36(Zt.u),s.Y36(r.F0),s.Y36(s.R0b),s.Y36(vi.Q))},t.\u0275cmp=s.Xpm({type:t,selectors:[["new-project-page"]],features:[s.qOj],decls:28,vars:6,consts:[["menuPosition","dashboard",3,"container"],[1,"content"],["slot","ads.dashboard_top",1,"ad-host-top"],[1,"container"],[1,"page-header"],["trans","",1,"title"],["trans","",1,"subtitle"],[1,"controls",3,"formGroup"],[1,"input-container","search-input-container"],["svgIcon","search"],["for","search-input","trans","",1,"hidden"],["type","text","id","search-input","formControlName","search","placeholder","Search...","trans-placeholder",""],[1,"input-container","category-input-container"],["for","category-input","trans","",1,"hidden"],["id","category-input","formControlName","category"],["trans","",3,"ngValue"],[3,"value",4,"ngFor","ngForOf"],["type","button","mat-raised-button","","color","accent","trans","",1,"blank-page-button",3,"click"],[1,"auto-height-grid","template-grid"],[4,"ngFor","ngForOf"],["slot","ads.dashboard_bottom",1,"ad-host-bottom"],[1,"inline",3,"isVisible"],[3,"value"],[1,"grid-wrapper",3,"click"],[1,"grid-item"],[1,"grid-content"],["alt","",3,"src"],[1,"grid-label"]],template:function(t,e){1&t&&(s._UZ(0,"material-navbar",0),s.TgZ(1,"div",1),s._UZ(2,"ad-host",2),s.TgZ(3,"div",3),s.TgZ(4,"header",4),s.TgZ(5,"h1",5),s._uU(6,"Choose a template for your project"),s.qZA(),s.TgZ(7,"p",6),s._uU(8," All templates are 100% customizable so choose one then make it your own. "),s.qZA(),s.TgZ(9,"div",7),s.TgZ(10,"div",8),s._UZ(11,"mat-icon",9),s.TgZ(12,"label",10),s._uU(13,"Search"),s.qZA(),s._UZ(14,"input",11),s.qZA(),s.TgZ(15,"div",12),s.TgZ(16,"label",13),s._uU(17,"Category"),s.qZA(),s.TgZ(18,"select",14),s.TgZ(19,"option",15),s._uU(20,"All Categories"),s.qZA(),s.YNc(21,yi,2,2,"option",16),s.qZA(),s.qZA(),s.TgZ(22,"button",17),s.NdJ("click",function(){return e.openNewProjectModal()}),s._uU(23," Start with Blank Page "),s.qZA(),s.qZA(),s.qZA(),s.TgZ(24,"div",18),s.YNc(25,wi,7,2,"ng-container",19),s.qZA(),s.qZA(),s._UZ(26,"ad-host",20),s.qZA(),s._UZ(27,"loading-indicator",21)),2&t&&(s.Q6J("container",!0),s.xp6(9),s.Q6J("formGroup",e.filterForm),s.xp6(10),s.Q6J("ngValue",null),s.xp6(2),s.Q6J("ngForOf",e.allCategories),s.xp6(4),s.Q6J("ngForOf",e.filteredTemplates),s.xp6(2),s.Q6J("isVisible",e.loading))},directives:[B.e,st.i,p.P,R.JL,R.sg,K.Hw,R.Fj,R.JJ,R.u,R.EJ,R.YN,R.Kr,g.sg,m.lW,ei.Q],styles:["new-project-page{display:block;background-color:var(--be-background-alternative);min-height:100vh}new-project-page .page-header{margin-top:40px}new-project-page .page-header .title{margin:0}new-project-page .page-header .subtitle{color:var(--be-secondary-text);margin:4px 0 0}new-project-page .page-header .controls{display:flex;align-items:center;margin-bottom:40px;margin-top:30px}@media only screen and (max-width: 768px){new-project-page .page-header .controls{display:block}new-project-page .page-header .controls .input-container{margin-bottom:10px}}new-project-page .page-header .input-container{flex:1 1 auto;position:relative;max-width:300px}new-project-page .page-header .input-container .mat-icon{position:absolute;left:8px;top:15px;color:var(--be-secondary-text);z-index:4}new-project-page .page-header .input-container input,new-project-page .page-header .input-container select{background-color:var(--be-background);height:52px}new-project-page .page-header .search-input-container{margin-right:10px}new-project-page .page-header .search-input-container input{padding-left:38px}new-project-page .page-header .category-input-container{margin-right:40px}new-project-page .page-header .blank-page-button{flex:0 0 auto;line-height:48px;margin-right:10px}new-project-page .content .ad-host-top{margin-top:60px}new-project-page .content .ad-host-bottom{margin-bottom:60px}new-project-page .template-grid{padding-bottom:60px}new-project-page .template-grid .grid-label{padding:18px;text-align:center;text-transform:capitalize}new-project-page loading-indicator{margin-bottom:30px}"],encapsulation:2}),t})(),Ci=(()=>{class t{constructor(t,e){this.router=t,this.templates=e}resolve(t,e){return this.templates.all({perPage:25}).pipe((0,v.K)(()=>(this.router.navigate(["/dashboard"]),Pe.E)),(0,Oe.zg)(t=>t?(0,w.of)(t.pagination):(this.router.navigate(["/dashboard"]),Pe.E)))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(r.F0),s.LFG(vi.Q))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ki=(()=>{class t{constructor(t,e,n){this.router=t,this.projects=e,this.currentUser=n}resolve(t,e){return this.projects.all({user_id:this.currentUser.get("id"),per_page:30}).pipe((0,v.K)(()=>[]),(0,b.U)(t=>t.pagination.data))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(r.F0),s.LFG(Kn.p),s.LFG(F.I))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ai=(()=>{class t{constructor(t){this.config=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.Z))},t.\u0275cmp=s.Xpm({type:t,selectors:[["not-found-page"]],decls:5,vars:0,consts:[["src","client/assets/images/404.png","alt",""],["trans",""],["routerLink","/","mat-raised-button","","color","accent","trans",""]],template:function(t,e){1&t&&(s._UZ(0,"img",0),s.TgZ(1,"h1",1),s._uU(2,"Opps! We can't find the page you're looking for."),s.qZA(),s.TgZ(3,"a",2),s._uU(4,"Home"),s.qZA())},directives:[p.P,r.yS,m.zs],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100vh;color:#597996}img[_ngcontent-%COMP%]{display:block;margin:0 auto;height:auto}h1[_ngcontent-%COMP%], img[_ngcontent-%COMP%]{max-width:90%}h1[_ngcontent-%COMP%]{font-size:4rem;font-weight:300;margin-top:50px;text-align:center}.mat-raised-button.mat-accent[_ngcontent-%COMP%]{color:#fff;background-color:#597996;min-width:220px;line-height:46px;max-width:90%}"],changeDetection:0}),t})();const Ei=[{path:"dashboard",canActivate:[gt.a,Ln.d],children:[{path:"",component:mi,resolve:{projects:ki},data:{permissions:["projects.view"]}},{path:"projects",redirectTo:"",pathMatch:"full"},{path:"projects/new",component:xi,resolve:{templates:Ci},data:{permissions:["projects.create","templates.view"]}}]},{path:"loading",component:(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["loading-page"]],decls:1,vars:1,consts:[[1,"overlay",3,"isVisible"]],template:function(t,e){1&t&&s._UZ(0,"loading-indicator",0),2&t&&s.Q6J("isVisible",!0)},directives:[ei.Q],styles:["loading-indicator.overlay[_ngcontent-%COMP%]{background-color:initial}"],changeDetection:0}),t})()},{path:"**",pathMatch:"full",component:Ai},{path:"404",pathMatch:"full",component:Ai}];let Si=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.Bz.forRoot(Ei,{relativeLinkResolution:"legacy"})],r.Bz]}),t})();var Ti=n(5396),Oi=n(557),Ii=n(2178);let Pi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[g.ez,Ae.N,Bn.u,jn.X,R.u5,R.UX,Oi.x,Ee.p,K.Ps,m.ot,qt.AV,St.Is,Ti.rP,Ii.Cv]]}),t})(),Di=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[g.ez]]}),t})(),Fi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[g.ez,Se.N,Ae.N,m.ot,K.Ps,W.Tx]]}),t})();var Mi=n(8285);let Zi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[g.ez,R.u5,R.UX,Si,Yn.m,Pi,qn.l,Di,Ae.N,jn.X,Bn.u,Ee.p,Fi,Mi.T,Vn.q,zn.Nh,K.Ps,m.ot]]}),t})();const Ri={assetsPrefix:"client",environment:"production",navbar:{defaultPosition:"dashboard",defaultColor:"primary",dropdownItems:[{route:"/dashboard",name:"Dashboard",icon:"web-design-custom"}]},auth:{color:"primary",redirectUri:"dashboard",adminRedirectUri:"dashboard"},translations:{uploads_disk_driver_description:"Where public uploads (builder images, user avatars etc.) should be stored."},admin:{pages:[{name:"templates",icon:"web-design-custom",route:"templates",permission:"templates.view"},{name:"projects",icon:"dashboard",route:"projects",permission:"projects.view"}],settingsPages:[{name:"builder",route:"builder"}],ads:[{slot:"ads.dashboard_top",description:"This will appear at the top of user dashboard."},{slot:"ads.dashboard_bottom",description:"This will appear at the bottom of user dashboard."}]}};var Li=n(6237),Ni=n(1841);let Ui=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[g.ez,Ae.N,r.Bz,m.ot]]}),t})();var qi=n(2124),Bi=(()=>(function(t){t.NoPermissions="You don't have required permissions to do that."}(Bi||(Bi={})),Bi))();let ji=(()=>{class t extends qi.k{constructor(t,e,n,i,s,r,o){super(t,i),this.i18n=t,this.currentUser=e,this.router=n,this.toast=i,this.zone=s,this.settings=r,this.modal=o}handle403Error(t){this.currentUser.isLoggedIn()||t.message.includes("demo site")?this.showToast(t):this.router.navigate(["/login"])}showToast(t){const e={};t.action&&(e.action=t.action.label,e.duration=N.D),this.toast.open(t.message||Bi.NoPermissions,e).onAction().subscribe(()=>{this.router.navigateByUrl(t.action.action),this.modal.closeAll()})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(T.Z),s.LFG(F.I),s.LFG(r.F0),s.LFG(N.F),s.LFG(s.R0b),s.LFG(c.Z),s.LFG(Zt.u))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var zi=n(4530),$i=n.n(zi);const Yi=["Uncaught (in promise): [object Object]","Uncaught (in promise): [object Undefined]","[object Object]",'{"isTrusted"\n true}',"Uncaught (in promise): ChunkLoadError: Loading chunk","Http failure response for","Http failure during parsing for","Non-Error exception captured with keys:","Uncaught (in promise): TypeError: Cannot read property 'setAttribute' of undefined","Uncaught (in promise): TypeError: Cannot read property 'getRng' of undefined","Cannot assign to read only property 'className' of object '[object SVGSVGElement]'",'The animation trigger "transform" has failed to build due to the following errors',"NotSupportedError: Failed to execute 'animate' on 'Element': Partial keyframes are not supported.","Cannot call method 'split' of undefined","Cannot call method 'trim' of undefined","undefined is not a function","has no method 'closest'","Object doesn't support property or method 'closest'","Object doesn't support property or method 'setPrototypeOf'","requestAnimationFrame is not defined","Object [object DOMWindow] has no method 'cancelAnimationFrame'","'block' member of ScrollIntoViewOptions 'center' is not a valid value for enumeration ScrollLogicalPosition.","has no method 'normalize'","Setting the playback rate is not enabled for this video."];class Vi extends s.qLn{constructor(t){super(),this.settings=t,this.installed=!1}handleError(t,e){t&&(super.handleError(t),this.installSentry()&&zi.captureException(t.originalError||t,e))}installSentry(){return!!this.installed||!!this.settings.has("logging.sentry_public")&&(zi.config(this.settings.get("logging.sentry_public"),{release:this.settings.get("version"),ignoreErrors:Yi}).install(),this.installed=!0)}}class Hi extends Vi{constructor(t,e){super(t),this.settings=t,this.currentUser=e,this.setUserContext()}handleError(t){t&&"http"!==t.type&&super.handleError(t,{extra:{user:this.currentUser.getModel()}})}setUserContext(){this.currentUser.isLoggedIn()&&$i().setUserContext({id:this.currentUser.get("id"),username:this.currentUser.get("display_name"),email:this.currentUser.get("email")})}}var Gi=n(3342);let Ji=(()=>{class t{constructor(t){this.metaTags=t}intercept(t,e){return e.handle(t).pipe((0,Gi.b)(t=>(t instanceof Ni.Zn&&t.body&&t.body.seo&&this.metaTags.latestMetaTags$.next(t.body.seo),t)))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(O))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Qi=[{provide:Lt,useValue:{environment:"production",assetsPrefix:null,auth:{redirectUri:"/",adminRedirectUri:"/"},accountSettings:{hideNavbar:!1},demo:{email:"admin@admin.com",password:"admin"},customPages:{hideNavbar:!1},translations:{public_disk_driver_description:"Where public uploads (like user avatars) should be stored."}},multi:!0},{provide:qi.k,useClass:ji},{provide:s.ip1,useFactory:function(t){return()=>t.bootstrap()},deps:[Nt],multi:!0},{provide:s.qLn,useFactory:function(t,e){return new Hi(t,e)},deps:[c.Z,F.I]},{provide:Ni.TP,useClass:Ji,multi:!0}];var Wi=n(7001);let Ki=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[g.ez,qn.l,R.u5,R.UX,Ae.N,m.ot]]}),t})();const Xi=[{path:"pages/:id/:slug",component:n(7157).y,data:{permissions:["custom_pages.view"],willSetSeo:!0}}];let ts=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.Bz.forChild(Xi)],r.Bz]}),t})(),es=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[g.ez,r.Bz,ts,qn.l,Ae.N,m.ot]]}),t})();var ns=n(1023);let is=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t,bootstrap:[D]}),t.\u0275inj=s.cJS({providers:[...Qi,{provide:Lt,useValue:Ri,multi:!0}],imports:[[g.ez,i.b2,Li.PW,Ni.JF,r.Bz,Te,$n,ft,es,Zi,Yn.m,Ui,qn.l,Ki,ns.M,Wi.ZX]]}),t})();n(1524),(0,s.G48)(),i.q6().bootstrapModule(is).catch(t=>console.error(t))},4762:(t,e,n)=>{"use strict";function i(t,e,n,i){return new(n||(n=Promise))(function(s,r){function o(t){try{l(i.next(t))}catch(e){r(e)}}function a(t){try{l(i.throw(t))}catch(e){r(e)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}l((i=i.apply(t,e||[])).next())})}n.d(e,{mG:()=>i})}},t=>{"use strict";t(t.s=689)}]);
//# sourceMappingURL=main.2e5f2397dbfdb7fb8b15.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit