%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/graphicd/public_html/vebto/public/client/
Upload File :
Create Path :
Current File : /home/graphicd/public_html/vebto/public/client/main-es2015.b9e79d4e6de6436ec702.js

(self.webpackChunkbedrive2=self.webpackChunkbedrive2||[]).push([[179],{98255:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=98255,t.exports=e},17238:function(t,e,n){"use strict";n.d(e,{l3:function(){return s},_j:function(){return i},LC:function(){return r},ZN:function(){return f},jt:function(){return a},F4:function(){return h},vP:function(){return c},SB:function(){return u},oB:function(){return l},eR:function(){return d},X$:function(){return o},ZE:function(){return g},k1:function(){return m}});class i{}class r{}const s="*";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 c(t,e=null){return{type:2,steps:t,options:e}}function l(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 f{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 g{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 r=this.players.length;0==r?p(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==r&&this._onFinish()}),t.onDestroy(()=>{++n==r&&this._onDestroy()}),t.onStart(()=>{++i==r&&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 m="!"},19238:function(t,e,n){"use strict";n.d(e,{rt:function(){return $},s1:function(){return S},$s:function(){return w},Qr:function(){return L},kH:function(){return q},mK:function(){return P},Em:function(){return E},tE:function(){return z},qV:function(){return I},qm:function(){return Y},Kd:function(){return M},X6:function(){return N},yG:function(){return Z}});var i=n(38583),r=n(37716),s=n(79765),o=n(75319),a=n(25917),c=n(36461),l=n(93342),u=n(54395),h=n(45435),d=n(88002),p=n(15257),f=n(39490),g=n(80521),m=n(18553);function _(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let b=0;const v=new Map;let y=null,w=(()=>{class t{constructor(t){this._document=t}describe(t,e,n){if(!this._canBeDescribed(t,e))return;const i=x(e,n);"string"!=typeof e?(C(e),v.set(i,{messageElement:e,referenceCount:0})):v.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=x(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){const t=v.get(i);t&&0===t.referenceCount&&this._deleteMessageElement(i)}y&&0===y.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("cdk-describedby-host");y&&this._deleteMessagesContainer(),v.clear()}_createMessageElement(t,e){const n=this._document.createElement("div");C(n),n.textContent=t,e&&n.setAttribute("role",e),this._createMessagesContainer(),y.appendChild(n),v.set(x(t,e),{messageElement:n,referenceCount:0})}_deleteMessageElement(t){const e=v.get(t),n=e&&e.messageElement;y&&n&&y.removeChild(n),v.delete(t)}_createMessagesContainer(){if(!y){const t=this._document.getElementById("cdk-describedby-message-container");t&&t.parentNode&&t.parentNode.removeChild(t),y=this._document.createElement("div"),y.id="cdk-describedby-message-container",y.style.visibility="hidden",y.classList.add("cdk-visually-hidden"),this._document.body.appendChild(y)}}_deleteMessagesContainer(){y&&y.parentNode&&(y.parentNode.removeChild(y),y=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=v.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("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(t,e){const n=v.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("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const n=_(t,"aria-describedby"),i=v.get(e),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}_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)(r.LFG(i.K0))},t.\u0275prov=(0,r.Yz7)({factory:function(){return new t((0,r.LFG)(i.K0))},token:t,providedIn:"root"}),t})();function x(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function C(t){t.id||(t.id="cdk-describedby-message-"+b++)}class k{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new s.xQ,this._typeaheadSubscription=o.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new s.xQ,this.change=new s.xQ,t instanceof r.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,l.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,r=e[i];if(!this._skipPredicateFn(r)&&0===r.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 c.Mf:return void this.tabOut.next();case c.JH:if(this._vertical&&n){this.setNextItemActive();break}return;case c.LH:if(this._vertical&&n){this.setPreviousItemActive();break}return;case c.SV:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.oh:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.Sd:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case c.uR:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||(0,c.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.A&&e<=c.Z||e>=c.xE&&e<=c.aO)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof r.n_E?this._items.toArray():this._items}}class S extends k{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class E extends k{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 A=(()=>{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===O(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),r=O(t);return t.hasAttribute("contenteditable")?-1!==r:"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!==r:"video"===i?-1!==r&&(null!==r||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")||T(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(g.t4))},t.\u0275prov=(0,r.Yz7)({factory:function(){return new t((0,r.LFG)(g.t4))},token:t,providedIn:"root"}),t})();function T(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 O(t){if(!T(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class D{constructor(t,e,n,i,r=!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,r||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 I=(()=>{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)(r.LFG(A),r.LFG(r.R0b),r.LFG(i.K0))},t.\u0275prov=(0,r.Yz7)({factory:function(){return new t((0,r.LFG)(A),(0,r.LFG)(r.R0b),(0,r.LFG)(i.K0))},token:t,providedIn:"root"}),t})(),P=(()=>{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,f.Ig)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=(0,f.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)(r.Y36(r.SBq),r.Y36(I),r.Y36(i.K0))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[r.TTD]}),t})();"undefined"!=typeof Element&&Element;const F=new r.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),R=new r.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let M=(()=>{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,r;return 1===e.length&&"number"==typeof e[0]?r=e[0]:[i,r]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==r&&n&&(r=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 r&&(this._previousTimeout=setTimeout(()=>this.clear(),r))},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=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);return e.classList.add("cdk-live-announcer-element"),e.classList.add("cdk-visually-hidden"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),e}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(F,8),r.LFG(r.R0b),r.LFG(i.K0),r.LFG(R,8))},t.\u0275prov=(0,r.Yz7)({factory:function(){return new t((0,r.LFG)(F,8),(0,r.LFG)(r.R0b),(0,r.LFG)(i.K0),(0,r.LFG)(R,8))},token:t,providedIn:"root"}),t})(),L=(()=>{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)(r.Y36(r.SBq),r.Y36(M),r.Y36(m.yq),r.Y36(r.R0b))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function N(t){return 0===t.buttons}function Z(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const B=new r.OlP("cdk-focus-monitor-default-options"),U=(0,g.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=N(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{Z(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=j(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=j(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,f.fI)(t);if(!this._platform.isBrowser||1!==n.nodeType)return(0,a.of)(null);const i=(0,g.kV)(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject;const o={checkChildren:e,subject:new s.xQ,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=(0,f.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,f.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=j(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===j(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,U),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,U)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,U),t.addEventListener("mousedown",this._documentMousedownListener,U),t.addEventListener("touchstart",this._documentTouchstartListener,U),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,U),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,U),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,U),t.removeEventListener("mousedown",this._documentMousedownListener,U),t.removeEventListener("touchstart",this._documentTouchstartListener,U),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)(r.LFG(r.R0b),r.LFG(g.t4),r.LFG(i.K0,8),r.LFG(B,8))},t.\u0275prov=(0,r.Yz7)({factory:function(){return new t((0,r.LFG)(r.R0b),(0,r.LFG)(g.t4),(0,r.LFG)(i.K0,8),(0,r.LFG)(B,8))},token:t,providedIn:"root"}),t})();function j(t){return t.composedPath?t.composedPath()[0]:t.target}let q=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new r.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)(r.Y36(r.SBq),r.Y36(z))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),Y=(()=>{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("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(g.t4),r.LFG(i.K0))},t.\u0275prov=(0,r.Yz7)({factory:function(){return new t((0,r.LFG)(g.t4),(0,r.LFG)(i.K0))},token:t,providedIn:"root"}),t})(),$=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(Y))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[g.ud,m.Q8]]}),t})()},70946:function(t,e,n){"use strict";n.d(e,{vT:function(){return a},Is:function(){return o}});var i=n(37716),r=n(38583);const s=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,i.f3M)(r.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(s,8))},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t((0,i.LFG)(s,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})()},38345:function(t,e,n){"use strict";n.d(e,{P3:function(){return l},o2:function(){return a},Ov:function(){return h},A8:function(){return d},eX:function(){return u},k:function(){return p},Z9:function(){return c}});var i=n(95639),r=n(25917),s=n(79765),o=n(37716);class a{}function c(t){return t&&"function"==typeof t.connect}class l extends a{constructor(t){super(),this._data=t}connect(){return(0,i.b)(this._data)?this._data:(0,r.of)(this._data)}disconnect(){}}class u{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,i,r){t.forEachOperation((t,s,o)=>{let a,c;null==t.previousIndex?(a=this._insertView(()=>n(t,s,o),o,e,i(t)),c=a?1:0):null==o?(this._detachAndCacheView(s,e),c=3):(a=this._moveView(s,o,e,i(t)),c=2),r&&r({context:null==a?void 0:a.context,operation:c,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,n,i){const r=this._insertViewFromCache(e,n);if(r)return void(r.context.$implicit=i);const s=t();return n.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(t,e){const n=e.detach(t);this._maybeCacheView(n,e)}_moveView(t,e,n,i){const r=n.get(t);return n.move(r,e),r.context.$implicit=i,r}_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 h{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new s.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 d=(()=>{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 p=new o.OlP("_ViewRepeater")},36461:function(t,e,n){"use strict";n.d(e,{A:function(){return v},ZH:function(){return i},yY:function(){return m},JH:function(){return g},uR:function(){return u},K5:function(){return s},hY:function(){return o},Sd:function(){return h},oh:function(){return d},aO:function(){return b},VM:function(){return l},Ku:function(){return c},SV:function(){return f},L_:function(){return a},Mf:function(){return r},LH:function(){return p},Z:function(){return y},xE:function(){return _},Vb:function(){return w}});const i=8,r=9,s=13,o=27,a=32,c=33,l=34,u=35,h=36,d=37,p=38,f=39,g=40,m=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}},65072:function(t,e,n){"use strict";n.d(e,{Yg:function(){return y},u3:function(){return x}});var i=n(37716),r=n(39490),s=n(79765),o=n(90739),a=n(58071),c=n(67574),l=n(15257),u=n(13653),h=n(54395),d=n(88002),p=n(39761),f=n(46782),g=n(80521);const m=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(!m.has(t))try{_||(_=document.createElement("style"),_.setAttribute("type","text/css"),document.head.appendChild(_)),_.sheet&&(_.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),m.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(g.t4))},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t((0,i.LFG)(g.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 s.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return w((0,r.Eq)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=w((0,r.Eq)(t)).map(t=>this._registerQuery(t).observable);let n=(0,o.aj)(e);return n=(0,a.z)(n.pipe((0,l.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 c.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,f.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)"}},18553:function(t,e,n){"use strict";n.d(e,{wD:function(){return u},yq:function(){return l},Q8:function(){return h}});var i=n(39490),r=n(37716),s=n(67574),o=n(79765),a=n(54395);let c=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,r.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),l=(()=>{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 s.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)(r.LFG(c))},t.\u0275prov=(0,r.Yz7)({factory:function(){return new t((0,r.LFG)(c))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new r.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)(r.Y36(l),r.Y36(r.SBq),r.Y36(r.R0b))},t.\u0275dir=r.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=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[c]}),t})()},90625:function(t,e,n){"use strict";n.d(e,{aV:function(){return z},X_:function(){return C},Xj:function(){return D},U8:function(){return q}});var i=n(71386),r=n(37716),s=n(80521),o=n(70946),a=n(38583),c=n(39490),l=n(87636),u=n(79765),h=n(75319),d=n(66682);n(77393);var p=n(15257),f=n(46782);n(36461);const g=(0,s.Mq)();class m{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,c.HM)(-this._previousScrollPosition.left),t.style.top=(0,c.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||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),g&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),g&&(e.scrollBehavior=i,n.scrollBehavior=r)}}_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 m(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)(r.LFG(i.mF),r.LFG(i.rL),r.LFG(r.R0b),r.LFG(a.K0))},t.\u0275prov=(0,r.Yz7)({factory:function(){return new t((0,r.LFG)(i.mF),(0,r.LFG)(i.rL),(0,r.LFG)(r.R0b),(0,r.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,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class S{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)(r.LFG(a.K0))},t.\u0275prov=(0,r.Yz7)({factory:function(){return new t((0,r.LFG)(a.K0))},token:t,providedIn:"root"}),t})(),A=(()=>{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)(r.LFG(a.K0))},t.\u0275prov=(0,r.Yz7)({factory:function(){return new t((0,r.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 r=n[i];if(!(r._outsidePointerEvents.observers.length<1)&&r.hasAttached()){if(r.overlayElement.contains(e))break;r._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)(r.LFG(a.K0),r.LFG(s.t4))},t.\u0275prov=(0,r.Yz7)({factory:function(){return new t((0,r.LFG)(a.K0),(0,r.LFG)(s.t4))},token:t,providedIn:"root"}),t})();const O=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let D=(()=>{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(){if(this._platform.isBrowser||O){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e])}const t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),O?t.setAttribute("platform","test"):this._platform.isBrowser||t.setAttribute("platform","server"),this._document.body.appendChild(t),this._containerElement=t}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(a.K0),r.LFG(s.t4))},t.\u0275prov=(0,r.Yz7)({factory:function(){return new t((0,r.LFG)(a.K0),(0,r.LFG)(s.t4))},token:t,providedIn:"root"}),t})();class I{constructor(t,e,n,i,r,s,o,a,c){this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=r,this._keyboardDispatcher=s,this._document=o,this._location=a,this._outsideClickDispatcher=c,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,c.HM)(this._config.width),t.height=(0,c.HM)(this._config.height),t.minWidth=(0,c.HM)(this._config.minWidth),t.minHeight=(0,c.HM)(this._config.minHeight),t.maxWidth=(0,c.HM)(this._config.maxWidth),t.maxHeight=(0,c.HM)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){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("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_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,c.Eq)(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe((0,f.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 P=/([A-Za-z%]+)$/;class F{constructor(t,e,n,i,r){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r,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("cdk-overlay-connected-position-bounding-box"),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 r;for(let s of this._preferredPositions){let o=this._getOriginPoint(t,s),a=this._getOverlayPoint(o,e,s),c=this._getOverlayFit(a,e,n,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(c,a,n)?i.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!r||r.overlayFit.visibleArea<c.visibleArea)&&(r={overlayFit:c,overlayPoint:a,originPoint:o,position:s,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(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&R(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),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,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}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,r;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+r}}_getOverlayFit(t,e,n,i){const r=L(e);let{x:s,y:o}=t,a=this._getOffset(i,"x"),c=this._getOffset(i,"y");a&&(s+=a),c&&(o+=c);let l=0-o,u=o+r.height-n.height,h=this._subtractOverflows(r.width,0-s,s+r.width-n.width),d=this._subtractOverflows(r.height,l,u),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:r.width*r.height===p,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:h==r.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,r=n.right-e.x,s=M(this._overlayRef.getConfig().minHeight),o=M(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=r;return(t.fitsInViewportVertically||null!=s&&s<=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),r=this._viewportRect,s=Math.max(t.x+i.width-r.width,0),o=Math.max(t.y+i.height-r.height,0),a=Math.max(r.top-n.top-t.y,0),c=Math.max(r.left-n.left-t.x,0);let l=0,u=0;return l=i.width<=r.width?c||-s:t.x<this._viewportMargin?r.left-n.left-t.x:0,u=i.height<=r.height?a||-o:t.y<this._viewportMargin?r.top-n.top-t.y:0,this._previousPushAmount={x:l,y:u},{x:t.x+l,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 S(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 r=0;r<e.length;r++)e[r].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,i=this._isRtl();let r,s,o,a,c,l;if("top"===e.overlayY)s=t.y,r=n.height-s+this._viewportMargin;else if("bottom"===e.overlayY)o=n.height-t.y+2*this._viewportMargin,r=n.height-o+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),i=this._lastBoundingBoxSize.height;r=2*e,s=t.y-e,r>i&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)l=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)c=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,c=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-i/2)}return{top:s,left:c,bottom:o,right:l,width:a,height:r}}_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,r=this._overlayRef.getConfig().maxWidth;i.height=(0,c.HM)(n.height),i.top=(0,c.HM)(n.top),i.bottom=(0,c.HM)(n.bottom),i.width=(0,c.HM)(n.width),i.left=(0,c.HM)(n.left),i.right=(0,c.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,c.HM)(t)),r&&(i.maxWidth=(0,c.HM)(r))}this._lastBoundingBoxSize=n,R(this._boundingBox.style,i)}_resetBoundingBoxStyles(){R(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){R(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();R(n,this._getExactOverlayY(e,t,i)),R(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),s.maxHeight&&(i?n.maxHeight=(0,c.HM)(s.maxHeight):r&&(n.maxHeight="")),s.maxWidth&&(i?n.maxWidth=(0,c.HM)(s.maxWidth):r&&(n.maxWidth="")),R(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=(0,c.HM)(r.y),i}_getExactOverlayX(t,e,n){let i,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=(0,c.HM)(s.x),r}_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,c.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 r.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 R(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function M(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(P);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,r,s,o){this._preferredPositions=[],this._positionStrategy=new F(n,i,r,s,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 r=new k(t,e,n,i);return this._preferredPositions.push(r),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}}class Z{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),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:r,maxWidth:s,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"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=c?"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("cdk-global-overlay-wrapper"),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 Z}connectedTo(t,e,n){return new N(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new F(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.rL),r.LFG(a.K0),r.LFG(s.t4),r.LFG(D))},t.\u0275prov=(0,r.Yz7)({factory:function(){return new t((0,r.LFG)(i.rL),(0,r.LFG)(a.K0),(0,r.LFG)(s.t4),(0,r.LFG)(D))},token:t,providedIn:"root"}),t})(),U=0,z=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c,l,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=r,this._injector=s,this._ngZone=o,this._document=a,this._directionality=c,this._location=l,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new C(t);return r.direction=r.direction||this._directionality.value,new I(i,e,n,r,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-"+U++,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(r.z2F)),new l.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(x),r.LFG(D),r.LFG(r._Vd),r.LFG(B),r.LFG(A),r.LFG(r.zs3),r.LFG(r.R0b),r.LFG(a.K0),r.LFG(o.Is),r.LFG(a.Ye),r.LFG(T))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const j={provide:new r.OlP("cdk-connected-overlay-scroll-strategy"),deps:[z],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[z,j],imports:[[o.vT,l.eL,i.Cl],i.Cl]}),t})()},80521:function(t,e,n){"use strict";n.d(e,{t4:function(){return a},ud:function(){return c},kV:function(){return b},_i:function(){return _},qK:function(){return u},i$:function(){return g},Mq:function(){return m}});var i=n(37716),r=n(38583);let s;try{s="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(v){s=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,r.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&&!s)&&"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})(),c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const l=["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(l),o;let t=document.createElement("input");return o=new Set(l.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let h,d,p,f;function g(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 m(){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==f){const t="undefined"!=typeof document?document.head:null;f=!(!t||!t.createShadowRoot&&!t.attachShadow)}return f}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},87636:function(t,e,n){"use strict";n.d(e,{en:function(){return l},ig:function(){return h},Pl:function(){return d},C5:function(){return o},u0:function(){return u},nK:function(){return f},eL:function(){return p},UE:function(){return a}});var i=n(37716),r=n(38583);class s{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 s{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class a extends s{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 c extends s{constructor(t){super(),this.element=t instanceof i.SBq?t.nativeElement:t}}class l{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 c?(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 l{constructor(t,e,n,i,r){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=r}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 l{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(r.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 f{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)}}},71386:function(t,e,n){"use strict";n.d(e,{PQ:function(){return m},ZD:function(){return b},mF:function(){return g},Cl:function(){return v},rL:function(){return _}});var i=n(39490),r=n(37716),s=n(79765),o=n(25917),a=n(67574),c=n(22759),l=(n(61927),n(64581),n(75319),n(95639),n(87519),n(80013)),u=n(45435),h=n(46782),d=(n(39761),n(59328),n(43190),n(47349),n(80521)),p=n(38583),f=n(70946);n(38345);let g=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new s.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,l.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),r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return(0,c.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)(r.LFG(r.R0b),r.LFG(d.t4),r.LFG(p.K0,8))},t.\u0275prov=(0,r.Yz7)({factory:function(){return new t((0,r.LFG)(r.R0b),(0,r.LFG)(d.t4),(0,r.LFG)(p.K0,8))},token:t,providedIn:"root"}),t})(),m=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=i,this._destroyed=new s.xQ,this._elementScrolled=new a.y(t=>this.ngZone.runOutsideAngular(()=>(0,c.R)(this.elementRef.nativeElement,"scroll").pipe((0,h.R)(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=(0,d._i)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==(0,d._i)()?t.left=t.right:1==(0,d._i)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;(0,d.Mq)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==(0,d._i)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==(0,d._i)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(g),r.Y36(r.R0b),r.Y36(f.Is,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),_=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new s.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,l.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)(r.LFG(d.t4),r.LFG(r.R0b),r.LFG(p.K0,8))},t.\u0275prov=(0,r.Yz7)({factory:function(){return new t((0,r.LFG)(d.t4),(0,r.LFG)(r.R0b),(0,r.LFG)(p.K0,8))},token:t,providedIn:"root"}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t})(),v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[f.vT,d.ud,b],f.vT,b]}),t})()},39490:function(t,e,n){"use strict";n.d(e,{t6:function(){return o},Eq:function(){return a},Ig:function(){return r},HM:function(){return c},fI:function(){return l},su:function(){return s},du:function(){return u}});var i=n(37716);function r(t){return null!=t&&"false"!=`${t}`}function s(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 c(t){return null==t?"":"string"==typeof t?t:`${t}px`}function l(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}},38583:function(t,e,n){"use strict";n.d(e,{mr:function(){return y},Ov:function(){return Ft},ez:function(){return qt},H9:function(){return Ut},K0:function(){return c},uU:function(){return Lt},JJ:function(){return Bt},Do:function(){return x},Nd:function(){return Nt},V_:function(){return h},Ye:function(){return C},S$:function(){return b},mk:function(){return gt},sg:function(){return _t},O5:function(){return vt},PC:function(){return Et},RF:function(){return Ct},n9:function(){return kt},ED:function(){return St},tP:function(){return At},b0:function(){return w},lw:function(){return l},rS:function(){return Mt},EM:function(){return Ht},JF:function(){return Jt},NF:function(){return $t},PM:function(){return Vt},w_:function(){return a},bD:function(){return Yt},q:function(){return s},Mx:function(){return ft},HT:function(){return o}});var i=n(37716);let r=null;function s(){return r}function o(t){r||(r=t)}class a{}const c=new i.OlP("DocumentToken");let l=(()=>{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 l{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(t){const e=s().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=s().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(c))},t.\u0275prov=(0,i.Yz7)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d((0,i.LFG)(c))}function g(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 m(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)(c).location;return new w((0,i.LFG)(l),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 g(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 r=this.prepareExternalUrl(n+_(i));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){const r=this.prepareExternalUrl(n+_(i));this._platformLocation.replaceState(t,e,r)}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(l),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=g(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let r=this.prepareExternalUrl(n+_(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){let r=this.prepareExternalUrl(n+_(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}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(l),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=m(S(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+_(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,S(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(b),i.LFG(l))},t.normalizeQueryParams=_,t.joinWithSlash=g,t.stripTrailingSlash=m,t.\u0275prov=(0,i.Yz7)({factory:k,token:t,providedIn:"root"}),t})();function k(){return new C((0,i.LFG)(b),(0,i.LFG)(l))}function S(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 A=(()=>((A=A||{})[A.Decimal=0]="Decimal",A[A.Percent=1]="Percent",A[A.Currency=2]="Currency",A[A.Scientific=3]="Scientific",A))(),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))(),D=(()=>((D=D||{})[D.Narrow=0]="Narrow",D[D.Abbreviated=1]="Abbreviated",D[D.Wide=2]="Wide",D[D.Short=3]="Short",D))(),I=(()=>((I=I||{})[I.Short=0]="Short",I[I.Medium=1]="Medium",I[I.Long=2]="Long",I[I.Full=3]="Full",I))(),P=(()=>((P=P||{})[P.Decimal=0]="Decimal",P[P.Group=1]="Group",P[P.List=2]="List",P[P.PercentSign=3]="PercentSign",P[P.PlusSign=4]="PlusSign",P[P.MinusSign=5]="MinusSign",P[P.Exponential=6]="Exponential",P[P.SuperscriptingExponent=7]="SuperscriptingExponent",P[P.PerMille=8]="PerMille",P[P[1/0]=9]="Infinity",P[P.NaN=10]="NaN",P[P.TimeSeparator=11]="TimeSeparator",P[P.CurrencyDecimal=12]="CurrencyDecimal",P[P.CurrencyGroup=13]="CurrencyGroup",P))();function F(t,e){return U((0,i.cg1)(t)[i.wAp.DateFormat],e)}function R(t,e){return U((0,i.cg1)(t)[i.wAp.TimeFormat],e)}function M(t,e){return U((0,i.cg1)(t)[i.wAp.DateTimeFormat],e)}function L(t,e){const n=(0,i.cg1)(t),r=n[i.wAp.NumberSymbols][e];if(void 0===r){if(e===P.CurrencyDecimal)return n[i.wAp.NumberSymbols][P.Decimal];if(e===P.CurrencyGroup)return n[i.wAp.NumberSymbols][P.Group]}return r}function N(t,e){return(0,i.cg1)(t)[i.wAp.NumberFormats][e]}const Z=i.kL8;function B(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 U(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 z(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))?)?$/,q={},Y=/((?:[^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 $=(()=>(($=$||{})[$.Short=0]="Short",$[$.ShortGMT=1]="ShortGMT",$[$.Long=2]="Long",$[$.Extended=3]="Extended",$))(),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 r=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 Q(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 r=t[8]?e.setUTCFullYear:e.setFullYear,s=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.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,c=Number(t[6]||0),l=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return s.call(e,o,a,c,l),e}(n)}const e=new Date(t);if(!at(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=J(n,e)||e;let s,o=[];for(;e;){if(s=Y.exec(e),!s){o.push(e);break}{o=o.concat(s.slice(1));const t=o.pop();if(!t)break;e=t}}let a=r.getTimezoneOffset();i&&(a=ot(i,a),r=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))}(r,i));let c="";return o.forEach(t=>{const e=function(t){if(st[t])return st[t];let e;switch(t){case"G":case"GG":case"GGG":e=tt(H.Eras,D.Abbreviated);break;case"GGGG":e=tt(H.Eras,D.Wide);break;case"GGGGG":e=tt(H.Eras,D.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=rt(1);break;case"YY":e=rt(2,!0);break;case"YYY":e=rt(3);break;case"YYYY":e=rt(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,D.Abbreviated);break;case"MMMM":e=tt(H.Months,D.Wide);break;case"MMMMM":e=tt(H.Months,D.Narrow);break;case"LLL":e=tt(H.Months,D.Abbreviated,O.Standalone);break;case"LLLL":e=tt(H.Months,D.Wide,O.Standalone);break;case"LLLLL":e=tt(H.Months,D.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,D.Abbreviated,O.Standalone);break;case"cccc":e=tt(H.Days,D.Wide,O.Standalone);break;case"ccccc":e=tt(H.Days,D.Narrow,O.Standalone);break;case"cccccc":e=tt(H.Days,D.Short,O.Standalone);break;case"E":case"EE":case"EEE":e=tt(H.Days,D.Abbreviated);break;case"EEEE":e=tt(H.Days,D.Wide);break;case"EEEEE":e=tt(H.Days,D.Narrow);break;case"EEEEEE":e=tt(H.Days,D.Short);break;case"a":case"aa":case"aaa":e=tt(H.DayPeriods,D.Abbreviated);break;case"aaaa":e=tt(H.DayPeriods,D.Wide);break;case"aaaaa":e=tt(H.DayPeriods,D.Narrow);break;case"b":case"bb":case"bbb":e=tt(H.DayPeriods,D.Abbreviated,O.Standalone,!0);break;case"bbbb":e=tt(H.DayPeriods,D.Wide,O.Standalone,!0);break;case"bbbbb":e=tt(H.DayPeriods,D.Narrow,O.Standalone,!0);break;case"B":case"BB":case"BBB":e=tt(H.DayPeriods,D.Abbreviated,O.Format,!0);break;case"BBBB":e=tt(H.DayPeriods,D.Wide,O.Format,!0);break;case"BBBBB":e=tt(H.DayPeriods,D.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($.Short);break;case"ZZZZZ":e=et($.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=et($.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=et($.Long);break;default:return null}return st[t]=e,e}(t);c+=e?e(r,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Q(t,e,n){const i=new Date(0);return i.setFullYear(t,e,n),i.setHours(0,0,0),i}function J(t,e){const n=function(t){return(0,i.cg1)(t)[i.wAp.LocaleId]}(t);if(q[n]=q[n]||{},q[n][e])return q[n][e];let r="";switch(e){case"shortDate":r=F(t,I.Short);break;case"mediumDate":r=F(t,I.Medium);break;case"longDate":r=F(t,I.Long);break;case"fullDate":r=F(t,I.Full);break;case"shortTime":r=R(t,I.Short);break;case"mediumTime":r=R(t,I.Medium);break;case"longTime":r=R(t,I.Long);break;case"fullTime":r=R(t,I.Full);break;case"short":const e=J(t,"shortTime"),n=J(t,"shortDate");r=W(M(t,I.Short),[e,n]);break;case"medium":const i=J(t,"mediumTime"),s=J(t,"mediumDate");r=W(M(t,I.Medium),[i,s]);break;case"long":const o=J(t,"longTime"),a=J(t,"longDate");r=W(M(t,I.Long),[o,a]);break;case"full":const c=J(t,"fullTime"),l=J(t,"fullDate");r=W(M(t,I.Full),[c,l])}return r&&(q[n][e]=r),r}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,r){let s="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,s=n));let o=String(t);for(;o.length<e;)o="0"+o;return i&&(o=o.substr(o.length-e)),s+o}function X(t,e,n=0,i=!1,r=!1){return function(s,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,s);if((n>0||a>-n)&&(a+=n),t===V.Hours)0===a&&-12===n&&(a=12);else if(t===V.FractionalSeconds)return c=e,K(a,3).substr(0,c);var c;const l=L(o,P.MinusSign);return K(a,e,l,i,r)}}function tt(t,e,n=O.Format,r=!1){return function(s,o){return function(t,e,n,r,s,o){switch(n){case H.Months:return function(t,e,n){const r=(0,i.cg1)(t),s=U([r[i.wAp.MonthsFormat],r[i.wAp.MonthsStandalone]],e);return U(s,n)}(e,s,r)[t.getMonth()];case H.Days:return function(t,e,n){const r=(0,i.cg1)(t),s=U([r[i.wAp.DaysFormat],r[i.wAp.DaysStandalone]],e);return U(s,n)}(e,s,r)[t.getDay()];case H.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(o){const t=function(t){const e=(0,i.cg1)(t);return B(e),(e[i.wAp.ExtraData][2]||[]).map(t=>"string"==typeof t?z(t):[z(t[0]),z(t[1])])}(e),n=function(t,e,n){const r=(0,i.cg1)(t);B(r);const s=U([r[i.wAp.ExtraData][0],r[i.wAp.ExtraData][1]],e)||[];return U(s,n)||[]}(e,s,r),o=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,i=a>=e.hours&&c>=e.minutes,r=a<n.hours||a===n.hours&&c<n.minutes;if(e.hours<n.hours){if(i&&r)return!0}else if(i||r)return!0}else if(t.hours===a&&t.minutes===c)return!0;return!1});if(-1!==o)return n[o]}return function(t,e,n){const r=(0,i.cg1)(t),s=U([r[i.wAp.DayPeriodsFormat],r[i.wAp.DayPeriodsStandalone]],e);return U(s,n)}(e,s,r)[a<12?0:1];case H.Eras:return function(t,e){return U((0,i.cg1)(t)[i.wAp.Eras],e)}(e,r)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(s,o,t,e,n,r)}}function et(t){return function(e,n,i){const r=-1*i,s=L(n,P.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case $.Short:return(r>=0?"+":"")+K(o,2,s)+K(Math.abs(r%60),2,s);case $.ShortGMT:return"GMT"+(r>=0?"+":"")+K(o,1,s);case $.Long:return"GMT"+(r>=0?"+":"")+K(o,2,s)+":"+K(Math.abs(r%60),2,s);case $.Extended:return 0===i?"Z":(r>=0?"+":"")+K(o,2,s)+":"+K(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}function nt(t){return Q(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function it(t,e=!1){return function(n,i){let r;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();r=1+Math.floor((e+t)/7)}else{const t=nt(n),e=function(t){const e=Q(t,0,1).getDay();return Q(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),i=t.getTime()-e.getTime();r=1+Math.round(i/6048e5)}return K(r,t,L(i,P.MinusSign))}}function rt(t,e=!1){return function(n,i){return K(nt(n).getFullYear(),t,L(i,P.MinusSign),e)}}const st={};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 ct=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function lt(t,e,n,i,r,s,o=!1){let a="",c=!1;if(isFinite(t)){let l=function(t){let e,n,i,r,s,o=Math.abs(t)+"",a=0;for((n=o.indexOf("."))>-1&&(o=o.replace(".","")),(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;"0"===o.charAt(i);i++);if(i===(s=o.length))e=[0],n=1;else{for(s--;"0"===o.charAt(s);)s--;for(n-=i,e=[],r=0;i<=s;i++,r++)e[r]=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&&(l=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}(l));let u=e.minInt,h=e.minFrac,d=e.maxFrac;if(s){const t=s.match(ct);if(null===t)throw new Error(`${s} is not a valid digit info`);const e=t[1],n=t[3],i=t[5];null!=e&&(u=ht(e)),null!=n&&(h=ht(n)),null!=i?d=ht(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,r=i.length-t.integerLen;const s=Math.min(Math.max(e,r),n);let o=s+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{r=Math.max(0,r),t.integerLen=1,i.length=Math.max(1,o=s+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(;r<Math.max(0,s);r++)i.push(0);let c=0!==s;const l=e+t.integerLen,u=i.reduceRight(function(t,e,n,i){return i[n]=(e+=t)<10?e:e-10,c&&(0===i[n]&&n>=l?i.pop():c=!1),e>=10?1:0},0);u&&(i.unshift(u),t.integerLen++)}(l,h,d);let p=l.digits,f=l.integerLen;const g=l.exponent;let m=[];for(c=p.every(t=>!t);f<u;f++)p.unshift(0);for(;f<0;f++)p.unshift(0);f>0?m=p.splice(f,p.length):(m=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(L(n,i)),m.length&&(a+=L(n,r)+m.join("")),g&&(a+=L(n,P.Exponential)+"+"+g)}else a=L(n,P.Infinity);return a=t<0&&!c?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}function ut(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),r=i[0],s=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=o[0],c=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u<c.length;u++){const t=c.charAt(u);"0"===t?n.minFrac=n.maxFrac=u+1:"#"===t?n.maxFrac=u+1:n.posSuf+=t}const l=a.split(",");if(n.gSize=l[1]?l[1].length:0,n.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,s){const t=r.length-n.posPre.length-n.posSuf.length,e=s.indexOf("#");n.negPre=s.substr(0,e).replace(/'/g,""),n.negSuf=s.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}function ht(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class dt{}let pt=(()=>{class t extends dt{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(Z(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,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(r)}return null}let gt=(()=>{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 mt{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 _t=(()=>{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 mt(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new bt(t,n);e.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const s=new bt(t,r);e.push(s)}});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 bt{constructor(t,e){this.record=t,this.view=e}}let vt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new yt,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){wt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){wt("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 yt{constructor(){this.$implicit=null,this.ngIf=null}}function wt(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.AaK)(e)}'.`)}class xt{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 Ct=(()=>{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})(),kt=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new xt(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(Ct,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),St=(()=>{class t{constructor(t,e,n){n._addDefault(new xt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(Ct,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Et=(()=>{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})(),At=(()=>{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 Tt(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,i.AaK)(t)}'`)}class Ot{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 It=new Dt,Pt=new Ot;let Ft=(()=>{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 It;if((0,i.F4k)(e))return Pt;throw Tt(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 Mt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Tt(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})(),Lt=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",i,r){if(null==e||""===e||e!=e)return null;try{return G(e,n,r||this.locale,i)}catch(s){throw Tt(t,s.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})(),Nt=(()=>{class t{constructor(t){this.differs=t,this.keyValues=[]}transform(t,e=Zt){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);return n&&(this.keyValues=[],n.forEachItem(t=>{this.keyValues.push({key:t.key,value:t.currentValue})}),this.keyValues.sort(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 Zt(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 r=String(n),s=String(i);return r==s?0:r<s?-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 lt(t,ut(N(e,A.Decimal),L(e,P.MinusSign)),e,P.Group,P.Decimal,n)}(jt(e),i,n)}catch(r){throw Tt(t,r.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})(),Ut=(()=>{class t{constructor(t,e="USD"){this._locale=t,this._defaultCurrencyCode=e}transform(e,n=this._defaultCurrencyCode,r="symbol",s,o){if(!zt(e))return null;o=o||this._locale,"boolean"==typeof r&&(r=r?"symbol":"code");let a=n||this._defaultCurrencyCode;"code"!==r&&(a="symbol"===r||"symbol-narrow"===r?function(t,e,n="en"){const r=function(t){return(0,i.cg1)(t)[i.wAp.Currencies]}(n)[t]||E[t]||[],s=r[1];return"narrow"===e&&"string"==typeof s?s:r[0]||t}(a,"symbol"===r?"wide":"narrow",o):r);try{return function(t,e,n,i,r){const s=ut(N(e,A.Currency),L(e,P.MinusSign));return s.minFrac=function(t){let e;const n=E[t];return n&&(e=n[2]),"number"==typeof e?e:2}(i),s.maxFrac=s.minFrac,lt(t,s,e,P.CurrencyGroup,P.CurrencyDecimal,r).replace("\xa4",n).replace("\xa4","").trim()}(jt(e),o,a,n,s)}catch(c){throw Tt(t,c.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 jt(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 qt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:dt,useClass:pt}]}),t})();const Yt="browser";function $t(t){return t===Yt}function Vt(t){return"server"===t}let Ht=(()=>{class t{}return t.\u0275prov=(0,i.Yz7)({token:t,providedIn:"root",factory:()=>new Gt((0,i.LFG)(c),window)}),t})();class Gt{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,r=this.offset();this.window.scrollTo(n-r[0],i-r[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 Jt{}},91841:function(t,e,n){"use strict";n.d(e,{TP:function(){return D},eN:function(){return T},JF:function(){return z},dt:function(){return x},LE:function(){return m},aW:function(){return w},Zn:function(){return S}});var i=n(38583),r=n(37716),s=n(25917),o=n(67574),a=n(94612),c=n(45435),l=n(88002);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(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>{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 r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===r.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 f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function f(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 g(t){return`${t}`}class m{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("="),[r,s]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(r)||[];o.push(s),n.set(r,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 m({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(g(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(g(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 r;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,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.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 m,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 m?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 m?"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,r=t.responseType||this.responseType,s=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 c=t.headers||this.headers,l=t.params||this.params;const u=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new w(n,i,s,{params:l,headers:c,context:u,reportProgress:a,responseType:r,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 S extends C{constructor(t={}){super(t),this.type=x.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new S({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 A(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let T=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof w)i=t;else{let r,s;r=n.headers instanceof d?n.headers:new d(n.headers),n.params&&(s=n.params instanceof m?n.params:new m({fromObject:n.params})),i=new w(t,e,void 0!==n.body?n.body:null,{headers:r,context:n.context,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=(0,s.of)(i).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof w||"events"===n.observe)return r;const o=r.pipe((0,c.h)(t=>t instanceof S));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return o.pipe((0,l.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,l.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,l.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,l.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 m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,A(n,e))}post(t,e,n={}){return this.request("POST",t,A(n,e))}put(t,e,n={}){return this.request("PUT",t,A(n,e))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(u))},t.\u0275prov=r.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 D=new r.OlP("HTTP_INTERCEPTORS");let I=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const P=/^\)\]\}',?\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 r=null;const s=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,i=n.statusText||"OK",s=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 r=new k({headers:s,status:e,statusText:i,url:o}),r},o=()=>{let{headers:i,status:r,statusText:o,url:a}=s(),c=null;204!==r&&(c=void 0===n.response?n.responseText:n.response),0===r&&(r=c?200:0);let l=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(P,"");try{c=""!==c?JSON.parse(c):null}catch(u){c=t,l&&(l=!1,c={error:u,text:c})}}l?(e.next(new S({body:c,headers:i,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new E({error:c,headers:i,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=s(),r=new E({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(r)};let c=!1;const l=i=>{c||(e.next(s()),c=!0);let r={type:x.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},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",l),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",l),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.JF))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const R=new r.OlP("XSRF_COOKIE_NAME"),M=new r.OlP("XSRF_HEADER_NAME");class L{}let N=(()=>{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)(r.LFG(i.K0),r.LFG(r.Lbi),r.LFG(R))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),Z=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(L),r.LFG(M))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{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(D,[]);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)(r.LFG(h),r.LFG(r.zs3))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),U=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Z,useClass:I}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:R,useValue:e.cookieName}:[],e.headerName?{provide:M,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[Z,{provide:D,useExisting:Z,multi:!0},{provide:L,useClass:N},{provide:R,useValue:"XSRF-TOKEN"},{provide:M,useValue:"X-XSRF-TOKEN"}]}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[T,{provide:u,useClass:B},F,{provide:h,useExisting:F}],imports:[[U.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},37716:function(t,e,n){"use strict";n.d(e,{deG:function(){return sn},tb:function(){return Ll},AFp:function(){return Il},ip1:function(){return Ol},CZH:function(){return Dl},hGG:function(){return Du},z2F:function(){return yu},QSY:function(){return Gl},sBO:function(){return Cc},Sil:function(){return Hl},_Vd:function(){return Ha},EJc:function(){return Bl},SBq:function(){return Wa},qLn:function(){return Li},vpe:function(){return ll},gxx:function(){return ks},tBr:function(){return Fn},XFs:function(){return O},OlP:function(){return rn},zs3:function(){return Bs},ZZ4:function(){return mc},aQg:function(){return bc},soG:function(){return Zl},YKP:function(){return Fc},v3s:function(){return xu},h0i:function(){return Pc},PXZ:function(){return gu},R0b:function(){return Wl},FiY:function(){return Rn},Lbi:function(){return Ml},g9A:function(){return Rl},n_E:function(){return hl},XwF:function(){return Ao},Qsj:function(){return tc},FYo:function(){return Xa},JOm:function(){return zi},Tiy:function(){return nc},q3G:function(){return Ei},tp0:function(){return Ln},EAV:function(){return Su},Rgc:function(){return Tc},dDg:function(){return ru},DyG:function(){return on},GfV:function(){return ic},s_b:function(){return Mc},ifc:function(){return M},eFA:function(){return mu},G48:function(){return pu},Gpc:function(){return p},XfM:function(){return _u},f3M:function(){return Dn},X6Q:function(){return du},_c5:function(){return Tu},VLi:function(){return au},c2e:function(){return Nl},zSh:function(){return Es},wAp:function(){return Ra},vHH:function(){return m},EiD:function(){return ki},mCW:function(){return ai},qzn:function(){return Jn},JVY:function(){return Kn},pB0:function(){return ni},eBb:function(){return ti},L6k:function(){return Xn},LAX:function(){return ei},cg1:function(){return Ia},Tjo:function(){return Au},kL8:function(){return Pa},yhl:function(){return Wn},dqk:function(){return U},sIi:function(){return Qs},CqO:function(){return zo},QGY:function(){return Bo},F4k:function(){return Uo},RDi:function(){return Ct},AaK:function(){return u},z3N:function(){return Qn},qOj:function(){return zs},TTD:function(){return _t},_Bn:function(){return Ya},xp6:function(){return Ar},uIk:function(){return eo},Tol:function(){return aa},Gre:function(){return Sa},ekj:function(){return oa},Suo:function(){return Cl},Xpm:function(){return W},lG2:function(){return st},Yz7:function(){return y},cJS:function(){return w},oAB:function(){return nt},Yjl:function(){return ot},Y36:function(){return Oo},_UZ:function(){return Ro},GkF:function(){return No},BQk:function(){return Lo},ynx:function(){return Mo},qZA:function(){return Fo},TgZ:function(){return Po},EpF:function(){return Zo},n5z:function(){return Ke},Ikx:function(){return Ea},LFG:function(){return On},$8M:function(){return tn},NdJ:function(){return jo},CRH:function(){return kl},kcU:function(){return _e},O4$:function(){return me},oxw:function(){return Ho},ALo:function(){return il},lcZ:function(){return rl},xi3:function(){return sl},Hsn:function(){return Jo},F$t:function(){return Qo},Q6J:function(){return Do},s9C:function(){return Wo},MGl:function(){return Ko},DdM:function(){return Jc},VKq:function(){return Wc},WLB:function(){return Kc},kEZ:function(){return Xc},iGM:function(){return wl},MAs:function(){return ro},pYS:function(){return Bi},evT:function(){return Zi},CHM:function(){return jt},oJD:function(){return Ai},uOi:function(){return Oi},LSH:function(){return Ti},B6R:function(){return K},kYT:function(){return it},Udp:function(){return sa},WFA:function(){return qo},d8E:function(){return Aa},YNc:function(){return io},W1O:function(){return Tl},_uU:function(){return va},Oqu:function(){return ya},hij:function(){return wa},AsE:function(){return xa},lnq:function(){return Ca},HOy:function(){return ka},Gf:function(){return xl}});var i=n(79765),r=n(75319),s=n(67574),o=n(66682),a=n(18819);function c(t){for(let e in t)if(t[e]===c)return e;throw Error("Could not find renamed property on target object.")}function l(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=c({__forward_ref__:c});function p(t){return t.__forward_ref__=p,t.toString=function(){return u(this())},t}function f(t){return g(t)?t():t}function g(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}class m 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 m("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,S)||C(t,A)}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 S=c({"\u0275prov":c}),E=c({"\u0275inj":c}),A=c({ngInjectableDef:c}),T=c({ngInjectorDef:c});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 D;function I(t){const e=D;return D=t,e}function P(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 R=(()=>((R=R||{})[R.OnPush=0]="OnPush",R[R.Default=1]="Default",R))(),M=(()=>((M=M||{})[M.Emulated=0]="Emulated",M[M.None=2]="None",M[M.ShadowDom=3]="ShadowDom",M))();const L="undefined"!=typeof globalThis&&globalThis,N="undefined"!=typeof window&&window,Z="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,B="undefined"!=typeof global&&global,U=L||B||N||Z,z={},j=[],q=c({"\u0275cmp":c}),Y=c({"\u0275dir":c}),$=c({"\u0275pipe":c}),V=c({"\u0275mod":c}),H=c({"\u0275loc":c}),G=c({"\u0275fac":c}),Q=c({__NG_ELEMENT_ID__:c});let J=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===R.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||j,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||M.Emulated,id:"c",styles:t.styles||j,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,s=t.pipes;return n.id+=J++,n.inputs=rt(t.inputs,e),n.outputs=rt(t.outputs),r&&r.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(X):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).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[Y]||null}(t)}function tt(t){return function(t){return t[$]||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=ct(t,!0);n.declarations=e.declarations||j,n.imports=e.imports||j,n.exports=e.exports||j})}function rt(t,e){if(null==t)return z;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,e&&(e[r]=s)}return n}const st=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[q]||null}function ct(t,e){const n=t[V]||null;if(!n&&!0===e)throw new Error(`Type ${u(t)} does not have '\u0275mod' property.`);return n}function lt(t){return Array.isArray(t)&&"object"==typeof t[1]}function ut(t){return Array.isArray(t)&&!0===t[1]}function ht(t){return 0!=(8&t.flags)}function dt(t){return 2==(2&t.flags)}function pt(t){return 1==(1&t.flags)}function ft(t){return null!==t.template}function gt(t,e){return t.hasOwnProperty(G)?t[G]:null}class mt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function _t(){return bt}function bt(t){return t.type.prototype.ngOnChanges&&(t.setInput=yt),vt}function vt(){const t=wt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===z)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function yt(t,e,n,i){const r=wt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:z,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],c=o[a];s[a]=new mt(c&&c.currentValue,e,o===z),t[i]=e}function wt(t){return t.__ngSimpleChanges__||null}let xt;function Ct(t){xt=t}function kt(){return void 0!==xt?xt:"undefined"!=typeof document?document:void 0}function St(t){return!!t.listen}_t.ngInherit=!0;const Et={createRenderer:(t,e)=>kt()};function At(t){for(;Array.isArray(t);)t=t[0];return t}function Tt(t,e){return At(e[t])}function Ot(t,e){return At(e[t.index])}function Dt(t,e){return t.data[e]}function It(t,e){return t[e]}function Pt(t,e){const n=e[t];return lt(n)?n:n[0]}function Ft(t){return 4==(4&t[2])}function Rt(t){return 128==(128&t[2])}function Mt(t,e){return null==e?null:t[e]}function Lt(t){t[18]=0}function Nt(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 Zt={lFrame:le(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Bt(){return Zt.bindingsEnabled}function Ut(){return Zt.lFrame.lView}function zt(){return Zt.lFrame.tView}function jt(t){return Zt.lFrame.contextLView=t,t[8]}function qt(){let t=Yt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Yt(){return Zt.lFrame.currentTNode}function $t(t,e){const n=Zt.lFrame;n.currentTNode=t,n.isParent=e}function Vt(){return Zt.lFrame.isParent}function Ht(){Zt.lFrame.isParent=!1}function Gt(){return Zt.isInCheckNoChangesMode}function Qt(t){Zt.isInCheckNoChangesMode=t}function Jt(){const t=Zt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Wt(){return Zt.lFrame.bindingIndex}function Kt(){return Zt.lFrame.bindingIndex++}function Xt(t){const e=Zt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function te(t,e){const n=Zt.lFrame;n.bindingIndex=n.bindingRootIndex=t,ee(e)}function ee(t){Zt.lFrame.currentDirectiveIndex=t}function ne(t){const e=Zt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ie(){return Zt.lFrame.currentQueryIndex}function re(t){Zt.lFrame.currentQueryIndex=t}function se(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function oe(t,e,n){if(n&O.SkipSelf){let i=e,r=t;for(;i=i.parent,!(null!==i||n&O.Host||(i=se(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;e=i,t=r}const i=Zt.lFrame=ce();return i.currentTNode=e,i.lView=t,!0}function ae(t){const e=ce(),n=t[1];Zt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function ce(){const t=Zt.lFrame,e=null===t?null:t.child;return null===e?le(t):e}function le(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 ue(){const t=Zt.lFrame;return Zt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const he=ue;function de(){const t=ue();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 pe(){return Zt.lFrame.selectedIndex}function fe(t){Zt.lFrame.selectedIndex=t}function ge(){const t=Zt.lFrame;return Dt(t.tView,t.selectedIndex)}function me(){Zt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function _e(){Zt.lFrame.currentNamespace=null}function be(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:r,ngAfterViewInit:s,ngAfterViewChecked:o,ngOnDestroy:a}=e;i&&(t.contentHooks||(t.contentHooks=[])).push(-n,i),r&&((t.contentHooks||(t.contentHooks=[])).push(n,r),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,r)),s&&(t.viewHooks||(t.viewHooks=[])).push(-n,s),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 ve(t,e,n){xe(t,e,3,n)}function ye(t,e,n,i){(3&t[2])===n&&xe(t,e,n,i)}function we(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function xe(t,e,n,i){const r=null!=i?i:-1,s=e.length-1;let o=0;for(let a=void 0!==i?65535&t[18]:0;a<s;a++)if("number"==typeof e[a+1]){if(o=e[a],null!=i&&o>=i)break}else e[a]<0&&(t[18]+=65536),(o<r||-1==r)&&(Ce(t,n,e,a),t[18]=(4294901760&t[18])+a+2),a++}function Ce(t,e,n,i){const r=n[i]<0,s=n[i+1],o=t[r?-n[i]:n[i]];if(r){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{s.call(o)}finally{}}}else try{s.call(o)}finally{}}class ke{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Se(t,e,n){const i=St(t);let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const o=n[r++],a=n[r++],c=n[r++];i?t.setAttribute(e,a,c,o):e.setAttributeNS(o,a,c)}else{const o=s,a=n[++r];Ae(o)?i&&t.setProperty(e,o,a):i?t.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Ee(t){return 3===t||4===t||6===t}function Ae(t){return 64===t.charCodeAt(0)}function Te(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 r=e[i];"number"==typeof r?n=r:0===n||Oe(t,n,r,null,-1===n||2===n?e[++i]:null)}}return t}function Oe(t,e,n,i,r){let s=0,o=t.length;if(-1===e)o=-1;else for(;s<t.length;){const n=t[s++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=s-1;break}}}for(;s<t.length;){const e=t[s];if("number"==typeof e)break;if(e===n){if(null===i)return void(null!==r&&(t[s+1]=r));if(i===t[s+1])return void(t[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(t.splice(o,0,e),s=o+1),t.splice(s++,0,n),null!==i&&t.splice(s++,0,i),null!==r&&t.splice(s++,0,r)}function De(t){return-1!==t}function Ie(t){return 32767&t}function Pe(t,e){let n=t>>16,i=e;for(;n>0;)i=i[15],n--;return i}let Fe=!0;function Re(t){const e=Fe;return Fe=t,e}let Me=0;function Le(t,e){const n=Ze(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Ne(i.data,t),Ne(e,null),Ne(i.blueprint,null));const r=Be(t,e),s=t.injectorIndex;if(De(r)){const t=Ie(r),n=Pe(r,e),i=n[1].data;for(let r=0;r<8;r++)e[s+r]=n[t+r]|i[t+r]}return e[s+8]=r,s}function Ne(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ze(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Be(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,r=e;for(;null!==r;){const t=r[1],e=t.type;if(i=2===e?t.declTNode:1===e?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Ue(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Q)&&(i=n[Q]),null==i&&(i=n[Q]=Me++);const r=255&i;e.data[t+(r>>5)]|=1<<r}(t,e,n)}function ze(t,e,n){if(n&O.Optional)return t;v(e,"NodeInjector")}function je(t,e,n,i){if(n&O.Optional&&void 0===i&&(i=null),0==(n&(O.Self|O.Host))){const r=t[9],s=I(void 0);try{return r?r.get(e,i,n&O.Optional):P(e,i,n&O.Optional)}finally{I(s)}}return ze(i,e,n)}function qe(t,e,n,i=O.Default,r){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Q)?t[Q]:void 0;return"number"==typeof e?e>=0?255&e:$e:e}(n);if("function"==typeof s){if(!oe(e,t,i))return i&O.Host?ze(r,n,i):je(e,n,i,r);try{const t=s(i);if(null!=t||i&O.Optional)return t;v(n)}finally{he()}}else if("number"==typeof s){let r=null,o=Ze(t,e),a=-1,c=i&O.Host?e[16][6]:null;for((-1===o||i&O.SkipSelf)&&(a=-1===o?Be(t,e):e[o+8],-1!==a&&Je(i,!1)?(r=e[1],o=Ie(a),e=Pe(a,e)):o=-1);-1!==o;){const t=e[1];if(Qe(s,o,t.data)){const t=Ve(o,e,n,r,i,c);if(t!==Ye)return t}a=e[o+8],-1!==a&&Je(i,e[1].data[o+8]===c)&&Qe(s,o,e)?(r=t,o=Ie(a),e=Pe(a,e)):o=-1}}}return je(e,n,i,r)}const Ye={};function $e(){return new We(qt(),Ut())}function Ve(t,e,n,i,r,s){const o=e[1],a=o.data[t+8],c=He(a,o,n,null==i?dt(a)&&Fe:i!=o&&0!=(3&a.type),r&O.Host&&s===a);return null!==c?Ge(e,o,c,a):Ye}function He(t,e,n,i,r){const s=t.providerIndexes,o=e.data,a=1048575&s,c=t.directiveStart,l=s>>20,u=r?a+l:t.directiveEnd;for(let h=i?a:a+l;h<u;h++){const t=o[h];if(h<c&&n===t||h>=c&&t.type===n)return h}if(r){const t=o[c];if(t&&ft(t)&&t.type===n)return c}return null}function Ge(t,e,n,i){let r=t[n];const s=e.data;if(r instanceof ke){const o=r;o.resolving&&function(t,e){throw new m("200",`Circular dependency in DI detected for ${t}`)}(b(s[n]));const a=Re(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?I(o.injectImpl):null;oe(t,i,O.Default);try{r=t[n]=o.factory(void 0,s,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const i=bt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{null!==c&&I(c),Re(a),o.resolving=!1,he()}}return r}function Qe(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function Je(t,e){return!(t&O.Self||t&O.Host&&e)}class We{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return qe(this._tNode,this._lView,t,void 0,e)}}function Ke(t){return F(()=>{const e=t.prototype.constructor,n=e[G]||Xe(e),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const t=r[G]||Xe(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t})}function Xe(t){return g(t)?()=>{const e=Xe(f(t));return e&&e()}:gt(t)}function tn(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 r=n[i];if(Ee(r))break;if(0===r)i+=2;else if("number"==typeof r)for(i++;i<t&&"string"==typeof n[i];)i++;else{if(r===e)return n[i+1];i+=2}}}return null}(qt(),t)}const en="__parameters__";function nn(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 r(...t){if(this instanceof r)return i.apply(this,t),this;const e=new r(...t);return n.annotation=e,n;function n(t,n,i){const r=t.hasOwnProperty(en)?t[en]:Object.defineProperty(t,en,{value:[]})[en];for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(e),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class rn{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 sn=new rn("AnalyzeForEntryComponents"),on=Function;function an(t){return"function"==typeof t}function cn(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)),cn(i,e)):e!==t&&e.push(i)}return e}function ln(t,e){t.forEach(t=>Array.isArray(t)?ln(t,e):e(t))}function un(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function hn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function dn(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function pn(t,e,n){let i=gn(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function fn(t,e){const n=gn(t,e);if(n>=0)return t[1|n]}function gn(t,e){return function(t,e,n){let i=0,r=t.length>>1;for(;r!==i;){const n=i+(r-i>>1),s=t[n<<1];if(e===s)return n<<1;s>e?r=n:i=n+1}return~(r<<1)}(t,e)}const mn=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\))\)/,_n=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,bn=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,vn=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class yn{constructor(t){this._reflect=t||U.Reflect}isReflectionEnabled(){return!0}factory(t){return(...e)=>new t(...e)}_zipTypesAndAnnotations(t,e){let n;n=dn(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(),mn.test(n)||vn.test(n)||_n.test(n)&&!bn.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&&wn(t.decorators));return this._zipTypesAndAnnotations(e,n)}const r=t.hasOwnProperty(en)&&t[en],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return s||r?this._zipTypesAndAnnotations(s,r):dn(t.length)}parameters(t){if(!an(t))return[];const e=xn(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?wn(t.decorators):t.hasOwnProperty("__annotations__")?t.__annotations__:null}annotations(t){if(!an(t))return[];const e=xn(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]=wn(e[t])}),n}return t.hasOwnProperty("__prop__metadata__")?t.__prop__metadata__:null}propMetadata(t){if(!an(t))return{};const e=xn(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 an(t)&&this._ownPropMetadata(t,xn(t))||{}}hasLifecycleHook(t,e){return t instanceof on&&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 wn(t){return t?t.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function xn(t){const e=t.prototype?Object.getPrototypeOf(t.prototype):null;return(e?e.constructor:null)||Object}const Cn={},kn=/\n/gm,Sn=c({provide:String,useValue:c});let En;function An(t){const e=En;return En=t,e}function Tn(t,e=O.Default){if(void 0===En)throw new Error("inject() must be called from an injection context");return null===En?P(t,void 0,e):En.get(t,e&O.Optional?null:void 0,e)}function On(t,e=O.Default){return(D||Tn)(f(t),e)}const Dn=On;function In(t){const e=[];for(let n=0;n<t.length;n++){const i=f(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 r=i[e],s=r.__NG_DI_FLAG__;"number"==typeof s?-1===s?t=r.token:n|=s:t=r}e.push(On(t,n))}else e.push(On(i))}return e}function Pn(t,e){return t.__NG_DI_FLAG__=e,t.prototype.__NG_DI_FLAG__=e,t}const Fn=Pn(nn("Inject",t=>({token:t})),-1),Rn=Pn(nn("Optional"),8),Mn=Pn(nn("Self"),2),Ln=Pn(nn("SkipSelf"),4);let Nn,Zn;function Bn(t){var e;return(null===(e=function(){if(void 0===Nn&&(Nn=null,U.trustedTypes))try{Nn=U.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Nn}())||void 0===e?void 0:e.createHTML(t))||t}function Un(){if(void 0===Zn&&(Zn=null,U.trustedTypes))try{Zn=U.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Zn}function zn(t){var e;return(null===(e=Un())||void 0===e?void 0:e.createHTML(t))||t}function jn(t){var e;return(null===(e=Un())||void 0===e?void 0:e.createScriptURL(t))||t}class qn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Yn extends qn{getTypeName(){return"HTML"}}class $n extends qn{getTypeName(){return"Style"}}class Vn extends qn{getTypeName(){return"Script"}}class Hn extends qn{getTypeName(){return"URL"}}class Gn extends qn{getTypeName(){return"ResourceURL"}}function Qn(t){return t instanceof qn?t.changingThisBreaksApplicationSecurity:t}function Jn(t,e){const n=Wn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function Wn(t){return t instanceof qn&&t.getTypeName()||null}function Kn(t){return new Yn(t)}function Xn(t){return new $n(t)}function ti(t){return new Vn(t)}function ei(t){return new Hn(t)}function ni(t){return new Gn(t)}class ii{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(Bn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class ri{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=Bn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Bn(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 si=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,oi=/^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 ai(t){return(t=String(t)).match(si)||t.match(oi)?t:"unsafe:"+t}function ci(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function li(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const ui=ci("area,br,col,hr,img,wbr"),hi=ci("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),di=ci("rp,rt"),pi=li(di,hi),fi=li(ui,li(hi,ci("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")),li(di,ci("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")),pi),gi=ci("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),mi=ci("srcset"),_i=li(gi,mi,ci("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"),ci("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")),bi=ci("script,style,template");class vi{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(!fi.hasOwnProperty(e))return this.sanitizedSomething=!0,!bi.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let r=0;r<n.length;r++){const t=n.item(r),e=t.name,s=e.toLowerCase();if(!_i.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let o=t.value;gi[s]&&(o=ai(o)),mi[s]&&(i=o,o=(i=String(i)).split(",").map(t=>ai(t.trim())).join(", ")),this.buf.push(" ",e,'="',xi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();fi.hasOwnProperty(e)&&!ui.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(xi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const yi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wi=/([^\#-~ |!])/g;function xi(t){return t.replace(/&/g,"&amp;").replace(yi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(wi,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ci;function ki(t,e){let n=null;try{Ci=Ci||function(t){const e=new ri(t);return function(){try{return!!(new window.DOMParser).parseFromString(Bn(""),"text/html")}catch(t){return!1}}()?new ii(e):e}(t);let i=e?String(e):"";n=Ci.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=Ci.getInertBodyElement(i)}while(i!==s);return Bn((new vi).sanitizeChildren(Si(n)||n))}finally{if(n){const t=Si(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Si(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ei=(()=>((Ei=Ei||{})[Ei.NONE=0]="NONE",Ei[Ei.HTML=1]="HTML",Ei[Ei.STYLE=2]="STYLE",Ei[Ei.SCRIPT=3]="SCRIPT",Ei[Ei.URL=4]="URL",Ei[Ei.RESOURCE_URL=5]="RESOURCE_URL",Ei))();function Ai(t){const e=Di();return e?zn(e.sanitize(Ei.HTML,t)||""):Jn(t,"HTML")?zn(Qn(t)):ki(kt(),_(t))}function Ti(t){const e=Di();return e?e.sanitize(Ei.URL,t)||"":Jn(t,"URL")?Qn(t):ai(_(t))}function Oi(t){const e=Di();if(e)return jn(e.sanitize(Ei.RESOURCE_URL,t)||"");if(Jn(t,"ResourceURL"))return jn(Qn(t));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Di(){const t=Ut();return t&&t[12]}function Ii(t,e){t.__ngContext__=e}function Pi(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Fi(t){return t.ngDebugContext}function Ri(t){return t.ngOriginalError}function Mi(t,...e){t.error(...e)}class Li{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||Mi}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?Fi(t)?Fi(t):this._findContext(Ri(t)):null}_findOriginalError(t){let e=Ri(t);for(;e&&Ri(e);)e=Ri(e);return e}}const Ni=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(U))();function Zi(t){return t.ownerDocument}function Bi(t){return t.ownerDocument.body}function Ui(t){return t instanceof Function?t():t}var zi=(()=>((zi=zi||{})[zi.Important=1]="Important",zi[zi.DashCase=2]="DashCase",zi))();function ji(t,e){return(void 0)(t,e)}function qi(t){const e=t[3];return ut(e)?e[3]:e}function Yi(t){return Vi(t[13])}function $i(t){return Vi(t[4])}function Vi(t){for(;null!==t&&!ut(t);)t=t[4];return t}function Hi(t,e,n,i,r){if(null!=i){let s,o=!1;ut(i)?s=i:lt(i)&&(o=!0,i=i[0]);const a=At(i);0===t&&null!==n?null==r?er(e,n,a):tr(e,n,a,r||null,!0):1===t&&null!==n?tr(e,n,a,r||null,!0):2===t?function(t,e,n){const i=ir(t,e);i&&function(t,e,n,i){St(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=s&&function(t,e,n,i,r){const s=n[7];s!==At(n)&&Hi(e,t,i,s,r);for(let o=10;o<n.length;o++){const r=n[o];hr(r[1],r,t,e,i,s)}}(e,t,s,n,r)}}function Gi(t,e,n){return St(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Qi(t,e){const n=t[9],i=n.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Nt(r,-1)),n.splice(i,1)}function Ji(t,e){if(t.length<=10)return;const n=10+e,i=t[n];if(i){const s=i[17];null!==s&&s!==t&&Qi(s,i),e>0&&(t[n-1][4]=i[4]);const o=hn(t,10+e);hr(i[1],r=i,r[11],2,null,null),r[0]=null,r[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var r;return i}function Wi(t,e){if(!(256&e[2])){const n=e[11];St(n)&&n.destroyNode&&hr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Ki(t[1],t);for(;e;){let n=null;if(lt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)lt(e)&&Ki(e[1],e),e=e[3];null===e&&(e=t),lt(e)&&Ki(e[1],e),n=e&&e[4]}e=n}}(e)}}function Ki(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 ke)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2){const i=t[e[n]],r=e[n+1];try{r.call(i)}finally{}}else try{e.call(t)}finally{}}}}(t,e),function(t,e){const n=t.cleanup,i=e[7];let r=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const t=n[s+1],o="function"==typeof t?t(e):At(e[t]),a=i[r=n[s+2]],c=n[s+3];"boolean"==typeof c?o.removeEventListener(n[s],a,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const t=i[r=n[s+1]];n[s].call(t)}if(null!==i){for(let t=r+1;t<i.length;t++)(0,i[t])();e[7]=null}}(t,e),1===e[1].type&&St(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&ut(e[3])){n!==e[3]&&Qi(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function Xi(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===M.None||e===M.Emulated)return null}return Ot(i,n)}(t,e.parent,n)}function tr(t,e,n,i,r){St(t)?t.insertBefore(e,n,i,r):e.insertBefore(n,i,r)}function er(t,e,n){St(t)?t.appendChild(e,n):e.appendChild(n)}function nr(t,e,n,i,r){null!==i?tr(t,e,n,i,r):er(t,e,n)}function ir(t,e){return St(t)?t.parentNode(e):e.parentNode}function rr(t,e,n){return sr(t,e,n)}let sr=function(t,e,n){return 40&t.type?Ot(t,n):null};function or(t,e,n,i){const r=Xi(t,i,e),s=e[11],o=rr(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(n))for(let a=0;a<n.length;a++)nr(s,r,n[a],o,!1);else nr(s,r,n,o,!1)}function ar(t,e){if(null!==e){const n=e.type;if(3&n)return Ot(e,t);if(4&n)return lr(-1,t[e.index]);if(8&n){const n=e.child;if(null!==n)return ar(t,n);{const n=t[e.index];return ut(n)?lr(-1,n):At(n)}}if(32&n)return ji(e,t)()||At(t[e.index]);{const n=cr(t,e);return null!==n?Array.isArray(n)?n[0]:ar(qi(t[16]),n):ar(t,e.next)}}return null}function cr(t,e){return null!==e?t[16][6].projection[e.projection]:null}function lr(t,e){const n=10+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return ar(t,i)}return e[7]}function ur(t,e,n,i,r,s,o){for(;null!=n;){const a=i[n.index],c=n.type;if(o&&0===e&&(a&&Ii(At(a),i),n.flags|=4),64!=(64&n.flags))if(8&c)ur(t,e,n.child,i,r,s,!1),Hi(e,t,r,a,s);else if(32&c){const o=ji(n,i);let c;for(;c=o();)Hi(e,t,r,c,s);Hi(e,t,r,a,s)}else 16&c?dr(t,e,i,n,r,s):Hi(e,t,r,a,s);n=o?n.projectionNext:n.next}}function hr(t,e,n,i,r,s){ur(n,i,t.firstChild,e,r,s,!1)}function dr(t,e,n,i,r,s){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let c=0;c<a.length;c++)Hi(e,t,r,a[c],s);else ur(t,e,a,o[3],r,s,!0)}function pr(t,e,n){St(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function fr(t,e,n){St(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function gr(t,e,n){let i=t.length;for(;;){const r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const n=e.length;if(r+n===i||t.charCodeAt(r+n)<=32)return r}n=r+1}}function mr(t,e,n){let i=0;for(;i<t.length;){let r=t[i++];if(n&&"class"===r){if(r=t[i],-1!==gr(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<t.length&&"string"==typeof(r=t[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function _r(t){return 4===t.type&&"ng-template"!==t.value}function br(t,e,n){return e===(4!==t.type||n?t.value:"ng-template")}function vr(t,e,n){let i=4;const r=t.attrs||[],s=function(t){for(let e=0;e<t.length;e++)if(Ee(t[e]))return e;return t.length}(r);let o=!1;for(let a=0;a<e.length;a++){const c=e[a];if("number"!=typeof c){if(!o)if(4&i){if(i=2|1&i,""!==c&&!br(t,c,n)||""===c&&1===e.length){if(yr(i))return!1;o=!0}}else{const l=8&i?c:e[++a];if(8&i&&null!==t.attrs){if(!mr(t.attrs,l,n)){if(yr(i))return!1;o=!0}continue}const u=wr(8&i?"class":c,r,_r(t),n);if(-1===u){if(yr(i))return!1;o=!0;continue}if(""!==l){let t;t=u>s?"":r[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==gr(e,l,0)||2&i&&l!==t){if(yr(i))return!1;o=!0}}}}else{if(!o&&!yr(i)&&!yr(c))return!1;if(o&&yr(c))continue;o=!1,i=c|1&i}}return yr(i)||o}function yr(t){return 0==(1&t)}function wr(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let n=!1;for(;r<e.length;){const i=e[r];if(i===t)return r;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++r];for(;"string"==typeof t;)t=e[++r];continue}if(4===i)break;if(0===i){r+=4;continue}}r+=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 xr(t,e,n=!1){for(let i=0;i<e.length;i++)if(vr(t,e[i],n))return!0;return!1}function Cr(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 kr(t,e){return t?":not("+e.trim()+")":e}function Sr(t){let e=t[0],n=1,i=2,r="",s=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&i){const e=t[++n];r+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||yr(o)||(e+=kr(s,r),r=""),i=o,s=s||!yr(i);n++}return""!==r&&(e+=kr(s,r)),e}const Er={};function Ar(t){Tr(zt(),Ut(),pe()+t,Gt())}function Tr(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&ve(e,i,n)}else{const i=t.preOrderHooks;null!==i&&ye(e,i,0,n)}fe(n)}function Or(t,e){return t<<17|e<<2}function Dr(t){return t>>17&32767}function Ir(t){return 2|t}function Pr(t){return(131068&t)>>2}function Fr(t,e){return-131069&t|e<<2}function Rr(t){return 1|t}function Mr(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i],s=n[i+1];if(-1!==s){const n=t.data[s];re(r),n.contentQueries(2,e[s],s)}}}function Lr(t,e,n,i,r,s,o,a,c,l){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,Lt(u),u[3]=u[15]=t,u[8]=n,u[10]=o||t&&t[10],u[11]=a||t&&t[11],u[12]=c||t&&t[12]||null,u[9]=l||t&&t[9]||null,u[6]=s,u[16]=2==e.type?t[16]:u,u}function Nr(t,e,n,i,r){let s=t.data[e];if(null===s)s=function(t,e,n,i,r){const s=Yt(),o=Vt(),a=t.data[e]=function(t,e,n,i,r,s){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:r,attrs:s,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?s:s&&s.parent,n,e,i,r);return null===t.firstChild&&(t.firstChild=a),null!==s&&(o?null==s.child&&null!==a.parent&&(s.child=a):null===s.next&&(s.next=a)),a}(t,e,n,i,r),Zt.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;const t=function(){const t=Zt.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();s.injectorIndex=null===t?-1:t.injectorIndex}return $t(s,!0),s}function Zr(t,e,n,i){if(0===n)return-1;const r=e.length;for(let s=0;s<n;s++)e.push(i),t.blueprint.push(i),t.data.push(null);return r}function Br(t,e,n){ae(e);try{const i=t.viewQuery;null!==i&&gs(1,i,n);const r=t.template;null!==r&&jr(t,e,r,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Mr(t,e),t.staticViewQueries&&gs(2,t.viewQuery,n);const s=t.components;null!==s&&function(t,e){for(let n=0;n<e.length;n++)us(t,e[n])}(e,s)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),i}finally{e[2]&=-5,de()}}function Ur(t,e,n,i){const r=e[2];if(256==(256&r))return;ae(e);const s=Gt();try{Lt(e),Zt.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&jr(t,e,n,2,i);const o=3==(3&r);if(!s)if(o){const n=t.preOrderCheckHooks;null!==n&&ve(e,n,null)}else{const n=t.preOrderHooks;null!==n&&ye(e,n,0,null),we(e,0)}if(function(t){for(let e=Yi(t);null!==e;e=$i(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])&&Nt(i,1),n[2]|=1024}}}(e),function(t){for(let e=Yi(t);null!==e;e=$i(e))for(let t=10;t<e.length;t++){const n=e[t],i=n[1];Rt(n)&&Ur(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&Mr(t,e),!s)if(o){const n=t.contentCheckHooks;null!==n&&ve(e,n)}else{const n=t.contentHooks;null!==n&&ye(e,n,1),we(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)fe(~i);else{const r=i,s=n[++t],o=n[++t];te(s,r),o(2,e[r])}}}finally{fe(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)cs(t,e[n])}(e,a);const c=t.viewQuery;if(null!==c&&gs(2,c,i),!s)if(o){const n=t.viewCheckHooks;null!==n&&ve(e,n)}else{const n=t.viewHooks;null!==n&&ye(e,n,2),we(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),s||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Nt(e[3],-1))}finally{de()}}function zr(t,e,n,i){const r=e[10],s=!Gt(),o=Ft(e);try{s&&!o&&r.begin&&r.begin(),o&&Br(t,e,i),Ur(t,e,n,i)}finally{s&&!o&&r.end&&r.end()}}function jr(t,e,n,i,r){const s=pe(),o=2&i;try{fe(-1),o&&e.length>20&&Tr(t,e,20,Gt()),n(i,r)}finally{fe(s)}}function qr(t,e,n){if(ht(e)){const i=e.directiveEnd;for(let r=e.directiveStart;r<i;r++){const e=t.data[r];e.contentQueries&&e.contentQueries(1,n[r],r)}}}function Yr(t,e,n){Bt()&&(function(t,e,n,i){const r=n.directiveStart,s=n.directiveEnd;t.firstCreatePass||Le(n,e),Ii(i,e);const o=n.initialInputs;for(let a=r;a<s;a++){const i=t.data[a],s=ft(i);s&&rs(e,n,i);const c=Ge(e,t,a,n);Ii(c,e),null!==o&&ss(0,a-r,c,i,0,o),s&&(Pt(n.index,e)[8]=c)}}(t,e,n,Ot(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,r=n.directiveEnd,s=n.index,o=Zt.lFrame.currentDirectiveIndex;try{fe(s);for(let n=i;n<r;n++){const i=t.data[n],r=e[n];ee(n),null===i.hostBindings&&0===i.hostVars&&null===i.hostAttrs||Xr(i,r)}}finally{fe(-1),ee(o)}}(t,e,n))}function $r(t,e,n=Ot){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?n(e,t):t[o];t[r++]=a}}}function Vr(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Hr(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Hr(t,e,n,i,r,s,o,a,c,l){const u=20+i,h=u+r,d=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:Er);return n}(u,h),p="function"==typeof l?l():l;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 s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:c,consts:p,incompleteFirstPass:!1}}function Gr(t,e,n,i){const r=_s(e);null===n?r.push(i):(r.push(n),t.firstCreatePass&&bs(t).push(i,r.length-1))}function Qr(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,r):n[i]=[e,r]}return n}function Jr(t,e,n,i,r,s,o,a){const c=Ot(e,n);let l,u=e.inputs;var h;!a&&null!=u&&(l=u[i])?(ws(t,n,l,i,r),dt(e)&&function(t,e){const n=Pt(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,r=null!=o?o(r,e.value||"",i):r,St(s)?s.setProperty(c,i,r):Ae(i)||(c.setProperty?c.setProperty(i,r):c[i]=r))}function Wr(t,e,n,i){let r=!1;if(Bt()){const s=function(t,e,n){const i=t.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];xr(n,o.selectors,!1)&&(r||(r=[]),Ue(Le(n,e),t,o.type),ft(o)?(ts(t,n),r.unshift(o)):r.push(o))}return r}(t,e,n),o=null===i?null:{"":-1};if(null!==s){r=!0,ns(n,t.data.length,s.length);for(let t=0;t<s.length;t++){const e=s[t];e.providersResolver&&e.providersResolver(e)}let i=!1,a=!1,c=Zr(t,e,s.length,null);for(let r=0;r<s.length;r++){const l=s[r];n.mergedAttrs=Te(n.mergedAttrs,l.hostAttrs),is(t,n,e,c,l),es(c,l,o),null!==l.contentQueries&&(n.flags|=8),null===l.hostBindings&&null===l.hostAttrs&&0===l.hostVars||(n.flags|=128);const u=l.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),c++}!function(t,e){const n=e.directiveEnd,i=t.data,r=e.attrs,s=[];let o=null,a=null;for(let c=e.directiveStart;c<n;c++){const t=i[c],n=t.inputs,l=null===r||_r(e)?null:os(n,r);s.push(l),o=Qr(n,c,o),a=Qr(t.outputs,c,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=s,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 r=n[e[t+1]];if(null==r)throw new m("301",`Export of name '${e[t+1]}' not found!`);i.push(e[t],r)}}}(n,i,o)}return n.mergedAttrs=Te(n.mergedAttrs,n.attrs),r}function Kr(t,e,n,i,r,s){const o=s.hostBindings;if(o){let n=t.hostBindingOpCodes;null===n&&(n=t.hostBindingOpCodes=[]);const s=~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)!=s&&n.push(s),n.push(i,r,o)}}function Xr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function ts(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function es(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 ns(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function is(t,e,n,i,r){t.data[i]=r;const s=r.factory||(r.factory=gt(r.type)),o=new ke(s,ft(r),null);t.blueprint[i]=o,n[i]=o,Kr(t,e,0,i,Zr(t,n,r.hostVars,Er),r)}function rs(t,e,n){const i=Ot(e,t),r=Vr(n),s=t[10],o=hs(t,Lr(t,r,null,n.onPush?64:16,i,e,s,s.createRenderer(i,n),null,null));t[e.index]=o}function ss(t,e,n,i,r,s){const o=s[e];if(null!==o){const t=i.setInput;for(let e=0;e<o.length;){const r=o[e++],s=o[e++],a=o[e++];null!==t?i.setInput(n,a,r,s):n[s]=a}}}function os(t,e){let n=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,t[r],e[i+1])),i+=2}else i+=2;else i+=4}return n}function as(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function cs(t,e){const n=Pt(e,t);if(Rt(n)){const t=n[1];80&n[2]?Ur(t,n,t.template,n[8]):n[5]>0&&ls(n)}}function ls(t){for(let n=Yi(t);null!==n;n=$i(n))for(let t=10;t<n.length;t++){const e=n[t];if(1024&e[2]){const t=e[1];Ur(t,e,t.template,e[8])}else e[5]>0&&ls(e)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const i=Pt(e[n],t);Rt(i)&&i[5]>0&&ls(i)}}function us(t,e){const n=Pt(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),Br(i,n,n[8])}function hs(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function ds(t){for(;t;){t[2]|=64;const e=qi(t);if(0!=(512&t[2])&&!e)return t;t=e}return null}function ps(t,e,n){const i=e[10];i.begin&&i.begin();try{Ur(t,e,t.template,n)}catch(r){throw ys(e,r),r}finally{i.end&&i.end()}}function fs(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=Pi(n),r=i[1];zr(r,i,r.template,n)}}(t[8])}function gs(t,e,n){re(0),e(t,n)}const ms=(()=>Promise.resolve(null))();function _s(t){return t[7]||(t[7]=[])}function bs(t){return t.cleanup||(t.cleanup=[])}function vs(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 ys(t,e){const n=t[9],i=n?n.get(Li,null):null;i&&i.handleError(e)}function ws(t,e,n,i,r){for(let s=0;s<n.length;){const o=n[s++],a=n[s++],c=e[o],l=t.data[o];null!==l.setInput?l.setInput(c,r,i,a):c[a]=r}}function xs(t,e,n){const i=Tt(e,t);!function(t,e,n){St(t)?t.setValue(e,n):e.textContent=n}(t[11],i,n)}function Cs(t,e,n){let i=n?t.styles:null,r=n?t.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?s=t:1==s?r=h(r,t):2==s&&(i=h(i,t+": "+e[++o]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=r:t.classesWithoutHost=r}const ks=new rn("INJECTOR",-1);class Ss{get(t,e=Cn){if(e===Cn){const e=new Error(`NullInjectorError: No provider for ${u(t)}!`);throw e.name="NullInjectorError",e}return e}}const Es=new rn("Set Injector scope."),As={},Ts={};let Os;function Ds(){return void 0===Os&&(Os=new Ss),Os}function Is(t,e=null,n=null,i){return new Ps(t,n,e||Ds(),i)}class Ps{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 r=[];e&&ln(e,n=>this.processProvider(n,t,e)),ln([t],t=>this.processInjectorType(t,[],r)),this.records.set(ks,Ms(void 0,this));const s=this.records.get(Es);this.scope=null!=s?s.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=Cn,n=O.Default){this.assertNotDestroyed();const i=An(this);try{if(!(n&O.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof rn)&&x(t);e=n&&this.injectableDefInScope(n)?Ms(Fs(t),As):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&O.Self?Ds():this.parent).get(t,e=n&O.Optional&&e===Cn?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(u(t)),i)throw s;return function(t,e,n,i){const r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=u(e);if(Array.isArray(e))r=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)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(kn,"\n  ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{An(i)}var r}_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=f(t)))return!1;let i=k(t);const r=null==i&&t.ngModule||void 0,s=void 0===r?t:r,o=-1!==n.indexOf(s);if(void 0!==r&&(i=k(r)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(s);try{ln(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];ln(i,t=>this.processProvider(t,n,i||j))}}this.injectorDefTypes.add(s);const a=gt(s)||(()=>new s);this.records.set(s,Ms(a,As));const c=i.providers;if(null!=c&&!o){const e=t;ln(c,t=>this.processProvider(t,e,c))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=Ns(t=f(t))?t:f(t&&t.provide);const r=function(t,e,n){return Ls(t)?Ms(void 0,t.useValue):Ms(Rs(t),As)}(t);if(Ns(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Ms(void 0,As,!0),e.factory=()=>In(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,r)}hydrate(t,e){var n;return e.value===As&&(e.value=Ts,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=f(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Fs(t){const e=x(t),n=null!==e?e.factory:gt(t);if(null!==n)return n;if(t instanceof rn)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=dn(e,"?");throw new Error(`Can't resolve all parameters for ${u(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[S]||t[A]);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 Rs(t,e,n){let i;if(Ns(t)){const e=f(t);return gt(e)||Fs(e)}if(Ls(t))i=()=>f(t.useValue);else if((r=t)&&r.useFactory)i=()=>t.useFactory(...In(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>On(f(t.useExisting));else{const e=f(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return gt(e)||Fs(e);i=()=>new e(...In(t.deps))}var r;return i}function Ms(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Ls(t){return null!==t&&"object"==typeof t&&Sn in t}function Ns(t){return"function"==typeof t}const Zs=function(t,e,n){return function(t,e=null,n=null,i){const r=Is(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};class Bs{static create(t,e){return Array.isArray(t)?Zs(t,e,""):Zs(t.providers,t.parent,t.name||"")}}function Us(t,e){be(Pi(t)[1],qt())}function zs(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let r;if(ft(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);const e=t;e.inputs=js(t.inputs),e.declaredInputs=js(t.declaredInputs),e.outputs=js(t.outputs);const n=r.hostBindings;n&&$s(t,n);const s=r.viewQuery,o=r.contentQueries;if(s&&qs(t,s),o&&Ys(t,o),l(t.inputs,r.inputs),l(t.declaredInputs,r.declaredInputs),l(t.outputs,r.outputs),ft(r)&&r.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(r.data.animation)}}const e=r.features;if(e)for(let i=0;i<e.length;i++){const r=e[i];r&&r.ngInherit&&r(t),r===zs&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Te(r.hostAttrs,n=Te(n,r.hostAttrs))}}(i)}function js(t){return t===z?{}:t===j?[]:t}function qs(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function Ys(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function $s(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}Bs.THROW_IF_NOT_FOUND=Cn,Bs.NULL=new Ss,Bs.\u0275prov=y({token:Bs,providedIn:"any",factory:()=>On(ks)}),Bs.__NG_ELEMENT_ID__=-1;let Vs=null;function Hs(){if(!Vs){const t=U.Symbol;if(t&&t.iterator)Vs=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&&(Vs=n)}}}return Vs}class Gs{constructor(t){this.wrapped=t}static wrap(t){return new Gs(t)}static unwrap(t){return Gs.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Gs}}function Qs(t){return!!Js(t)&&(Array.isArray(t)||!(t instanceof Map)&&Hs()in t)}function Js(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Ws(t,e,n){return t[e]=n}function Ks(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Xs(t,e,n,i){const r=Ks(t,e,n);return Ks(t,e+1,i)||r}function to(t,e,n,i,r){const s=Xs(t,e,n,i);return Ks(t,e+2,r)||s}function eo(t,e,n,i){const r=Ut();return Ks(r,Kt(),e)&&(zt(),function(t,e,n,i,r,s){const o=Ot(t,e);!function(t,e,n,i,r,s,o){if(null==s)St(t)?t.removeAttribute(e,r,n):e.removeAttribute(r);else{const a=null==o?_(s):o(s,i||"",r);St(t)?t.setAttribute(e,r,a,n):n?e.setAttributeNS(n,r,a):e.setAttribute(r,a)}}(e[11],o,s,t.value,n,i,r)}(ge(),r,t,e,n,i)),eo}function no(t,e,n,i){return Ks(t,Kt(),n)?e+_(n)+i:Er}function io(t,e,n,i,r,s,o,a){const c=Ut(),l=zt(),u=t+20,h=l.firstCreatePass?function(t,e,n,i,r,s,o,a,c){const l=e.consts,u=Nr(e,t,4,o||null,Mt(l,a));Wr(e,n,u,Mt(l,c)),be(e,u);const h=u.tViews=Hr(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l);return null!==e.queries&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}(u,l,c,e,n,i,r,s,o):l.data[u];$t(h,!1);const d=c[11].createComment("");or(l,c,d,h),Ii(d,c),hs(c,c[u]=as(d,c,d,h)),pt(h)&&Yr(l,c,h),null!=o&&$r(c,h,a)}function ro(t){return It(Zt.lFrame.contextLView,20+t)}function so(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 oo(t,e,n,i){const r=[e],s=n(r),o=i?function(t,e){const n=`${t} caused by: ${e instanceof Error?e.message:e}`,i=Error(n);return i.ngOriginalError=e,i}(s,i):Error(s);return o.addKey=ao,o.keys=r,o.injectors=[t],o.constructResolvingMessage=n,o.ngOriginalError=i,o}function ao(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function co(t,e){const n=[];for(let i=0,r=e.length;i<r;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 lo{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 ho.get(f(t))}static get numberOfKeys(){return ho.numberOfKeys}}class uo{constructor(){this._allKeys=new Map}get(t){if(t instanceof lo)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const e=new lo(t,lo.numberOfKeys);return this._allKeys.set(t,e),e}get numberOfKeys(){return this._allKeys.size}}const ho=new uo;class po{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 fo=new po(new yn);class go{constructor(t,e,n){this.key=t,this.optional=e,this.visibility=n}static fromKey(t){return new go(t,!1,null)}}const mo=[];class _o{constructor(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]}}class bo{constructor(t,e){this.factory=t,this.dependencies=e}}function vo(t){let e,n;if(t.useClass){const i=f(t.useClass);e=fo.factory(i),n=Co(i)}else t.useExisting?(e=t=>t,n=[go.fromKey(lo.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=function(t,e){if(e){const n=e.map(t=>[t]);return e.map(e=>ko(t,e,n))}return Co(t)}(t.useFactory,t.deps)):(e=()=>t.useValue,n=mo);return new bo(e,n)}function yo(t){return new _o(lo.get(t.provide),[vo(t)],t.multi||!1)}function wo(t){const e=function(t,e){for(let n=0;n<t.length;n++){const i=t[n],r=e.get(i.key.id);if(r){if(i.multiProvider!==r.multiProvider)throw Error(`Cannot mix multi providers and regular providers, got: ${r} ${i}`);if(i.multiProvider)for(let t=0;t<i.resolvedFactories.length;t++)r.resolvedFactories.push(i.resolvedFactories[t]);else e.set(i.key.id,i)}else{let t;t=i.multiProvider?new _o(i.key,i.resolvedFactories.slice(),i.multiProvider):i,e.set(i.key.id,t)}}return e}(xo(t,[]).map(yo),new Map);return Array.from(e.values())}function xo(t,e){return t.forEach(t=>{if(t instanceof on)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}`);xo(t,e)}}),e}function Co(t){const e=fo.parameters(t);if(!e)return[];if(e.some(t=>null==t))throw co(t,e);return e.map(n=>ko(t,n,e))}function ko(t,e,n){let i=null,r=!1;if(!Array.isArray(e))return So(e instanceof Fn?e.token:e,r,null);let s=null;for(let o=0;o<e.length;++o){const t=e[o];t instanceof on?i=t:t instanceof Fn?i=t.token:t instanceof Rn?r=!0:t instanceof Mn||t instanceof Ln?s=t:t instanceof rn&&(i=t)}if(i=f(i),null!=i)return So(i,r,s);throw co(t,n)}function So(t,e,n){return new go(lo.get(t),e,n)}const Eo={};class Ao{static resolve(t){return wo(t)}static resolveAndCreate(t,e){const n=Ao.resolve(t);return Ao.fromResolvedProviders(n,e)}static fromResolvedProviders(t,e){return new To(t,e)}}let To=(()=>{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]=Eo}get(t,e=Cn){return this._getByKey(lo.get(t),null,e)}resolveAndCreateChild(t){const e=Ao.resolve(t);return this.createChildFromResolved(e)}createChildFromResolved(e){const n=new t(e);return n.parent=this,n}resolveAndInstantiate(t){return this.instantiateResolved(Ao.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 oo(this,t.key,function(t){return`Cannot instantiate cyclic dependency!${so(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,r;try{i=e.dependencies.map(t=>this._getByReflectiveDependency(t))}catch(o){throw o.addKey&&o.addKey(this,t.key),o}try{r=n(...i)}catch(o){throw oo(this,t.key,function(t){const e=u(t[0].token);return`${s.message}: Error during instantiation of ${e}!${so(t)}.`},s=o)}var s;return r}_getByReflectiveDependency(t){return this._getByKey(t.key,t.visibility,t.optional?null:Cn)}_getByKey(e,n,i){return e===t.INJECTOR_KEY?this:n instanceof Mn?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]===Eo&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return Eo}_throwOrNull(t,e){if(e!==Cn)return e;throw function(t,e){return oo(t,e,function(t){return`No provider for ${u(t[0].token)}!${so(t)}`})}(this,t)}_getByKeySelf(t,e){const n=this._getObjByKeyId(t.id);return n!==Eo?n:this._throwOrNull(t,e)}_getByKeyDefault(e,n,i){let r;for(r=i instanceof Ln?this.parent:this;r instanceof t;){const t=r,n=t._getObjByKeyId(e.id);if(n!==Eo)return n;r=t.parent}return null!==r?r.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=lo.get(Bs),t})();function Oo(t,e=O.Default){const n=Ut();return null===n?On(t,e):qe(qt(),n,f(t),e)}function Do(t,e,n){const i=Ut();return Ks(i,Kt(),e)&&Jr(zt(),ge(),i,t,e,i[11],n,!1),Do}function Io(t,e,n,i,r){const s=r?"class":"style";ws(t,n,e.inputs[s],s,i)}function Po(t,e,n,i){const r=Ut(),s=zt(),o=20+t,a=r[11],c=r[o]=Gi(a,e,Zt.lFrame.currentNamespace),l=s.firstCreatePass?function(t,e,n,i,r,s,o){const a=e.consts,c=Nr(e,t,2,r,Mt(a,s));return Wr(e,n,c,Mt(a,o)),null!==c.attrs&&Cs(c,c.attrs,!1),null!==c.mergedAttrs&&Cs(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,n,i):s.data[o];$t(l,!0);const u=l.mergedAttrs;null!==u&&Se(a,c,u);const h=l.classes;null!==h&&fr(a,c,h);const d=l.styles;null!==d&&pr(a,c,d),64!=(64&l.flags)&&or(s,r,c,l),0===Zt.lFrame.elementDepthCount&&Ii(c,r),Zt.lFrame.elementDepthCount++,pt(l)&&(Yr(s,r,l),qr(s,l,r)),null!==i&&$r(r,l)}function Fo(){let t=qt();Vt()?Ht():(t=t.parent,$t(t,!1));const e=t;Zt.lFrame.elementDepthCount--;const n=zt();n.firstCreatePass&&(be(n,t),ht(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Io(n,e,Ut(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Io(n,e,Ut(),e.stylesWithoutHost,!1)}function Ro(t,e,n,i){Po(t,e,n,i),Fo()}function Mo(t,e,n){const i=Ut(),r=zt(),s=t+20,o=r.firstCreatePass?function(t,e,n,i,r){const s=e.consts,o=Mt(s,i),a=Nr(e,t,8,"ng-container",o);return null!==o&&Cs(a,o,!0),Wr(e,n,a,Mt(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,n):r.data[s];$t(o,!0);const a=i[s]=i[11].createComment("");or(r,i,a,o),Ii(a,i),pt(o)&&(Yr(r,i,o),qr(r,o,i)),null!=n&&$r(i,o)}function Lo(){let t=qt();const e=zt();Vt()?Ht():(t=t.parent,$t(t,!1)),e.firstCreatePass&&(be(e,t),ht(t)&&e.queries.elementEnd(t))}function No(t,e,n){Mo(t,e,n),Lo()}function Zo(){return Ut()}function Bo(t){return!!t&&"function"==typeof t.then}function Uo(t){return!!t&&"function"==typeof t.subscribe}const zo=Uo;function jo(t,e,n,i){const r=Ut(),s=zt(),o=qt();return Yo(s,r,r[11],o,t,e,!!n,i),jo}function qo(t,e){const n=qt(),i=Ut(),r=zt();return Yo(r,i,vs(ne(r.data),n,i),n,t,e,!1),qo}function Yo(t,e,n,i,r,s,o,a){const c=pt(i),l=t.firstCreatePass&&bs(t),u=_s(e);let h=!0;if(3&i.type||a){const d=Ot(i,e),p=a?a(d):d,f=u.length,g=a?t=>a(At(t[i.index])):i.index;if(St(n)){let o=null;if(!a&&c&&(o=function(t,e,n,i){const r=t.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const t=r[s];if(t===n&&r[s+1]===i){const t=e[7],n=r[s+2];return t.length>n?t[n]:null}"string"==typeof t&&(s+=2)}return null}(t,e,r,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,h=!1;else{s=Vo(i,e,0,s,!1);const t=n.listen(p,r,s);u.push(s,t),l&&l.push(r,g,f,f+1)}}else s=Vo(i,e,0,s,!0),p.addEventListener(r,s,o),u.push(s),l&&l.push(r,g,f,o)}else s=Vo(i,e,0,s,!1);const d=i.outputs;let p;if(h&&null!==d&&(p=d[r])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(s),o=u.length;u.push(s,t),l&&l.push(r,i.index,o,-(o+1))}}}function $o(t,e,n,i){try{return!1!==n(i)}catch(r){return ys(t,r),!1}}function Vo(t,e,n,i,r){return function n(s){if(s===Function)return i;const o=2&t.flags?Pt(t.index,e):e;0==(32&e[2])&&ds(o);let a=$o(e,0,i,s),c=n.__ngNextListenerFn__;for(;c;)a=$o(e,0,c,s)&&a,c=c.__ngNextListenerFn__;return r&&!1===a&&(s.preventDefault(),s.returnValue=!1),a}}function Ho(t=1){return function(t){return(Zt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Zt.lFrame.contextLView))[8]}(t)}function Go(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 r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?xr(t,s,!0):Cr(i,s))return r}else n=r}return n}function Qo(t){const e=Ut()[16][6];if(!e.projection){const n=e.projection=dn(t?t.length:1,null),i=n.slice();let r=e.child;for(;null!==r;){const e=t?Go(r,t):0;null!==e&&(i[e]?i[e].projectionNext=r:n[e]=r,i[e]=r),r=r.next}}}function Jo(t,e=0,n){const i=Ut(),r=zt(),s=Nr(r,20+t,16,null,n||null);null===s.projection&&(s.projection=e),Ht(),64!=(64&s.flags)&&function(t,e,n){dr(e[11],0,e,n,Xi(t,n,e),rr(n.parent||e[6],n,e))}(r,i,s)}function Wo(t,e,n){return Ko(t,"",e,"",n),Wo}function Ko(t,e,n,i,r){const s=Ut(),o=no(s,e,n,i);return o!==Er&&Jr(zt(),ge(),s,t,o,s[11],r,!1),Ko}function Xo(t,e,n,i,r){const s=t[n+1],o=null===e;let a=i?Dr(s):Pr(s),c=!1;for(;0!==a&&(!1===c||o);){const n=t[a+1];ta(t[a],e)&&(c=!0,t[a+1]=i?Rr(n):Ir(n)),a=i?Dr(n):Pr(n)}c&&(t[n+1]=i?Ir(s):Rr(s))}function ta(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&gn(t,e)>=0}const ea={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function na(t){return t.substring(ea.key,ea.keyEnd)}function ia(t,e){const n=ea.textEnd;return n===e?-1:(e=ea.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,ea.key=e,n),ra(t,e,n))}function ra(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function sa(t,e,n){return la(t,e,n,!1),sa}function oa(t,e){return la(t,e,null,!0),oa}function aa(t){ua(pn,ca,t,!0)}function ca(t,e){for(let n=function(t){return function(t){ea.key=0,ea.keyEnd=0,ea.value=0,ea.valueEnd=0,ea.textEnd=t.length}(t),ia(t,ra(t,0,ea.textEnd))}(e);n>=0;n=ia(e,n))pn(t,na(e),!0)}function la(t,e,n,i){const r=Ut(),s=zt(),o=Xt(2);s.firstUpdatePass&&da(s,t,o,i),e!==Er&&Ks(r,o,e)&&ga(s,s.data[pe()],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=u(Qn(t)))),t}(e,n),i,o)}function ua(t,e,n,i){const r=zt(),s=Xt(2);r.firstUpdatePass&&da(r,null,s,i);const o=Ut();if(n!==Er&&Ks(o,s,n)){const a=r.data[pe()];if(ba(a,i)&&!ha(r,s)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=h(t,n||"")),Io(r,a,o,n,i)}else!function(t,e,n,i,r,s,o,a){r===Er&&(r=j);let c=0,l=0,u=0<r.length?r[0]:null,h=0<s.length?s[0]:null;for(;null!==u||null!==h;){const d=c<r.length?r[c+1]:void 0,p=l<s.length?s[l+1]:void 0;let f,g=null;u===h?(c+=2,l+=2,d!==p&&(g=h,f=p)):null===h||null!==u&&u<h?(c+=2,g=u):(l+=2,g=h,f=p),null!==g&&ga(t,e,n,i,g,f,o,a),u=c<r.length?r[c]:null,h=l<s.length?s[l]:null}}(r,a,o,o[11],o[s+1],o[s+1]=function(t,e,n){if(null==n||""===n)return j;const i=[],r=Qn(n);if(Array.isArray(r))for(let s=0;s<r.length;s++)t(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&t(i,s,r[s]);else"string"==typeof r&&e(i,r);return i}(t,e,n),i,s)}}function ha(t,e){return e>=t.expandoStartIndex}function da(t,e,n,i){const r=t.data;if(null===r[n+1]){const s=r[pe()],o=ha(t,n);ba(s,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const r=ne(t);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=fa(n=pa(null,t,e,n,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=pa(r,t,e,n,i),null===s){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Pr(i))return t[Dr(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=pa(null,t,e,n[1],i),n=fa(n,e.attrs,i),function(t,e,n,i){t[Dr(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else s=function(t,e,n){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=fa(i,t[s].hostAttrs,n);return fa(i,e.attrs,n)}(t,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),n}(r,s,e,i),function(t,e,n,i,r,s){let o=s?e.classBindings:e.styleBindings,a=Dr(o),c=Pr(o);t[i]=n;let l,u=!1;if(Array.isArray(n)){const t=n;l=t[1],(null===l||gn(t,l)>0)&&(u=!0)}else l=n;if(r)if(0!==c){const e=Dr(t[a+1]);t[i+1]=Or(e,a),0!==e&&(t[e+1]=Fr(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Or(a,0),0!==a&&(t[a+1]=Fr(t[a+1],i)),a=i;else t[i+1]=Or(c,0),0===a?a=i:t[c+1]=Fr(t[c+1],i),c=i;u&&(t[i+1]=Ir(t[i+1])),Xo(t,l,i,!0),Xo(t,l,i,!1),function(t,e,n,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&gn(s,e)>=0&&(n[i+1]=Rr(n[i+1]))}(e,l,t,i,s),o=Or(a,c),s?e.classBindings=o:e.styleBindings=o}(r,s,e,n,o,i)}}function pa(t,e,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(s=e[a],i=fa(i,s.hostAttrs,r),s!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function fa(t,e,n){const i=n?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),pn(t,o,!!n||e[++s]))}return void 0===t?null:t}function ga(t,e,n,i,r,s,o,a){if(!(3&e.type))return;const c=t.data,l=c[a+1];_a(1==(1&l)?ma(c,e,n,r,Pr(l),o):void 0)||(_a(s)||2==(2&l)&&(s=ma(c,null,n,r,a,o)),function(t,e,n,i,r){const s=St(t);if(e)r?s?t.addClass(n,i):n.classList.add(i):s?t.removeClass(n,i):n.classList.remove(i);else{let e=-1===i.indexOf("-")?void 0:zi.DashCase;if(null==r)s?t.removeStyle(n,i,e):n.style.removeProperty(i);else{const o="string"==typeof r&&r.endsWith("!important");o&&(r=r.slice(0,-10),e|=zi.Important),s?t.setStyle(n,i,r,e):n.style.setProperty(i,r,o?"important":"")}}}(i,o,Tt(pe(),n),r,s))}function ma(t,e,n,i,r,s){const o=null===e;let a;for(;r>0;){const e=t[r],s=Array.isArray(e),c=s?e[1]:e,l=null===c;let u=n[r+1];u===Er&&(u=l?j:void 0);let h=l?fn(u,i):c===i?u:void 0;if(s&&!_a(h)&&(h=fn(e,i)),_a(h)&&(a=h,o))return a;const d=t[r+1];r=o?Dr(d):Pr(d)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=fn(t,i))}return a}function _a(t){return void 0!==t}function ba(t,e){return 0!=(t.flags&(e?16:32))}function va(t,e=""){const n=Ut(),i=zt(),r=t+20,s=i.firstCreatePass?Nr(i,r,1,e,null):i.data[r],o=n[r]=function(t,e){return St(t)?t.createText(e):t.createTextNode(e)}(n[11],e);or(i,n,o,s),$t(s,!1)}function ya(t){return wa("",t,""),ya}function wa(t,e,n){const i=Ut(),r=no(i,t,e,n);return r!==Er&&xs(i,pe(),r),wa}function xa(t,e,n,i,r){const s=Ut(),o=function(t,e,n,i,r,s){const o=Xs(t,Wt(),n,r);return Xt(2),o?e+_(n)+i+_(r)+s:Er}(s,t,e,n,i,r);return o!==Er&&xs(s,pe(),o),xa}function Ca(t,e,n,i,r,s,o){const a=Ut(),c=function(t,e,n,i,r,s,o,a){const c=to(t,Wt(),n,r,o);return Xt(3),c?e+_(n)+i+_(r)+s+_(o)+a:Er}(a,t,e,n,i,r,s,o);return c!==Er&&xs(a,pe(),c),Ca}function ka(t,e,n,i,r,s,o,a,c){const l=Ut(),u=function(t,e,n,i,r,s,o,a,c,l){const u=function(t,e,n,i,r,s){const o=Xs(t,e,n,i);return Xs(t,e+2,r,s)||o}(t,Wt(),n,r,o,c);return Xt(4),u?e+_(n)+i+_(r)+s+_(o)+a+_(c)+l:Er}(l,t,e,n,i,r,s,o,a,c);return u!==Er&&xs(l,pe(),u),ka}function Sa(t,e,n){ua(pn,ca,no(Ut(),t,e,n),!0)}function Ea(t,e,n){const i=Ut();return Ks(i,Kt(),e)&&Jr(zt(),ge(),i,t,e,i[11],n,!0),Ea}function Aa(t,e,n){const i=Ut();if(Ks(i,Kt(),e)){const r=zt(),s=ge();Jr(r,s,i,t,e,vs(ne(r.data),s,i),n,!0)}return Aa}const Ta=void 0;var Oa=["en",[["a","p"],["AM","PM"],Ta],[["AM","PM"],Ta,Ta],[["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"]],Ta,[["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"]],Ta,[["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}",Ta,"{1} 'at' {0}",Ta],[".",",",";","%","+","-","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 Ia(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Fa(e);if(n)return n;const i=e.split("-")[0];if(n=Fa(i),n)return n;if("en"===i)return Oa;throw new Error(`Missing locale data for the locale "${t}".`)}function Pa(t){return Ia(t)[Ra.PluralCase]}function Fa(t){return t in Da||(Da[t]=U.ng&&U.ng.common&&U.ng.common.locales&&U.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))();let Ma="en-US";function La(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&&(Ma=t.toLowerCase().replace(/_/g,"-"))}function Na(t,e,n,i,r){if(t=f(t),Array.isArray(t))for(let s=0;s<t.length;s++)Na(t[s],e,n,i,r);else{const s=zt(),o=Ut();let a=Ns(t)?t:f(t.provide),c=Rs(t);const l=qt(),u=1048575&l.providerIndexes,h=l.directiveStart,d=l.providerIndexes>>20;if(Ns(t)||!t.multi){const i=new ke(c,r,Oo),p=Ua(a,e,r?u:u+d,h);-1===p?(Ue(Le(l,o),s,a),Za(s,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=Ua(a,e,u+d,h),f=Ua(a,e,u,u+d),g=p>=0&&n[p],m=f>=0&&n[f];if(r&&!m||!r&&!g){Ue(Le(l,o),s,a);const u=function(t,e,n,i,r){const s=new ke(t,n,Oo);return s.multi=[],s.index=e,s.componentProviders=0,Ba(s,r,i&&!n),s}(r?ja:za,n.length,r,i,c);!r&&m&&(n[f].providerFactory=u),Za(s,t,e.length,0),e.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(u),o.push(u)}else Za(s,t,p>-1?p:f,Ba(n[r?f:p],c,!r&&i));!r&&i&&m&&n[f].componentProviders++}}}function Za(t,e,n,i){const r=Ns(e);if(r||e.useClass){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,s]):o[t+1].push(i,s)}else o.push(n,s)}}}function Ba(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ua(t,e,n,i){for(let r=n;r<i;r++)if(e[r]===t)return r;return-1}function za(t,e,n,i){return qa(this.multi,[])}function ja(t,e,n,i){const r=this.multi;let s;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=Ge(n,n[1],this.providerFactory.index,i);s=e.slice(0,t),qa(r,s);for(let n=t;n<e.length;n++)s.push(e[n])}else s=[],qa(r,s);return s}function qa(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function Ya(t,e=[]){return n=>{n.providersResolver=(n,i)=>function(t,e,n){const i=zt();if(i.firstCreatePass){const r=ft(t);Na(n,i.data,i.blueprint,r,!0),Na(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}class $a{}class Va{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 Ha{}function Ga(...t){}function Qa(t,e){return new Wa(Ot(t,e))}Ha.NULL=new Va;const Ja=function(){return Qa(qt(),Ut())};let Wa=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Ja,t})();function Ka(t){return t instanceof Wa?t.nativeElement:t}class Xa{}let tc=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ec(),t})();const ec=function(){const t=Ut(),e=Pt(qt().index,t);return function(t){return t[11]}(lt(e)?e:t)};let nc=(()=>{class t{}return t.\u0275prov=y({token:t,providedIn:"root",factory:()=>null}),t})();class ic{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const rc=new ic("12.1.1");class sc{constructor(){}supports(t){return Qs(t)}create(t){return new ac(t)}}const oc=(t,e)=>e;class ac{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||oc}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,r=null;for(;e||n;){const s=!n||e&&e.currentIndex<hc(n,i,r)?e:n,o=hc(s,i,r),a=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(e=e._next,null==s.previousIndex)i++;else{r||(r=[]);const t=o-i,e=a-i;if(t!=e){for(let n=0;n<t;n++){const i=n<r.length?r[n]:r[n]=0,s=i+n;e<=s&&s<t&&(r[n]=i+1)}r[s.previousIndex]=e-t}}o!==a&&t(s,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=[]),!Qs(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,r=this._itHead,s=!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!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,n,i,e)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,i,e),s=!0),r=r._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[Hs()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,t,i,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,i,e),s=!0),r=r._next,e++}),this.length=e;return this._truncate(r),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 r;return null===t?r=this._itTail:(r=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,r,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):t=this._addAfter(new cc(e,n),r,i),t}_verifyReinsertion(t,e,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,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,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._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 uc),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 uc),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 cc{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 lc{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 uc{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new lc,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 hc(t,e,n){const i=t.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+e+r}class dc{constructor(){}supports(t){return t instanceof Map||Js(t)}create(){return new pc}}class pc{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||Js(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,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new fc(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 fc{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 gc(){return new mc([new sc])}let mc=(()=>{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||gc()),deps:[[t,new Ln,new Rn]]}}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:gc}),t})();function _c(){return new bc([new dc])}let bc=(()=>{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||_c()),deps:[[t,new Ln,new Rn]]}}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:_c}),t})();function vc(t,e,n,i,r=!1){for(;null!==n;){const s=e[n.index];if(null!==s&&i.push(At(s)),ut(s))for(let t=10;t<s.length;t++){const e=s[t],n=e[1].firstChild;null!==n&&vc(e[1],e,n,i)}const o=n.type;if(8&o)vc(t,e,n.child,i);else if(32&o){const t=ji(n,e);let r;for(;r=t();)i.push(r)}else if(16&o){const t=cr(e,n);if(Array.isArray(t))i.push(...t);else{const n=qi(e[16]);vc(n[1],n,t,i,!0)}}n=r?n.projectionNext:n.next}return i}class yc{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 vc(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(ut(t)){const e=t[8],n=e?e.indexOf(this):-1;n>-1&&(Ji(t,n),hn(e,n))}this._attachedToViewContainer=!1}Wi(this._lView[1],this._lView)}onDestroy(t){Gr(this._lView[1],this._lView,null,t)}markForCheck(){ds(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ps(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Qt(!0);try{ps(t,e,n)}finally{Qt(!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,hr(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 wc extends yc{constructor(t){super(t),this._view=t}detectChanges(){fs(this._view)}checkNoChanges(){!function(t){Qt(!0);try{fs(t)}finally{Qt(!1)}}(this._view)}get context(){return null}}const xc=function(t){return function(t,e,n){if(dt(t)&&!n){const n=Pt(t.index,e);return new yc(n,n)}return 47&t.type?new yc(e[16],e):null}(qt(),Ut(),16==(16&t))};let Cc=(()=>{class t{}return t.__NG_ELEMENT_ID__=xc,t})();const kc=[new dc],Sc=new mc([new sc]),Ec=new bc(kc),Ac=function(){return Ic(qt(),Ut())};let Tc=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ac,t})();const Oc=Tc,Dc=class extends Oc{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Lr(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)),Br(e,n,t),new yc(n)}};function Ic(t,e){return 4&t.type?new Dc(e,t,Qa(t,e)):null}class Pc{}class Fc{}const Rc=function(){return Uc(qt(),Ut())};let Mc=(()=>{class t{}return t.__NG_ELEMENT_ID__=Rc,t})();const Lc=Mc,Nc=class extends Lc{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Qa(this._hostTNode,this._hostLView)}get injector(){return new We(this._hostTNode,this._hostLView)}get parentInjector(){const t=Be(this._hostTNode,this._hostLView);if(De(t)){const e=Pe(t,this._hostLView),n=Ie(t);return new We(e[1].data[n+8],e)}return new We(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Zc(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,r){const s=n||this.parentInjector;if(!r&&null==t.ngModule&&s){const t=s.get(Pc,null);t&&(r=t)}const o=t.create(s,i,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(ut(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new Nc(e,e[6],e[3]);i.detach(i.indexOf(t))}}const r=this._adjustIndex(e),s=this._lContainer;!function(t,e,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=e),i<s-10?(e[4]=n[r],un(n,10+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,s,r);const o=lr(r,s),a=n[11],c=ir(a,s[7]);return null!==c&&function(t,e,n,i,r,s){i[0]=r,i[6]=e,hr(t,i,n,1,r,s)}(i,s[6],a,n,c,o),t.attachToViewContainerRef(),un(Bc(s),r,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=Zc(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=Ji(this._lContainer,e);n&&(hn(Bc(this._lContainer),e),Wi(n[1],n))}detach(t){const e=this._adjustIndex(t,-1),n=Ji(this._lContainer,e);return n&&null!=hn(Bc(this._lContainer),e)?new yc(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function Zc(t){return t[8]}function Bc(t){return t[8]||(t[8]=[])}function Uc(t,e){let n;const i=e[t.index];if(ut(i))n=i;else{let r;if(8&t.type)r=At(i);else{const n=e[11];r=n.createComment("");const i=Ot(t,e);tr(n,ir(n,i),r,function(t,e){return St(t)?t.nextSibling(e):e.nextSibling}(n,i),!1)}e[t.index]=n=as(i,e,r,t),hs(e,n)}return new Nc(n,t,e)}const zc={};class jc extends Ha{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=at(t);return new $c(e,this.ngModule)}}function qc(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Yc=new rn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ni});class $c extends $a{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Sr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return qc(this.componentDef.inputs)}get outputs(){return qc(this.componentDef.outputs)}create(t,e,n,i){const r=(i=i||this.ngModule)?function(t,e){return{get:(n,i,r)=>{const s=t.get(n,zc,r);return s!==zc||i===zc?s:e.get(n,i,r)}}}(t,i.injector):t,s=r.get(Xa,Et),o=r.get(nc,null),a=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=n?function(t,e,n){if(St(t))return t.selectRootElement(e,n===M.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Gi(s.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:Ni,clean:ms,playerHandler:null,flags:0},d=Hr(0,null,null,1,0,null,null,null,null,null),p=Lr(null,d,h,u,null,null,s,a,o,r);let f,g;ae(p);try{const t=function(t,e,n,i,r,s){const o=n[1];n[20]=t;const a=Nr(o,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(Cs(a,c,!0),null!==t&&(Se(r,t,c),null!==a.classes&&fr(r,t,a.classes),null!==a.styles&&pr(r,t,a.styles)));const l=i.createRenderer(t,e),u=Lr(n,Vr(e),null,e.onPush?64:16,n[20],a,i,l,null,null);return o.firstCreatePass&&(Ue(Le(a,n),o,e.type),ts(o,a),ns(a,n.length,1)),hs(n,u),n[20]=u}(l,this.componentDef,p,s,a);if(l)if(n)Se(a,l,["ng-version",rc.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i<t.length;){let s=t[i];if("string"==typeof s)2===r?""!==s&&e.push(s,t[++i]):8===r&&n.push(s);else{if(!yr(r))break;r=s}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Se(a,l,t),e&&e.length>0&&fr(a,l,e.join(" "))}if(g=Dt(d,20),void 0!==e){const t=g.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}f=function(t,e,n,i,r){const s=n[1],o=function(t,e,n){const i=qt();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),is(t,i,e,Zr(t,e,1,null),n));const r=Ge(e,t,i.directiveStart,i);Ii(r,e);const s=Ot(i,e);return s&&Ii(s,e),r}(s,n,e);if(i.components.push(o),t[8]=o,r&&r.forEach(t=>t(o,e)),e.contentQueries){const t=qt();e.contentQueries(1,o,t.directiveStart)}const a=qt();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(fe(a.index),Kr(n[1],a,0,a.directiveStart,a.directiveEnd,e),Xr(e,o)),o}(t,this.componentDef,p,h,[Us]),Br(d,p,null)}finally{de()}return new Vc(this.componentType,f,Qa(g,p),p,g)}}class Vc extends class{}{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new wc(i),this.componentType=t}get injector(){return new We(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Hc=new Map;class Gc extends Pc{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new jc(this);const n=ct(t),i=t[H]||null;i&&La(i),this._bootstrapComponents=Ui(n.bootstrap),this._r3Injector=Is(t,e,[{provide:Pc,useValue:this},{provide:Ha,useValue:this.componentFactoryResolver}],u(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Bs.THROW_IF_NOT_FOUND,n=O.Default){return t===Bs||t===Pc||t===ks?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 Qc extends Fc{constructor(t){super(),this.moduleType=t,null!==ct(t)&&function(t){const e=new Set;!function t(n){const i=ct(n,!0),r=i.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${u(e)} vs ${u(e.name)}`)}(r,Hc.get(r),n),Hc.set(r,n));const s=Ui(i.imports);for(const o of s)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new Gc(this.moduleType,t)}}function Jc(t,e,n){const i=Jt()+t,r=Ut();return r[i]===Er?Ws(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function Wc(t,e,n,i){return el(Ut(),Jt(),t,e,n,i)}function Kc(t,e,n,i,r){return nl(Ut(),Jt(),t,e,n,i,r)}function Xc(t,e,n,i,r,s){return function(t,e,n,i,r,s,o,a){const c=e+n;return to(t,c,r,s,o)?Ws(t,c+3,a?i.call(a,r,s,o):i(r,s,o)):tl(t,c+3)}(Ut(),Jt(),t,e,n,i,r,s)}function tl(t,e){const n=t[e];return n===Er?void 0:n}function el(t,e,n,i,r,s){const o=e+n;return Ks(t,o,r)?Ws(t,o+1,s?i.call(s,r):i(r)):tl(t,o+1)}function nl(t,e,n,i,r,s,o){const a=e+n;return Xs(t,a,r,s)?Ws(t,a+2,o?i.call(o,r,s):i(r,s)):tl(t,a+2)}function il(t,e){const n=zt();let i;const r=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new m("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=gt(i.type)),o=I(Oo);try{const t=Re(!1),e=s();return Re(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,Ut(),r,e),e}finally{I(o)}}function rl(t,e,n){const i=t+20,r=Ut(),s=It(r,i);return al(r,ol(r,i)?el(r,Jt(),e,s.transform,n,s):s.transform(n))}function sl(t,e,n,i){const r=t+20,s=Ut(),o=It(s,r);return al(s,ol(s,r)?nl(s,Jt(),e,o.transform,n,i,o):o.transform(n,i))}function ol(t,e){return t[1].data[e].pure}function al(t,e){return Gs.isWrapped(e)&&(e=Gs.unwrap(e),t[Wt()]=Er),e}function cl(t){return e=>{setTimeout(t,void 0,e)}}const ll=class extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,s,o;let a=t,c=e||(()=>null),l=n;if(t&&"object"==typeof t){const e=t;a=null===(i=e.next)||void 0===i?void 0:i.bind(e),c=null===(s=e.error)||void 0===s?void 0:s.bind(e),l=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(c=cl(c),a&&(a=cl(a)),l&&(l=cl(l)));const u=super.subscribe({next:a,error:c,complete:l});return t instanceof r.w&&t.add(u),u}};function ul(){return this._results[Hs()]()}class hl{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=Hs(),n=hl.prototype;n[e]||(n[e]=ul)}get changes(){return this._changes||(this._changes=new ll)}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){this.dirty=!1;const n=cn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],s=e[i];if(n&&(r=n(r),s=n(s)),s!==r)return!1}return!0}(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[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 dl{constructor(t){this.queryList=t,this.matches=null}clone(){return new dl(this.queryList)}setDirty(){this.queryList.setDirty()}}class pl{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 pl(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!==Al(t,e).matches&&this.queries[e].setDirty()}}class fl{constructor(t,e,n=null){this.predicate=t,this.flags=e,this.read=n}}class gl{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,r=this.getByIndex(n).embeddedTView(t,i);r&&(r.indexInDeclarationView=n,null!==e?e.push(r):e=[r])}return null!==e?new gl(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 ml{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 ml(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 r=n[i];this.matchTNodeWithReadOption(t,e,_l(e,r)),this.matchTNodeWithReadOption(t,e,He(e,t,r,!1,!1))}else n===Tc?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,He(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===Wa||i===Mc||i===Tc&&4&e.type)this.addMatch(e.index,-2);else{const n=He(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 _l(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 bl(t,e,n,i){return-1===n?function(t,e){return 11&t.type?Qa(t,e):4&t.type?Ic(t,e):null}(e,t):-2===n?function(t,e,n){return n===Wa?Qa(e,t):n===Tc?Ic(e,t):n===Mc?Uc(e,t):void 0}(t,e,i):Ge(t,t[1],n,e)}function vl(t,e,n,i){const r=e[19].queries[i];if(null===r.matches){const i=t.data,s=n.matches,o=[];for(let t=0;t<s.length;t+=2){const r=s[t];o.push(r<0?null:bl(e,i[r],s[t+1],n.metadata.read))}r.matches=o}return r.matches}function yl(t,e,n,i){const r=t.queries.getByIndex(n),s=r.matches;if(null!==s){const o=vl(t,e,r,n);for(let t=0;t<s.length;t+=2){const n=s[t];if(n>0)i.push(o[t/2]);else{const r=s[t+1],o=e[-n];for(let t=10;t<o.length;t++){const e=o[t];e[17]===e[3]&&yl(e[1],e,r,i)}if(null!==o[9]){const t=o[9];for(let e=0;e<t.length;e++){const n=t[e];yl(n[1],n,r,i)}}}}}return i}function wl(t){const e=Ut(),n=zt(),i=ie();re(i+1);const r=Al(n,i);if(t.dirty&&Ft(e)===(2==(2&r.metadata.flags))){if(null===r.matches)t.reset([]);else{const s=r.crossesNgTemplate?yl(n,e,i,[]):vl(n,e,r,i);t.reset(s,Ka),t.notifyOnChanges()}return!0}return!1}function xl(t,e,n){const i=zt();i.firstCreatePass&&(El(i,new fl(t,e,n),-1),2==(2&e)&&(i.staticViewQueries=!0)),Sl(i,Ut(),e)}function Cl(t,e,n,i){const r=zt();if(r.firstCreatePass){const s=qt();El(r,new fl(e,n,i),s.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)}(r,t),2==(2&n)&&(r.staticContentQueries=!0)}Sl(r,Ut(),n)}function kl(){return t=Ut(),e=ie(),t[19].queries[e].queryList;var t,e}function Sl(t,e,n){const i=new hl(4==(4&n));Gr(t,e,i,i.destroy),null===e[19]&&(e[19]=new pl),e[19].queries.push(new dl(i))}function El(t,e,n){null===t.queries&&(t.queries=new gl),t.queries.track(new ml(e,n))}function Al(t,e){return t.queries.getByIndex(e)}function Tl(t,e){return Ic(t,e)}const Ol=new rn("Application Initializer");let Dl=(()=>{class t{constructor(t){this.appInits=t,this.resolve=Ga,this.reject=Ga,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(Bo(e))t.push(e);else if(zo(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)(On(Ol,8))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();const Il=new rn("AppId"),Pl={provide:Il,useFactory:function(){return`${Fl()}${Fl()}${Fl()}`},deps:[]};function Fl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Rl=new rn("Platform Initializer"),Ml=new rn("Platform ID"),Ll=new rn("appBootstrapListener");let Nl=(()=>{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 Zl=new rn("LocaleId"),Bl=new rn("DefaultCurrencyCode");class Ul{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const zl=function(t){return new Qc(t)},jl=zl,ql=function(t){return Promise.resolve(zl(t))},Yl=function(t){const e=zl(t),n=Ui(ct(t).declarations).reduce((t,e)=>{const n=at(e);return n&&t.push(new $c(n)),t},[]);return new Ul(e,n)},$l=Yl,Vl=function(t){return Promise.resolve(Yl(t))};let Hl=(()=>{class t{constructor(){this.compileModuleSync=jl,this.compileModuleAsync=ql,this.compileModuleAndAllComponentsSync=$l,this.compileModuleAndAllComponentsAsync=Vl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();const Gl=new rn("compilerOptions"),Ql=(()=>Promise.resolve(0))();function Jl(t){"undefined"==typeof Zone?Ql.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Wl{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ll(!1),this.onMicrotaskEmpty=new ll(!1),this.onStable=new ll(!1),this.onError=new ll(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!n&&e,this.shouldCoalesceRunChangeDetection=n,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=U.requestAnimationFrame,e=U.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(U,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,tu(t),t.isCheckStableRunning=!0,Xl(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),tu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,o,a)=>{try{return eu(t),n.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&e(),nu(t)}},onInvoke:(n,i,r,s,o,a,c)=>{try{return eu(t),n.invoke(r,s,o,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),nu(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,tu(t),Xl(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Wl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Wl.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 r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+i,t,Kl,Ga,Ga);try{return r.runTask(s,e,n)}finally{r.cancelTask(s)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const Kl={};function Xl(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 tu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function eu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function nu(t){t._nesting--,Xl(t)}class iu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ll,this.onMicrotaskEmpty=new ll,this.onStable=new ll,this.onError=new ll}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 ru=(()=>{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:()=>{Wl.assertNotInAngularZone(),Jl(()=>{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())Jl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(On(Wl))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})(),su=(()=>{class t{constructor(){this._applications=new Map,lu.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 lu.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();class ou{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function au(t){lu=t}let cu,lu=new ou,uu=!0,hu=!1;function du(){return hu=!0,uu}function pu(){if(hu)throw new Error("Cannot enable prod mode after platform setup.");uu=!1}const fu=new rn("AllowMultipleToken");class gu{constructor(t,e){this.name=t,this.token=e}}function mu(t,e,n=[]){const i=`Platform: ${e}`,r=new rn(i);return(e=[])=>{let s=_u();if(!s||s.injector.get(fu,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:Es,useValue:"platform"});!function(t){if(cu&&!cu.destroyed&&!cu.injector.get(fu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");cu=t.get(bu);const e=t.get(Rl,null);e&&e.forEach(t=>t())}(Bs.create({providers:t,name:i}))}return function(t){const e=_u();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}(r)}}function _u(){return cu&&!cu.destroyed?cu:null}let bu=(()=>{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 iu:("zone.js"===t?void 0:t)||new Wl({enableLongStackTrace:du(),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:Wl,useValue:n}];return n.run(()=>{const e=Bs.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(e),s=r.injector.get(Li,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{s.handleError(t)}});r.onDestroy(()=>{wu(this._modules,r),t.unsubscribe()})}),function(t,e,n){try{const i=n();return Bo(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(s,n,()=>{const t=r.injector.get(Dl);return t.runInitializers(),t.donePromise.then(()=>(La(r.injector.get(Zl,"en-US")||"en-US"),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=vu({},e);return function(t,e,n){const i=new Qc(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(yu);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)(On(Bs))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();function vu(t,e){return Array.isArray(e)?e.reduce(vu,t):Object.assign(Object.assign({},t),e)}let yu=(()=>{class t{constructor(t,e,n,i,r){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new s.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),l=new s.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Wl.assertNotInAngularZone(),Jl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Wl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=(0,o.T)(c,l.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 $a?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(Pc),r=n.create(Bs.NULL,[],e||n.selector,i),s=r.location.nativeElement,o=r.injector.get(ru,null),a=o&&r.injector.get(su);return o&&a&&a.registerApplication(s,o),r.onDestroy(()=>{this.detachView(r.hostView),wu(this.components,r),a&&a.unregisterApplication(s)}),this._loadComponent(r),r}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;wu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ll,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(On(Wl),On(Bs),On(Li),On(Ha),On(Dl))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();function wu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class xu{}class Cu{}const ku={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Su=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||ku}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n(98255)(e).then(t=>t[i]).then(t=>Eu(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n(98255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+r]).then(t=>Eu(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(On(Hl),On(Cu,8))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();function Eu(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Au=function(t){return null},Tu=mu(null,"core",[{provide:Ml,useValue:"unknown"},{provide:bu,deps:[Bs]},{provide:su,deps:[]},{provide:Nl,deps:[]}]),Ou=[{provide:yu,useClass:yu,deps:[Wl,Bs,Li,Ha,Dl]},{provide:Yc,deps:[Wl],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Dl,useClass:Dl,deps:[[new Rn,Ol]]},{provide:Hl,useClass:Hl,deps:[]},Pl,{provide:mc,useFactory:function(){return Sc},deps:[]},{provide:bc,useFactory:function(){return Ec},deps:[]},{provide:Zl,useFactory:function(t){return La(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new Fn(Zl),new Rn,new Ln]]},{provide:Bl,useValue:"USD"}];let Du=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(On(yu))},t.\u0275mod=nt({type:t}),t.\u0275inj=w({providers:Ou}),t})()},3679:function(t,e,n){"use strict";n.d(e,{Zs:function(){return Xt},gN:function(){return j},Fj:function(){return p},on:function(){return ee},Oe:function(){return pt},qu:function(){return he},NI:function(){return ht},oH:function(){return At},u:function(){return Lt},cw:function(){return dt},sg:function(){return Ot},x0:function(){return It},u5:function(){return le},nD:function(){return se},Fd:function(){return Ht},wO:function(){return ie},qQ:function(){return Qt},Cf:function(){return m},JU:function(){return u},a5:function(){return q},JJ:function(){return $},JL:function(){return V},F:function(){return mt},On:function(){return yt},YN:function(){return Ut},wV:function(){return Ct},c5:function(){return ae},UX:function(){return ue},Q7:function(){return Kt},EJ:function(){return Bt},kI:function(){return v},_Y:function(){return wt},Kr:function(){return Yt}});var i=n(37716),r=n(38583),s=n(94402),o=n(35758),a=n(88002);let c=(()=>{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})(),l=(()=>{class t extends c{}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 c{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,r.q)()?(0,r.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 f(t){return null==t||0===t.length}function g(t){return null!=t&&"number"==typeof t.length}const m=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 k(t)}static minLength(t){return S(t)}static maxLength(t){return E(t)}static pattern(t){return A(t)}static nullValidator(t){return null}static compose(t){return R(t)}static composeAsync(t){return L(t)}}function y(t){return e=>{if(f(e.value)||f(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(f(e.value)||f(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}function x(t){return f(t.value)?{required:!0}:null}function C(t){return!0===t.value?null:{required:!0}}function k(t){return f(t.value)||b.test(t.value)?null:{email:!0}}function S(t){return e=>f(e.value)||!g(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}function E(t){return e=>g(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function A(t){if(!t)return T;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(f(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}function T(t){return null}function O(t){return null!=t}function D(t){const e=(0,i.QGY)(t)?(0,s.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 F(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function R(t){if(!t)return null;const e=t.filter(O);return 0==e.length?null:function(t){return I(P(t,e))}}function M(t){return null!=t?R(F(t)):null}function L(t){if(!t)return null;const e=t.filter(O);return 0==e.length?null:function(t){const n=P(t,e).map(D);return(0,o.D)(n).pipe((0,a.U)(I))}}function N(t){return null!=t?L(F(t)):null}function Z(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function B(t){return t._rawValidators}function U(t){return t._rawAsyncValidators}let z=(()=>{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=N(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})(),j=(()=>{class t extends z{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 q extends z{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Y{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 Y{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(q,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})(),V=(()=>{class t extends Y{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(j,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 H(t,e){return[...e.path,t]}function G(t,e){W(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&&X(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&&X(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 Q(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),K(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function J(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function W(t,e){const n=B(t);null!==e.validator?t.setValidators(Z(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const i=U(t);null!==e.asyncValidator?t.setAsyncValidators(Z(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();J(e._rawValidators,r),J(e._rawAsyncValidators,r)}function K(t,e){let n=!1;if(null!==t){if(null!==e.validator){const i=B(t);if(Array.isArray(i)&&i.length>0){const r=i.filter(t=>t!==e.validator);r.length!==i.length&&(n=!0,t.setValidators(r))}}if(null!==e.asyncValidator){const i=U(t);if(Array.isArray(i)&&i.length>0){const r=i.filter(t=>t!==e.asyncValidator);r.length!==i.length&&(n=!0,t.setAsyncValidators(r))}}}const i=()=>{};return J(e._rawValidators,i),J(e._rawAsyncValidators,i),n}function X(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function tt(t,e){W(t,e)}function et(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function nt(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function it(t,e){if(!e)return null;let n,i,r;return Array.isArray(e),e.forEach(t=>{t.constructor===p?n=t:Object.getPrototypeOf(t.constructor)===l?i=t:r=t}),r||i||n||null}function rt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function st(t){return(lt(t)?t.validators:t)||null}function ot(t){return Array.isArray(t)?M(t):t||null}function at(t,e){return(lt(e)?e.asyncValidators:t)||null}function ct(t){return Array.isArray(t)?N(t):t||null}function lt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ut{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=ot(this._rawValidators),this._composedAsyncValidatorFn=ct(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"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}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=ot(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ct(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="PENDING",!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="DISABLED",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="VALID",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(),"VALID"!==this.status&&"PENDING"!==this.status||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()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=D(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 dt?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof pt&&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()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_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){lt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ht extends ut{constructor(t=null,e,n){super(st(e),at(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){rt(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){rt(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 dt extends ut{constructor(t,e,n){super(st(e),at(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 ht?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 pt extends ut{constructor(t,e,n){super(st(e),at(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 ht?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 ft={provide:j,useExisting:(0,i.Gpc)(()=>mt)},gt=(()=>Promise.resolve(null))();let mt=(()=>{class t extends j{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.vpe,this.form=new dt({},M(t),N(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){gt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),G(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){gt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),rt(this._directives,t)})}addFormGroup(t){gt.then(()=>{const e=this._findContainer(t.path),n=new dt({});tt(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){gt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){gt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,nt(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(m,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([ft]),i.qOj]}),t})(),_t=(()=>{class t extends j{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return H(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 bt={provide:q,useExisting:(0,i.Gpc)(()=>yt)},vt=(()=>Promise.resolve(null))();let yt=(()=>{class t extends q{constructor(t,e,n,r){super(),this.control=new ht,this._registered=!1,this.update=new i.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=it(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),et(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?H(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(){G(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){vt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;vt.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(j,9),i.Y36(m,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([bt]),i.qOj,i.TTD]}),t})(),wt=(()=>{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 xt={provide:u,useExisting:(0,i.Gpc)(()=>Ct),multi:!0};let Ct=(()=>{class t extends l{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([xt]),i.qOj]}),t})(),kt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const St=new i.OlP("NgModelWithFormControlWarning"),Et={provide:q,useExisting:(0,i.Gpc)(()=>At)};let At=(()=>{class t extends q{constructor(t,e,n,r){super(),this._ngModelWarningConfig=r,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=it(0,n)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&Q(e,this,!1),G(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}et(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Q(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(m,10),i.Y36(_,10),i.Y36(u,10),i.Y36(St,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([Et]),i.qOj,i.TTD]}),t._ngModelWarningSentOnce=!1,t})();const Tt={provide:j,useExisting:(0,i.Gpc)(()=>Ot)};let Ot=(()=>{class t extends j{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&&(K(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 G(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Q(t.control||null,t,!1),rt(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,nt(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&&(Q(e||null,t),n instanceof ht&&(G(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);tt(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return K(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){W(this.form,this),this._oldForm&&K(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(m,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([Tt]),i.qOj,i.TTD]}),t})();const Dt={provide:j,useExisting:(0,i.Gpc)(()=>It)};let It=(()=>{class t extends _t{constructor(t,e,n){super(),this._parent=t,this._setValidators(e),this._setAsyncValidators(n)}_checkParentType(){Rt(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(j,13),i.Y36(m,10),i.Y36(_,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i._Bn([Dt]),i.qOj]}),t})();const Pt={provide:j,useExisting:(0,i.Gpc)(()=>Ft)};let Ft=(()=>{class t extends j{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 H(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Rt(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(j,13),i.Y36(m,10),i.Y36(_,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i._Bn([Pt]),i.qOj]}),t})();function Rt(t){return!(t instanceof It||t instanceof Ot||t instanceof Ft)}const Mt={provide:q,useExisting:(0,i.Gpc)(()=>Lt)};let Lt=(()=>{class t extends q{constructor(t,e,n,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=it(0,r)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),et(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 H(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(j,13),i.Y36(m,10),i.Y36(_,10),i.Y36(u,10),i.Y36(St,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([Mt]),i.qOj,i.TTD]}),t._ngModelWarningSentOnce=!1,t})();const Nt={provide:u,useExisting:(0,i.Gpc)(()=>Bt),multi:!0};function Zt(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Bt=(()=>{class t extends l{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=Zt(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([Nt]),i.qOj]}),t})(),Ut=(()=>{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(Zt(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(Bt,9))},t.\u0275dir=i.lG2({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const zt={provide:u,useExisting:(0,i.Gpc)(()=>qt),multi:!0};function jt(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let qt=(()=>{class t extends l{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),r=this._getOptionValue(i.value);n.push(r)}}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([zt]),i.qOj]}),t})(),Yt=(()=>{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(jt(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(jt(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(qt,9))},t.\u0275dir=i.lG2({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),$t=(()=>{class t{constructor(){this._validator=T}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 Vt={provide:m,useExisting:(0,i.Gpc)(()=>Ht),multi:!0};let Ht=(()=>{class t extends $t{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([Vt]),i.qOj,i.TTD]}),t})();const Gt={provide:m,useExisting:(0,i.Gpc)(()=>Qt),multi:!0};let Qt=(()=>{class t extends $t{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([Gt]),i.qOj,i.TTD]}),t})();const Jt={provide:m,useExisting:(0,i.Gpc)(()=>Kt),multi:!0},Wt={provide:m,useExisting:(0,i.Gpc)(()=>Xt),multi:!0};let Kt=(()=>{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([Jt])]}),t})(),Xt=(()=>{class t extends Kt{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([Wt]),i.qOj]}),t})();const te={provide:m,useExisting:(0,i.Gpc)(()=>ee),multi:!0};let ee=(()=>{class t{constructor(){this._enabled=!1}set email(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}validate(t){return this._enabled?k(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[i._Bn([te])]}),t})();const ne={provide:m,useExisting:(0,i.Gpc)(()=>ie),multi:!0};let ie=(()=>{class t{constructor(){this._validator=T}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=S("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([ne]),i.TTD]}),t})();const re={provide:m,useExisting:(0,i.Gpc)(()=>se),multi:!0};let se=(()=>{class t{constructor(){this._validator=T}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=E("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 oe={provide:m,useExisting:(0,i.Gpc)(()=>ae),multi:!0};let ae=(()=>{class t{constructor(){this._validator=T}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=A(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([oe]),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:[[kt]]}),t})(),le=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[ce]}),t})(),ue=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:St,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})(),he=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i,r=null,s=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new dt(n,{asyncValidators:s,updateOn:i,validators:r})}control(t,e,n){return new ht(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new pt(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 ht||t instanceof dt||t instanceof pt?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:ue}),t})()},70346:function(t,e,n){"use strict";n.d(e,{k:function(){return h},g:function(){return d}});var i=n(72458),r=n(19238),s=n(39490),o=n(46237),a=n(37716);let c=0;class l{}const u=(0,i.Id)(l);let h=(()=>{class t extends u{constructor(t,e,n,i,r){super(),this._ngZone=t,this._elementRef=e,this._ariaDescriber=n,this._renderer=i,this._animationMode=r,this._hasContent=!1,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=c++}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,s.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,s.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");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id",`mat-badge-content-${this._id}`),t.classList.add("mat-badge-content"),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("mat-badge-active")})}):t.classList.add("mat-badge-active"),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(r.$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:[[r.rt,i.BQ],i.BQ]}),t})()},51095:function(t,e,n){"use strict";n.d(e,{zs:function(){return f},lW:function(){return p},ot:function(){return g}});var i=n(72458),r=n(46237),s=n(37716),o=n(19238);const a=["mat-button",""],c=["*"],l=".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)(s.Y36(s.SBq),s.Y36(o.tE),s.Y36(r.Qb,8))},t.\u0275cmp=s.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&&s.Gf(i.wG,5),2&t){let t;s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(s.uIk("disabled",e.disabled||null),s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.qOj],attrs:a,ngContentSelectors:c,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&&(s.F$t(),s.TgZ(0,"span",0),s.Hsn(1),s.qZA(),s._UZ(2,"span",1),s._UZ(3,"span",2)),2&t&&(s.xp6(2),s.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[l],encapsulation:2,changeDetection:0}),t})(),f=(()=>{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)(s.Y36(o.tE),s.Y36(s.SBq),s.Y36(r.Qb,8))},t.\u0275cmp=s.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&&s.NdJ("click",function(t){return e._haltDisabledEvents(t)}),2&t&&(s.uIk("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),s.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:[s.qOj],attrs:a,ngContentSelectors:c,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&&(s.F$t(),s.TgZ(0,"span",0),s.Hsn(1),s.qZA(),s._UZ(2,"span",1),s._UZ(3,"span",2)),2&t&&(s.xp6(2),s.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[l],encapsulation:2,changeDetection:0}),t})(),g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.si,i.BQ],i.BQ]}),t})()},7539:function(t,e,n){"use strict";n.d(e,{oG:function(){return w},p9:function(){return S},e_:function(){return C}});var i=n(39490),r=n(37716),s=n(3679),o=n(72458),a=n(46237),c=n(18553),l=n(19238);const u=["input"],h=function(){return{enterDuration:150}},d=["*"],p=new r.OlP("mat-checkbox-default-options",{providedIn:"root",factory:f});function f(){return{color:"accent",clickAction:"check-indeterminate"}}let g=0;const m=f(),_={provide:s.JU,useExisting:(0,r.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,s,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-"+ ++g,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new r.vpe,this.indeterminateChange=new r.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||m,this.color=this.defaultColor=this._options.color||m.color,this.tabIndex=parseInt(s)||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)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(l.tE),r.Y36(r.R0b),r.$8M("tabindex"),r.Y36(a.Qb,8),r.Y36(p,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(r.Gf(u,5),r.Gf(o.wG,5)),2&t){let t;r.iGM(t=r.CRH())&&(e._inputElement=t.first),r.iGM(t=r.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Ikx("id",e.id),r.uIk("tabindex",null),r.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:[r._Bn([_]),r.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&&(r.F$t(),r.TgZ(0,"label",0,1),r.TgZ(2,"span",2),r.TgZ(3,"input",3,4),r.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),r.qZA(),r.TgZ(5,"span",5),r._UZ(6,"span",6),r.qZA(),r._UZ(7,"span",7),r.TgZ(8,"span",8),r.O4$(),r.TgZ(9,"svg",9),r._UZ(10,"path",10),r.qZA(),r.kcU(),r._UZ(11,"span",11),r.qZA(),r.qZA(),r.TgZ(12,"span",12,13),r.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),r.TgZ(14,"span",14),r._uU(15,"\xa0"),r.qZA(),r.Hsn(16),r.qZA(),r.qZA()),2&t){const t=r.MAs(1),n=r.MAs(13);r.uIk("for",e.inputId),r.xp6(2),r.ekj("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),r.xp6(1),r.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),r.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),r.xp6(2),r.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",r.DdM(19,h))}},directives:[o.wG,c.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:s.Cf,useExisting:(0,r.Gpc)(()=>C),multi:!0};let C=(()=>{class t extends s.Zs{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275dir=r.lG2({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[r._Bn([x]),r.qOj]}),t})(),k=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t})(),S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[o.si,o.BQ,c.Q8,k],o.BQ,k]}),t})()},72458:function(t,e,n){"use strict";n.d(e,{_A:function(){return S},rD:function(){return N},sG:function(){return E},K7:function(){return tt},HF:function(){return Q},Y2:function(){return Y},BQ:function(){return b},XK:function(){return L},ey:function(){return rt},Ng:function(){return at},rN:function(){return nt},nP:function(){return H},us:function(){return G},wG:function(){return $},si:function(){return V},IR:function(){return q},CB:function(){return st},jH:function(){return ot},pj:function(){return y},Kr:function(){return w},Id:function(){return v},FD:function(){return C},sb:function(){return x}});var i=n(37716),r=n(19238),s=n(70946);const o=new i.GfV("11.2.13");var a=n(38583),c=n(39490),l=n(79765),u=n(80521),h=n(46237),d=n(36461);function p(t,e){if(1&t&&i._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=i.oxw();i.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function f(t,e){if(1&t&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.hij("(",t.group.label,")")}}const g=["*"],m=new i.GfV("11.2.13"),_=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let b=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_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)&&m.full!==o.full&&console.warn("The Angular Material version ("+m.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(r.qm),i.LFG(_,8),i.LFG(a.K0))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[s.vT],s.vT]}),t})();function v(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,c.Ig)(t)}}}function y(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 w(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,c.Ig)(t)}}}function x(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?(0,c.su)(t):this.defaultTabIndex}}}function C(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new l.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 k=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return(0,i.f3M)(i.soG)}});class S{constructor(){this._localeChanges=new l.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 E=new i.OlP("mat-date-formats");let A;try{A="undefined"!=typeof Intl}catch(ct){A=!1}const T={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"]},O=P(31,t=>String(t+1)),D={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},I=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function P(t,e){const n=Array(t);for(let i=0;i<t;i++)n[i]=e(i);return n}let F=(()=>{class t extends S{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(A){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return P(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return T[t]}getDateNames(){if(A){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return P(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return O}getDayOfWeekNames(t){if(A){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return P(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return D[t]}getYearName(t){if(A){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(A){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(I.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(k,8),i.LFG(u.t4))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:S,useClass:F}],imports:[[u.ud]]}),t})();const M={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:E,useValue:M}],imports:[[R]]}),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})();class Z{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const B={enterDuration:450,exitDuration:400},U=(0,u.i$)({passive:!0}),z=["mousedown","touchstart"],j=["mouseup","mouseleave","touchend","touchcancel"];class q{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,c.fI)(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},B),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const s=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}(t,e,i),o=t-i.left,a=e-i.top,c=r.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=o-s+"px",l.style.top=a-s+"px",l.style.height=2*s+"px",l.style.width=2*s+"px",null!=n.color&&(l.style.backgroundColor=n.color),l.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";const u=new Z(this,l,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()},c),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({},B),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,c.fI)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(z))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(j),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=(0,r.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,r.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,U)})})}_removeTriggerEvents(){this._triggerElement&&(z.forEach(t=>{this._triggerElement.removeEventListener(t,this,U)}),this._pointerUpEventsRegistered&&j.forEach(t=>{this._triggerElement.removeEventListener(t,this,U)}))}}const Y=new i.OlP("mat-ripple-global-options");let $=(()=>{class t{constructor(t,e,n,i,r){this._elementRef=t,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new q(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(Y,8),i.Y36(h.Qb,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[b,u.ud],b]}),t})(),H=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h.Qb,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[b]]}),t})();const Q=new i.OlP("MAT_OPTION_PARENT_COMPONENT");class J{}const W=v(J);let K=0,X=(()=>{class t extends W{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+K++,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(Q,8))},t.\u0275dir=i.lG2({type:t,inputs:{label:"label"},features:[i.qOj]}),t})();const tt=new i.OlP("MatOptgroup");let et=0;class nt{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let it=(()=>{class t{constructor(t,e,n,r){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+et++,this.onSelectionChange=new i.vpe,this._stateChanges=new l.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,c.Ig)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==d.K5&&t.keyCode!==d.L_||(0,d.Vb)(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new nt(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(X))},t.\u0275dir=i.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),rt=(()=>{class t extends it{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(Q,8),i.Y36(tt,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:g,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,p,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,f,2,1,"span",2),i._UZ(4,"div",3)),2&t&&(i.Q6J("ngIf",e.multiple),i.xp6(3),i.Q6J("ngIf",e.group&&e.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.O5,$,H],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 st(t,e,n){if(n.length){let i=e.toArray(),r=n.toArray(),s=0;for(let e=0;e<t+1;e++)i[e].group&&i[e].group===r[s]&&s++;return s}return 0}function ot(t,e,n,i){return t<n?t:t+e>n+i?Math.max(0,t-i+e):n}let at=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[V,a.ez,b,G]]}),t})()},22238:function(t,e,n){"use strict";n.d(e,{WI:function(){return E},uw:function(){return I},H8:function(){return M},xY:function(){return R},Is:function(){return L},so:function(){return k},uh:function(){return F},Nv:function(){return y}});var i=n(90625),r=n(87636),s=n(37716),o=n(72458),a=n(70946),c=n(38583),l=n(79765),u=n(41439),h=n(25917),d=n(45435),p=n(15257),f=n(39761),g=n(17238),m=n(36461),_=n(19238);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,g.X$)("dialogContainer",[(0,g.SB)("void, exit",(0,g.oB)({opacity:0,transform:"scale(0.7)"})),(0,g.SB)("enter",(0,g.oB)({transform:"none"})),(0,g.eR)("* => enter",(0,g.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,g.oB)({transform:"none",opacity:1}))),(0,g.eR)("* => void, * => exit",(0,g.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,g.oB)({opacity:0})))])};let w=(()=>{class t extends r.en{constructor(t,e,n,i,r,o){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=r,this._focusMonitor=o,this._animationStateChanged=new s.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=r.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)(s.Y36(s.SBq),s.Y36(_.qV),s.Y36(s.sBO),s.Y36(c.K0,8),s.Y36(v),s.Y36(_.tE))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&s.Gf(r.Pl,7),2&t){let t;s.iGM(t=s.CRH())&&(e._portalOutlet=t.first)}},features:[s.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=s.n5z(t)))(n||t)}}(),t.\u0275cmp=s.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&&s.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(s.Ikx("id",e._id),s.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),s.d8E("@dialogContainer",e._state))},features:[s.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.YNc(0,b,0,0,"ng-template",0)},directives:[r.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[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 l.xQ,this._afterClosed=new l.xQ,this._beforeClosed=new l.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===m.hY&&!this.disableClose&&!(0,m.Vb)(t))).subscribe(t=>{t.preventDefault(),S(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():S(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,d.h)(t=>"closing"===t.state),(0,p.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function S(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const E=new s.OlP("MatDialogData"),A=new s.OlP("mat-dialog-default-options"),T=new s.OlP("mat-dialog-scroll-strategy"),O={provide:T,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.block()}};let D=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=r,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new l.xQ,this._afterOpenedAtThisLevel=new l.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,u.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,f.O)(void 0))),this._scrollStrategy=s}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),r=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),i._initializeWithAttachedContent(),r}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=s.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:v,useValue:e}]}),i=new r.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 s.Rgc)e.attachTemplatePortal(new r.UE(t,null,{$implicit:i.data,dialogRef:o}));else{const n=this._createInjector(i,o,e),s=e.attachComponentPortal(new r.C5(t,i.viewContainerRef,n));o.componentInstance=s.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||i&&i.get(a.Is,null)||r.push({provide:a.Is,useValue:{value:t.direction,change:(0,h.of)()}}),s.zs3.create({parent:i||this._injector,providers:r})}_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)(s.Y36(i.aV),s.Y36(s.zs3),s.Y36(void 0),s.Y36(void 0),s.Y36(i.Xj),s.Y36(void 0),s.Y36(s.DyG),s.Y36(s.DyG),s.Y36(s.OlP))},t.\u0275dir=s.lG2({type:t}),t})(),I=(()=>{class t extends D{constructor(t,e,n,i,r,s,o){super(t,e,i,s,o,r,k,x,E)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.aV),s.LFG(s.zs3),s.LFG(c.Ye,8),s.LFG(A,8),s.LFG(T),s.LFG(t,12),s.LFG(i.Xj))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),P=0,F=(()=>{class t{constructor(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+P++}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)(s.Y36(k,8),s.Y36(s.SBq),s.Y36(I))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&s.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[I,O],imports:[[i.U8,r.eL,o.BQ],o.BQ]}),t})()},76627:function(t,e,n){"use strict";n.d(e,{Hw:function(){return F},Ps:function(){return R},jv:function(){return k}});var i=n(37716),r=n(72458),s=n(39490),o=n(38583),a=n(25917),c=n(40205),l=n(35758),u=n(75319),h=n(93342),d=n(88002),p=n(5304),f=n(68939),g=n(18819),m=n(15257),_=n(91841),b=n(39075);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,r){const s=this._sanitizer.sanitize(i.q3G.HTML,n);if(!s)throw x(n);return this._addSvgIconConfig(t,e,new C("",s,r))}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 r=this._sanitizer.sanitize(i.q3G.HTML,e);if(!r)throw x(e);return this._addSvgIconSetConfig(t,new C("",r,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)(S(n)):this._loadSvgIconFromConfig(new C(t,null)).pipe((0,h.b)(t=>this._cachedIconsByUrl.set(e,t)),(0,d.U)(t=>S(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 r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):(0,c._)(y(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?(0,a.of)(S(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,d.U)(t=>S(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);if(n)return(0,a.of)(n);const r=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,l.D)(r).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 r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);const s=this._svgElementFromString("<svg></svg>");return s.appendChild(r),this._setSvgAttributes(s,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:r}=n[i];"id"!==t&&e.setAttribute(t,r)}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:r}=t,s=null!==(e=null==r?void 0:r.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 c=this._httpClient.get(o,{responseType:"text",withCredentials:s}).pipe((0,f.x)(()=>this._inProgressUrlFetches.delete(o)),(0,g.B)());return this._inProgressUrlFetches.set(o,c),c}_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 r=this._resolvers[i](e,t);if(r)return(n=r).url&&n.options?new C(r.url,null,r.options):new C(r,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 S(t){return t.cloneNode(!0)}function E(t,e){return t+":"+e}class A{constructor(t){this._elementRef=t}}const T=(0,r.pj)(A),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:""}}}),D=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],I=D.map(t=>`[${t}]`).join(", "),P=/^url\(['"]?#(.*?)['"]?\)$/;let F=(()=>{class t extends T{constructor(t,e,n,i,r){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=r,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,s.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(I),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i<e.length;i++)D.forEach(t=>{const r=e[i],s=r.getAttribute(t),o=s?s.match(P):null;if(o){let e=n.get(r);e||(e=[],n.set(r,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,m.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})(),R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[r.BQ],r.BQ]}),t})()},33935:function(t,e,n){"use strict";n.d(e,{VK:function(){return B},KA:function(){return I},OP:function(){return M},Tx:function(){return $},p6:function(){return q}});var i=n(19238),r=n(39490),s=n(36461),o=n(37716),a=n(79765),c=n(75319),l=n(66682),u=n(25917),h=n(64581),d=n(39761),p=n(43190),f=n(15257),g=n(45435),m=n(46782),_=n(71289),b=n(17238),v=n(87636),y=n(38583),w=n(72458),x=n(90625),C=n(80521),k=n(71386),S=n(70946);const E=["mat-menu-item",""],A=["*"];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)")])])},D=new o.OlP("MatMenuContent");let I=(()=>{class t{constructor(t,e,n,i,r,s,o){this._template=t,this._componentFactoryResolver=e,this._appRef=n,this._injector=i,this._viewContainerRef=r,this._document=s,this._changeDetectorRef=o,this._attached=new a.xQ}attach(t={}){this._portal||(this._portal=new v.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new v.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc),o.Y36(o._Vd),o.Y36(o.z2F),o.Y36(o.zs3),o.Y36(o.s_b),o.Y36(y.K0),o.Y36(o.sBO))},t.\u0275dir=o.lG2({type:t,selectors:[["ng-template","matMenuContent",""]],features:[o._Bn([{provide:D,useExisting:t}])]}),t})();const P=new o.OlP("MAT_MENU_PANEL");class F{}const R=(0,w.Kr)((0,w.Id)(F));let M=(()=>{class t extends R{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 r=0;r<i.length;r++){const e=i[r];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:A,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 L=new o.OlP("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let N=0,Z=(()=>{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=c.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-"+N++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=(0,r.Ig)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,r.Ig)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new 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,l.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,l.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case s.hY:(0,s.Vb)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case s.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case s.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==s.LH&&e!==s.JH||n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,f.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(L))},t.\u0275dir=o.lG2({type:t,contentQueries:function(t,e,n){if(1&t&&(o.Suo(n,D,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})(),B=(()=>{class t extends Z{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(L))},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:A,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"),z={provide:U,deps:[x.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},j=(0,C.i$)({passive:!0});let q=(()=>{class t{constructor(t,e,n,r,s,a,l,u){this._overlay=t,this._element=e,this._viewContainerRef=n,this._menuItemInstance=a,this._dir=l,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=c.w.EMPTY,this._hoverSubscription=c.w.EMPTY,this._menuCloseSubscription=c.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=r,this._parentMaterialMenu=s instanceof Z?s:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,j),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,j),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 Z&&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 Z?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,g.h)(t=>"void"===t.toState),(0,f.q)(1),(0,m.R)(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._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,r]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[s,o]=[i,r],[a,c]=[e,n],l=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",l="bottom"===i?8:-8):this.menu.overlapTrigger||(s="top"===i?"bottom":"top",o="top"===r?"bottom":"top"),t.withPositions([{originX:e,originY:s,overlayX:a,overlayY:i,offsetY:l},{originX:n,originY:s,overlayX:c,overlayY:i,offsetY:l},{originX:e,originY:o,overlayX:a,overlayY:r,offsetY:-l},{originX:n,originY:o,overlayX:c,overlayY:r,offsetY:-l}])}_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,g.h)(t=>t!==this._menuItemInstance),(0,g.h)(()=>this._menuOpen)):(0,u.of)();return(0,l.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!==s.K5&&e!==s.L_||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===s.SV&&"ltr"===this.dir||e===s.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,g.h)(t=>t===this._menuItemInstance&&!t.disabled),(0,_.g)(0,h.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Z&&this.menu._isAnimating?this.menu._animationDone.pipe((0,f.q)(1),(0,_.g)(0,h.E),(0,m.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new 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(S.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})(),Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[z],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:[z],imports:[[y.ez,w.BQ,w.si,x.U8,Y],k.ZD,w.BQ,Y]}),t})()},12178:function(t,e,n){"use strict";n.d(e,{pW:function(){return m},Cv:function(){return b}});var i=n(37716),r=n(38583),s=n(72458),o=n(39490),a=n(46237),c=n(75319),l=n(22759),u=n(45435);const h=["primaryValueBar"];class d{constructor(t){this._elementRef=t}}const p=(0,s.pj)(d,"primary"),f=new i.OlP("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=(0,i.f3M)(r.K0),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let g=0,m=(()=>{class t extends p{constructor(t,e,n,r){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=c.w.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+g++;const s=r?r.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${s}#${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,l.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(f,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:[r.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:[[r.ez,s.BQ],s.BQ]}),t})()},77001:function(t,e,n){"use strict";n.d(e,{qD:function(){return b},ux:function(){return A},ZX:function(){return S}});var i=n(90625),r=n(87636),s=n(38583),o=n(37716),a=n(72458),c=n(51095),l=n(79765),u=n(15257),h=n(46782),d=n(17238),p=n(19238),f=n(65072),g=n(80521);function m(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 l.xQ,this._afterOpened=new l.xQ,this._onAction=new l.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,m,3,1,"div",0)),2&t&&(o.xp6(1),o.Oqu(e.data.message),o.xp6(1),o.Q6J("ngIf",e.hasAction))},directives:[s.O5,c.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 r.en{constructor(t,e,n,i,r){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=n,this._platform=i,this.snackBarConfig=r,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new l.xQ,this._onExit=new l.xQ,this._onEnter=new l.xQ,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._live="assertive"!==r.politeness||r.announcementMessage?"off"===r.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(g.t4),o.Y36(v))},t.\u0275cmp=o.Xpm({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){if(1&t&&o.Gf(r.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:[r.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})(),S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[i.U8,r.eL,s.ez,c.ot,a.BQ],a.BQ]}),t})();const E=new o.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new v}});let A=(()=>{class t{constructor(t,e,n,i,r,s){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=i,this._parentSnackBar=r,this._defaultConfig=s,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 r.C5(this.snackBarContainerComponent,e.viewContainerRef,n),s=t.attach(i);return s.instance.snackBarConfig=e,s.instance}_attach(t,e){const n=Object.assign(Object.assign(Object.assign({},new v),this._defaultConfig),e),i=this._createOverlay(n),s=this._attachSnackBarContainer(i,n),a=new w(s,i);if(t instanceof o.Rgc){const e=new r.UE(t,null,{$implicit:n.data,snackBarRef:a});a.instance=s.attachTemplatePortal(e)}else{const e=this._createInjector(n,a),i=new r.C5(t,void 0,e),o=s.attachComponentPortal(i);a.instance=o.instance}return this._breakpointObserver.observe(f.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&&s._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 r="rtl"===t.direction,s="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!r||"end"===t.horizontalPosition&&r,o=!s&&"center"!==t.horizontalPosition;return s?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(f.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)(f.Yg),(0,o.LFG)(t,12),(0,o.LFG)(E))},token:t,providedIn:S}),t})()},97832:function(t,e,n){"use strict";n.d(e,{ae:function(){return K},C0:function(){return J},Vq:function(){return W},z9:function(){return Q},T5:function(){return tt},fd:function(){return X}});var i=n(87636),r=n(19238),s=n(70946),o=n(39490),a=n(36461),c=n(38583),l=n(37716),u=n(79765),h=n(25917),d=n(39761),p=n(46782);function f(t,e){1&t&&l.Hsn(0)}const g=["*"];let m=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.SBq))},t.\u0275dir=l.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)(l.Y36(l.Rgc))},t.\u0275dir=l.lG2({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),b=0;const v=new l.OlP("STEPPER_GLOBAL_OPTIONS");let y=(()=>{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)(l.Y36((0,l.Gpc)(()=>w)),l.Y36(v,8))},t.\u0275cmp=l.Xpm({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,n){if(1&t&&l.Suo(n,_,5),2&t){let t;l.iGM(t=l.CRH())&&(e.stepLabel=t.first)}},viewQuery:function(t,e){if(1&t&&l.Gf(l.Rgc,7),2&t){let t;l.iGM(t=l.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:[l.TTD],ngContentSelectors:g,decls:1,vars:0,template:function(t,e){1&t&&(l.F$t(),l.YNc(0,f,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),w=(()=>{class t{constructor(t,e,n,i){this._dir=t,this._changeDetectorRef=e,this._elementRef=n,this._destroyed=new u.xQ,this.steps=new l.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new l.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 r.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?"error":!t.completed||e?"number":t.editable?"edit":"done"}_getGuidelineLogic(t,e,n="number"){return t._showError&&t.hasError&&!e?"error":t.completed&&!e?"done":t.completed&&e?n:t.editable&&e?"edit":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)(l.Y36(s.Is,8),l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(c.K0))},t.\u0275dir=l.lG2({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(t,e,n){if(1&t&&(l.Suo(n,y,5),l.Suo(n,m,5)),2&t){let t;l.iGM(t=l.CRH())&&(e._steps=t),l.iGM(t=l.CRH())&&(e._stepHeader=t)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),t})(),x=(()=>{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(w))},t.\u0275dir=l.lG2({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("click",function(){return e._handleClick()}),2&t&&l.Ikx("type",e.type)},inputs:{type:"type"}}),t})(),C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[s.vT]]}),t})();var k=n(51095),S=n(72458),E=n(76627),A=n(87519),T=n(17238);function O(t,e){if(1&t&&l.GkF(0,8),2&t){const t=l.oxw();l.Q6J("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function D(t,e){if(1&t&&(l.TgZ(0,"span"),l._uU(1),l.qZA()),2&t){const t=l.oxw(2);l.xp6(1),l.Oqu(t._getDefaultTextForState(t.state))}}function I(t,e){if(1&t&&(l.TgZ(0,"mat-icon"),l._uU(1),l.qZA()),2&t){const t=l.oxw(2);l.xp6(1),l.Oqu(t._getDefaultTextForState(t.state))}}function P(t,e){if(1&t&&(l.ynx(0,9),l.YNc(1,D,2,1,"span",10),l.YNc(2,I,2,1,"mat-icon",11),l.BQk()),2&t){const t=l.oxw();l.Q6J("ngSwitch",t.state),l.xp6(1),l.Q6J("ngSwitchCase","number")}}function F(t,e){if(1&t&&(l.TgZ(0,"div",12),l.GkF(1,13),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("ngTemplateOutlet",t._templateLabel().template)}}function R(t,e){if(1&t&&(l.TgZ(0,"div",12),l._uU(1),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Oqu(t.label)}}function M(t,e){if(1&t&&(l.TgZ(0,"div",14),l._uU(1),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Oqu(t._intl.optionalLabel)}}function L(t,e){if(1&t&&(l.TgZ(0,"div",15),l._uU(1),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Oqu(t.errorMessage)}}function N(t,e){1&t&&l.Hsn(0)}const Z=["*"];function B(t,e){1&t&&l._UZ(0,"div",6)}function U(t,e){if(1&t){const t=l.EpF();l.ynx(0),l.TgZ(1,"mat-step-header",4),l.NdJ("click",function(){return e.$implicit.select()})("keydown",function(e){return l.CHM(t),l.oxw()._onKeydown(e)}),l.qZA(),l.YNc(2,B,1,0,"div",5),l.BQk()}if(2&t){const t=e.$implicit,n=e.index,i=e.last,r=l.oxw();l.xp6(1),l.Q6J("tabIndex",r._getFocusIndex()===n?0:-1)("id",r._getStepLabelId(n))("index",n)("state",r._getIndicatorType(n,t.state))("label",t.stepLabel||t.label)("selected",r.selectedIndex===n)("active",t.completed||r.selectedIndex===n||!r.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple)("color",t.color||r.color),l.uIk("aria-posinset",n+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(n))("aria-selected",r.selectedIndex==n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),l.xp6(1),l.Q6J("ngIf",!i)}}function z(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",7),l.NdJ("@stepTransition.done",function(e){return l.CHM(t),l.oxw()._animationDone.next(e)}),l.GkF(1,8),l.qZA()}if(2&t){const t=e.$implicit,n=e.index,i=l.oxw();l.Q6J("@stepTransition",i._getAnimationDirection(n))("id",i._getStepContentId(n)),l.uIk("aria-labelledby",i._getStepLabelId(n))("aria-expanded",i.selectedIndex===n),l.xp6(1),l.Q6J("ngTemplateOutlet",t.content)}}let j=(()=>{class t extends _{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=l.n5z(t)))(n||t)}}(),t.\u0275dir=l.lG2({type:t,selectors:[["","matStepLabel",""]],features:[l.qOj]}),t})(),q=(()=>{class t{constructor(){this.changes=new u.xQ,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,l.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Y={provide:q,deps:[[new l.FiY,new l.tp0,q]],useFactory:function(t){return t||new q}};class $ extends m{constructor(t){super(t)}}const V=(0,S.pj)($,"primary");let H=(()=>{class t extends V{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 j?null:this.label}_templateLabel(){return this.label instanceof j?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)(l.Y36(q),l.Y36(r.tE),l.Y36(l.SBq),l.Y36(l.sBO))},t.\u0275cmp=l.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:[l.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&&(l._UZ(0,"div",0),l.TgZ(1,"div"),l.TgZ(2,"div",1),l.YNc(3,O,1,2,"ng-container",2),l.YNc(4,P,3,2,"ng-container",3),l.qZA(),l.qZA(),l.TgZ(5,"div",4),l.YNc(6,F,2,1,"div",5),l.YNc(7,R,2,1,"div",5),l.YNc(8,M,2,1,"div",6),l.YNc(9,L,2,1,"div",7),l.qZA()),2&t&&(l.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),l.xp6(1),l.Gre("mat-step-icon-state-",e.state," mat-step-icon"),l.ekj("mat-step-icon-selected",e.selected),l.xp6(1),l.Q6J("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),l.xp6(1),l.Q6J("ngSwitchCase",!0),l.xp6(2),l.ekj("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),l.xp6(1),l.Q6J("ngIf",e._templateLabel()),l.xp6(1),l.Q6J("ngIf",e._stringLabel()),l.xp6(1),l.Q6J("ngIf",e.optional&&"error"!=e.state),l.xp6(1),l.Q6J("ngIf","error"==e.state))},directives:[S.wG,c.RF,c.n9,c.ED,c.O5,c.tP,E.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 G={horizontalStepTransition:(0,T.X$)("stepTransition",[(0,T.SB)("previous",(0,T.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,T.SB)("current",(0,T.oB)({transform:"none",visibility:"inherit"})),(0,T.SB)("next",(0,T.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,T.eR)("* => *",(0,T.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,T.X$)("stepTransition",[(0,T.SB)("previous",(0,T.oB)({height:"0px",visibility:"hidden"})),(0,T.SB)("next",(0,T.oB)({height:"0px",visibility:"hidden"})),(0,T.SB)("current",(0,T.oB)({height:"*",visibility:"inherit"})),(0,T.eR)("* <=> current",(0,T.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let Q=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.Rgc))},t.\u0275dir=l.lG2({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),J=(()=>{class t extends y{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)(l.Y36((0,l.Gpc)(()=>W)),l.Y36(S.rD,4),l.Y36(v,8))},t.\u0275cmp=l.Xpm({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,n){if(1&t&&l.Suo(n,j,5),2&t){let t;l.iGM(t=l.CRH())&&(e.stepLabel=t.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[l._Bn([{provide:S.rD,useExisting:t},{provide:y,useExisting:t}]),l.qOj],ngContentSelectors:Z,decls:1,vars:0,template:function(t,e){1&t&&(l.F$t(),l.YNc(0,N,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),W=(()=>{class t extends w{constructor(){super(...arguments),this.steps=new l.n_E,this.animationDone=new l.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,A.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=l.n5z(t)))(n||t)}}(),t.\u0275dir=l.lG2({type:t,selectors:[["","matStepper",""]],contentQueries:function(t,e,n){if(1&t&&(l.Suo(n,J,5),l.Suo(n,Q,5)),2&t){let t;l.iGM(t=l.CRH())&&(e._steps=t),l.iGM(t=l.CRH())&&(e._icons=t)}},viewQuery:function(t,e){if(1&t&&l.Gf(H,5),2&t){let t;l.iGM(t=l.CRH())&&(e._stepHeader=t)}},inputs:{disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},features:[l._Bn([{provide:w,useExisting:t}]),l.qOj]}),t})(),K=(()=>{class t extends W{constructor(){super(...arguments),this.labelPosition="end"}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=l.n5z(t)))(n||t)}}(),t.\u0275cmp=l.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&&l.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:[l._Bn([{provide:W,useExisting:t},{provide:w,useExisting:t}]),l.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&&(l.TgZ(0,"div",0),l.YNc(1,U,3,19,"ng-container",1),l.qZA(),l.TgZ(2,"div",2),l.YNc(3,z,2,5,"div",3),l.qZA()),2&t&&(l.xp6(1),l.Q6J("ngForOf",e.steps),l.xp6(2),l.Q6J("ngForOf",e.steps))},directives:[c.sg,H,c.O5,c.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:[G.horizontalStepTransition]},changeDetection:0}),t})(),X=(()=>{class t extends x{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=l.n5z(t)))(n||t)}}(),t.\u0275dir=l.lG2({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&l.Ikx("type",e.type)},inputs:{type:"type"},features:[l.qOj]}),t})(),tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({providers:[Y,S.rD],imports:[[S.BQ,c.ez,i.eL,k.ot,C,E.Ps,S.si],S.BQ]}),t})()},65939:function(t,e,n){"use strict";n.d(e,{uX:function(){return G},SP:function(){return st},Nh:function(){return pt}});var i=n(19238),r=n(18553),s=n(87636),o=n(38583),a=n(37716),c=n(72458),l=n(46237),u=n(79765),h=n(75319),d=n(66682),p=n(22759),f=n(25917),g=n(46797),m=n(17238),_=n(39761),b=n(87519),v=n(46782),y=n(39490),w=n(80521),x=n(36461),C=n(70946),k=n(71386);function S(t,e){1&t&&a.Hsn(0)}const E=["*"];function A(t,e){}const T=function(t){return{animationDuration:t}},O=function(t,e){return{value:t,params:e}},D=["tabBodyWrapper"],I=["tabHeader"];function P(t,e){}function F(t,e){if(1&t&&a.YNc(0,P,0,0,"ng-template",9),2&t){const t=a.oxw().$implicit;a.Q6J("cdkPortalOutlet",t.templateLabel)}}function R(t,e){if(1&t&&a._uU(0),2&t){const t=a.oxw().$implicit;a.Oqu(t.textLabel)}}function M(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,r=a.oxw(),s=a.MAs(1);return r._handleClick(n,s,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,R,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 L(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 N=["tabListContainer"],Z=["tabList"],B=["nextPaginator"],U=["previousPaginator"],z=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(z),a.Y36(l.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 q=new a.OlP("MatTabContent"),Y=new a.OlP("MatTabLabel");class ${}const V=(0,c.Id)($),H=new a.OlP("MAT_TAB_GROUP");let G=(()=>{class t extends V{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 s.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(H))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){if(1&t&&(a.Suo(n,Y,5),a.Suo(n,q,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,S,1,0,"ng-template"))},encapsulation:2}),t})();const Q={translateTab:(0,m.X$)("translateTab",[(0,m.SB)("center, void, left-origin-center, right-origin-center",(0,m.oB)({transform:"none"})),(0,m.SB)("left",(0,m.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,m.SB)("right",(0,m.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,m.eR)("* => left, * => right, left => center, right => center",(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,m.eR)("void => left-origin-center",[(0,m.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,m.eR)("void => right-origin-center",[(0,m.oB)({transform:"translate3d(100%, 0, 0)"}),(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let J=(()=>{class t extends s.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)(()=>K)),a.Y36(o.K0))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabBodyHost",""]],features:[a.qOj]}),t})(),W=(()=>{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})(),K=(()=>{class t extends W{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(s.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,A,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:[J],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 X=new a.OlP("MAT_TABS_CONFIG");let tt=0;class et{}class nt{constructor(t){this._elementRef=t}}const it=(0,c.pj)((0,c.Kr)(nt),"primary");let rt=(()=>{class t extends it{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=tt++,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 et;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(X,8),a.Y36(l.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})(),st=(()=>{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(X,8),a.Y36(l.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){if(1&t&&a.Suo(n,G,5),2&t){let t;a.iGM(t=a.CRH())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(a.Gf(D,5),a.Gf(I,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:H,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,M,4,14,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.YNc(5,L,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[dt,o.sg,ct,c.wG,i.kH,o.O5,s.Pl,K]},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 ot{}const at=(0,c.Id)(ot);let ct=(()=>{class t extends at{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 lt=(0,w.i$)({passive:!0});let ut=(()=>{class t{constructor(t,e,n,i,r,s,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=n,this._dir=i,this._ngZone=r,this._platform=s,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,r.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",lt).pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,p.R)(this._nextPaginator.nativeElement,"touchstart",lt).pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:(0,f.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:r}=e.elementRef.nativeElement;let s,o;"ltr"==this._getLayoutDirection()?(s=i,o=s+r):(o=this._tabList.nativeElement.offsetWidth-i,s=o-r);const a=this.scrollDistance,c=this.scrollDistance+n;s<a?this.scrollDistance-=a-s+60:o>c&&(this.scrollDistance+=o-c+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,g.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(l.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),ht=(()=>{class t extends ut{constructor(t,e,n,i,r,s,o){super(t,e,n,i,r,s,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(l.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{disableRipple:"disableRipple"},features:[a.qOj]}),t})(),dt=(()=>{class t extends ht{constructor(t,e,n,i,r,s,o){super(t,e,n,i,r,s,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(l.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(N,7),a.Gf(Z,7),a.Gf(B,5),a.Gf(U,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:[c.wG,r.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})(),pt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[o.ez,c.BQ,s.eL,c.si,r.Q8,i.rt],c.BQ]}),t})()},11436:function(t,e,n){"use strict";n.d(e,{gM:function(){return k},AV:function(){return E}});var i=n(90625),r=n(19238),s=n(38583),o=n(37716),a=n(72458),c=n(71386),l=n(39490),u=n(36461),h=n(65072),d=n(80521),p=n(87636),f=n(79765),g=n(46782),m=n(15257),_=n(17238),b=n(70946);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,r,s,o,a,c,l,h,d){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=r,this._platform=s,this._ariaDescriber=o,this._focusMonitor=a,this._dir=l,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 f.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=c,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),r.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,l.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,g.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(S,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,g.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,g.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,g.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:r}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:r}}}_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:r}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,m.q)(1),(0,g.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(c.mF),o.Y36(o.s_b),o.Y36(o.R0b),o.Y36(d.t4),o.Y36(r.$s),o.Y36(r.tE),o.Y36(w),o.Y36(b.Is,8),o.Y36(C,8),o.Y36(s.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})(),S=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new f.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:[s.mk],pipes:[s.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:[[r.rt,s.ez,i.U8,a.BQ],a.BQ,c.ZD]}),t})()},46237:function(t,e,n){"use strict";n.d(e,{Qb:function(){return _e},PW:function(){return we}});var i=n(37716),r=n(39075),s=n(17238);function o(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function c(t){switch(t.length){case 0:return new s.ZN;case 1:return t[0];default:return new s.ZE(t)}}function l(t,e,n,i,r={},o={}){const a=[],c=[];let l=-1,u=null;if(i.forEach(t=>{const n=t.offset,i=n==l,h=i&&u||{};Object.keys(t).forEach(n=>{let i=n,c=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),c){case s.k1:c=r[n];break;case s.l3:c=o[n];break;default:c=e.normalizeStyleValue(n,i,c,a)}h[i]=c}),i||c.push(h),u=h,l=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return c}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,r=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),s=t._data;return null!=s&&(r._data=s),r}function d(t,e,n,i,r="",s=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function p(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function f(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let g=(t,e)=>!1,m=(t,e)=>!1,_=(t,e,n)=>[];const b=a();(b||"undefined"!=typeof Element)&&(g=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),m=(()=>{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]):m}})(),_=(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=m,C=g,k=_;function S(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,r,o=[],a){return new s.ZN(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class A{}function T(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:O(parseFloat(e[1]),e[2])}function O(t,e){switch(e){case"s":return 1e3*t;default:return t}}function D(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,r=0,s="";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=O(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=O(parseFloat(o),n[4]));const a=n[5];a&&(s=a)}else i=t;if(!n){let n=!1,s=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(s,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:r,easing:s}}(t,e,n)}function I(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function P(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else I(t,n);return n}function F(t,e,n){return n?e+":"+n+";":""}function R(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=F(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=F(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function M(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const r=q(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]}),a()&&R(t))}function L(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=q(e);t.style[n]=""}),a()&&R(t))}function N(t){return Array.isArray(t)?1==t.length?t[0]:(0,s.vP)(t):t}A.NOOP=new E;const Z=new RegExp("{{\\s*(.+?)\\s*}}","g");function B(t){let e=[];if("string"==typeof t){let n;for(;n=Z.exec(t);)e.push(n[1]);Z.lastIndex=0}return e}function U(t,e,n){const i=t.toString(),r=i.replace(Z,(t,i)=>{let r=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),r=""),r.toString()});return r==i?t:r}function z(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const j=/-+([a-z0-9])/g;function q(t){return t.replace(j,(...t)=>t[1].toUpperCase())}function Y(t,e){return 0===t||0===e}function $(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(t=>{s.hasOwnProperty(t)||o.push(t),s[t]=n[t]}),o.length)for(var r=1;r<e.length;r++){let n=e[r];o.forEach(function(e){n[e]=H(t,e)})}}return e}function V(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 H(t,e){return window.getComputedStyle(t)[e]}function G(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 r=i[1],s=i[2],o=i[3];e.push(W(r,o)),"<"!=s[0]||"*"==r&&"*"==o||e.push(W(o,r))}(t,n,e)):n.push(t),n}const Q=new Set(["true","1"]),J=new Set(["false","0"]);function W(t,e){const n=Q.has(t)||J.has(t),i=Q.has(e)||J.has(e);return(r,s)=>{let o="*"==t||t==r,a="*"==e||e==s;return!o&&n&&"boolean"==typeof r&&(o=r?Q.has(t):J.has(t)),!a&&i&&"boolean"==typeof s&&(a=s?Q.has(e):J.has(e)),o&&a}}const K=new RegExp("s*:selfs*,?","g");function X(t,e,n){return new tt(t).build(e,n)}class tt{constructor(t){this._driver=t}build(t,e){const n=new et(e);return this._resetContextStyleTimingState(n),V(this,N(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 r=[],s=[];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,r.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const r=this.visitTransition(t,e);n+=r.queryCount,i+=r.depCount,s.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:s,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 r=new Set,s=i||{};if(n.styles.forEach(t=>{if(nt(t)){const e=t;Object.keys(e).forEach(t=>{B(e[t]).forEach(t=>{s.hasOwnProperty(t)||r.add(t)})})}}),r.size){const n=z(r.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=V(this,N(t.animation),e);return{type:1,matchers:G(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:it(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>V(this,t,e)),options:it(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const r=t.steps.map(t=>{e.currentTime=n;const r=V(this,t,e);return i=Math.max(i,e.currentTime),r});return e.currentTime=i,{type:3,steps:r,options:it(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 rt(D(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=rt(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||D(i,e),rt(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let r=t.styles?t.styles:(0,s.oB)({});if(5==r.type)i=this.visitKeyframes(r,e);else{let r=t.styles,o=!1;if(!r){o=!0;const t={};n.easing&&(t.easing=n.easing),r=(0,s.oB)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(r,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==s.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,r=null;return n.forEach(t=>{if(nt(t)){const e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,r=e.currentTime;n&&r>0&&(r-=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 s=e.collectedStyles[e.currentQuerySelector],o=s[n];let a=!0;o&&(r!=i&&r>=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 "${r}ms" and "${i}ms"`),a=!1),r=o.startTime),a&&(s[n]={startTime:r,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},r=B(t);r.length&&r.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 r=[];let s=!1,o=!1,a=0;const c=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let c=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(nt(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(nt(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),l=0;return null!=c&&(i++,l=n.offset=c),o=o||l<0||l>1,s=s||l<a,a=l,r.push(l),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&e.errors.push("Please ensure that all keyframe offsets are in order");const l=t.steps.length;let u=0;i>0&&i<l?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(u=1/(l-1));const h=l-1,d=e.currentTime,p=e.currentAnimateTimings,f=p.duration;return c.forEach((t,i)=>{const s=u>0?i==h?1:u*i:r[i],o=s*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=s,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:V(this,N(t.animation),e),options:it(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:it(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:it(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[r,s]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(K,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,p(e.collectedStyles,e.currentQuerySelector,{});const o=V(this,N(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:o,originalSelector:t.selector,options:it(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"}:D(t.timings,e.errors,!0);return{type:12,animation:V(this,N(t.animation),e),timings:n,options:null}}}class et{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 nt(t){return!Array.isArray(t)&&"object"==typeof t}function it(t){var e;return t?(t=I(t)).params&&(t.params=(e=t.params)?I(e):null):t={},t}function rt(t,e,n){return{duration:t,delay:e,easing:n}}function st(t,e,n,i,r,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class ot{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 at=new RegExp(":enter","g"),ct=new RegExp(":leave","g");function lt(t,e,n,i,r,s={},o={},a,c,l=[]){return(new ut).buildKeyframes(t,e,n,i,r,s,o,a,c,l)}class ut{buildKeyframes(t,e,n,i,r,s,o,a,c,l=[]){c=c||new ot;const u=new dt(t,e,c,i,r,l,[]);u.options=a,u.currentTimeline.setStyles([s],null,u.errors,a),V(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()):[st(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),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);r!=s&&e.transformIntoNewTimeline(s)}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 r=null!=n.duration?T(n.duration):null,s=null!=n.delay?T(n.delay):null;return 0!==r&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,r,s);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),V(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const r=t.options;if(r&&(r.params||r.delay)&&(i=e.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ht);const t=T(r.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>V(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 r=t.options&&t.options.delay?T(t.options.delay):0;t.steps.forEach(s=>{const o=e.createSubContext(t.options);r&&o.delayNextStep(r),V(this,s,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 D(e.params?U(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 r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,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 r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,t.styles.forEach(t=>{s.forwardTime((t.offset||0)*r),s.setStyles(t.styles,t.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(i+r),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},r=i.delay?T(i.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ht);let s=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);r&&o.delayNextStep(r),n===e.element&&(a=o.currentTimeline),V(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),o=s*(e.currentQueryTotal-1);let a=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const l=c.currentTime;V(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}const ht={};class dt{constructor(t,e,n,i,r,s,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ht,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new pt(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=T(n.duration)),null!=n.delay&&(i.delay=T(n.delay));const r=n.params;if(r){let t=i.params;t||(t=this.options.params={}),Object.keys(r).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=U(r[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,r=new dt(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=ht,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:""},r=new ft(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,r,s){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(at,"."+this._enterClassName)).replace(ct,"."+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 r||0!=o.length||s.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class pt{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 pt(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]||s.l3,this._currentKeyframe[t]=s.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const r=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]=s.l3})):P(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=U(o[t],r,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:s.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((r,o)=>{const a=P(r,!0);Object.keys(a).forEach(n=>{const i=a[n];i==s.k1?t.add(n):i==s.l3&&e.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const r=t.size?z(t.values()):[],o=e.size?z(e.values()):[];if(n){const t=i[0],e=I(t);t.offset=0,e.offset=1,i=[t,e]}return st(this.element,i,r,o,this.duration,this.startTime,this.easing,!1)}}class ft extends pt{constructor(t,e,n,i,r,s,o=!1){super(t,e,s.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.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 r=[],s=n+e,o=e/s,a=P(t[0],!1);a.offset=0,r.push(a);const c=P(t[0],!1);c.offset=gt(o),r.push(c);const l=t.length-1;for(let i=1;i<=l;i++){let o=P(t[i],!1);o.offset=gt((e+o.offset*n)/s),r.push(o)}n=s,e=0,i="",t=r}return st(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function gt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class mt{}class _t extends mt{normalizePropertyName(t,e){return q(t)}normalizeStyleValue(t,e,n,i){let r="";const s=n.toString().trim();if(bt[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="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 s+r}}const bt=(()=>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 vt(t,e,n,i,r,s,o,a,c,l,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:h,errors:d}}const yt={};class wt{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,r){return t.some(t=>t(e,n,i,r))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],r=this._stateStyles[t],s=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):s}build(t,e,n,i,r,s,o,a,c,l){const u=[],h=this.ast.options&&this.ast.options.params||yt,d=this.buildStyles(n,o&&o.params||yt,u),f=a&&a.params||yt,g=this.buildStyles(i,f,u),m=new Set,_=new Map,b=new Map,v="void"===i,y={params:Object.assign(Object.assign({},h),f)},w=l?[]:lt(t,e,this.ast.animation,r,s,d,g,y,c,u);let x=0;if(w.forEach(t=>{x=Math.max(t.duration+t.delay,x)}),u.length)return vt(e,this._triggerName,n,i,v,d,g,[],[],_,b,x,u);w.forEach(t=>{const n=t.element,i=p(_,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const r=p(b,n,{});t.postStyleProps.forEach(t=>r[t]=!0),n!==e&&m.add(n)});const C=z(m.values());return vt(e,this._triggerName,n,i,v,d,g,w,C,_,b,x)}}class xt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=I(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 r=t;Object.keys(r).forEach(t=>{let s=r[t];s.length>1&&(s=U(s,i,e)),n[t]=s})}}),n}}class Ct{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new xt(t.style,t.options&&t.options.params||{})}),kt(this.states,"true","1"),kt(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new wt(t,e,this.states))}),this.fallbackTransition=new wt(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(r=>r.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function kt(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const St=new ot;class Et{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=X(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,r=l(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],r=this._animations[t];let o;const a=new Map;if(r?(o=lt(this._driver,e,r,"ng-enter","ng-leave",{},{},n,St,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,s.l3)})});const l=c(o.map(t=>{const e=a.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}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 r=d(e,"","","");return u(this._getPlayer(t),n,r,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 r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const At=[],Tt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ot={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Dt{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=I(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 It=new Dt("void");class Pt{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,Bt(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"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var r;const s=p(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};s.push(o);const a=p(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Bt(t,"ng-trigger"),Bt(t,"ng-trigger-"+e),a[e]=It),()=>{this._engine.afterFlush(()=>{const t=s.indexOf(o);t>=0&&s.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 r=this._getTrigger(e),s=new Rt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Bt(t,"ng-trigger"),Bt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const c=new Dt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[e]=c,a||(a=It),"void"!==c.value&&a.value===c.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}(a.params,c.params)){const e=[],n=r.matchStyles(a.value,a.params,e),i=r.matchStyles(c.value,c.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{L(t,n),M(t,i)})}return}const l=p(this._engine.playersByElement,t,[]);l.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=r.matchTransition(a.value,c.value,t,c.params),h=!1;if(!u){if(!i)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:c,player:s,isFallbackTransition:h}),h||(Bt(t,"ng-animate-queued"),s.onStart(()=>{Ut(t,"ng-animate-queued")})),s.onDone(()=>{let e=this.players.indexOf(s);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(s);t>=0&&n.splice(t,1)}}),this.players.push(s),l.push(s),s}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,".ng-trigger",!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 r=this._engine.statesByElement.get(t);if(r){const s=[];if(Object.keys(r).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",i);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&c(s).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 r=e.name;if(i.has(r))return;i.add(r);const s=this._triggers[r].fallbackTransition,o=n[r]||It,a=new Dt("void"),c=new Rt(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:s,fromState:o,toState:a,player:c,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!==Tt||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Bt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,s=this._elementListeners.get(r);s&&s.forEach(e=>{if(e.name==n.triggerName){const i=d(r,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 Ft{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 Pt(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 r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+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 r=n[t[i]].namespaceId;if(r){const t=this._fetchNamespace(r);t&&e.add(t)}}}return e}trigger(t,e,n,i){if(Mt(e)){const r=this._fetchNamespace(t);if(r)return r.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!Mt(e))return;const r=e.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.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),Bt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ut(t,"ng-animate-disabled"))}removeNode(t,e,n,i){if(Mt(e)){const r=t?this._fetchNamespace(t):null;if(r?r.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,r){return Mt(e)?this._fetchNamespace(t).listen(e,n,i,r):()=>{}}_buildInstruction(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!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 c(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Tt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!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++)Bt(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?c(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 ot,i=[],r=new Map,o=[],a=new Map,l=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,f=Array.from(this.statesByElement.keys()),g=Zt(f,this.collectedEnterElements),m=new Map;let _=0;g.forEach((t,e)=>{const n="ng-enter"+_++;m.set(e,n),t.forEach(t=>Bt(t,n))});const b=[],v=new Set,y=new Set;for(let s=0;s<this.collectedLeaveElements.length;s++){const t=this.collectedLeaveElements[s],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=Zt(f,Array.from(v));x.forEach((t,e)=>{const n="ng-leave"+_++;w.set(e,n),t.forEach(t=>Bt(t,n))}),t.push(()=>{g.forEach((t,e)=>{const n=m.get(e);t.forEach(t=>Ut(t,n))}),x.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Ut(t,n))}),b.forEach(t=>{this.processLeaveNode(t)})});const C=[],k=[];for(let s=this._namespaceList.length-1;s>=0;s--)this._namespaceList[s].drainQueuedTransitions(e).forEach(t=>{const e=t.player,r=t.element;if(C.push(e),this.collectedEnterElements.length){const t=r.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const s=!d||!this.driver.containsElement(d,r),c=w.get(r),h=m.get(r),f=this._buildInstruction(t,n,h,c,s);if(f.errors&&f.errors.length)k.push(f);else{if(s)return e.onStart(()=>L(r,f.fromStyles)),e.onDestroy(()=>M(r,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>L(r,f.fromStyles)),e.onDestroy(()=>M(r,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(r,f.timelines),o.push({instruction:f,player:e,element:r}),f.queriedElements.forEach(t=>p(a,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=l.get(e);t||l.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=u.get(e);i||u.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(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 S=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,S))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{p(S,e,[]).push(t),t.destroy()})});const A=b.filter(t=>qt(t,l,u)),T=new Map;Nt(T,this.driver,y,u,s.l3).forEach(t=>{qt(t,l,u)&&A.push(t)});const O=new Map;g.forEach((t,e)=>{Nt(O,this.driver,new Set(t),l,s.k1)}),A.forEach(t=>{const e=T.get(t),n=O.get(t);T.set(t,Object.assign(Object.assign({},e),n))});const D=[],I=[],P={};o.forEach(t=>{const{element:e,player:s,instruction:o}=t;if(n.has(e)){if(h.has(e))return s.onDestroy(()=>M(e,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void i.push(s);let t=P;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(s.namespaceId,o,S,r,O,T);if(s.setRealPlayer(n),t===P)D.push(s);else{const e=this.playersByElement.get(t);e&&e.length&&(s.parentPlayer=c(e)),i.push(s)}}else L(e,o.fromStyles),s.onDestroy(()=>M(e,o.toStyles)),I.push(s),h.has(e)&&i.push(s)}),I.forEach(t=>{const e=r.get(t.element);if(e&&e.length){const n=c(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let s=0;s<b.length;s++){const t=b[s],e=t.__ng_removed;if(Ut(t,"ng-leave"),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,".ng-animating",!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?zt(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,r){let s=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(s=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||"void"==r;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&s.push(e)})}}return(n||i)&&(s=s.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),s}_beforeAnimationBuild(t,e,n){const i=e.element,r=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,c=p(n,t,[]);this._getPreviousPlayers(t,a,r,s,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}L(i,e.fromStyles)}_buildAnimation(t,e,n,i,r,o){const a=e.triggerName,u=e.element,h=[],d=new Set,f=new Set,g=e.timelines.map(e=>{const c=e.element;d.add(c);const p=c.__ng_removed;if(p&&p.removedBeforeQueried)return new s.ZN(e.duration,e.delay);const g=c!==u,m=function(t){const e=[];return jt(t,e),e}((n.get(c)||At).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===c),_=r.get(c),b=o.get(c),v=l(0,this._normalizer,0,e.keyframes,_,b),y=this._buildPlayer(e,v,m);if(e.subTimeline&&i&&f.add(c),g){const e=new Rt(t,a,c);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=>Bt(t,"ng-animating"));const m=c(g);return m.onDestroy(()=>{d.forEach(t=>Ut(t,"ng-animating")),M(u,e.toStyles)}),f.forEach(t=>{p(i,t,[]).push(m)}),m}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new s.ZN(t.duration,t.delay)}}class Rt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new s.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 Mt(t){return t&&1===t.nodeType}function Lt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Nt(t,e,n,i,r){const s=[];n.forEach(t=>s.push(Lt(t)));const o=[];i.forEach((n,i)=>{const s={};n.forEach(t=>{const n=s[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=Ot,o.push(i))}),t.set(i,s)});let a=0;return n.forEach(t=>Lt(t,s[a++])),o}function Zt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),r=new Map;function s(t){if(!t)return 1;let e=r.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:s(o),r.set(t,e),e}return e.forEach(t=>{const e=s(t);1!==e&&n.get(e).push(t)}),n}function Bt(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Ut(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function zt(t,e,n){c(n).onDone(()=>t.processLeaveNode(e))}function jt(t,e){for(let n=0;n<t.length;n++){const i=t[n];i instanceof s.ZE?jt(i.players,e):e.push(i)}}function qt(t,e,n){const i=n.get(t);if(!i)return!1;let r=e.get(t);return r?i.forEach(t=>r.add(t)):e.set(t,i),n.delete(t),!0}class Yt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Ft(t,e,n),this._timelineEngine=new Et(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,r){const s=t+"-"+i;let o=this._triggerCache[s];if(!o){const t=[],e=X(this._driver,r,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 Ct(t,e)}(i,e),this._triggerCache[s]=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,r]=f(n);this._timelineEngine.command(t,e,r,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,r){if("@"==n.charAt(0)){const[t,i]=f(n);return this._timelineEngine.listen(t,e,i,r)}return this._transitionEngine.listen(t,e,n,i,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function $t(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Ht(e[0]),e.length>1&&(i=Ht(e[e.length-1]))):e&&(n=Ht(e)),n||i?new Vt(t,n,i):null}class Vt{constructor(t,e,n){this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;let i=Vt.initialStylesByElement.get(t);i||Vt.initialStylesByElement.set(t,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&M(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(M(this._element,this._initialStyles),this._endStyles&&(M(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Vt.initialStylesByElement.delete(this._element),this._startStyles&&(L(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(L(this._element,this._endStyles),this._endStyles=null),M(this._element,this._initialStyles),this._state=3)}}function Ht(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const r=n[i];Gt(r)&&(e=e||{},e[r]=t[r])}return e}function Gt(t){return"display"===t||"position"===t}Vt.initialStylesByElement=new WeakMap;class Qt{constructor(t,e,n,i,r,s,o){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=r,this._fillMode=s,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=ee(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}`),te(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Xt(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Jt(this._element,this._name,"paused")}resume(){Jt(this._element,this._name,"running")}setPosition(t){const e=Wt(this._element,this._name);this._position=t*this._duration,te(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(),Xt(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=ee(t,"").split(","),i=Kt(n,e);i>=0&&(n.splice(i,1),te(t,"",n.join(",")))}(this._element,this._name))}}function Jt(t,e,n){te(t,"PlayState",n,Wt(t,e))}function Wt(t,e){const n=ee(t,"");return n.indexOf(",")>0?Kt(n.split(","),e):Kt([n],e)}function Kt(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Xt(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function te(t,e,n,i){const r="animation"+e;if(null!=i){const e=t.style[r];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[r]=n}function ee(t,e){return t.style["animation"+e]||""}class ne{constructor(t,e,n,i,r,s,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=i+r,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 Qt(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]:H(this.element,n))})}this.currentSnapshot=t}}class ie extends s.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=S(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class re{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=>S(t));let i=`@keyframes ${e} {\n`,r="";n.forEach(t=>{r=" ";const e=parseFloat(t.offset);i+=`${r}${100*e}% {\n`,r+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${e}: ${n};\n`)}}),i+=`${r}}\n`}),i+="}\n";const s=document.createElement("style");return s.textContent=i,s}animate(t,e,n,i,r,s=[],o){const a=s.filter(t=>t instanceof ne),c={};Y(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=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=$(t,e,c));if(0==n)return new ie(t,l);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=$t(t,e),p=new ne(t,e,u,n,i,r,l,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class se{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]:H(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class oe{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ae().toString()),this._cssKeyframesDriver=new re}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,r,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,s);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const c={},l=s.filter(t=>t instanceof se);Y(n,i)&&l.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=$t(t,e=$(t,e=e.map(t=>P(t,!1)),c));return new se(t,e,a,u)}}function ae(){return o()&&Element.prototype.animate||{}}var ce=n(38583);let le=(()=>{class t extends s._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,s.vP)(t):t;return de(this._renderer,null,e,"register",[n]),new ue(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(ce.K0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class ue extends s.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new he(this._id,t,e||{},this._renderer)}}class he{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 de(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 de(t,e,n,i,r){return t.setProperty(e,`@@${n}:${i}`,r)}let pe=(()=>{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 fe("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);const s=e=>{Array.isArray(e)?e.forEach(s):this.engine.registerTrigger(i,r,t,e.name,e)};return e.data.animation.forEach(s),new ge(this,r,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(Yt),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class fe{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)&&"@.disabled"==e?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 ge extends fe{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let r=e.substr(1),s="";return"@"!=r.charAt(0)&&([r,s]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,i,r,s,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let me=(()=>{class t extends Yt{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(ce.K0),i.LFG(A),i.LFG(mt))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const _e=new i.OlP("AnimationModuleType"),be=[{provide:s._j,useClass:le},{provide:mt,useFactory:function(){return new _t}},{provide:Yt,useClass:me},{provide:i.FYo,useFactory:function(t,e,n){return new pe(t,e,n)},deps:[r.se,Yt,i.R0b]}],ve=[{provide:A,useFactory:function(){return"function"==typeof ae()?new oe:new re}},{provide:_e,useValue:"BrowserAnimations"},...be],ye=[{provide:A,useClass:E},{provide:_e,useValue:"NoopAnimations"},...be];let we=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?ye:ve}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:ve,imports:[r.b2]}),t})()},39075:function(t,e,n){"use strict";n.d(e,{b2:function(){return Z},H7:function(){return F},Dx:function(){return U},q6:function(){return L},se:function(){return C}});var i=n(38583),r=n(37716);class s extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class o extends s{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=(c=c||document.querySelector("base"),c?c.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(){c=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,i.Mx)(document.cookie,t)}}let a,c=null;const l=new r.OlP("TRANSITION_ID"),u=[{provide:r.ip1,useFactory:function(t,e,n){return()=>{n.get(r.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:[l,i.K0,r.zs3],multi:!0}];class h{static init(){(0,r.VLi)(new h)}addToWindow(t){r.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},r.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),r.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),r.dqk.frameworkStabilizers||(r.dqk.frameworkStabilizers=[]),r.dqk.frameworkStabilizers.push(t=>{const e=r.dqk.getAllAngularTestabilities();let n=e.length,i=!1;const s=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r: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=r.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new r.OlP("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i<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)(r.LFG(p),r.LFG(r.R0b))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();class g{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const r=(0,i.q)().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,n)}}let m=(()=>{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=r.Yz7({token:t,factory:t.\u0275fac}),t})(),_=(()=>{class t extends m{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)(r.LFG(i.K0))},t.\u0275prov=r.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 r=e[i];Array.isArray(r)?w(t,r,n):(r=r.replace(y,t),n.push(r))}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 r.ifc.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new S(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case r.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)(r.LFG(f),r.LFG(_),r.LFG(r.AFp))},t.\u0275prov=r.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 r=v[i];r?t.setAttributeNS(r,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&(r.JOm.DashCase|r.JOm.Important)?t.style.setProperty(e,n,i&r.JOm.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&r.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 S extends k{constructor(t,e,n,i){super(t),this.component=n;const r=w(i+"-"+n.id,n.styles,[]);e.addStyles(r),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 r=w(i.id,i.styles,[]);for(let s=0;s<r.length;s++){const t=document.createElement("style");t.textContent=r[s],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 A=(()=>{class t extends g{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)(r.LFG(i.K0))},t.\u0275prov=r.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"},D={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},I={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let P=(()=>{class t extends g{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const s=t.parseEventName(n),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.q)().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=t._normalizeKey(n.pop());let s="";if(T.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),s+=t+".")}),s+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=s,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&&D.hasOwnProperty(e)&&(e=D[e]))}return O[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),T.forEach(i=>{i!=n&&(0,I[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return r=>{t.getEventFullKey(r)===e&&i.runGuarded(()=>n(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.K0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,r.Yz7)({factory:function(){return(0,r.LFG)(M)},token:t,providedIn:"root"}),t})();function R(t){return new M(t.get(i.K0))}let M=(()=>{class t extends F{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case r.q3G.NONE:return e;case r.q3G.HTML:return(0,r.qzn)(e,"HTML")?(0,r.z3N)(e):(0,r.EiD)(this._doc,String(e)).toString();case r.q3G.STYLE:return(0,r.qzn)(e,"Style")?(0,r.z3N)(e):e;case r.q3G.SCRIPT:if((0,r.qzn)(e,"Script"))return(0,r.z3N)(e);throw new Error("unsafe value used in a script context");case r.q3G.URL:return(0,r.yhl)(e),(0,r.qzn)(e,"URL")?(0,r.z3N)(e):(0,r.mCW)(String(e));case r.q3G.RESOURCE_URL:if((0,r.qzn)(e,"ResourceURL"))return(0,r.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,r.JVY)(t)}bypassSecurityTrustStyle(t){return(0,r.L6k)(t)}bypassSecurityTrustScript(t){return(0,r.eBb)(t)}bypassSecurityTrustUrl(t){return(0,r.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,r.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.K0))},t.\u0275prov=(0,r.Yz7)({factory:function(){return R((0,r.LFG)(r.gxx))},token:t,providedIn:"root"}),t})();const L=(0,r.eFA)(r._c5,"browser",[{provide:r.Lbi,useValue:i.bD},{provide:r.g9A,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:i.K0,useFactory:function(){return(0,r.RDi)(document),document},deps:[]}]),N=[[],{provide:r.zSh,useValue:"root"},{provide:r.qLn,useFactory:function(){return new r.qLn},deps:[]},{provide:p,useClass:A,multi:!0,deps:[i.K0,r.R0b,r.Lbi]},{provide:p,useClass:P,multi:!0,deps:[i.K0]},[],{provide:C,useClass:C,deps:[f,_,r.AFp]},{provide:r.FYo,useExisting:C},{provide:m,useExisting:_},{provide:_,useClass:_,deps:[i.K0]},{provide:r.dDg,useClass:r.dDg,deps:[r.R0b]},{provide:f,useClass:f,deps:[p,r.R0b]},{provide:i.JF,useClass:d,deps:[]},[]];let Z=(()=>{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:r.AFp,useValue:e.appId},{provide:l,useExisting:r.AFp},u]}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(t,12))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:N,imports:[i.ez,r.hGG]}),t})();function B(){return new U((0,r.LFG)(i.K0))}let U=(()=>{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)(r.LFG(i.K0))},t.\u0275prov=(0,r.Yz7)({factory:B,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},63423:function(t,e,n){"use strict";n.d(e,{gz:function(){return Vt},gk:function(){return q},m2:function(){return j},Q3:function(){return Y},OD:function(){return z},Av:function(){return Q},F0:function(){return gn},rH:function(){return mn},Od:function(){return vn},yS:function(){return _n},Bz:function(){return Dn},lC:function(){return yn},R9:function(){return $},Hx:function(){return Ct}});var i=n(38583),r=n(37716),s=n(94402),o=n(25917),a=n(26215),c=n(90739),l=n(67574),u=n(13410),h=n(58071),d=n(41439),p=n(59193),f=n(52441),g=n(79765),m=n(77393);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 m.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(45435),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 m.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 r=0;r<n;r++){const r=e++%n;t.next(i[r])}}t.complete()}}var S=n(44635),E=n(95242),A=n(54487),T=n(88002),O=n(43190),D=n(15257),I=n(39761),P=n(5304),F=n(94612),R=n(28049),M=n(19773),L=n(93342),N=n(51307),Z=n(68939),B=n(63282);class U{constructor(t,e){this.id=t,this.url=e}}class z extends U{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class j extends U{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class q extends U{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Y extends U{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class $ extends U{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 V extends U{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 H extends U{constructor(t,e,n,i,r){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class G extends U{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 Q extends U{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 J{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class W{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class K{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class X{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tt{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class et{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nt{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}')`}}class it{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 rt(t){return new it(t)}function st(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function ot(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 r={};for(let s=0;s<i.length;s++){const e=i[s],n=t[s];if(e.startsWith(":"))r[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function at(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 r;for(let s=0;s<n.length;s++)if(r=n[s],!ct(t[r],e[r]))return!1;return!0}function ct(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 lt(t){return Array.prototype.concat.apply([],t)}function ut(t){return t.length>0?t[t.length-1]:null}function ht(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function dt(t){return(0,r.CqO)(t)?t:(0,r.QGY)(t)?(0,s.D)(Promise.resolve(t)):(0,o.of)(t)}const pt={exact:function t(e,n,i){if(!xt(e.segments,n.segments))return!1;if(!bt(e.segments,n.segments,i))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r],i))return!1}return!0},subset:mt},ft={exact:function(t,e){return at(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>ct(t[n],e[n]))},ignored:()=>!0};function gt(t,e,n){return pt[n.paths](t.root,e.root,n.matrixParams)&&ft[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function mt(t,e,n){return _t(t,e,e.segments,n)}function _t(t,e,n,i){if(t.segments.length>n.length){const r=t.segments.slice(0,n.length);return!!xt(r,n)&&!e.hasChildren()&&!!bt(r,n,i)}if(t.segments.length===n.length){if(!xt(t.segments,n))return!1;if(!bt(t.segments,n,i))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!mt(t.children[n],e.children[n],i))return!1}return!0}{const r=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!xt(t.segments,r)&&!!bt(t.segments,r,i)&&!!t.children.primary&&_t(t.children.primary,e,s,i)}}function bt(t,e,n){return e.every((e,i)=>ft[n](t[i].parameters,e.parameters))}class vt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=rt(this.queryParams)),this._queryParamMap}toString(){return St.serialize(this)}}class yt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ht(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Et(this)}}class wt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=rt(this.parameters)),this._parameterMap}toString(){return Ft(this)}}function xt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Ct{}class kt{parse(t){const e=new Zt(t);return new vt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${At(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Ot(e)}=${Ot(t)}`).join("&"):`${Ot(e)}=${Ot(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const St=new kt;function Et(t){return t.segments.map(t=>Ft(t)).join("/")}function At(t,e){if(!t.hasChildren())return Et(t);if(e){const e=t.children.primary?At(t.children.primary,!1):"",n=[];return ht(t.children,(t,e)=>{"primary"!==e&&n.push(`${e}:${At(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return ht(t.children,(t,i)=>{"primary"===i&&(n=n.concat(e(t,i)))}),ht(t.children,(t,i)=>{"primary"!==i&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>"primary"===n?[At(t.children.primary,!1)]:[`${n}:${At(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Et(t)}/${e[0]}`:`${Et(t)}/(${e.join("//")})`}}function Tt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ot(t){return Tt(t).replace(/%3B/gi,";")}function Dt(t){return Tt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function It(t){return decodeURIComponent(t)}function Pt(t){return It(t.replace(/\+/g,"%20"))}function Ft(t){return`${Dt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Dt(t)}=${Dt(e[t])}`).join("")}`;var e}const Rt=/^[^\/()?;=#]+/;function Mt(t){const e=t.match(Rt);return e?e[0]:""}const Lt=/^[^=?&#]+/,Nt=/^[^?&#]+/;class Zt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new yt([],{}):new yt([],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 yt(t,e)),n}parseSegment(){const t=Mt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new wt(It(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Mt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Mt(this.remaining);t&&(n=t,this.capture(n))}t[It(e)]=It(n)}parseQueryParam(t){const e=function(t){const e=t.match(Lt);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(Nt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Pt(e),r=Pt(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(r)}else t[i]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Mt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");const s=this.parseChildren();e[r]=1===Object.keys(s).length?s.primary:new yt([],s),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 Bt{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=Ut(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Ut(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=zt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return zt(t,this._root).map(t=>t.value)}}function Ut(t,e){if(t===e.value)return e;for(const n of e.children){const e=Ut(t,n);if(e)return e}return null}function zt(t,e){if(t===e.value)return[e];for(const n of e.children){const i=zt(t,n);if(i.length)return i.unshift(e),i}return[]}class jt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function qt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Yt extends Bt{constructor(t,e){super(t),this.snapshot=e,Jt(this,t)}toString(){return this.snapshot.toString()}}function $t(t,e){const n=function(t,e){const n=new Gt([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Qt("",new jt(n,[]))}(t,e),i=new a.X([new wt("",{})]),r=new a.X({}),s=new a.X({}),o=new a.X({}),c=new a.X(""),l=new Vt(i,r,o,c,s,"primary",e,n.root);return l.snapshot=n.root,new Yt(new jt(l,[]),n)}class Vt{constructor(t,e,n,i,r,s,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,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,T.U)(t=>rt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,T.U)(t=>rt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ht(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 Gt{constructor(t,e,n,i,r,s,o,a,c,l,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=l,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=rt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=rt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Qt extends Bt{constructor(t,e){super(e),this.url=t,Jt(this,e)}toString(){return Wt(this._root)}}function Jt(t,e){e.value._routerState=t,e.children.forEach(e=>Jt(t,e))}function Wt(t){const e=t.children.length>0?` { ${t.children.map(Wt).join(", ")} } `:"";return`${t.value}${e}`}function Kt(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,at(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),at(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(!at(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),at(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Xt(t,e){var n,i;return at(t.params,e.params)&&xt(n=t.url,i=e.url)&&n.every((t,e)=>at(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Xt(t.parent,e.parent))}function te(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const r=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return te(t,e,i);return te(t,e)})}(t,e,n);return new jt(i,r)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return ee(e,t),t}}const n=new Vt(new a.X((i=e.value).url),new a.X(i.params),new a.X(i.queryParams),new a.X(i.fragment),new a.X(i.data),i.outlet,i.component,i),r=e.children.map(e=>te(t,e));return new jt(n,r)}var i}function ee(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)ee(t.children[n],e.children[n])}function ne(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ie(t){return"object"==typeof t&&null!=t&&t.outlets}function re(t,e,n,i,r){let s={};return i&&ht(i,(t,e)=>{s[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new vt(n.root===t?e:se(n.root,t,e),s,r)}function se(t,e,n){const i={};return ht(t.children,(t,r)=>{i[r]=t===e?n:se(t,e,n)}),new yt(t.segments,i)}class oe{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&ne(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(ie);if(i&&i!==ut(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ae{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function ce(t,e,n){if(t||(t=new yt([],{})),0===t.segments.length&&t.hasChildren())return le(t,e,n);const i=function(t,e,n){let i=0,r=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=n.length)return s;const e=t.segments[r],o=n[i];if(ie(o))break;const a=`${o}`,c=i<n.length-1?n[i+1]:null;if(r>0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!pe(a,c,e))return s;i+=2}else{if(!pe(a,{},e))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const e=new yt(t.segments.slice(0,i.pathIndex),{});return e.children.primary=new yt(t.segments.slice(i.pathIndex),t.children),le(e,0,r)}return i.match&&0===r.length?new yt(t.segments,{}):i.match&&!t.hasChildren()?ue(t,e,n):i.match?le(t,0,r):ue(t,e,n)}function le(t,e,n){if(0===n.length)return new yt(t.segments,{});{const i=function(t){return ie(t[0])?t[0].outlets:{primary:t}}(n),r={};return ht(i,(n,i)=>{"string"==typeof n&&(n=[n]),null!==n&&(r[i]=ce(t.children[i],e,n))}),ht(t.children,(t,e)=>{void 0===i[e]&&(r[e]=t)}),new yt(t.segments,r)}}function ue(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r<n.length;){const s=n[r];if(ie(s)){const t=he(s.outlets);return new yt(i,t)}if(0===r&&ne(n[0])){i.push(new wt(t.segments[e].path,de(n[0]))),r++;continue}const o=ie(s)?s.outlets.primary:`${s}`,a=r<n.length-1?n[r+1]:null;o&&a&&ne(a)?(i.push(new wt(o,de(a))),r+=2):(i.push(new wt(o,{})),r++)}return new yt(i,{})}function he(t){const e={};return ht(t,(t,n)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=ue(new yt([],{}),0,t))}),e}function de(t){const e={};return ht(t,(t,n)=>e[n]=`${t}`),e}function pe(t,e,n){return t==n.path&&at(e,n.parameters)}class fe{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),Kt(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=qt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),ht(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else r&&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,r=qt(t);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],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=qt(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new et(t.value.snapshot))}),t.children.length&&this.forwardEvent(new X(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(Kt(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,r.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),ge(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),r=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=r,e.outlet&&e.outlet.activateWith(i,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function ge(t){Kt(t.value),t.children.forEach(ge)}class me{constructor(t,e){this.routes=t,this.module=e}}function _e(t){return"function"==typeof t}function be(t){return t instanceof vt}const ve=Symbol("INITIAL_VALUE");function ye(){return(0,O.w)(t=>(0,c.aj)(t.map(t=>t.pipe((0,D.q)(1),(0,I.O)(ve)))).pipe(_((t,e)=>{let n=!1;return e.reduce((t,i,r)=>{if(t!==ve)return t;if(i===ve&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||be(i))return i}return t},t)},ve),(0,y.h)(t=>t!==ve),(0,T.U)(t=>be(t)?t:!0===t),(0,D.q)(1)))}let we=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&r._UZ(0,"router-outlet")},directives:function(){return[yn]},encapsulation:2}),t})();function xe(t,e=""){for(let n=0;n<t.length;n++){const i=t[n];Ce(i,ke(e,i))}}function Ce(t,e){t.children&&xe(t.children,e)}function ke(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Se(t){const e=t.children&&t.children.map(Se),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=we),n}function Ee(t){return t.outlet||"primary"}function Ae(t,e){const n=t.filter(t=>Ee(t)===e);return n.push(...t.filter(t=>Ee(t)!==e)),n}const Te={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Oe(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Te):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(e.matcher||ot)(n,t,e);if(!r)return Object.assign({},Te);const s={};ht(r.posParams,(t,e)=>{s[e]=t.path});const o=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function De(t,e,n,i,r="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>Ie(t,e,n)&&"primary"!==Ee(n))}(t,n,i)){const r=new yt(e,function(t,e,n,i){const r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const s of n)if(""===s.path&&"primary"!==Ee(s)){const n=new yt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[Ee(s)]=n}return r}(t,e,i,new yt(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Ie(t,e,n))}(t,n,i)){const s=new yt(t.segments,function(t,e,n,i,r,s){const o={};for(const a of i)if(Ie(t,n,a)&&!r[Ee(a)]){const n=new yt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[Ee(a)]=n}return Object.assign(Object.assign({},r),o)}(t,e,n,i,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const s=new yt(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function Ie(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function Pe(t,e,n,i){return!!(Ee(t)===i||"primary"!==i&&Ie(e,n,t))&&("**"===t.path||Oe(e,t,n).matched)}function Fe(t,e,n){return 0===e.length&&!t.children[n]}class Re{constructor(t){this.segmentGroup=t||null}}class Me{constructor(t){this.urlTree=t}}function Le(t){return new l.y(e=>e.error(new Re(t)))}function Ne(t){return new l.y(e=>e.error(new Me(t)))}function Ze(t){return new l.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Be{constructor(t,e,n,i,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(r.h0i)}apply(){const t=De(this.urlTree.root,[],[],this.config).segmentGroup,e=new yt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,"primary").pipe((0,T.U)(t=>this.createUrlTree(Ue(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,P.K)(t=>{if(t instanceof Me)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Re)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe((0,T.U)(e=>this.createUrlTree(Ue(e),t.queryParams,t.fragment))).pipe((0,P.K)(t=>{if(t instanceof Re)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 yt([],{primary:t}):t;return new vt(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe((0,T.U)(t=>new yt([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const r of Object.keys(n.children))"primary"===r?i.unshift(r):i.push(r);return(0,s.D)(i).pipe((0,F.b)(i=>{const r=n.children[i],s=Ae(e,i);return this.expandSegmentGroup(t,s,r,i).pipe((0,T.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)):A.y,x(1),n?(0,E.d)(e):(0,S.T)(()=>new u.K))}())}expandSegment(t,e,n,i,r,a){return(0,s.D)(n).pipe((0,F.b)(s=>this.expandSegmentAgainstRoute(t,e,n,s,i,r,a).pipe((0,P.K)(t=>{if(t instanceof Re)return(0,o.of)(null);throw t}))),(0,R.P)(t=>!!t),(0,P.K)((t,n)=>{if(t instanceof u.K||"EmptyError"===t.name){if(Fe(e,i,r))return(0,o.of)(new yt([],{}));throw new Re(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,r,s,o){return Pe(i,e,r,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s):Le(e):Le(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ne(r):this.lineralizeSegments(n,r).pipe((0,M.zg)(n=>{const r=new yt(n,{});return this.expandSegment(t,r,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){const{matched:o,consumedSegments:a,lastChild:c,positionalParamSegments:l}=Oe(e,i,r);if(!o)return Le(e);const u=this.applyRedirectCommands(a,i.redirectTo,l);return i.redirectTo.startsWith("/")?Ne(u):this.lineralizeSegments(i,u).pipe((0,M.zg)(i=>this.expandSegment(t,e,n,i.concat(r.slice(c)),s,!1)))}matchSegmentAgainstRoute(t,e,n,i,r){if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,o.of)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe((0,T.U)(t=>(n._loadedConfig=t,new yt(i,{})))):(0,o.of)(new yt(i,{}));const{matched:s,consumedSegments:a,lastChild:c}=Oe(e,n,i);if(!s)return Le(e);const l=i.slice(c);return this.getChildConfig(t,n,i).pipe((0,M.zg)(t=>{const i=t.module,s=t.routes,{segmentGroup:c,slicedSegments:u}=De(e,a,l,s),h=new yt(c.segments,c.children);if(0===u.length&&h.hasChildren())return this.expandChildren(i,s,h).pipe((0,T.U)(t=>new yt(a,t)));if(0===s.length&&0===u.length)return(0,o.of)(new yt(a,{}));const d=Ee(n)===r;return this.expandSegment(i,h,s,u,d?"primary":r,!0).pipe((0,T.U)(t=>new yt(a.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?(0,o.of)(new me(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,o.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe((0,M.zg)(n=>n?this.configLoader.load(t.injector,e).pipe((0,T.U)(t=>(e._loadedConfig=t,t))):function(t){return new l.y(e=>e.error(st(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):(0,o.of)(new me([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return(0,o.of)(!0);const r=i.map(i=>{const r=t.get(i);let s;if(function(t){return t&&_e(t.canLoad)}(r))s=r.canLoad(e,n);else{if(!_e(r))throw new Error("Invalid CanLoad guard");s=r(e,n)}return dt(s)});return(0,o.of)(r).pipe(ye(),(0,L.b)(t=>{if(!be(t))return;const e=st(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,T.U)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,o.of)(n);if(i.numberOfChildren>1||!i.children.primary)return Ze(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 r=this.createSegmentGroup(t,e.root,n,i);return new vt(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return ht(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);n[i]=e[r]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const r=this.createSegments(t,e.segments,n,i);let s={};return ht(e.children,(e,r)=>{s[r]=this.createSegmentGroup(t,e,n,i)}),new yt(r,s)}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 Ue(t){const e={};for(const n of Object.keys(t.children)){const i=Ue(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 yt(t.segments.concat(e.segments),e.children)}return t}(new yt(t.segments,e))}class ze{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class je{constructor(t,e){this.component=t,this.route=e}}function qe(t,e,n){const i=t._root;return $e(i,e?e._root:null,n,[i.value])}function Ye(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 $e(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=qt(e);return t.children.forEach(t=>{!function(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!xt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!xt(t.url,e.url)||!at(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xt(t,e)||!at(t.queryParams,e.queryParams);case"paramsChange":default:return!Xt(t,e)}}(o,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new ze(i)):(s.data=o.data,s._resolvedData=o._resolvedData),$e(t,e,s.component?a?a.children:null:n,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new je(a.outlet.component,o))}else o&&Ve(e,a,r),r.canActivateChecks.push(new ze(i)),$e(t,null,s.component?a?a.children:null:n,i,r)}(t,s[t.value.outlet],n,i.concat([t.value]),r),delete s[t.value.outlet]}),ht(s,(t,e)=>Ve(t,n.getContext(e),r)),r}function Ve(t,e,n){const i=qt(t),r=t.value;ht(i,(t,i)=>{Ve(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new je(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}class He{}function Ge(t){return new l.y(e=>e.error(t))}class Qe{constructor(t,e,n,i,r,s){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){const t=De(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;const n=new Gt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new jt(n,e),r=new Qt(this.url,i);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,n=Ht(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 r of Object.keys(e.children)){const i=e.children[r],s=Ae(t,r),o=this.processSegmentGroup(s,i,r);if(null===o)return null;n.push(...o)}const i=We(n);return i.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const r of t){const t=this.processSegmentAgainstRoute(r,e,n,i);if(null!==t)return t}return Fe(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!Pe(t,e,n,i))return null;let r,s=[],o=[];if("**"===t.path){const i=n.length>0?ut(n).parameters:{};r=new Gt(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tn(t),Ee(t),t.component,t,Ke(e),Xe(e)+n.length,en(t))}else{const i=Oe(e,t,n);if(!i.matched)return null;s=i.consumedSegments,o=n.slice(i.lastChild),r=new Gt(s,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tn(t),Ee(t),t.component,t,Ke(e),Xe(e)+s.length,en(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:l}=De(e,s,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const t=this.processChildren(a,c);return null===t?null:[new jt(r,t)]}if(0===a.length&&0===l.length)return[new jt(r,[])];const u=Ee(t)===i,h=this.processSegment(a,c,l,u?"primary":i);return null===h?null:[new jt(r,h)]}}function Je(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function We(t){const e=[],n=new Set;for(const i of t){if(!Je(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=We(i.children);e.push(new jt(i.value,t))}return e.filter(t=>!n.has(t))}function Ke(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Xe(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 tn(t){return t.data||{}}function en(t){return t.resolve||{}}function nn(t){return(0,O.w)(e=>{const n=t(e);return n?(0,s.D)(n).pipe((0,T.U)(()=>e)):(0,o.of)(e)})}class rn 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 sn=new r.OlP("ROUTES");class on{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,T.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new me(lt(i.injector.get(sn,void 0,r.XFs.Self|r.XFs.Optional)).map(Se),i)}),(0,P.K)(t=>{throw e._loader$=void 0,t}));return e._loader$=new f.c(n,()=>new g.xQ).pipe((0,N.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,s.D)(this.loader.load(t)):dt(t()).pipe((0,M.zg)(t=>t instanceof r.YKP?(0,o.of)(t):(0,s.D)(this.compiler.compileModuleAsync(t))))}}class an{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new cn,this.attachRef=null}}class cn{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 an,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class ln{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function un(t){throw t}function hn(t,e,n){return e.parse("/")}function dn(t,e){return(0,o.of)(null)}const pn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},fn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let gn=(()=>{class t{constructor(t,e,n,i,s,o,c,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new g.xQ,this.errorHandler=un,this.malformedUriErrorHandler=hn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:dn,afterPreactivation:dn},this.urlHandlingStrategy=new ln,this.routeReuseStrategy=new rn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(r.h0i),this.console=s.get(r.c2e);const u=s.get(r.R0b);this.isNgZoneEnabled=u instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new vt(new yt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new on(o,c,t=>this.triggerEvent(new J(t)),t=>this.triggerEvent(new W(t))),this.routerState=$t(this.currentUrlTree,this.rootComponentType),this.transitions=new a.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()}setupNavigations(t){const e=this.events;return t.pipe((0,y.h)(t=>0!==t.id),(0,T.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,O.w)(t=>{let n=!1,i=!1;return(0,o.of)(t).pipe((0,L.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,O.w)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,o.of)(t).pipe((0,O.w)(t=>{const n=this.transitions.getValue();return e.next(new z(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?p.E:Promise.resolve(t)}),(i=this.ngModule.injector,r=this.configLoader,s=this.urlSerializer,a=this.config,(0,O.w)(t=>function(t,e,n,i,r){return new Be(t,e,n,i,r).apply()}(i,r,s,t.extractedUrl,a).pipe((0,T.U)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),(0,L.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,r){return(0,M.zg)(s=>function(t,e,n,i,r="emptyOnly",s="legacy"){try{const a=new Qe(t,e,n,i,r,s).recognize();return null===a?Ge(new He):(0,o.of)(a)}catch(a){return Ge(a)}}(t,e,s.urlAfterRedirects,n(s.urlAfterRedirects),i,r).pipe((0,T.U)(t=>Object.assign(Object.assign({},s),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,L.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new $(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,r,s,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:s,extras:a}=t,c=new z(n,this.serializeUrl(i),r,s);e.next(c);const l=$t(i,this.rootComponentType).snapshot;return(0,o.of)(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.E}),nn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),(0,L.b)(t=>{const e=new V(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,T.U)(t=>Object.assign(Object.assign({},t),{guards:qe(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,M.zg)(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:c}}=n;return 0===c.length&&0===a.length?(0,o.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return(0,s.D)(t).pipe((0,M.zg)(t=>function(t,e,n,i,r){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||0===s.length)return(0,o.of)(!0);const a=s.map(s=>{const o=Ye(s,e,r);let a;if(function(t){return t&&_e(t.canDeactivate)}(o))a=dt(o.canDeactivate(t,e,n,i));else{if(!_e(o))throw new Error("Invalid CanDeactivate guard");a=dt(o(t,e,n,i))}return a.pipe((0,R.P)())});return(0,o.of)(a).pipe(ye())}(t.component,t.route,n,e,i)),(0,R.P)(t=>!0!==t,!0))}(c,i,r,t).pipe((0,M.zg)(n=>n&&"boolean"==typeof n?function(t,e,n,i){return(0,s.D)(e).pipe((0,F.b)(e=>(0,h.z)(function(t,e){return null!==t&&e&&e(new K(t)),(0,o.of)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new tt(t)),(0,o.of)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],r=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 r=e.guards.map(r=>{const s=Ye(r,e.node,n);let o;if(function(t){return t&&_e(t.canActivateChild)}(s))o=dt(s.canActivateChild(i,t));else{if(!_e(s))throw new Error("Invalid CanActivateChild guard");o=dt(s(i,t))}return o.pipe((0,R.P)())});return(0,o.of)(r).pipe(ye())}));return(0,o.of)(r).pipe(ye())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return(0,o.of)(!0);const r=i.map(i=>(0,d.P)(()=>{const r=Ye(i,e,n);let s;if(function(t){return t&&_e(t.canActivate)}(r))s=dt(r.canActivate(e,t));else{if(!_e(r))throw new Error("Invalid CanActivate guard");s=dt(r(e,t))}return s.pipe((0,R.P)())}));return(0,o.of)(r).pipe(ye())}(t,e.route,n))),(0,R.P)(t=>!0!==t,!0))}(i,a,t,e):(0,o.of)(n)),(0,T.U)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,L.b)(t=>{if(be(t.guardsResult)){const e=st(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new H(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,y.h)(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),nn(t=>{if(t.guards.canActivateChecks.length)return(0,o.of)(t).pipe((0,L.b)(t=>{const e=new G(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,O.w)(t=>{let e=!1;return(0,o.of)(t).pipe((n=this.paramsInheritanceStrategy,i=this.ngModule.injector,(0,M.zg)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:r}}=t;if(!r.length)return(0,o.of)(t);let a=0;return(0,s.D)(r).pipe((0,F.b)(t=>function(t,e,n,i){return function(t,e,n,i){const r=Object.keys(t);if(0===r.length)return(0,o.of)({});const a={};return(0,s.D)(r).pipe((0,M.zg)(r=>function(t,e,n,i){const r=Ye(t,e,i);return dt(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe((0,L.b)(t=>{a[r]=t}))),x(1),(0,M.zg)(()=>Object.keys(a).length===r.length?(0,o.of)(a):p.E))}(t._resolve,t,e,i).pipe((0,T.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Ht(t,n).resolve),null)))}(t.route,e,n,i)),(0,L.b)(()=>a++),x(1),(0,M.zg)(e=>a===r.length?(0,o.of)(t):p.E))})),(0,L.b)({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var n,i}),(0,L.b)(t=>{const e=new Q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),nn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),(0,T.U)(t=>{const e=function(t,e,n){const i=te(t,e._root,n?n._root:void 0);return new Yt(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,L.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)}),(r=this.rootContexts,a=this.routeReuseStrategy,c=t=>this.triggerEvent(t),(0,T.U)(t=>(new fe(a,t.targetRouterState,t.currentRouterState,c).activate(r),t))),(0,L.b)({next(){n=!0},complete(){n=!0}}),(0,Z.x)(()=>{n||i||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null}),(0,P.K)(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=be(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new q(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),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 Y(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}var r;return p.E}));var r,a,c}))}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,r={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(r.state=t)}this.scheduleNavigation(i,t,n,r)},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){xe(t),this.config=t.map(Se),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:r,queryParamsHandling:s,preserveFragment:o}=e,a=n||this.routerState.root,c=o?this.currentUrlTree.fragment:r;let l=null;switch(s){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(t,e,n,i,r){if(0===n.length)return re(e.root,e.root,e,i,r);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new oe(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return ht(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===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new oe(n,e,i)}(n);if(s.toRoot())return re(e.root,new yt([],{}),e,i,r);const o=function(t,e,n){if(t.isAbsolute)return new ae(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new ae(t,t===e.root,0)}const i=ne(t.commands[0])?0:1;return function(t,e,n){let i=t,r=e,s=n;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new ae(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?le(o.segmentGroup,o.index,s.commands):ce(o.segmentGroup,o.index,s.commands);return re(o.segmentGroup,a,e,i,r)}(a,this.currentUrlTree,t,l,null!=c?c:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=be(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);let r=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(r=this.location.getState()),this.scheduleNavigation(i,"imperative",r,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({},pn):!1===e?Object.assign({},fn):e,be(t))return gt(this.currentUrlTree,t,n);const i=this.parseUrl(t);return gt(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 j(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,r){if(this.disposed)return Promise.resolve(!1);const s=this.getTransition(),o="imperative"!==e&&"imperative"===(null==s?void 0:s.source),a=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let c,l,u;r?(c=r.resolve,l=r.reject,u=r.promise):u=new Promise((t,e)=>{c=t,l=e});const h=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?n&&n.\u0275routerPageId?n.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:h,targetPageId:d,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.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))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const n=new q(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)(r.LFG(r.DyG),r.LFG(Ct),r.LFG(cn),r.LFG(i.Ye),r.LFG(r.zs3),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(void 0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),mn=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new g.xQ,null==n&&i.setAttribute(r.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:bn(this.skipLocationChange),replaceUrl:bn(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:bn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(gn),r.Y36(Vt),r.$8M("tabindex"),r.Y36(r.Qsj),r.Y36(r.SBq))},t.\u0275dir=r.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&r.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:[r.TTD]}),t})(),_n=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new g.xQ,this.subscription=t.events.subscribe(t=>{t instanceof j&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,r){if(0!==t||e||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:bn(this.skipLocationChange),replaceUrl:bn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!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:bn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(gn),r.Y36(Vt),r.Y36(i.S$))},t.\u0275dir=r.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(r.Ikx("href",e.href,r.LSH),r.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:[r.TTD]}),t})();function bn(t){return""===t||!!t}let vn=(()=>{class t{constructor(t,e,n,i,r,s){this.router=t,this.element=e,this.renderer=n,this.cdr=i,this.link=r,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof j&&this.update()})}ngAfterContentInit(){(0,o.of)(this.links.changes,this.linksWithHrefs.changes,(0,o.of)(null)).pipe((0,B.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,s.D)(e).pipe((0,B.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)(r.Y36(gn),r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(r.sBO),r.Y36(mn,8),r.Y36(_n,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(r.Suo(n,mn,5),r.Suo(n,_n,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.links=t),r.iGM(t=r.CRH())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[r.TTD]}),t})(),yn=(()=>{class t{constructor(t,e,n,i,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.name=i||"primary",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,r=new wn(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(cn),r.Y36(r.s_b),r.Y36(r._Vd),r.$8M("name"),r.Y36(r.sBO))},t.\u0275dir=r.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class wn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Vt?this.route:t===cn?this.childContexts:this.parent.get(t,e)}}class xn{}class Cn{preload(t,e){return(0,o.of)(null)}}let kn=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=new on(e,n,e=>t.triggerEvent(new J(e)),e=>t.triggerEvent(new W(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,y.h)(t=>t instanceof j),(0,F.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(r.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,s.D)(n).pipe((0,B.J)(),(0,T.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,o.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,M.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(gn),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(r.zs3),r.LFG(xn))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),Sn=(()=>{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 z?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof j&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof nt&&(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 nt(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)(r.LFG(gn),r.LFG(i.EM),r.LFG(void 0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const En=new r.OlP("ROUTER_CONFIGURATION"),An=new r.OlP("ROUTER_FORROOT_GUARD"),Tn=[i.Ye,{provide:Ct,useClass:kt},{provide:gn,useFactory:function(t,e,n,i,r,s,o,a={},c,l){const u=new gn(null,t,e,n,i,r,s,lt(o));return c&&(u.urlHandlingStrategy=c),l&&(u.routeReuseStrategy=l),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:[Ct,cn,i.Ye,r.zs3,r.v3s,r.Sil,sn,En,[class{},new r.FiY],[class{},new r.FiY]]},cn,{provide:Vt,useFactory:function(t){return t.routerState.root},deps:[gn]},{provide:r.v3s,useClass:r.EAV},kn,Cn,class{preload(t,e){return e().pipe((0,P.K)(()=>(0,o.of)(null)))}},{provide:En,useValue:{enableTracing:!1}}];function On(){return new r.PXZ("Router",gn)}let Dn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Tn,Rn(e),{provide:An,useFactory:Fn,deps:[[gn,new r.FiY,new r.tp0]]},{provide:En,useValue:n||{}},{provide:i.S$,useFactory:Pn,deps:[i.lw,[new r.tBr(i.mr),new r.FiY],En]},{provide:Sn,useFactory:In,deps:[gn,i.EM,En]},{provide:xn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Cn},{provide:r.PXZ,multi:!0,useFactory:On},[Mn,{provide:r.ip1,multi:!0,useFactory:Ln,deps:[Mn]},{provide:Zn,useFactory:Nn,deps:[Mn]},{provide:r.tb,multi:!0,useExisting:Zn}]]}}static forChild(e){return{ngModule:t,providers:[Rn(e)]}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(An,8),r.LFG(gn,8))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t})();function In(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Sn(t,e,n)}function Pn(t,e,n={}){return n.useHash?new i.Do(t,e):new i.b0(t,e)}function Fn(t){return"guarded"}function Rn(t){return[{provide:r.deG,multi:!0,useValue:t},{provide:sn,multi:!0,useValue:t}]}let Mn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new g.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(gn),i=this.injector.get(En);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?(0,o.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(En),n=this.injector.get(kn),i=this.injector.get(Sn),s=this.injector.get(gn),o=this.injector.get(r.z2F);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),n.setUpPreloading(),i.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.zs3))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();function Ln(t){return t.appInitializer.bind(t)}function Nn(t){return t.bootstrapListener.bind(t)}const Zn=new r.OlP("Router Initializer")},23876:function(t,e,n){"use strict";n.d(e,{Fg:function(){return d},G1:function(){return y},w8:function(){return p},uu:function(){return v}});var i=n(37716),r=n(47661);function s(t,e,n,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,n,o):r(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}function o(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var a,c=n(63423),l=n(38583),u=n(77127),h=n(28049);class d{constructor(t,e,n){this.path=t,this.queryParams=e,this.extras=n}static get type(){return"[Router] Navigate"}}class p{constructor(t,e,n="none"){this.routerState=t,this.event=e,this.trigger=n}static get type(){return"[Router] RouterNavigation"}}class f{constructor(t,e,n,i="none"){this.routerState=t,this.storeState=e,this.event=n,this.trigger=i}static get type(){return"[Router] RouterCancel"}}class g{constructor(t,e,n,i="none"){this.routerState=t,this.storeState=e,this.event=n,this.trigger=i}static get type(){return"[Router] RouterError"}}class m{constructor(t,e,n="none"){this.routerState=t,this.event=e,this.trigger=n}static get type(){return"[Router] RouterDataResolved"}}class _{}class b{serialize(t){return{root:this.serializeRoute(t.root),url:t.url}}serializeRoute(t){const e=t.children.map(t=>this.serializeRoute(t));return{url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,component:null,routeConfig:null,root:null,parent:null,firstChild:e[0],children:e,pathFromRoot:null,paramMap:t.paramMap,queryParamMap:t.queryParamMap,toString:t.toString}}}let v=a=class{constructor(t,e,n,i,r,s,o){this._store=t,this._router=e,this._serializer=n,this._ngZone=i,this._urlSerializer=r,this._locationStrategy=s,this._location=o,this._trigger="none",this._routerState=null,this._storeState=null,this._lastRoutesRecognized=null,this.setUpStoreListener(),this.setUpRouterEventsListener(),this.checkInitialNavigationOnce()}static state(t){return t&&t.state}static url(t){return t&&t.state&&t.state.url}navigate(t,e){return this._ngZone.run(()=>this._router.navigate(e.path,Object.assign({queryParams:e.queryParams},e.extras)))}angularRouterAction(t,e){t.setState(Object.assign({},t.getState(),{trigger:e.trigger,state:e.routerState,navigationId:e.event.id}))}setUpStoreListener(){this._store.select(a).subscribe(t=>{this.navigateIfNeeded(t)})}setUpRouterEventsListener(){this._router.events.subscribe(t=>{t instanceof c.OD?this.navigationStart():t instanceof c.R9?this._lastRoutesRecognized=t:t instanceof c.Av?this.dispatchRouterDataResolved(t):t instanceof c.gk?(this.dispatchRouterCancel(t),this.reset()):t instanceof c.Q3?(this.dispatchRouterError(t),this.reset()):t instanceof c.m2&&(this.navigationEnd(),this.reset())})}navigationStart(){this._routerState=this._serializer.serialize(this._router.routerState.snapshot),"none"!==this._trigger&&(this._storeState=this._store.selectSnapshot(a))}navigationEnd(){this.shouldDispatchRouterNavigation()&&this.dispatchRouterNavigation()}shouldDispatchRouterNavigation(){return!this._storeState||"store"!==this._trigger}navigateIfNeeded(t){!this._storeState||!this._storeState.state||!t||"router"===t.trigger||this._router.url===this._storeState.state.url||(this._trigger="store",this._ngZone.run(()=>{this._router.navigateByUrl(this._storeState.state.url)}))}dispatchRouterNavigation(){const t=this._serializer.serialize(this._lastRoutesRecognized.state);this.dispatchRouterAction(new p(t,new c.R9(this._lastRoutesRecognized.id,this._lastRoutesRecognized.url,this._lastRoutesRecognized.urlAfterRedirects,t),this._trigger))}dispatchRouterCancel(t){this.dispatchRouterAction(new f(this._routerState,this._storeState,t,this._trigger))}dispatchRouterError(t){this.dispatchRouterAction(new g(this._routerState,this._storeState,new c.Q3(t.id,t.url,`${t}`),this._trigger))}dispatchRouterAction(t){this._trigger="router";try{this._store.dispatch(t)}finally{this._trigger="none"}}dispatchRouterDataResolved(t){const e=this._serializer.serialize(t.state);this.dispatchRouterAction(new m(e,t,this._trigger))}reset(){this._trigger="none",this._storeState=null,this._routerState=null}checkInitialNavigationOnce(){(0,u.nt)()||this._router.events.pipe((0,h.P)(t=>t instanceof c.R9)).subscribe(({url:t})=>{const e=this._location.normalize(this._locationStrategy.path(!0)),n=this._urlSerializer.parse(e);this._urlSerializer.serialize(n)!==t&&this._router.navigateByUrl(e)})}};v.\u0275fac=function(t){return new(t||v)(i.LFG(r.yh),i.LFG(c.F0),i.LFG(_),i.LFG(i.R0b),i.LFG(c.Hx),i.LFG(l.S$),i.LFG(l.Ye))},v.\u0275prov=i.Yz7({token:v,factory:function(t){return v.\u0275fac(t)}}),v.ctorParameters=()=>[{type:r.yh},{type:c.F0},{type:_},{type:i.R0b},{type:c.Hx},{type:l.S$},{type:l.Ye}],v.ctorParameters=()=>[{type:r.yh},{type:c.F0},{type:_},{type:i.R0b},{type:c.Hx},{type:l.S$},{type:l.Ye}],s([(0,r.aU)(d),o("design:type",Function),o("design:paramtypes",[Object,d]),o("design:returntype",void 0)],v.prototype,"navigate",null),s([(0,r.aU)([p,g,f,m]),o("design:type",Function),o("design:paramtypes",[Object,Object]),o("design:returntype",void 0)],v.prototype,"angularRouterAction",null),s([(0,r.Qf)(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],v,"state",null),s([(0,r.Qf)(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",Object)],v,"url",null),v=a=s([(0,r.ZM)({name:"router",defaults:{state:void 0,navigationId:void 0,trigger:"none"}}),o("design:paramtypes",[r.yh,c.F0,_,i.R0b,c.Hx,l.S$,l.Ye])],v);let y=(()=>{class t{static forRoot(){return{ngModule:t,providers:[{provide:_,useClass:b}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[r.$l.forFeature([v])]]}),t})()},77127:function(t,e,n){"use strict";n.d(e,{bz:function(){return u},$X:function(){return h},kz:function(){return d},L5:function(){return p},RM:function(){return l},nt:function(){return c},HP:function(){return a}});var i=n(37716),r=n(82298);function s(t,e){return t===e}function o(t,e,n){if(null===e||null===n||e.length!==n.length)return!1;const i=e.length;for(let r=0;r<i;r++)if(!t(e[r],n[r]))return!1;return!0}function a(t,e=s){let n=null,i=null;function r(){return o(e,n,arguments)||(i=t.apply(null,arguments)),n=arguments,i}return r.reset=function(){n=null,i=null},r}const c=a(function(){const t=(0,i.XfM)();if(!t)return!1;const e=t.injector.get(i.QSY,null);return!!e&&e.some(t=>(t&&t.providers||[]).some(t=>t&&t.provide&&"MockNgModuleResolver"===t.provide.name||!1))});let l=(()=>{class t{constructor(){this.bootstrap$=new r.t(1)}get appBootstrapped$(){return this.bootstrap$.asObservable()}bootstrap(){this.bootstrap$.next(!0),this.bootstrap$.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const u=new i.OlP("INITIAL_STATE_TOKEN");let h=(()=>{class t{static set(t){this.value=t}static pop(){const t=this.value;return this.value={},t}}return t.value={},t})();const d=new i.OlP("Internals.StateContextFactory"),p=new i.OlP("Internals.StateFactory")},47661:function(t,e,n){"use strict";n.d(e,{aU:function(){return Ut},eX:function(){return mt},$l:function(){return Bt},Ph:function(){return jt},Qf:function(){return qt},ZM:function(){return zt},yh:function(){return Pt},Lt:function(){return at},xt:function(){return ct},nW:function(){return lt},xK:function(){return Zt}});var i=n(37716),r=n(77127),s=n(38583),o=n(67574),a=n(79765),c=n(26215),l=n(25917),u=n(35758),h=n(40205),d=n(59193),p=n(94402),f=n(82298),g=n(88002),m=n(85345);function _(t,e){return e?n=>n.pipe(_((n,i)=>(0,p.D)(t(n,i)).pipe((0,g.U)((t,r)=>e(n,t,i,r))))):e=>e.lift(new b(t))}class b{constructor(t){this.project=t}call(t,e){return e.subscribe(new v(t,this.project))}}class v extends m.Ds{constructor(t,e){super(t),this.project=e,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(t){this.hasSubscription||this.tryNext(t)}tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(e)}_innerSub(t){const e=new m.IY(this),n=this.destination;n.add(e);const i=(0,m.ft)(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}var y=n(45435),w=n(47349),x=n(15257),C=n(19773),k=n(95242),S=n(5304),E=n(46782),A=n(93342),T=n(87519);const O=t=>`${t} is not a valid state name. It needs to be a valid object property name.`,D=()=>"States must register a 'name' property",I=(t,e,n)=>`State name '${t}' from ${e} already exists in ${n}`,P=()=>"States must be decorated with @State() decorator",F=()=>"Angular is running in production mode but NGXS is still running in the development mode!\nPlease set developmentMode to false on the NgxsModule options when in production mode.\nNgxsModule.forRoot(states, { developmentMode: !environment.production })",R=()=>"RECOMMENDATION: Set developmentMode to true on the NgxsModule when Angular is running in development mode.\nNgxsModule.forRoot(states, { developmentMode: !environment.production })",M=()=>"You have forgotten to import the NGXS module!",L=()=>"@Action() decorator cannot be used with static methods",N=()=>"Selectors only work on methods",Z=()=>"Your application was bootstrapped with nooped zone and your execution strategy requires an actual NgZone!\nPlease set the value of the executionStrategy property to NoopNgxsExecutionStrategy.\nNgxsModule.forRoot(states, { executionStrategy: NoopNgxsExecutionStrategy })",B=()=>"Patching arrays is not supported.",U=()=>"Patching primitives is not supported.",z=t=>`'${t}' class should be decorated with @Injectable() right after the @State() decorator`;let j=(()=>{class t{constructor(t,e){this._ngZone=t,this._platformId=e,this.verifyZoneIsNotNooped(this._ngZone)}enter(t){return(0,s.PM)(this._platformId)?this.runInsideAngular(t):this.runOutsideAngular(t)}leave(t){return this.runInsideAngular(t)}runInsideAngular(t){return i.R0b.isInAngularZone()?t():this._ngZone.run(t)}runOutsideAngular(t){return i.R0b.isInAngularZone()?this._ngZone.runOutsideAngular(t):t()}verifyZoneIsNotNooped(t){t instanceof i.R0b||console.warn(Z())}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.R0b),i.LFG(i.Lbi))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const q=new i.OlP("ROOT_STATE_TOKEN"),Y=new i.OlP("FEATURE_STATE_TOKEN"),$=new i.OlP("NGXS_PLUGINS"),V=new i.OlP("NG_TEST_MODE"),H=new i.OlP("NG_DEV_MODE");let G=(()=>{class t{constructor(){this.defaultsState={},this.selectorOptions={injectContainerState:!0,suppressErrors:!0},this.compatibility={strictContentSecurityPolicy:!1},this.executionStrategy=j}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Q{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}}const J=new i.OlP("NGXS_EXECUTION_STRATEGY");function W(t){return t.constructor&&t.constructor.type?t.constructor.type:t.type}const K=(t,e,n)=>{t=Object.assign({},t);const i=e.split("."),r=i.length-1;return i.reduce((t,e,i)=>(t[e]=i===r?n:Array.isArray(t[e])?t[e].slice():Object.assign({},t[e]),t&&t[e]),t),t},X=(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t),tt=t=>t&&"object"==typeof t&&!Array.isArray(t),et=(t,...e)=>{if(!e.length)return t;const n=e.shift();if(tt(t)&&tt(n))for(const i in n)tt(n[i])?(t[i]||Object.assign(t,{[i]:{}}),et(t[i],n[i])):Object.assign(t,{[i]:n[i]});return et(t,...e)};function nt(t){if(!t.hasOwnProperty("NGXS_META")){const e={name:null,actions:{},defaults:{},path:null,makeRootSelector:t=>t.getStateGetter(e.name),children:[]};Object.defineProperty(t,"NGXS_META",{value:e})}return it(t)}function it(t){return t.NGXS_META}function rt(t){return t.NGXS_SELECTOR_META}function st(t,e){return e&&e.compatibility&&e.compatibility.strictContentSecurityPolicy?function(t){const e=t.slice();return t=>e.reduce((t,e)=>t&&t[e],t)}(t):function(t){const e=t;let n="store."+e[0],i=0;const r=e.length;let s=n;for(;++i<r;)s=s+" && "+(n=n+"."+e[i]);return new Function("store","return "+s+";")}(t)}function ot(t,e){const n=X(e.currentAppState,t.path),i=X(e.newAppState,t.path);return new Q(n,i,!t.isInitialised)}function at(...t){return ut(t)}function ct(...t){return ut(t,["DISPATCHED"])}function lt(...t){return ut(t,["SUCCESSFUL"])}function ut(t,e,n=ht){const i=t.reduce((t,e)=>(t[W(e)]=!0,t),{}),r=e&&function(t){return t.reduce((t,e)=>(t[e]=!0,t),{})}(e);return function(t){return t.pipe(function(t,e){return(0,y.h)(n=>{const i=W(n.action);return t[i]&&(!e||e[n.status])})}(i,r),n())}}function ht(){return(0,g.U)(t=>t.action)}function dt(t){return e=>new o.y(n=>e.subscribe({next(e){t.leave(()=>n.next(e))},error(e){t.leave(()=>n.error(e))},complete(){t.leave(()=>n.complete())}}))}let pt=(()=>{class t{constructor(t){this._executionStrategy=t}enter(t){return this._executionStrategy.enter(t)}leave(t){return this._executionStrategy.leave(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(J))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class ft extends a.xQ{constructor(){super(...arguments),this._itemQueue=[],this._busyPushingNext=!1}next(t){if(this._busyPushingNext)this._itemQueue.unshift(t);else{for(this._busyPushingNext=!0,super.next(t);this._itemQueue.length>0;){const t=this._itemQueue.pop();super.next(t)}this._busyPushingNext=!1}}}let gt=(()=>{class t extends ft{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),mt=(()=>{class t extends o.y{constructor(t,e){super(n=>{const i=t.pipe(dt(e)).subscribe({next:t=>n.next(t),error:t=>n.error(t),complete:()=>n.complete()});n.add(i)})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(gt),i.LFG(pt))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const _t=t=>(...e)=>t.shift()(...e,(...e)=>_t(t)(...e));let bt=(()=>{class t extends c.X{constructor(){super({})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),vt=(()=>{class t{constructor(t,e){this._parentManager=t,this._pluginHandlers=e,this.plugins=[],this.registerHandlers()}get rootPlugins(){return this._parentManager&&this._parentManager.plugins||this.plugins}registerHandlers(){const t=this.getPluginHandlers();this.rootPlugins.push(...t)}getPluginHandlers(){return(this._pluginHandlers||[]).map(t=>t.handle?t.handle.bind(t):t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(t,12),i.LFG($,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),yt=(()=>{class t extends a.xQ{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),wt=(()=>{class t{constructor(t,e,n,i,r,s){this._injector=t,this._actions=e,this._actionResults=n,this._pluginManager=i,this._stateStream=r,this._ngxsExecutionStrategy=s}dispatch(t){const e=this._ngxsExecutionStrategy.enter(()=>this.dispatchByEvents(t));return e.subscribe({error:t=>this._ngxsExecutionStrategy.leave(()=>{try{this._errorHandler=this._errorHandler||this._injector.get(i.qLn),this._errorHandler.handleError(t)}catch(e){}})}),e.pipe(dt(this._ngxsExecutionStrategy))}dispatchByEvents(t){return Array.isArray(t)?0===t.length?(0,l.of)(this._stateStream.getValue()):(0,u.D)(t.map(t=>this.dispatchSingle(t))):this.dispatchSingle(t)}dispatchSingle(t){if(!W(t)){const e=new Error(`This action doesn't have a type property: ${t.constructor.name}`);return(0,h._)(e)}const e=this._stateStream.getValue();return _t([...this._pluginManager.plugins,(t,n)=>{t!==e&&this._stateStream.next(t);const i=this.getActionResultStream(n);return i.subscribe(t=>this._actions.next(t)),this._actions.next({action:n,status:"DISPATCHED"}),this.createDispatchObservable(i)}])(e,t).pipe((0,w.d)())}getActionResultStream(t){return this._actionResults.pipe((0,y.h)(e=>e.action===t&&"DISPATCHED"!==e.status),(0,x.q)(1),(0,w.d)())}createDispatchObservable(t){return t.pipe(_(t=>{switch(t.status){case"SUCCESSFUL":return(0,l.of)(this._stateStream.getValue());case"ERRORED":return(0,h._)(t.error);default:return d.E}})).pipe((0,w.d)())}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.zs3),i.LFG(gt),i.LFG(yt),i.LFG(vt),i.LFG(bt),i.LFG(pt))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const xt=t=>{Object.freeze(t);const e="function"==typeof t,n=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(t).forEach(function(i){!n.call(t,i)||e&&("caller"===i||"callee"===i||"arguments"===i)||null===t[i]||"object"!=typeof t[i]&&"function"!=typeof t[i]||Object.isFrozen(t[i])||xt(t[i])}),t};let Ct=(()=>{class t{constructor(t,e){this.isDevMode=t,this.isTestMode=e}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(H),i.LFG(V))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),kt=(()=>{class t{constructor(t,e){this._host=t,this._config=e}get isIncorrectProduction(){return!this._host.isDevMode()&&this._config.developmentMode}get isIncorrectDevelopment(){return this._host.isDevMode()&&!this._config.developmentMode}verifyDevMode(){this._host.isTestMode()||(this.isIncorrectProduction?console.warn(F()):this.isIncorrectDevelopment&&console.warn(R()))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ct),i.LFG(G))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),St=(()=>{class t{constructor(t,e,n,i){this._stateStream=t,this._dispatcher=e,this._config=n,i.verifyDevMode()}getRootStateOperations(){const t={getState:()=>this._stateStream.getValue(),setState:t=>this._stateStream.next(t),dispatch:t=>this._dispatcher.dispatch(t)};return this._config.developmentMode?this.ensureStateAndActionsAreImmutable(t):t}ensureStateAndActionsAreImmutable(t){return{getState:()=>t.getState(),setState:e=>{const n=xt(e);return t.setState(n)},dispatch:e=>t.dispatch(e)}}setStateToTheCurrentWithNew(t){const e=this.getRootStateOperations(),n=e.getState();e.setState(Object.assign({},n,t.defaults))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(bt),i.LFG(wt),i.LFG(G),i.LFG(kt))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),Et=(()=>{class t{constructor(t){this._internalStateOperations=t}createStateContext(t){const e=this._internalStateOperations.getRootStateOperations();function n(e){return X(e,t.path)}function i(n,i){const r=K(n,t.path,i),s=t.instance;if(s.ngxsOnChanges){const e=ot(t,{currentAppState:n,newAppState:r});s.ngxsOnChanges(e)}return e.setState(r),r}function r(t,e){return i(t,e(n(t)))}return{getState:()=>n(e.getState()),patchState:t=>r(e.getState(),function(t){return e=>{if(Array.isArray(t))throw new Error(B());if("object"!=typeof t)throw new Error(U());const n=Object.assign({},e);for(const i in t)n[i]=t[i];return n}}(t)),setState(t){const n=e.getState();return"function"==typeof t?r(n,t):i(n,t)},dispatch:t=>e.dispatch(t)}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(St))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class At{static stateNameErrorMessage(t){return O(t)}static checkCorrectStateName(t){if(!t)throw new Error(D());if(!this.stateNameRegex.test(t))throw new Error(this.stateNameErrorMessage(t))}static checkStateNameIsUnique(t,e){const n=this.getValidStateMeta(t).name,i=e[n];if(i&&i!==t)throw new Error(I(n,t.name,i.name));return n}static getValidStateMeta(t){const e=it(t);if(!e)throw new Error(P());return e}}At.stateNameRegex=new RegExp("^[a-zA-Z0-9_]+$");let Tt=(()=>{class t{constructor(t,e,n,i,s,o,a){this._injector=t,this._config=e,this._parentFactory=n,this._actions=i,this._actionResults=s,this._stateContextFactory=o,this._initialState=a,this._actionsSubscription=null,this._states=[],this._statesByName={},this._statePaths={},this.getRuntimeSelectorContext=(0,r.HP)(()=>{const t=this;function e(e){const n=t.statePaths[e];return n?st(n.split("."),t._config):null}return this._parentFactory?this._parentFactory.getRuntimeSelectorContext():{getStateGetter(t){let n=e(t);return n||((...i)=>(n||(n=e(t)),n?n(...i):void 0))},getSelectorOptions:e=>Object.assign({},t._config.selectorOptions,e||{})}})}get states(){return this._parentFactory?this._parentFactory.states:this._states}get statesByName(){return this._parentFactory?this._parentFactory.statesByName:this._statesByName}get statePaths(){return this._parentFactory?this._parentFactory.statePaths:this._statePaths}static cloneDefaults(t){let e={};var n;return e=Array.isArray(t)?t.slice():"object"==typeof(n=t)&&null!==n||"function"==typeof n?Object.assign({},t):void 0===t?{}:t,e}static checkStatesAreValid(t){t.forEach(At.getValidStateMeta)}ngOnDestroy(){this._actionsSubscription.unsubscribe()}add(e){t.checkStatesAreValid(e);const{newStates:n}=this.addToStatesMap(e);if(!n.length)return[];const i=function(t){const e=e=>{const n=t.find(t=>t===e);if(!n)throw new Error(`Child state not found: ${e}. \r\nYou may have forgotten to add states to module`);return n.NGXS_META.name};return t.reduce((t,n)=>{const{name:i,children:r}=n.NGXS_META;return t[i]=(r||[]).map(e),t},{})}(n),r=function(t){const e=[],n={},i=(r,s=[])=>{Array.isArray(s)||(s=[]),s.push(r),n[r]=!0,t[r].forEach(t=>{if(s.indexOf(t)>=0)throw new Error(`Circular dependency '${t}' is required by '${r}': ${s.join(" -> ")}`);n[t]||i(t,s.slice(0))}),e.indexOf(r)<0&&e.push(r)};return Object.keys(t).forEach(t=>i(t)),e.reverse()}(i),s=function(t,e={}){const n=(t,e)=>{for(const i in t)if(t.hasOwnProperty(i)&&t[i].indexOf(e)>=0){const e=n(t,i);return null!==e?`${e}.${i}`:i}return null};for(const i in t)if(t.hasOwnProperty(i)){const r=n(t,i);e[i]=r?`${r}.${i}`:i}return e}(i),o=n.reduce((t,e)=>(t[e.NGXS_META.name]=e,t),{}),a=[];for(const c of r){const e=o[c],n=s[c],i=e.NGXS_META;this.addRuntimeInfoToMeta(i,n);const r={name:c,path:n,isInitialised:!1,actions:i.actions,instance:this._injector.get(e),defaults:t.cloneDefaults(i.defaults)};this.hasBeenMountedAndBootstrapped(c,n)||a.push(r),this.states.push(r)}return a}addAndReturnDefaults(t){const e=this.add(t||[]);return{defaults:e.reduce((t,e)=>K(t,e.path,e.defaults),{}),states:e}}connectActionHandlers(){null===this._actionsSubscription&&(this._actionsSubscription=this._actions.pipe((0,y.h)(t=>"DISPATCHED"===t.status),(0,C.zg)(({action:t})=>this.invokeActions(this._actions,t).pipe((0,g.U)(()=>({action:t,status:"SUCCESSFUL"})),(0,k.d)({action:t,status:"CANCELED"}),(0,S.K)(e=>(0,l.of)({action:t,status:"ERRORED",error:e}))))).subscribe(t=>this._actionResults.next(t)))}invokeActions(t,e){const n=W(e),i=[];for(const s of this.states){const a=s.actions[n];if(a)for(const n of a){const a=this._stateContextFactory.createStateContext(s);try{let r=s.instance[n.fn](a,e);r instanceof Promise&&(r=(0,p.D)(r)),r instanceof o.y?(r=r.pipe((0,k.d)({})),n.options.cancelUncompleted&&(r=r.pipe((0,E.R)(t.pipe(ct(e)))))):r=(0,l.of)({}).pipe((0,w.d)()),i.push(r)}catch(r){i.push((0,h._)(r))}}}return i.length||i.push((0,l.of)({})),(0,u.D)(i)}addToStatesMap(t){const e=[],n=this.statesByName;for(const i of t){const t=At.checkStateNameIsUnique(i,n);!n[t]&&(e.push(i),n[t]=i)}return{newStates:e}}addRuntimeInfoToMeta(t,e){this.statePaths[t.name]=e,t.path=e}hasBeenMountedAndBootstrapped(t,e){const n=void 0!==X(this._initialState,e);return this.statesByName[t]&&n}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.zs3),i.LFG(G),i.LFG(t,12),i.LFG(gt),i.LFG(yt),i.LFG(Et),i.LFG(r.bz,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),Ot=(()=>{class t{constructor(t,e,n){this.internalStateOperations=t,this.stateContextFactory=e,this.bootstrapper=n}ngxsBootstrap(t,e){this.internalStateOperations.getRootStateOperations().dispatch(t).pipe((0,y.h)(()=>!!e),(0,A.b)(()=>this.invokeInit(e.states)),(0,C.zg)(()=>this.bootstrapper.appBootstrapped$),(0,y.h)(t=>!!t)).subscribe(()=>this.invokeBootstrap(e.states))}invokeInit(t){for(const e of t){const t=e.instance;if(t.ngxsOnChanges){const n=ot(e,{currentAppState:{},newAppState:this.internalStateOperations.getRootStateOperations().getState()});t.ngxsOnChanges(n)}t.ngxsOnInit&&t.ngxsOnInit(this.getStateContext(e)),e.isInitialised=!0}}invokeBootstrap(t){for(const e of t){const t=e.instance;t.ngxsAfterBootstrap&&t.ngxsAfterBootstrap(this.getStateContext(e))}}getStateContext(t){return this.stateContextFactory.createStateContext(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(St),i.LFG(Et),i.LFG(r.RM))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const Dt=t=>t&&t.NGXS_SELECTOR_OPTIONS_META||{};function It(t){const e=rt(t)||it(t);return e&&e.makeRootSelector||(()=>t)}let Pt=(()=>{class t{constructor(t,e,n,i,r,s){this._stateStream=t,this._internalStateOperations=e,this._config=n,this._internalExecutionStrategy=i,this._stateFactory=r,this.initStateStream(s)}dispatch(t){return this._internalStateOperations.getRootStateOperations().dispatch(t)}select(t){const e=this.getStoreBoundSelectorFn(t);return this._stateStream.pipe((0,g.U)(e),(0,S.K)(t=>{const{suppressErrors:e}=this._config.selectorOptions;return t instanceof TypeError&&e?(0,l.of)(void 0):(0,h._)(t)}),(0,T.x)(),dt(this._internalExecutionStrategy))}selectOnce(t){return this.select(t).pipe((0,x.q)(1))}selectSnapshot(t){return this.getStoreBoundSelectorFn(t)(this._stateStream.getValue())}subscribe(t){return this._stateStream.pipe(dt(this._internalExecutionStrategy)).subscribe(t)}snapshot(){return this._internalStateOperations.getRootStateOperations().getState()}reset(t){return this._internalStateOperations.getRootStateOperations().setState(t)}getStoreBoundSelectorFn(t){return It(t)(this._stateFactory.getRuntimeSelectorContext())}initStateStream(t){const e=this._stateStream.value;if(!e||0===Object.keys(e).length){const e=Object.keys(this._config.defaultsState).length>0?Object.assign({},this._config.defaultsState,t):t;this._stateStream.next(e)}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(bt),i.LFG(St),i.LFG(G),i.LFG(pt),i.LFG(Tt),i.LFG(r.bz,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),Ft=(()=>{class t{constructor(e,n){t.store=e,t.config=n}ngOnDestroy(){t.store=null,t.config=null}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Pt),i.LFG(G))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t.store=null,t.config=null,t})();class Rt{static get type(){return"@@INIT"}}class Mt{constructor(t){this.addedStates=t}static get type(){return"@@UPDATE_STATE"}}const Lt=new f.t(1);let Nt=(()=>{class t{constructor(t,e,n,r,s=[],o){!function(){try{const t=window.ng,e=!(t.probe&&t.coreTokens)&&(0,i.X6Q)();Lt.next(e)}catch(t){Lt.next(!1)}finally{Lt.complete()}}();const a=t.addAndReturnDefaults(s);e.setStateToTheCurrentWithNew(a),t.connectActionHandlers(),o.ngxsBootstrap(new Rt,a)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Tt),i.LFG(St),i.LFG(Pt),i.LFG(Ft),i.LFG(q,8),i.LFG(Ot))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})(),Zt=(()=>{class t{constructor(e,n,i,r=[],s){const o=t.flattenStates(r),a=i.addAndReturnDefaults(o);a.states.length&&(n.setStateToTheCurrentWithNew(a),s.ngxsBootstrap(new Mt(a.defaults),a))}static flattenStates(t=[]){return t.reduce((t,e)=>t.concat(e),[])}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Pt),i.LFG(St),i.LFG(Tt),i.LFG(Y,8),i.LFG(Ot))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();class Bt{static forRoot(t=[],e={}){return{ngModule:Nt,providers:[Tt,Et,mt,gt,r.RM,kt,Ct,Ot,wt,yt,St,pt,Pt,bt,Ft,vt,...t,...Bt.ngxsTokenProviders(t,e)]}}static forFeature(t=[]){return{ngModule:Zt,providers:[Tt,vt,...t,{provide:Y,multi:!0,useValue:t}]}}static ngxsTokenProviders(t,e){return[{provide:V,useValue:r.nt},{provide:H,useValue:i.X6Q},{provide:J,useClass:e.executionStrategy||j},{provide:q,useValue:t},{provide:Bt.ROOT_OPTIONS,useValue:e},{provide:G,useFactory:Bt.ngxsConfigFactory,deps:[Bt.ROOT_OPTIONS]},{provide:i.tb,useFactory:Bt.appBootstrapListenerFactory,multi:!0,deps:[r.RM]},{provide:r.bz,useFactory:Bt.getInitialState},{provide:r.kz,useExisting:Et},{provide:r.L5,useExisting:Tt}]}static ngxsConfigFactory(t){return et(new G,t)}static appBootstrapListenerFactory(t){return()=>t.bootstrap()}static getInitialState(){return r.$X.pop()}}function Ut(t,e){return(n,i)=>{if(n.hasOwnProperty("prototype"))throw new Error(L());const r=nt(n.constructor);Array.isArray(t)||(t=[t]);for(const s of t){const t=s.type;r.actions[t]||(r.actions[t]=[]),r.actions[t].push({fn:i,options:e||{},type:t})}}}function zt(t){return e=>{!function(t){Lt.subscribe(e=>{e&&(t.\u0275prov||console.warn(z(t.name)))})}(e);const n=e,i=nt(n),r=Object.getPrototypeOf(n),s=function(e){return Object.assign({},e.NGXS_OPTIONS_META||{},t)}(r);!function(t){const{meta:e,inheritedStateClass:n,optionsWithInheritance:i}=t,{children:r,defaults:s,name:o}=i,a="string"==typeof o?o:o&&o.getName()||null;At.checkCorrectStateName(a),n.hasOwnProperty("NGXS_META")&&(e.actions=Object.assign({},e.actions,(n.NGXS_META||{}).actions)),e.children=r,e.defaults=s,e.name=a}({meta:i,inheritedStateClass:r,optionsWithInheritance:s}),n.NGXS_OPTIONS_META=s}}function jt(t,...e){return function(n,i){const r=i.toString(),s=`__${r}__selector`,o=function(t,e,n=[]){return"string"==typeof(e=e||function(t){const e=t.length-1;return 36===t.charCodeAt(e)?t.slice(0,e):t}(t))?st(n.length?[e,...n]:e.split("."),Ft.config):e}(r,t,e);Object.defineProperties(n,{[s]:{writable:!0,enumerable:!1,configurable:!0},[r]:{enumerable:!0,configurable:!0,get(){return this[s]||(this[s]=function(t){if(!Ft.store)throw new Error(M());return Ft.store.select(t)}(o))}}})}}function qt(t){return(e,n,i)=>{if(!i||null===i.value)throw new Error(N());const s=i.value,o=function(t,e,n){const i=n&&n.containerClass,s=(0,r.HP)(function(...t){const n=e.apply(i,t);return n instanceof Function?r.HP.apply(null,[n]):n});Object.setPrototypeOf(s,e);const o=function(t,e){const n=((i=t).hasOwnProperty("NGXS_SELECTOR_META")||Object.defineProperty(i,"NGXS_SELECTOR_META",{value:{makeRootSelector:null,originalFn:null,containerClass:null,selectorName:null,getSelectorOptions:()=>({})}}),rt(i));var i;n.originalFn=t;let r=()=>({});e&&(n.containerClass=e.containerClass,n.selectorName=e.selectorName,r=e.getSelectorOptions||r);const s=Object.assign({},n);return n.getSelectorOptions=()=>function(t,e){return Object.assign({},Dt(t.containerClass)||{},Dt(t.originalFn)||{},t.getSelectorOptions()||{},e)}(s,r()),n}(e,n);return o.makeRootSelector=e=>{const{argumentSelectorFunctions:n,selectorOptions:i}=function(t,e,n=[]){const i=e.getSelectorOptions(),r=t.getSelectorOptions(i);return{selectorOptions:r,argumentSelectorFunctions:function(t=[],e,n){const i=[];return n&&(0===t.length||e.injectContainerState)&&it(n)&&i.push(n),t&&i.push(...t),i}(n,r,e.containerClass).map(e=>It(e)(t))}}(e,o,t);return function(t){const e=n.map(e=>e(t));try{return s(...e)}catch(r){if(r instanceof TypeError&&i.suppressErrors)return;throw r}}},s}(t,s,{containerClass:e,selectorName:n.toString(),getSelectorOptions:()=>({})}),a={configurable:!0,get:()=>o};return a.originalFn=s,a}}Bt.\u0275fac=function(t){return new(t||Bt)},Bt.\u0275mod=i.oAB({type:Bt}),Bt.\u0275inj=i.cJS({}),Bt.ROOT_OPTIONS=new i.OlP("ROOT_OPTIONS")},96967:function(t,e,n){"use strict";var i=n(35311),r={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,e){var n,s,o,a,c,l,u=!1;e||(e={}),n=e.debug||!1;try{if(o=i(),a=document.createRange(),c=document.getSelection(),(l=document.createElement("span")).textContent=t,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.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(r[e.format]||r.default,t)):(i.clipboardData.clearData(),i.clipboardData.setData(e.format,t))),e.onCopy&&(i.preventDefault(),e.onCopy(i.clipboardData))}),document.body.appendChild(l),a.selectNodeContents(l),c.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"),s=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(s,t)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(a):c.removeAllRanges()),l&&document.body.removeChild(l),o()}return u}},89225:function(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 r(t,e,n){return t.concat(e).map(function(t){return i(t,n)})}function s(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,c){(c=c||{}).arrayMerge=c.arrayMerge||r,c.isMergeableObject=c.isMergeableObject||e,c.cloneUnlessOtherwiseSpecified=i;var l=Array.isArray(n);return l===Array.isArray(t)?l?c.arrayMerge(t,n,c):function(t,e,n){var r={};return n.isMergeableObject(t)&&s(t).forEach(function(e){r[e]=i(t[e],n)}),s(e).forEach(function(s){(function(t,e){return o(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,s)||(r[s]=o(t,s)&&n.isMergeableObject(e[s])?function(t,e){if(!e.customMerge)return a;var n=e.customMerge(t);return"function"==typeof n?n:a}(s,n)(t[s],e[s],n):i(e[s],n))}),r}(t,n,c):i(n,c)}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},80970:function(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 r(t){return Object(t)===t}function s(t){return 0===Object.keys(t).length}var o=["__proto__","prototype","constructor"],a=function(t){return-1===o.indexOf(t)};function c(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 l=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])?[]:{}),!r(n[a])){if(!this.override){if(!r(i)||!s(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&&r(n[a])&&!s(n[a])){if(!r(i)||!s(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(r){var s=void 0===n?null:n[r],o=c(r,i.separator).join(i.separator);-1!==o.indexOf(i.separator)?(i._fill(o.split(i.separator),t,t[r],s),delete t[r]):t[r]=e(t[r],s)}),t},u.prototype.str=function(t,n,i,r){var s=c(t,this.separator).join(this.separator);return-1!==t.indexOf(this.separator)?this._fill(s.split(this.separator),i,n,r):i[t]=e(n,r),i},u.prototype.pick=function(t,e,i,r){var s,o,a,l,u;for(o=c(t,this.separator),s=0;s<o.length;s++){if(l=n(o[s],e),!e||"object"!=typeof e||!(l in e))return;if(s===o.length-1)return i?(a=e[l],r&&Array.isArray(e)?e.splice(l,1):delete e[l],Array.isArray(e)&&(u=o.slice(0,-1).join("."),-1===this.cleanup.indexOf(u)&&this.cleanup.push(u)),a):e[l];e=e[l]}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,r;if(this.cleanup.length){for(n=0;n<this.cleanup.length;n++)e=(e=(r=(i=this.cleanup[n].split(".")).splice(0,-1).join("."))?this.pick(r,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,r,s){return"function"==typeof r||Array.isArray(r)?this.set(n,e(this.pick(t,i,!0),r),i,s):(s=r,this.set(n,this.pick(t,i,!0),i,s)),i},u.prototype.transfer=function(t,n,i,r,s,o){return"function"==typeof s||Array.isArray(s)?this.set(n,e(this.pick(t,i,!0),s),r,o):(o=s,this.set(n,this.pick(t,i,!0),r,o)),r},u.prototype.copy=function(t,n,i,r,s,o){return"function"==typeof s||Array.isArray(s)?this.set(n,e(JSON.parse(JSON.stringify(this.pick(t,i,!1))),s),r,o):(o=s,this.set(n,this.pick(t,i,!1),r,o)),r},u.prototype.set=function(t,e,n,r){var s,o,a,u;if(void 0===e)return n;for(a=c(t,this.separator),s=0;s<a.length;s++){if(u=a[s],s===a.length-1)if(r&&i(e)&&i(n[u]))for(o in e)l.call(e,o)&&(n[u][o]=e[o]);else if(r&&Array.isArray(n[u])&&Array.isArray(e))for(var h=0;h<e.length;h++)n[a[s]].push(e[h]);else n[u]=e;else l.call(n,u)&&(i(n[u])||Array.isArray(n[u]))||(n[u]=/^\d+$/.test(a[s+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 c=o&&this.useBrackets?"["+a+"]":a;if(r(t[a])&&(i(t[a])&&!s(t[a])||Array.isArray(t[a])&&!this.keepArray&&0!==t[a].length)){if(o&&this.useBrackets){var l=n[n.length-1]||"";return this.dot(t[a],e,n.slice(0,-1).concat(l+c))}return this.dot(t[a],e,n.concat(c))}o&&this.useBrackets?e[n.join(this.separator).concat("["+a+"]")]=t[a]:e[n.concat(c).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},11524:function(t,e,n){var i;!function(r,s,o,a){"use strict";var c,l=["","webkit","Moz","MS","ms","o"],u=s.createElement("div"),h=Math.round,d=Math.abs,p=Date.now;function f(t,e,n){return setTimeout(w(t,n),e)}function g(t,e,n){return!!Array.isArray(t)&&(m(t,n[e],n),!0)}function m(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)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",s=r.console&&(r.console.warn||r.console.log);return s&&s.call(r.console,i,n),t.apply(this,arguments)}}c="function"!=typeof Object.assign?function(t){if(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(null!=i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var b=_(function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&void 0===t[i[r]])&&(t[i[r]]=e[i[r]]),r++;return t},"extend","Use `assign`."),v=_(function(t,e){return b(t,e,!0)},"merge","Use `assign`.");function y(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&c(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]||void 0,e):t}function C(t,e){return void 0===t?e:t}function k(t,e,n){m(T(e),function(e){t.addEventListener(e,n,!1)})}function S(t,e,n){m(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 A(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 D(t){return Array.prototype.slice.call(t,0)}function I(t,e,n){for(var i=[],r=[],s=0;s<t.length;){var o=e?t[s][e]:t[s];O(r,o)<0&&i.push(t[s]),r[s]=o,s++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function P(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),s=0;s<l.length;){if((i=(n=l[s])?n+r:e)in t)return i;s++}}var F=1;function R(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}var M="ontouchstart"in r,L=void 0!==P(r,"PointerEvent"),N=M&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Z=["x","y"],B=["clientX","clientY"];function U(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,r=n.changedPointers.length,s=1&e&&i-r==0,o=12&e&&i-r==0;n.isFirst=!!s,n.isFinal=!!o,s&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=j(e)),r>1&&!n.firstMultiple?n.firstMultiple=j(e):1===r&&(n.firstMultiple=!1);var s=n.firstInput,o=n.firstMultiple,a=o?o.center:s.center,c=e.center=q(i);e.timeStamp=p(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=H(a,c),e.distance=V(a,c),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};1!==e.eventType&&4!==s.eventType||(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=$(e.deltaX,e.deltaY);var l,u,h=Y(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=d(h.x)>d(h.y)?h.x:h.y,e.scale=o?(l=o.pointers,V((u=i)[0],u[1],B)/V(l[0],l[1],B)):1,e.rotation=o?function(t,e){return H(e[1],e[0],B)+H(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,r,s,o=t.lastInterval||e,a=e.timeStamp-o.timeStamp;if(8!=e.eventType&&(a>25||void 0===o.velocity)){var c=e.deltaX-o.deltaX,l=e.deltaY-o.deltaY,u=Y(a,c,l);i=u.x,r=u.y,n=d(u.x)>d(u.y)?u.x:u.y,s=$(c,l),t.lastInterval=e}else n=o.velocity,i=o.velocityX,r=o.velocityY,s=o.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=s}(n,e);var f=t.element;E(e.srcEvent.target,f)&&(f=e.srcEvent.target),e.target=f}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function j(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:q(e),deltaX:t.deltaX,deltaY:t.deltaY}}function q(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,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:h(n/e),y:h(i/e)}}function Y(t,e,n){return{x:e/t||0,y:n/t||0}}function $(t,e){return t===e?1:d(t)>=d(e)?t<0?2:4:e<0?8:16}function V(t,e,n){n||(n=Z);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function H(t,e,n){return n||(n=Z),180*Math.atan2(e[n[1]]-t[n[1]],e[n[0]]-t[n[0]])/Math.PI}U.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(R(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(R(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4};function Q(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,U.apply(this,arguments)}y(Q,U,{handler:function(t){var e=G[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:"mouse",srcEvent:t}))}});var J={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},W={2:"touch",3:"pen",4:"mouse",5:"kinect"},K="pointerdown",X="pointermove pointerup pointercancel";function tt(){this.evEl=K,this.evWin=X,U.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(K="MSPointerDown",X="MSPointerMove MSPointerUp MSPointerCancel"),y(tt,U,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=J[i],s=W[t.pointerType]||t.pointerType,o="touch"==s,a=O(e,t.pointerId,"pointerId");1&r&&(0===t.button||o)?a<0&&(e.push(t),a=e.length-1):12&r&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),n&&e.splice(a,1))}});var et={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function nt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,U.apply(this,arguments)}function it(t,e){var n=D(t.touches),i=D(t.changedTouches);return 12&e&&(n=I(n.concat(i),"identifier",!0)),[n,i]}y(nt,U,{handler:function(t){var e=et[t.type];if(1===e&&(this.started=!0),this.started){var n=it.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:"touch",srcEvent:t})}}});var rt={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function st(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},U.apply(this,arguments)}function ot(t,e){var n=D(t.touches),i=this.targetIds;if(3&e&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,s,o=D(t.changedTouches),a=[],c=this.target;if(s=n.filter(function(t){return E(t.target,c)}),1===e)for(r=0;r<s.length;)i[s[r].identifier]=!0,r++;for(r=0;r<o.length;)i[o[r].identifier]&&a.push(o[r]),12&e&&delete i[o[r].identifier],r++;return a.length?[I(s.concat(a),"identifier",!0),a]:void 0}function at(){U.apply(this,arguments);var t=w(this.handler,this);this.touch=new st(this.manager,t),this.mouse=new Q(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function ct(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,lt.call(this,e)):12&t&&lt.call(this,e)}function lt(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 ut(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],s=Math.abs(e-r.x),o=Math.abs(n-r.y);if(s<=25&&o<=25)return!0}return!1}y(st,U,{handler:function(t){var e=rt[t.type],n=ot.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}),y(at,U,{handler:function(t,e,n){var i="mouse"==n.pointerType;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)ct.call(this,e,n);else if(i&&ut.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ht=P(u.style,"touchAction"),dt=void 0!==ht,pt=function(){if(!dt)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){t[n]=!e||r.CSS.supports("touch-action",n)}),t}();function ft(t,e){this.manager=t,this.set(e)}function gt(t){this.options=c({},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 mt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function _t(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function bt(t,e){var n=e.manager;return n?n.get(t):t}function vt(){gt.apply(this,arguments)}function yt(){vt.apply(this,arguments),this.pX=null,this.pY=null}function wt(){vt.apply(this,arguments)}function xt(){gt.apply(this,arguments),this._timer=null,this._input=null}function Ct(){vt.apply(this,arguments)}function kt(){vt.apply(this,arguments)}function St(){gt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Et(t,e){return(e=e||{}).recognizers=C(e.recognizers,Et.defaults.preset),new At(t,e)}function At(t,e){this.options=c({},Et.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||(L?tt:N?st:M?at:Q))(this,z),this.touchAction=new ft(this,this.options.touchAction),Tt(this,!0),m(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 Tt(t,e){var n,i=t.element;i.style&&(m(t.options.cssProps,function(r,s){n=P(i.style,s),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}ft.prototype={set:function(t){"compute"==t&&(t=this.compute()),dt&&this.manager.element.style&&pt[t]&&(this.manager.element.style[ht]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return m(this.manager.recognizers,function(e){x(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(A(t,"none"))return"none";var e=A(t,"pan-x"),n=A(t,"pan-y");return e&&n?"none":e||n?e?"pan-x":"pan-y":A(t,"manipulation")?"manipulation":"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=A(i,"none")&&!pt.none,s=A(i,"pan-y")&&!pt["pan-y"],o=A(i,"pan-x")&&!pt["pan-x"];if(r&&1===t.pointers.length&&t.distance<2&&t.deltaTime<250)return;if(!o||!s)return r||s&&6&n||o&&24&n?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}},gt.prototype={defaults:{},set:function(t){return c(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(g(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=bt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return g(t,"dropRecognizeWith",this)||(t=bt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(g(t,"requireFailure",this))return this;var e=this.requireFail;return-1===O(e,t=bt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(g(t,"dropRequireFailure",this))return this;t=bt(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+mt(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+mt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},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=c({},t);if(!x(this.options.enable,[this,e]))return this.reset(),void(this.state=32);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(vt,gt,{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,r=this.attrTest(t);return i&&(8&n||!r)?16|e:i||r?4&n?8|e:2&e?4|e:2:32}}),y(yt,vt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,s=t.deltaX,o=t.deltaY;return r&e.direction||(6&e.direction?(r=0===s?1:s<0?2:4,n=s!=this.pX,i=Math.abs(t.deltaX)):(r=0===o?1:o<0?8:16,n=o!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return vt.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=_t(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),y(wt,vt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},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(xt,gt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||12&t.eventType&&!r)this.reset();else if(1&t.eventType)this.reset(),this._timer=f(function(){this.state=8,this.tryEmit()},e.time,this);else if(4&t.eventType)return 8;return 32},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(Ct,vt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),y(kt,vt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return yt.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=_t(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),y(St,gt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&r&&n){if(4!=t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,o=!this.pCenter||V(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,o&&s?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=f(function(){this.state=8,this.tryEmit()},e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=f(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Et.VERSION="2.0.7",Et.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Ct,{enable:!1}],[wt,{enable:!1},["rotate"]],[kt,{direction:6}],[yt,{direction:6},["swipe"]],[St],[St,{event:"doubletap",taps:2},["tap"]],[xt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},At.prototype={set:function(t){return c(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,r=e.curRecognizer;(!r||r&&8&r.state)&&(r=e.curRecognizer=null);for(var s=0;s<i.length;)n=i[s],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(r=e.curRecognizer=n),s++}},get:function(t){if(t instanceof gt)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(g(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(g(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(void 0!==t&&void 0!==e){var n=this.handlers;return m(T(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(void 0!==t){var n=this.handlers;return m(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=s.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&&Tt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},c(Et,{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:32,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:At,Input:U,TouchAction:ft,TouchInput:st,MouseInput:Q,PointerEventInput:tt,TouchMouseInput:at,SingleTouchInput:nt,Recognizer:gt,AttrRecognizer:vt,Tap:St,Pan:yt,Swipe:kt,Pinch:wt,Rotate:Ct,Press:xt,on:k,off:S,each:m,merge:v,extend:b,assign:c,inherit:y,bindFn:w,prefixed:P}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=Et,void 0===(i=(function(){return Et}).call(e,n,e,t))||(t.exports=i)}(window,document)},14714:function(){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},27119:function(){!function(t){function e(t,e){return"___"+t.toUpperCase()+e+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,i,r,s){if(n.language===i){var o=n.tokenStack=[];n.code=n.code.replace(r,function(t){if("function"==typeof s&&!s(t))return t;for(var r,a=o.length;-1!==n.code.indexOf(r=e(i,a));)++a;return o[a]=t,r}),n.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(n,i){if(n.language===i&&n.tokenStack){n.grammar=t.languages[i];var r=0,s=Object.keys(n.tokenStack);!function o(a){for(var c=0;c<a.length&&!(r>=s.length);c++){var l=a[c];if("string"==typeof l||l.content&&"string"==typeof l.content){var u=s[r],h=n.tokenStack[u],d="string"==typeof l?l:l.content,p=e(i,u),f=d.indexOf(p);if(f>-1){++r;var g=d.substring(0,f),m=new t.Token(i,t.tokenize(h,n.grammar),"language-"+i,h),_=d.substring(f+p.length),b=[];g&&b.push.apply(b,o([g])),b.push(m),_&&b.push.apply(b,o([_])),"string"==typeof l?a.splice.apply(a,[c,1].concat(b)):l.content=b}}else l.content&&o(l.content)}return a}(n.tokens)}}}})}(Prism)},1011:function(){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 r={};r[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",r)}}),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},71209:function(){!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,r=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;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:r,punctuation:s};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:r,punctuation:s}},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)},98556:function(){!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)},64278:function(t){var e=function(t){var e=/\blang(?:uage)?-([\w-]+)\b/i,n=0,i={},r={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof s?new s(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,s;switch(n=n||{},r.util.type(e)){case"Object":if(s=r.util.objId(e),n[s])return n[s];for(var o in n[s]=i={},e)e.hasOwnProperty(o)&&(i[o]=t(e[o],n));return i;case"Array":return s=r.util.objId(e),n[s]?n[s]:(n[s]=i=[],e.forEach(function(e,r){i[r]=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 r=t.classList;if(r.contains(e))return!0;if(r.contains(i))return!1;t=t.parentElement}return!!n}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(t,e){var n=r.util.clone(r.languages[t]);for(var i in e)n[i]=e[i];return n},insertBefore:function(t,e,n,i){var s=(i=i||r.languages)[t],o={};for(var a in s)if(s.hasOwnProperty(a)){if(a==e)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(a)||(o[a]=s[a])}var l=i[t];return i[t]=o,r.languages.DFS(r.languages,function(e,n){n===l&&e!=t&&(this[e]=o)}),o},DFS:function t(e,n,i,s){s=s||{};var o=r.util.objId;for(var a in e)if(e.hasOwnProperty(a)){n.call(e,a,e[a],i||a);var c=e[a],l=r.util.type(c);"Object"!==l||s[o(c)]?"Array"!==l||s[o(c)]||(s[o(c)]=!0,t(c,n,a,s)):(s[o(c)]=!0,t(c,n,null,s))}}},plugins:{},highlightAll:function(t,e){r.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'};r.hooks.run("before-highlightall",i),i.elements=Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)),r.hooks.run("before-all-elements-highlight",i);for(var s,o=0;s=i.elements[o++];)r.highlightElement(s,!0===e,i.callback)},highlightElement:function(n,i,s){var o=r.util.getLanguage(n),a=r.languages[o];n.className=n.className.replace(e,"").replace(/\s+/g," ")+" language-"+o;var c=n.parentElement;c&&"pre"===c.nodeName.toLowerCase()&&(c.className=c.className.replace(e,"").replace(/\s+/g," ")+" language-"+o);var l={element:n,language:o,grammar:a,code:n.textContent};function u(t){l.highlightedCode=t,r.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,r.hooks.run("after-highlight",l),r.hooks.run("complete",l),s&&s.call(l.element)}if(r.hooks.run("before-sanity-check",l),(c=l.element.parentElement)&&"pre"===c.nodeName.toLowerCase()&&!c.hasAttribute("tabindex")&&c.setAttribute("tabindex","0"),!l.code)return r.hooks.run("complete",l),void(s&&s.call(l.element));if(r.hooks.run("before-highlight",l),l.grammar)if(i&&t.Worker){var h=new Worker(r.filename);h.onmessage=function(t){u(t.data)},h.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else u(r.highlight(l.code,l.grammar,l.language));else u(r.util.encode(l.code))},highlight:function(t,e,n){var i={code:t,grammar:e,language:n};return r.hooks.run("before-tokenize",i),i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),s.stringify(r.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 r=new c;return l(r,r.head,t),a(t,r,e,r.head,0),function(t){for(var e=[],n=t.head.next;n!==t.tail;)e.push(n.value),n=n.next;return e}(r)},hooks:{all:{},add:function(t,e){var n=r.hooks.all;n[t]=n[t]||[],n[t].push(e)},run:function(t,e){var n=r.hooks.all[t];if(n&&n.length)for(var i,s=0;i=n[s++];)i(e)}},Token:s};function s(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 r=t.exec(n);if(r&&i&&r[1]){var s=r[1].length;r.index+=s,r[0]=r[0].slice(s)}return r}function a(t,e,n,i,c,h){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var f=0;f<p.length;++f){if(h&&h.cause==d+","+f)return;var g=p[f],m=g.inside,_=!!g.lookbehind,b=!!g.greedy,v=g.alias;if(b&&!g.pattern.global){var y=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,y+"g")}for(var w=g.pattern||g,x=i.next,C=c;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 s)){var S,E=1;if(b){if(!(S=o(w,C,t,_)))break;var A=S.index,T=S.index+S[0].length,O=C;for(O+=x.value.length;A>=O;)O+=(x=x.next).value.length;if(C=O-=x.value.length,x.value instanceof s)continue;for(var D=x;D!==e.tail&&(O<T||"string"==typeof D.value);D=D.next)E++,O+=D.value.length;E--,k=t.slice(C,O),S.index-=C}else if(!(S=o(w,0,k,_)))continue;var I=S[0],P=k.slice(0,A=S.index),F=k.slice(A+I.length),R=C+k.length;h&&R>h.reach&&(h.reach=R);var M=x.prev;if(P&&(M=l(e,M,P),C+=P.length),u(e,M,E),x=l(e,M,new s(d,m?r.tokenize(I,m):I,v,I)),F&&l(e,x,F),E>1){var L={cause:d+","+f,reach:R};a(t,e,n,x.prev,C,L),h&&L.reach>h.reach&&(h.reach=L.reach)}}}}}}function c(){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 l(t,e,n){var i=e.next,r={value:n,prev:e,next:i};return e.next=r,i.prev=r,t.length++,r}function u(t,e,n){for(var i=e.next,r=0;r<n&&i!==t.tail;r++)i=i.next;e.next=i,i.prev=e,t.length-=r}if(t.Prism=r,s.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 s={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(s.classes,o):s.classes.push(o)),r.hooks.run("wrap",s);var a="";for(var c in s.attributes)a+=" "+c+'="'+(s.attributes[c]||"").replace(/"/g,"&quot;")+'"';return"<"+s.tag+' class="'+s.classes.join(" ")+'"'+a+">"+s.content+"</"+s.tag+">"},!t.document)return t.addEventListener?(r.disableWorkerMessageHandler||t.addEventListener("message",function(e){var n=JSON.parse(e.data),i=n.language,s=n.immediateClose;t.postMessage(r.highlight(n.code,r.languages[i],i)),s&&t.close()},!1),r):r;var h=r.util.currentScript();function d(){r.manual||r.highlightAll()}if(h&&(r.filename=h.src,h.hasAttribute("data-manual")&&(r.manual=!0)),!r.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 r}("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 r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};r["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var s={};s[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:r},e.languages.insertBefore("markup","cdata",s)}}),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='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;e.hooks.add("before-highlightall",function(t){t.selector+=", "+n}),e.hooks.add("before-sanity-check",function(i){var r=i.element;if(r.matches(n)){i.code="",r.setAttribute("data-src-status","loading");var o=r.appendChild(document.createElement("CODE"));o.textContent="Loading\u2026";var a=r.getAttribute("data-src"),c=i.language;if("none"===c){var l=(/\.(\w+)$/.exec(a)||[,"none"])[1];c=t[l]||l}s(o,c),s(r,c);var u=e.plugins.autoloader;u&&u.loadLanguages(c);var h=new XMLHttpRequest;h.open("GET",a,!0),h.onreadystatechange=function(){4==h.readyState&&(h.status<400&&h.responseText?(r.setAttribute("data-src-status","loaded"),o.textContent=h.responseText,e.highlightElement(o)):(r.setAttribute("data-src-status","failed"),o.textContent=h.status>=400?"\u2716 Error "+h.status+" while fetching file: "+h.statusText:"\u2716 Error: File does not exist or is empty"))},h.send(null)}}),e.plugins.fileHighlight={highlight:function(t){for(var i,r=(t||document).querySelectorAll(n),s=0;i=r[s++];)e.highlightElement(i)}};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 s(t,e){var n=t.className;n=n.replace(i," ")+" language-"+e,t.className=n.replace(/\s+/g," ").trim()}}()},42330:function(t){function e(t){this.name="RavenConfigError",this.message=t}(e.prototype=new Error).constructor=e,t.exports=e},69680:function(t,e,n){var i=n(77792);t.exports={wrapMethod:function(t,e,n){var r=t[e],s=t;if(e in t){var o="warn"===e?"warning":e;t[e]=function(){var t=[].slice.call(arguments),a=i.safeJoin(t," "),c={level:o,logger:"console",extra:{arguments:t}};"assert"===e?!1===t[0]&&(a="Assertion failed: "+(i.safeJoin(t.slice(1)," ")||"console.assert"),c.extra.arguments=t.slice(1),n&&n(a,c)):n&&n(a,c),r&&Function.prototype.apply.call(r,s,t)}}}}},26351:function(t,e,n){var i=n(98527),r=n(92156),s=n(5113),o=n(42330),a=n(77792),c=a.isErrorEvent,l=a.isDOMError,u=a.isDOMException,h=a.isError,d=a.isObject,p=a.isPlainObject,f=a.isUndefined,g=a.isFunction,m=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,S=a.urlencode,E=a.uuid4,A=a.htmlTreeAsString,T=a.isSameException,O=a.isSameStacktrace,D=a.parseUrl,I=a.fill,P=a.supportsFetch,F=a.supportsReferrerPolicy,R=a.serializeKeysForMessage,M=a.serializeException,L=a.sanitize,N=n(69680).wrapMethod,Z="source protocol user pass host port path".split(" "),B=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;function U(){return+new Date}var z="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},j=z.document,q=z.navigator;function Y(t,e){return g(e)?function(n){return e(n,t)}:e}function $(){for(var t in this._hasJSON=!("object"!=typeof JSON||!JSON.stringify),this._hasDocument=!f(j),this._hasNavigator=!f(q),this._lastCapturedException=null,this._lastData=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={release:z.SENTRY_RELEASE&&z.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=z.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=U(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._lastCapturedEvent=null,this._location=z.location,this._lastHref=this._location&&this._location.href,this._resetBackoff(),this._originalConsole)this._originalConsoleMethods[t]=this._originalConsole[t]}($.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 r=n._globalOptions;e&&v(e,function(t,e){"tags"===t||"extra"===t||"user"===t?n._globalContext[t]=e:r[t]=e}),n.setDSN(t),r.ignoreErrors.push(/^Script error\.?$/),r.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),r.ignoreErrors=k(r.ignoreErrors),r.ignoreUrls=!!r.ignoreUrls.length&&k(r.ignoreUrls),r.whitelistUrls=!!r.whitelistUrls.length&&k(r.whitelistUrls),r.includePaths=k(r.includePaths),r.maxBreadcrumbs=Math.max(0,Math.min(r.maxBreadcrumbs||100,100));var s={xhr:!0,console:!0,dom:!0,location:!0,sentry:!0},o=r.autoBreadcrumbs;"[object Object]"==={}.toString.call(o)?o=y(s,o):!1!==o&&(o=s),r.autoBreadcrumbs=o;var a={tryCatch:!0},c=r.instrument;return"[object Object]"==={}.toString.call(c)?c=y(a,c):!1!==c&&(c=a),r.instrument=c,i.collectWindowErrors=!!r.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._parseDSN(t),n=e.path.lastIndexOf("/"),i=e.path.substr(1,n);this._dsn=t,this._globalKey=e.user,this._globalSecret=e.pass&&e.pass.substr(1),this._globalProject=e.path.substr(n+1),this._globalServer=this._getGlobalServer(e),this._globalEndpoint=this._globalServer+"/"+i+"api/"+this._globalProject+"/store/",this._resetBackoff()},context:function(t,e,n){return g(t)&&(n=e||[],e=t,t={}),this.wrap(t,e).apply(this,n)},wrap:function(t,e,n){var i=this;if(f(e)&&!g(t))return t;if(g(t)&&(e=t,t=void 0),!g(e))return e;try{if(e.__raven__)return e;if(e.__raven_wrapper__)return e.__raven_wrapper__}catch(o){return e}function r(){var r=[],s=arguments.length,a=!t||t&&!1!==t.deep;for(n&&g(n)&&n.apply(this,arguments);s--;)r[s]=a?i.wrap(t,arguments[s]):arguments[s];try{return e.apply(this,r)}catch(o){throw i._ignoreNextOnError(),i.captureException(o,t),o}}for(var s in e)C(e,s)&&(r[s]=e[s]);return r.prototype=e.prototype,e.__raven_wrapper__=r,r.__raven__=!0,r.__orig__=e,r},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),z.addEventListener&&z.addEventListener("unhandledrejection",this._promiseRejectionHandler),this},_detachPromiseRejectionHandler:function(){return z.removeEventListener&&z.removeEventListener("unhandledrejection",this._promiseRejectionHandler),this},captureException:function(t,e){if(e=y({trimHeadFrames:0},e||{}),c(t)&&t.error)t=t.error;else{if(l(t)||u(t)){var n=t.name||(l(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 r=i.computeStackTrace(t);this._handleStackInfo(r,e)}catch(s){if(t!==s)throw s}return this},_getCaptureExceptionOptionsFromPlainObject:function(t,e){var n=Object.keys(e).sort(),i=y(t,{message:"Non-Error exception captured with keys: "+R(n),fingerprint:[s(n)],extra:t.extra||{}});return i.extra.__serialized__=M(e),i},captureMessage:function(t,e){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(t)){var n,r=y({message:t+=""},e=e||{});try{throw new Error(t)}catch(l){n=l}n.name=null;var s=i.computeStackTrace(n),o=_(s.stack)&&s.stack[1];o&&"Raven.captureException"===o.func&&(o=s.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||""===r.message){r.fingerprint=null==r.fingerprint?t:r.fingerprint,(e=y({trimHeadFrames:0},e)).trimHeadFrames+=1;var c=this._prepareFrames(s,e);r.stacktrace={frames:c.reverse()}}return r.fingerprint&&(r.fingerprint=_(r.fingerprint)?r.fingerprint:[r.fingerprint]),this._send(r),this}}},captureBreadcrumb:function(t){var e=y({timestamp:U()/1e3},t);if(g(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(r(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=Y(this._globalOptions.dataCallback,t),this},setBreadcrumbCallback:function(t){return this._globalOptions.breadcrumbCallback=Y(this._globalOptions.breadcrumbCallback,t),this},setShouldSendCallback:function(t){return this._globalOptions.shouldSendCallback=Y(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=z.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 r=t.user;r.name&&n.push("name="+e(r.name)),r.email&&n.push("email="+e(r.email))}else n.push(e(i)+"="+e(t[i]));var s=this._getGlobalServer(this._parseDSN(t.dsn)),a=j.createElement("script");a.async=!0,a.src=s+"/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(r){}}},_breadcrumbEventHandler:function(t){var e=this;return function(n){if(e._keypressTimeout=null,e._lastCapturedEvent!==n){var i;e._lastCapturedEvent=n;try{i=A(n.target)}catch(r){i="<unknown>"}e.captureBreadcrumb({category:"ui."+t,message:i})}}},_keypressEventHandler:function(){var t=this;return function(e){var n;try{n=e.target}catch(s){return}var i=n&&n.tagName;if(i&&("INPUT"===i||"TEXTAREA"===i||n.isContentEditable)){var r=t._keypressTimeout;r||t._breadcrumbEventHandler("input")(e),clearTimeout(r),t._keypressTimeout=setTimeout(function(){t._keypressTimeout=null},1e3)}}},_captureUrlChange:function(t,e){var n=D(this._location.href),i=D(e),r=D(t);this._lastHref=e,n.protocol===i.protocol&&n.host===i.host&&(e=i.relative),n.protocol===r.protocol&&n.host===r.host&&(t=r.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 r=new Array(arguments.length),s=0;s<r.length;++s)r[s]=arguments[s];var o=r[0];return g(o)&&(r[0]=t.wrap({mechanism:{type:"instrument",data:{function:e.name||"<anonymous>"}}},o)),e.apply?e.apply(this,r):e(r[0],r[1])}}var i=this._globalOptions.autoBreadcrumbs;function r(n){var r=z[n]&&z[n].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(I(r,"addEventListener",function(e){return function(r,s,o,a){try{s&&s.handleEvent&&(s.handleEvent=t.wrap({mechanism:{type:"instrument",data:{target:n,function:"handleEvent",handler:s&&s.name||"<anonymous>"}}},s.handleEvent))}catch(h){}var c,l,u;return i&&i.dom&&("EventTarget"===n||"Node"===n)&&(l=t._breadcrumbEventHandler("click"),u=t._keypressEventHandler(),c=function(t){if(t){var e;try{e=t.type}catch(n){return}return"click"===e?l(t):"keypress"===e?u(t):void 0}}),e.call(this,r,t.wrap({mechanism:{type:"instrument",data:{target:n,function:"addEventListener",handler:s&&s.name||"<anonymous>"}}},s,c),o,a)}},e),I(r,"removeEventListener",function(t){return function(e,n,i,r){try{n=n&&(n.__raven_wrapper__?n.__raven_wrapper__:n)}catch(s){}return t.call(this,e,n,i,r)}},e))}I(z,"setTimeout",n,e),I(z,"setInterval",n,e),z.requestAnimationFrame&&I(z,"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 s=["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<s.length;o++)r(s[o])},_instrumentBreadcrumbs:function(){var t=this,e=this._globalOptions.autoBreadcrumbs,n=t._wrappedBuiltIns;function i(e,n){e in n&&g(n[e])&&I(n,e,function(n){return t.wrap({mechanism:{type:"instrument",data:{function:e,handler:n&&n.name||"<anonymous>"}}},n)})}if(e.xhr&&"XMLHttpRequest"in z){var r=z.XMLHttpRequest&&z.XMLHttpRequest.prototype;I(r,"open",function(e){return function(n,i){return m(i)&&-1===i.indexOf(t._globalKey)&&(this.__raven_xhr={method:n,url:i,status_code:null}),e.apply(this,arguments)}},n),I(r,"send",function(e){return function(){var n=this;function r(){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 s=["onload","onerror","onprogress"],o=0;o<s.length;o++)i(s[o],n);return"onreadystatechange"in n&&g(n.onreadystatechange)?I(n,"onreadystatechange",function(e){return t.wrap({mechanism:{type:"instrument",data:{function:"onreadystatechange",handler:e&&e.name||"<anonymous>"}}},e,r)}):n.onreadystatechange=r,e.apply(this,arguments)}},n)}e.xhr&&P()&&I(z,"fetch",function(e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;++i)n[i]=arguments[i];var r,s=n[0],o="GET";if("string"==typeof s?r=s:"Request"in z&&s instanceof z.Request?(r=s.url,s.method&&(o=s.method)):r=""+s,-1!==r.indexOf(t._globalKey))return e.apply(this,n);n[1]&&n[1].method&&(o=n[1].method);var a={method:o,url:r,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 s=z.chrome;if(e.location&&!(s&&s.app&&s.app.runtime)&&z.history&&z.history.pushState&&z.history.replaceState){var o=z.onpopstate;z.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)}};I(z.history,"pushState",a,n),I(z.history,"replaceState",a,n)}if(e.console&&"console"in z&&console.log){var c=function(e,n){t.captureBreadcrumb({message:e,level:n.level,category:"console"})};v(["debug","info","warn","error","log"],function(t,e){N(console,e,c)})}},_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=B.exec(t),n={},i=7;try{for(;i--;)n[Z[i]]=e[i]||""}catch(r){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,r){var s=n._normalizeFrame(r,t.url);s&&i.push(s)}),e&&e.trimHeadFrames))for(var r=0;r<e.trimHeadFrames&&r<i.length;r++)i[r].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,r,s){var o,a=(t?t+": ":"")+(e||"");if((!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e)&&!this._globalOptions.ignoreErrors.test(a))&&(r&&r.length?(n=r[0].filename||n,r.reverse(),o={frames:r}):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 c=y({exception:{values:[{type:t,value:e,stacktrace:o}]},transaction:n},s),l=c.exception.values[0];null==l.type&&""===l.value&&(l.value="Unrecoverable error caught"),!c.exception.mechanism&&c.mechanism&&(c.exception.mechanism=c.mechanism,delete c.mechanism),c.exception.mechanism=y({type:"generic",handled:!0},c.exception.mechanism||{}),this._send(c)}},_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,r=["to","from","url"],s=0;s<t.values.length;++s)if((n=t.values[s]).hasOwnProperty("data")&&d(n.data)&&!x(n.data)){i=y({},n.data);for(var o=0;o<r.length;++o)i.hasOwnProperty(e=r[o])&&i[e]&&(i[e]=w(i[e],this._globalOptions.maxUrlLength));t.values[s].data=i}},_getHttpData:function(){if(this._hasNavigator||this._hasDocument){var t={};return this._hasNavigator&&q.userAgent&&(t.headers={"User-Agent":q.userAgent}),z.location&&z.location.href&&(t.url=z.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&&U()-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=P()?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=U()}}},_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"]=U()-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]}),g(e.dataCallback)&&(t=e.dataCallback(t)||t),t&&!b(t)&&(g(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 L(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 r={sentry_version:"7",sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(r.sentry_secret=this._globalSecret);var s=t.exception&&t.exception.values[0];this._globalOptions.autoBreadcrumbs&&this._globalOptions.autoBreadcrumbs.sentry&&this.captureBreadcrumb({category:"sentry",message:s?(s.type?s.type+": ":"")+s.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:r,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+"?"+S(t.auth),n=null,i={};if(t.options.headers&&(n=this._evaluateHash(t.options.headers)),t.options.fetchParameters&&(i=this._evaluateHash(t.options.fetchParameters)),P()){i.body=r(t.data);var s=y({},this._fetchDefaults),o=y(s,i);return n&&(o.headers=n),z.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=z.XMLHttpRequest&&new z.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(r(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){f(e)?delete this._globalContext[t]:this._globalContext[t]=y(this._globalContext[t]||{},e)}}).setUser=$.prototype.setUserContext,$.prototype.setReleaseContext=$.prototype.setRelease,t.exports=$},74530:function(t,e,n){var i=n(26351),r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=r.Raven,o=new i;o.noConflict=function(){return r.Raven=s,o},o.afterLoad(),t.exports=o,t.exports.Client=i},77792:function(t,e,n){var i=n(92156),r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(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 c(t){return"[object Array]"===Object.prototype.toString.call(t)}function l(){if(!("fetch"in r))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function u(t,e){var n,i;if(s(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,r=t.length;i<r;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 f(t){var e,n,i,r,s,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+/),s=0;s<n.length;s++)o.push("."+n[s]);var c=["type","name","title","alt"];for(s=0;s<c.length;s++)(r=t.getAttribute(i=c[s]))&&o.push("["+i+'="'+r+'"]');return o.join("")}function g(t,e){return!!(!!t^!!e)}function m(t,e){if(g(t,e))return!1;var n,i,r=t.frames,s=e.frames;if(void 0===r||void 0===s)return!1;if(r.length!==s.length)return!1;for(var o=0;o<r.length;o++)if((n=r[o]).filename!==(i=s[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:s,isFunction:function(t){return"function"==typeof t},isPlainObject:o,isString:a,isArray:c,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:l,supportsReferrerPolicy:function(){if(!l())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=r.crypto||r.msCrypto;if(!s(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,r=0,s=" > ".length;t&&i++<5&&!("html"===(e=f(t))||i>1&&r+n.length*s+e.length>=80);)n.push(e),r+=e.length,t=t.parentNode;return n.reverse().join(" > ")},htmlElementAsString:f,isSameException:function(t,e){return!g(t,e)&&(t=t.values[0]).type===(e=e.values[0]).type&&t.value===e.value&&(n=e.stacktrace,(!s(t.stacktrace)||!s(n))&&m(t.stacktrace,e.stacktrace));var n},isSameStacktrace:m,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 r=t[e];t[e]=n(r),t[e].__raven__=!0,t[e].__orig__=r,i&&i.push([t,e,r])}},safeJoin:function(t,e){if(!c(t))return"";for(var n=[],i=0;i<t.length;i++)try{n.push(String(t[i]))}catch(r){n.push("[value cannot be serialized]")}return n.join(e)},serializeException:function t(e,n,r){if(!o(e))return e;r="number"!=typeof(n="number"!=typeof n?3:n)?51200:r;var s,a=b(e,n);return s=i(a),function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(s))>r?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(!c(e)||c(e)&&0===e.length)return t;var n,r=p(e);try{n=JSON.parse(i(t))}catch(s){return t}return function t(e){return c(e)?e.map(function(e){return t(e)}):o(e)?Object.keys(e).reduce(function(n,i){return n[i]=r.test(i)?"********":t(e[i]),n},{}):e}(n)}}},98527:function(t,e,n){var i=n(77792),r={collectWindowErrors:!0,debug:!1},s="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=[].slice,a=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function c(){return"undefined"==typeof document||null==document.location?"":document.location.href}r.report=function(){var t,e,n=[],l=null,u=null,h=null;function d(t,e){var i=null;if(!e||r.collectWindowErrors){for(var s in n)if(n.hasOwnProperty(s))try{n[s].apply(null,[t].concat(o.call(arguments,2)))}catch(a){i=a}if(i)throw i}}function p(e,n,s,o,l){var u=i.isErrorEvent(l)?l.error:l,p=i.isErrorEvent(e)?e.message:e;if(h)r.computeStackTrace.augmentStackTraceWithInitialElement(h,n,s,p),f();else if(u&&i.isError(u))d(r.computeStackTrace(u),!0);else{var g,m={url:n,line:s,column:o},_=void 0;"[object String]"==={}.toString.call(p)&&(g=p.match(a))&&(_=g[1],p=g[2]),m.func="?",d({name:_,message:p,url:c(),stack:[m]},!0)}return!!t&&t.apply(this,arguments)}function f(){var t=h,e=l;l=null,h=null,u=null,d.apply(null,[t,!1].concat(e))}function g(t,e){var n=o.call(arguments,1);if(h){if(u===t)return;f()}var i=r.computeStackTrace(t);if(h=i,u=t,l=n,setTimeout(function(){u===t&&f()},i.incomplete?2e3:0),!1!==e)throw t}return g.subscribe=function(i){e||(t=s.onerror,s.onerror=p,e=!0),n.push(i)},g.unsubscribe=function(t){for(var e=n.length-1;e>=0;--e)n[e]===t&&n.splice(e,1)},g.uninstall=function(){e&&(s.onerror=t,e=!1,t=void 0),n=[]},g}(),r.computeStackTrace=function(){function t(t){if(void 0!==t.stack&&t.stack){for(var e,n,i,r=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/^\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,a=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,l=/\((\S*)(?::(\d+))(?::(\d+))\)/,u=t.stack.split("\n"),h=[],d=(/^(.*) is undefined$/.exec(t.message),0),p=u.length;d<p;++d){if(n=r.exec(u[d])){var f=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(e=l.exec(n[2]))&&(n[2]=e[1],n[3]=e[2],n[4]=e[3]),i={url:f?null:n[2],func:n[1]||"?",args:f?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=s.exec(u[d]))i={url:n[2],func:n[1]||"?",args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=o.exec(u[d])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(e=a.exec(n[3]))?(n[3]=e[1],n[4]=e[2],n[5]=null):0!==d||n[5]||void 0===t.columnNumber||(h[0].column=t.columnNumber+1),i={url:n[3],func:n[1]||"?",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="?"),i.url&&"blob:"===i.url.substr(0,5)){var g=new XMLHttpRequest;if(g.open("GET",i.url,!1),g.send(null),200===g.status){var m=g.responseText||"",_=(m=m.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(_){var b=_[1];"~"===b.charAt(0)&&(b=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+b.slice(1)),i.url=b.slice(0,-4)}}}h.push(i)}return h.length?{name:t.name,message:t.message,url:c(),stack:h}:null}}function e(t,e,n,i){var r={url:e,line:n};if(r.url&&r.line){if(t.incomplete=!1,r.func||(r.func="?"),t.stack.length>0&&t.stack[0].url===r.url){if(t.stack[0].line===r.line)return!1;if(!t.stack[0].line&&t.stack[0].func===r.func)return t.stack[0].line=r.line,!1}return t.stack.unshift(r),t.partial=!0,!0}return t.incomplete=!0,!1}function n(t,s){for(var o,a,l=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,u=[],h={},d=!1,p=n.caller;p&&!d;p=p.caller)if(p!==i&&p!==r.report){if(a={url:null,func:"?",line:null,column:null},p.name?a.func=p.name:(o=l.exec(p.toString()))&&(a.func=o[1]),void 0===a.func)try{a.func=o.input.substring(0,o.input.indexOf("{"))}catch(g){}h[""+p]?d=!0:h[""+p]=!0,u.push(a)}s&&u.splice(0,s);var f={name:t.name,message:t.message,url:c(),stack:u};return e(f,t.sourceURL||t.fileName,t.line||t.lineNumber),f}function i(e,i){var s=null;i=null==i?0:+i;try{if(s=t(e))return s}catch(o){if(r.debug)throw o}try{if(s=n(e,i+1))return s}catch(o){if(r.debug)throw o}return{name:e.name,message:e.message,url:c()}}return i.augmentStackTraceWithInitialElement=e,i.computeStackTraceFromStackProp=t,i}(),t.exports=r},92156:function(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=[],r=[];return null==e&&(e=function(t,e){return i[0]===e?"[Circular ~]":"[Circular ~."+r.slice(0,n(i,e)).join(".")+"]"}),function(s,o){if(i.length>0){var a=n(i,this);~a?i.splice(a+1):i.push(this),~a?r.splice(a,1/0,s):r.push(s),~n(i,o)&&(o=e.call(this,s,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,s,o)}}(t.exports=function(t,e,n,r){return JSON.stringify(t,i(e,r),n)}).getSerialize=i},5113:function(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,r,s,o){return e((a=e(e(n,t),e(r,o)))<<(c=s)|a>>>32-c,i);var a,c}function i(t,e,i,r,s,o,a){return n(e&i|~e&r,t,e,s,o,a)}function r(t,e,i,r,s,o,a){return n(e&r|i&~r,t,e,s,o,a)}function s(t,e,i,r,s,o,a){return n(e^i^r,t,e,s,o,a)}function o(t,e,i,r,s,o,a){return n(i^(e|~r),t,e,s,o,a)}function a(t,n){var a,c,l,u,h;t[n>>5]|=128<<n%32,t[14+(n+64>>>9<<4)]=n;var d=1732584193,p=-271733879,f=-1732584194,g=271733878;for(a=0;a<t.length;a+=16)c=d,l=p,u=f,h=g,d=i(d,p,f,g,t[a],7,-680876936),g=i(g,d,p,f,t[a+1],12,-389564586),f=i(f,g,d,p,t[a+2],17,606105819),p=i(p,f,g,d,t[a+3],22,-1044525330),d=i(d,p,f,g,t[a+4],7,-176418897),g=i(g,d,p,f,t[a+5],12,1200080426),f=i(f,g,d,p,t[a+6],17,-1473231341),p=i(p,f,g,d,t[a+7],22,-45705983),d=i(d,p,f,g,t[a+8],7,1770035416),g=i(g,d,p,f,t[a+9],12,-1958414417),f=i(f,g,d,p,t[a+10],17,-42063),p=i(p,f,g,d,t[a+11],22,-1990404162),d=i(d,p,f,g,t[a+12],7,1804603682),g=i(g,d,p,f,t[a+13],12,-40341101),f=i(f,g,d,p,t[a+14],17,-1502002290),d=r(d,p=i(p,f,g,d,t[a+15],22,1236535329),f,g,t[a+1],5,-165796510),g=r(g,d,p,f,t[a+6],9,-1069501632),f=r(f,g,d,p,t[a+11],14,643717713),p=r(p,f,g,d,t[a],20,-373897302),d=r(d,p,f,g,t[a+5],5,-701558691),g=r(g,d,p,f,t[a+10],9,38016083),f=r(f,g,d,p,t[a+15],14,-660478335),p=r(p,f,g,d,t[a+4],20,-405537848),d=r(d,p,f,g,t[a+9],5,568446438),g=r(g,d,p,f,t[a+14],9,-1019803690),f=r(f,g,d,p,t[a+3],14,-187363961),p=r(p,f,g,d,t[a+8],20,1163531501),d=r(d,p,f,g,t[a+13],5,-1444681467),g=r(g,d,p,f,t[a+2],9,-51403784),f=r(f,g,d,p,t[a+7],14,1735328473),d=s(d,p=r(p,f,g,d,t[a+12],20,-1926607734),f,g,t[a+5],4,-378558),g=s(g,d,p,f,t[a+8],11,-2022574463),f=s(f,g,d,p,t[a+11],16,1839030562),p=s(p,f,g,d,t[a+14],23,-35309556),d=s(d,p,f,g,t[a+1],4,-1530992060),g=s(g,d,p,f,t[a+4],11,1272893353),f=s(f,g,d,p,t[a+7],16,-155497632),p=s(p,f,g,d,t[a+10],23,-1094730640),d=s(d,p,f,g,t[a+13],4,681279174),g=s(g,d,p,f,t[a],11,-358537222),f=s(f,g,d,p,t[a+3],16,-722521979),p=s(p,f,g,d,t[a+6],23,76029189),d=s(d,p,f,g,t[a+9],4,-640364487),g=s(g,d,p,f,t[a+12],11,-421815835),f=s(f,g,d,p,t[a+15],16,530742520),d=o(d,p=s(p,f,g,d,t[a+2],23,-995338651),f,g,t[a],6,-198630844),g=o(g,d,p,f,t[a+7],10,1126891415),f=o(f,g,d,p,t[a+14],15,-1416354905),p=o(p,f,g,d,t[a+5],21,-57434055),d=o(d,p,f,g,t[a+12],6,1700485571),g=o(g,d,p,f,t[a+3],10,-1894986606),f=o(f,g,d,p,t[a+10],15,-1051523),p=o(p,f,g,d,t[a+1],21,-2054922799),d=o(d,p,f,g,t[a+8],6,1873313359),g=o(g,d,p,f,t[a+15],10,-30611744),f=o(f,g,d,p,t[a+6],15,-1560198380),p=o(p,f,g,d,t[a+13],21,1309151649),d=o(d,p,f,g,t[a+4],6,-145523070),g=o(g,d,p,f,t[a+11],10,-1120210379),f=o(f,g,d,p,t[a+2],15,718787259),p=o(p,f,g,d,t[a+9],21,-343485551),d=e(d,c),p=e(p,l),f=e(f,u),g=e(g,h);return[d,p,f,g]}function c(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 l(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="";for(n=0;n<t.length;n+=1)e=t.charCodeAt(n),i+="0123456789abcdef".charAt(e>>>4&15)+"0123456789abcdef".charAt(15&e);return i}function h(t){return unescape(encodeURIComponent(t))}function d(t){return function(t){return c(a(l(t),8*t.length))}(h(t))}function p(t,e){return function(t,e){var n,i,r=l(t),s=[],o=[];for(s[15]=o[15]=void 0,r.length>16&&(r=a(r,8*t.length)),n=0;n<16;n+=1)s[n]=909522486^r[n],o[n]=1549556828^r[n];return i=a(s.concat(l(e)),512+8*e.length),c(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))}},26215:function(t,e,n){"use strict";n.d(e,{X:function(){return s}});var i=n(79765),r=n(77971);class s 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 r.N;return this._value}next(t){super.next(this._value=t)}}},23098:function(t,e,n){"use strict";n.d(e,{P:function(){return o}});var i=n(59193),r=n(25917),s=n(40205);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,r.of)(this.value);case"E":return(0,s._)(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)},67574:function(t,e,n){"use strict";n.d(e,{y:function(){return l}});var i=n(77393),r=n(29181),s=n(46490),o=n(16554),a=n(54487),c=n(82494);let l=(()=>{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[r.b])return t[r.b]()}return t||e||n?new i.L(t,e,n):new i.L(s.c)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)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(r){n(r),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=c.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},46490:function(t,e,n){"use strict";n.d(e,{c:function(){return s}});var i=n(82494),r=n(54449);const s={closed:!0,next(t){},error(t){if(i.v.useDeprecatedSynchronousErrorHandling)throw t;(0,r.z)(t)},complete(){}}},82298:function(t,e,n){"use strict";n.d(e,{t:function(){return f}});var i=n(79765),r=n(36465),s=n(16102);const o=new class extends s.v{}(class extends r.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}});var a=n(75319),c=n(77393),l=n(23098);class u extends c.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(l.P.createNext(t))}_error(t){this.scheduleMessage(l.P.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(l.P.createComplete()),this.unsubscribe()}}class h{constructor(t,e){this.notification=t,this.destination=e}}var d=n(77971),p=n(78858);class f 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 g(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,r=n.length;let s;if(this.closed)throw new d.N;if(this.isStopped||this.hasError?s=a.w.EMPTY:(this.observers.push(t),s=new p.W(this,t)),i&&t.add(t=new u(t,i)),e)for(let o=0;o<r&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<r&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),s}_getNow(){return(this.scheduler||o).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,r=i.length;let s=0;for(;s<r&&!(t-i[s].time<n);)s++;return r>e&&(s=Math.max(s,r-e)),s>0&&i.splice(0,s),i}}class g{constructor(t,e){this.time=t,this.value=e}}},79765:function(t,e,n){"use strict";n.d(e,{Yc:function(){return l},xQ:function(){return u}});var i=n(67574),r=n(77393),s=n(75319),o=n(77971),a=n(78858),c=n(29181);class l extends r.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}[c.b](){return new l(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 r=0;r<n;r++)i[r].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 r=0;r<n;r++)i[r].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),s.w.EMPTY):this.isStopped?(t.complete(),s.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):s.w.EMPTY}}},78858:function(t,e,n){"use strict";n.d(e,{W:function(){return r}});var i=n(75319);class r 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)}}},77393:function(t,e,n){"use strict";n.d(e,{L:function(){return l}});var i=n(69105),r=n(46490),s=n(75319),o=n(29181),a=n(82494),c=n(54449);class l extends s.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=r.c;break;case 1:if(!t){this.destination=r.c;break}if("object"==typeof t){t instanceof l?(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 l(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 l{constructor(t,e,n,s){let o;super(),this._parentSubscriber=t;let a=this;(0,i.m)(e)?o=e:e&&(o=e.next,n=e.error,s=e.complete,e!==r.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=s}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,c.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,c.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,c.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,c.z)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},75319:function(t,e,n){"use strict";n.d(e,{w:function(){return a}});var i=n(59796),r=n(81555),s=n(69105);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:c,_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,s.m)(c)){n&&(this._unsubscribe=void 0);try{c.call(this)}catch(h){t=h instanceof o?l(h.errors):[h]}}if((0,i.k)(u)){let e=-1,n=u.length;for(;++e<n;){const n=u[e];if((0,r.K)(n))try{n.unsubscribe()}catch(h){t=t||[],h instanceof o?t=t.concat(l(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 c;function l(t){return t.reduce((t,e)=>t.concat(e instanceof o?e.errors:e),[])}a.EMPTY=((c=new a).closed=!0,c)},82494:function(t,e,n){"use strict";n.d(e,{v:function(){return r}});let i=!1;const r={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}}},85345:function(t,e,n){"use strict";n.d(e,{IY:function(){return o},Ds:function(){return a},ft:function(){return c}});var i=n(77393),r=n(67574),s=n(87444);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 c(t,e){if(e.closed)return;if(t instanceof r.y)return t.subscribe(e);let n;try{n=(0,s.s)(t)(e)}catch(i){e.error(i)}return n}},52441:function(t,e,n){"use strict";n.d(e,{c:function(){return a},N:function(){return c}});var i=n(79765),r=n(67574),s=n(75319),o=n(51307);class a extends r.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 s.w,t.add(this.source.subscribe(new l(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.w.EMPTY)),t}refCount(){return(0,o.x)()(this)}}const c=(()=>{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 l 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()}}}},90739:function(t,e,n){"use strict";n.d(e,{aj:function(){return p}});var i=n(54869),r=n(59796),s=n(77393);class o extends s.L{notifyNext(t,e,n,i,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class a extends s.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 c=n(87444),l=n(67574);function u(t,e,n,i,r=new a(t,n,i)){if(!r.closed)return e instanceof l.y?e.subscribe(r):(0,c.s)(e)(r)}var h=n(56693);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,r.k)(t[0])&&(t=t[0]),(0,h.n)(t,n).lift(new f(e))}class f{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new g(t,this.resultSelector))}}class g 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,r=this.toRespond?i[n]===d?--this.toRespond:this.toRespond:0;i[n]=e,0===r&&(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)}}},58071:function(t,e,n){"use strict";n.d(e,{z:function(){return s}});var i=n(25917),r=n(63282);function s(...t){return(0,r.J)(1)((0,i.of)(...t))}},41439:function(t,e,n){"use strict";n.d(e,{P:function(){return o}});var i=n(67574),r=n(94402),s=n(59193);function o(t){return new i.y(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?(0,r.D)(n):(0,s.c)()).subscribe(e)})}},59193:function(t,e,n){"use strict";n.d(e,{E:function(){return r},c:function(){return s}});var i=n(67574);const r=new i.y(t=>t.complete());function s(t){return t?function(t){return new i.y(e=>t.schedule(()=>e.complete()))}(t):r}},35758:function(t,e,n){"use strict";n.d(e,{D:function(){return c}});var i=n(67574),r=n(59796),s=n(88002),o=n(81555),a=n(94402);function c(...t){if(1===t.length){const e=t[0];if((0,r.k)(e))return l(e,null);if((0,o.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return l(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return l(t=1===t.length&&(0,r.k)(t[0])?t[0]:t,null).pipe((0,s.U)(t=>e(...t)))}return l(t,null)}function l(t,e){return new i.y(n=>{const i=t.length;if(0===i)return void n.complete();const r=new Array(i);let s=0,o=0;for(let c=0;c<i;c++){const l=(0,a.D)(t[c]);let u=!1;n.add(l.subscribe({next:t=>{u||(u=!0,o++),r[c]=t},error:t=>n.error(t),complete:()=>{s++,s!==i&&u||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=r[n],t),{}):r),n.complete())}}))}})}},94402:function(t,e,n){"use strict";n.d(e,{D:function(){return h}});var i=n(67574),r=n(87444),s=n(75319),o=n(16554),a=n(94087),c=n(20377),l=n(44072),u=n(69489);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 s.w;return i.add(e.schedule(()=>{const r=t[o.L]();i.add(r.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,l.t)(t))return function(t,e){return new i.y(n=>{const i=new s.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[c.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 s.w;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=t[c.hZ](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=r.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,r.s)(t))}},56693:function(t,e,n){"use strict";n.d(e,{n:function(){return o}});var i=n(67574),r=n(55015),s=n(94087);function o(t,e){return e?(0,s.r)(t,e):new i.y((0,r.V)(t))}},22759:function(t,e,n){"use strict";n.d(e,{R:function(){return a}});var i=n(67574),r=n(59796),s=n(69105),o=n(88002);function a(t,e,n,l){return(0,s.m)(n)&&(l=n,n=void 0),l?a(t,e,n).pipe((0,o.U)(t=>(0,r.k)(t)?l(...t):l(t))):new i.y(i=>{c(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function c(t,e,n,i,r){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,r),s=()=>i.removeEventListener(e,n,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),s=()=>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),s=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,o=t.length;s<o;s++)c(t[s],e,n,i,r)}i.add(s)}},66682:function(t,e,n){"use strict";n.d(e,{T:function(){return a}});var i=n(67574),r=n(54869),s=n(63282),o=n(56693);function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return(0,r.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,s.J)(e)((0,o.n)(t,n))}},25917:function(t,e,n){"use strict";n.d(e,{of:function(){return o}});var i=n(54869),r=n(56693),s=n(94087);function o(...t){let e=t[t.length-1];return(0,i.K)(e)?(t.pop(),(0,s.r)(t,e)):(0,r.n)(t)}},40205:function(t,e,n){"use strict";n.d(e,{_:function(){return r}});var i=n(67574);function r(t,e){return new i.y(e?n=>e.schedule(s,0,{error:t,subscriber:n}):e=>e.error(t))}function s({error:t,subscriber:e}){e.error(t)}},46797:function(t,e,n){"use strict";n.d(e,{H:function(){return a}});var i=n(67574),r=n(33637),s=n(26561),o=n(54869);function a(t=0,e,n){let a=-1;return(0,s.k)(e)?a=Number(e)<1?1:Number(e):(0,o.K)(e)&&(n=e),(0,o.K)(n)||(n=r.P),new i.y(e=>{const i=(0,s.k)(t)?t:+t-n.now();return n.schedule(c,i,{index:0,period:a,subscriber:e})})}function c(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)}}},80013:function(t,e,n){"use strict";n.d(e,{e:function(){return c}});var i=n(33637),r=n(85345);class s{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new o(t,this.durationSelector))}}class o extends r.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,r.ft)(n,new r.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(46797);function c(t,e=i.P){return n=()=>(0,a.H)(t,e),function(t){return t.lift(new s(n))};var n}},5304:function(t,e,n){"use strict";n.d(e,{K:function(){return r}});var i=n(85345);function r(t){return function(e){const n=new s(t),i=e.lift(n);return n.caught=i}}class s{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 r=new i.IY(this);this.add(r);const s=(0,i.ft)(n,r);s!==r&&this.add(s)}}}},94612:function(t,e,n){"use strict";n.d(e,{b:function(){return r}});var i=n(19773);function r(t,e){return(0,i.zg)(t,e,1)}},54395:function(t,e,n){"use strict";n.d(e,{b:function(){return s}});var i=n(77393),r=n(33637);function s(t,e=r.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(c,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 c(t){t.debouncedNext()}},95242:function(t,e,n){"use strict";n.d(e,{d:function(){return r}});var i=n(77393);function r(t=null){return e=>e.lift(new s(t))}class s{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new o(t,this.defaultValue))}}class o extends i.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()}}},71289:function(t,e,n){"use strict";n.d(e,{g:function(){return o}});var i=n(33637),r=n(77393),s=n(23098);function o(t,e=i.P){var n;const r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new a(r,e))}class a{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))}}class c extends r.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,r=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);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(c.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new l(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(s.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(s.P.createComplete()),this.unsubscribe()}}class l{constructor(t,e){this.time=t,this.notification=e}}},87519:function(t,e,n){"use strict";n.d(e,{x:function(){return r}});var i=n(77393);function r(t,e){return n=>n.lift(new s(t,e))}class s{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))}}},45435:function(t,e,n){"use strict";n.d(e,{h:function(){return r}});var i=n(77393);function r(t,e){return function(n){return n.lift(new s(t,e))}}class s{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)}}},68939:function(t,e,n){"use strict";n.d(e,{x:function(){return s}});var i=n(77393),r=n(75319);function s(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 r.w(e))}}},28049:function(t,e,n){"use strict";n.d(e,{P:function(){return l}});var i=n(13410),r=n(45435),s=n(15257),o=n(95242),a=n(44635),c=n(54487);function l(t,e){const n=arguments.length>=2;return l=>l.pipe(t?(0,r.h)((e,n)=>t(e,n,l)):c.y,(0,s.q)(1),n?(0,o.d)(e):(0,a.T)(()=>new i.K))}},88002:function(t,e,n){"use strict";n.d(e,{U:function(){return r}});var i=n(77393);function r(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 s(t,e))}}class s{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)}}},63282:function(t,e,n){"use strict";n.d(e,{J:function(){return s}});var i=n(19773),r=n(54487);function s(t=Number.POSITIVE_INFINITY){return(0,i.zg)(r.y,t)}},19773:function(t,e,n){"use strict";n.d(e,{zg:function(){return o}});var i=n(88002),r=n(94402),s=n(85345);function o(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?s=>s.pipe(o((n,s)=>(0,r.D)(t(n,s)).pipe((0,i.U)((t,i)=>e(n,t,s,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 c(t,this.project,this.concurrent))}}class c extends s.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 s.IY(this),n=this.destination;n.add(e);const i=(0,s.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()}}},59328:function(t,e,n){"use strict";n.d(e,{G:function(){return r}});var i=n(77393);function r(){return t=>t.lift(new s)}class s{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)}}},51307:function(t,e,n){"use strict";n.d(e,{x:function(){return r}});var i=n(77393);function r(){return function(t){return t.lift(new s(t))}}class s{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new o(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}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()}}},18819:function(t,e,n){"use strict";n.d(e,{B:function(){return a}});var i=n(52441),r=n(51307),s=n(79765);function o(){return new s.xQ}function a(){return t=>{return(0,r.x)()((e=o,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,i.N);return r.source=t,r.subjectFactory=n,r})(t));var e}}},47349:function(t,e,n){"use strict";n.d(e,{d:function(){return r}});var i=n(82298);function r(t,e,n){let r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let s,o,a=0,c=!1,l=!1;return function(u){let h;a++,!s||c?(c=!1,s=new i.t(t,e,r),h=s.subscribe(this),o=u.subscribe({next(t){s.next(t)},error(t){c=!0,s.error(t)},complete(){l=!0,o=void 0,s.complete()}}),l&&(o=void 0)):h=s.subscribe(this),this.add(()=>{a--,h.unsubscribe(),h=void 0,o&&!l&&n&&0===a&&(o.unsubscribe(),o=void 0,s=void 0)})}}(r))}},13653:function(t,e,n){"use strict";n.d(e,{T:function(){return r}});var i=n(77393);function r(t){return e=>e.lift(new s(t))}class s{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)}}},39761:function(t,e,n){"use strict";n.d(e,{O:function(){return s}});var i=n(58071),r=n(54869);function s(...t){const e=t[t.length-1];return(0,r.K)(e)?(t.pop(),n=>(0,i.z)(t,n,e)):e=>(0,i.z)(t,e)}},43190:function(t,e,n){"use strict";n.d(e,{w:function(){return o}});var i=n(88002),r=n(94402),s=n(85345);function o(t,e){return"function"==typeof e?n=>n.pipe(o((n,s)=>(0,r.D)(t(n,s)).pipe((0,i.U)((t,i)=>e(n,t,s,i))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new c(t,this.project))}}class c extends s.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 s.IY(this),i=this.destination;i.add(n),this.innerSubscription=(0,s.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)}}},15257:function(t,e,n){"use strict";n.d(e,{q:function(){return o}});var i=n(77393),r=n(7108),s=n(59193);function o(t){return e=>0===t?(0,s.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new r.W}call(t,e){return e.subscribe(new c(t,this.total))}}class c 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()))}}},46782:function(t,e,n){"use strict";n.d(e,{R:function(){return r}});var i=n(85345);function r(t){return e=>e.lift(new s(t))}class s{constructor(t){this.notifier=t}call(t,e){const n=new o(t),r=(0,i.ft)(this.notifier,new i.IY(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class o extends i.Ds{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},93342:function(t,e,n){"use strict";n.d(e,{b:function(){return o}});var i=n(77393);function r(){}var s=n(69105);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 c(t,this.nextOrObserver,this.error,this.complete))}}class c extends i.L{constructor(t,e,n,i){super(t),this._tapNext=r,this._tapError=r,this._tapComplete=r,this._tapError=n||r,this._tapComplete=i||r,(0,s.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||r,this._tapError=e.error||r,this._tapComplete=e.complete||r)}_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()}}},44635:function(t,e,n){"use strict";n.d(e,{T:function(){return s}});var i=n(13410),r=n(77393);function s(t=c){return e=>e.lift(new o(t))}class o{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends r.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 c(){return new i.K}},94087:function(t,e,n){"use strict";n.d(e,{r:function(){return s}});var i=n(67574),r=n(75319);function s(t,e){return new i.y(n=>{const i=new r.w;let s=0;return i.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},36465:function(t,e,n){"use strict";n.d(e,{o:function(){return s}});var i=n(75319);class r extends i.w{constructor(t,e){super()}schedule(t,e=0){return this}}class s extends r{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(r){i=!0,n=!!r&&r||new Error(r)}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}}},16102:function(t,e,n){"use strict";n.d(e,{v:function(){return r}});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 r extends i{constructor(t,e=i.now){super(t,()=>r.delegate&&r.delegate!==this?r.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return r.delegate&&r.delegate!==this?r.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}}}},61927:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var i=n(36465),r=n(16102);const s=new class extends r.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,r=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<r&&(t=e.shift()));if(this.active=!1,n){for(;++i<r&&(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)}})},64581:function(t,e,n){"use strict";n.d(e,{E:function(){return u}});let i=1;const r=Promise.resolve(),s={};function o(t){return t in s&&(delete s[t],!0)}const a={setImmediate(t){const e=i++;return s[e]=!0,r.then(()=>o(e)&&t()),e},clearImmediate(t){o(t)}};var c=n(36465),l=n(16102);const u=new class extends l.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,r=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<r&&(t=e.shift()));if(this.active=!1,n){for(;++i<r&&(t=e.shift());)t.unsubscribe();throw n}}}(class extends c.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)}})},33637:function(t,e,n){"use strict";n.d(e,{P:function(){return r}});var i=n(36465);const r=new(n(16102).v)(i.o)},20377:function(t,e,n){"use strict";n.d(e,{hZ:function(){return i}});const i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},16554:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},29181:function(t,e,n){"use strict";n.d(e,{b:function(){return i}});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:function(t,e,n){"use strict";n.d(e,{W:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},13410:function(t,e,n){"use strict";n.d(e,{K:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},77971:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},54449:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,{z:function(){return i}})},54487:function(t,e,n){"use strict";function i(t){return t}n.d(e,{y:function(){return i}})},59796:function(t,e,n){"use strict";n.d(e,{k:function(){return i}});const i=Array.isArray||(t=>t&&"number"==typeof t.length)},69489:function(t,e,n){"use strict";n.d(e,{z:function(){return i}});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},69105:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,{m:function(){return i}})},26561:function(t,e,n){"use strict";n.d(e,{k:function(){return r}});var i=n(59796);function r(t){return!(0,i.k)(t)&&t-parseFloat(t)+1>=0}},81555:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,{K:function(){return i}})},95639:function(t,e,n){"use strict";n.d(e,{b:function(){return r}});var i=n(67574);function r(t){return!!t&&(t instanceof i.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},44072:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{t:function(){return i}})},54869:function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,{K:function(){return i}})},87444:function(t,e,n){"use strict";n.d(e,{s:function(){return u}});var i=n(55015),r=n(54449),s=n(20377),o=n(16554),a=n(69489),c=n(44072),l=n(81555);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,c.t)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,r.z),t);if(t&&"function"==typeof t[s.hZ])return e=t,t=>{const n=e[s.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,l.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}},55015:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});const i=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()}},23811: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","\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 r=e[(i="string"==typeof i?{replacement:i}:i||{}).locale]||{},s=void 0===i.replacement?"-":i.replacement,o=n.normalize().split("").reduce(function(e,n){return e+(r[n]||t[n]||(n===s?" ":n)).replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return i.strict&&(o=o.replace(/[^A-Za-z0-9\s]/g,"")),o=o.trim().replace(/\s+/g,s),i.lower&&(o=o.toLowerCase()),o}return n.extend=function(e){Object.assign(t,e)},n})(),t.exports.default=e()},35311:function(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()}}},81378:function(t,e,n){"use strict";n.d(e,{m:function(){return c}});var i=n(68756),r=n(18715),s=n(16850),o=n(82655),a=n(37716);let c=(()=>{class t extends r.c{constructor(){super(...arguments),this.DEFAULT_MAX_SIZE_MB=1.5}initValidations(){const t=[new i.p({maxSize:(0,s.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:function(t,e,n){"use strict";n.d(e,{e:function(){return u}});var i=n(26215),r=n(37716),s=n(90299),o=n(24688),a=n(63423),c=n(35718),l=n(34673);let u=(()=>{class t{constructor(t,e,n,r,s,o,a){this.httpClient=t,this.currentUser=e,this.router=n,this.route=r,this.toast=s,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)(r.LFG(s.r),r.LFG(o.I),r.LFG(a.F0),r.LFG(a.gz),r.LFG(c.F),r.LFG(r.R0b),r.LFG(l.Z))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},24688:function(t,e,n){"use strict";n.d(e,{I:function(){return o}});var i=n(26215),r=n(88002),s=n(37716);let o=(()=>{class t{constructor(){this.model$=new i.X(null),this.isLoggedIn$=this.model$.pipe((0,r.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=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},21270:function(t,e,n){"use strict";n.d(e,{x:function(){return E}});var i=n(22238),r=n(26215),s=n(79765),o=n(37716),a=n(34673),c=n(3679),l=n(15515),u=n(76627),h=n(38583),d=n(51095);function p(t,e){if(1&t&&(o.TgZ(0,"div",16),o._uU(1),o.qZA()),2&t){const t=o.oxw(2).ngIf;o.xp6(1),o.Oqu(t.email)}}function f(t,e){if(1&t&&(o.TgZ(0,"div",11),o.TgZ(1,"label",12),o._uU(2,"Email Address"),o.qZA(),o._UZ(3,"input",13),o.YNc(4,p,2,1,"div",14),o.TgZ(5,"p",15),o._uU(6,"We need your email address to create an account for you, please enter it above."),o.qZA(),o.qZA()),2&t){const t=o.oxw().ngIf;o.xp6(4),o.Q6J("ngIf",t.email)}}function g(t,e){if(1&t&&(o.TgZ(0,"div",16),o._uU(1),o.qZA()),2&t){const t=o.oxw(2).ngIf;o.xp6(1),o.Oqu(t.password)}}function m(t,e){if(1&t&&(o.TgZ(0,"div",17),o.TgZ(1,"label",18),o._uU(2,"Password"),o.qZA(),o._UZ(3,"input",19),o.YNc(4,g,2,1,"div",14),o.TgZ(5,"p",15),o._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."),o.qZA(),o.qZA()),2&t){const t=o.oxw().ngIf;o.xp6(4),o.Q6J("ngIf",t.password)}}function _(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"form",5),o.NdJ("ngSubmit",function(){return o.CHM(t),o.oxw().confirm()}),o.TgZ(1,"mat-dialog-content"),o.TgZ(2,"div",6),o.YNc(3,f,7,1,"div",7),o.YNc(4,m,7,1,"div",8),o.qZA(),o.qZA(),o.TgZ(5,"mat-dialog-actions"),o.TgZ(6,"button",9),o.NdJ("click",function(){return o.CHM(t),o.oxw().close()}),o._uU(7,"Cancel"),o.qZA(),o.TgZ(8,"button",10),o._uU(9,"Connect"),o.qZA(),o.qZA(),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("formGroup",t.form),o.xp6(3),o.Q6J("ngIf",t.shouldCredentialBeRequested("email")),o.xp6(1),o.Q6J("ngIf",t.shouldCredentialBeRequested("password"))}}let b=(()=>{class t{constructor(t,e,n,i,o){this.dialogRef=t,this.data=e,this.zone=n,this.settings=i,this.fb=o,this.form=this.fb.group({email:[""],password:[""]}),this.errors$=new r.X({}),this.onSubmit$=new s.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)(o.Y36(i.so),o.Y36(i.WI),o.Y36(o.R0b),o.Y36(a.Z),o.Y36(c.qu))},t.\u0275cmp=o.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&&(o.TgZ(0,"div",0),o.TgZ(1,"h2",1),o._uU(2,"Credentials Required"),o.qZA(),o.TgZ(3,"button",2),o.NdJ("click",function(){return e.close()}),o._UZ(4,"mat-icon",3),o.qZA(),o.qZA(),o.YNc(5,_,10,3,"form",4),o.ALo(6,"async")),2&t&&(o.xp6(5),o.Q6J("ngIf",o.lcZ(6,1,e.errors$)))},directives:[i.uh,l.P,u.Hw,h.O5,c.JL,c.sg,i.xY,i.H8,d.lW,c.Fj,c.JJ,c.u,c.Q7],pipes:[h.Ov],styles:["[_nghost-%COMP%]{display:block;width:400px;max-width:100%}"],changeDetection:0}),t})();var v=n(90299),y=n(24688),w=n(63423),x=n(35718),C=n(8805),k=n(19244),S=n(15381);let E=(()=>{class t{constructor(t,e,n,i,r,s,o,a){this.httpClient=t,this.currentUser=e,this.router=n,this.settings=i,this.toast=r,this.auth=s,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"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});break;default:this.resolve&&this.resolve(e.profile)}}showRequestExtraCredentialsModal(t){this.extraCredentialsModal=this.modal.open(b,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)(o.LFG(v.r),o.LFG(y.I),o.LFG(w.F0),o.LFG(a.Z),o.LFG(x.F),o.LFG(C.e),o.LFG(k.Z),o.LFG(S.u))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},73429:function(t,e,n){"use strict";n.d(e,{Q:function(){return o}});var i=n(88002),r=n(37716),s=n(90299);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)(r.LFG(s.r))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},33858:function(t,e,n){"use strict";n.d(e,{N:function(){return l}});var i=n(68939),r=n(37716),s=n(90299),o=n(34673),a=n(80708),c=n(19244);let l=(()=>{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)(r.LFG(s.r),r.LFG(o.Z),r.LFG(a.t),r.LFG(c.Z))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},35257:function(t,e,n){"use strict";n.d(e,{n:function(){return o}});var i=n(26215),r=n(37716),s=n(24688);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)(r.LFG(s.I))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},86584:function(t,e,n){"use strict";n.d(e,{b:function(){return y},P:function(){return w}});var i=n(97832),r=n(35257),s=n(26215),o=n(68939),a=n(37716),c=n(80708),l=n(63423),u=n(34673),h=n(35718),d=n(90962),p=n(24688),f=n(33858);function g(t,e){1&t&&a._UZ(0,"mat-icon",9)}const m=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,m,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,r,o,a,c,l){this.subscriptions=t,this.route=e,this.settings=n,this.router=i,this.toast=r,this.state=o,this.localStorage=a,this.currentUser=c,this.paypalSubscriptions=l,this.loading$=new s.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(c.t),a.Y36(l.gz),a.Y36(u.Z),a.Y36(l.F0),a.Y36(h.F),a.Y36(r.n),a.Y36(d.m),a.Y36(p.I),a.Y36(f.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([r.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,g,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 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.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})()},34673:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var i=n(80970),r=n(89225),s=n.n(r);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 c(t,e={}){return l(t,Object.assign(Object.assign({},o),e))}function l(t,e,n,i){const r=i||new FormData;let s=0;for(const o in t){if(t.hasOwnProperty(o)){let i=n||o;const c=e.mapping(t[o]);if(n&&a(t)&&(i=n+"["+o+"]"),n&&Array.isArray(t)&&(i=Array.isArray(c)||e.showLeafArrayIndexes?n+"["+s+"]":n+"[]"),Array.isArray(c)||a(c))l(c,e,i,r);else if(c instanceof FileList)for(let t=0;t<c.length;t++)r.append(i+"["+t+"]",c.item(t));else c instanceof Blob?r.append(i,c,c.name):(null===c&&e.includeNullValues||null!==c)&&void 0!==c&&r.append(i,c)}s++}return r}var u=n(26215),h=n(37716);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(s()(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=c(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})()},90299:function(t,e,n){"use strict";n.d(e,{r:function(){return c}});var i=n(91841),r=n(5304),s=n(45435),o=n(37716),a=n(2124);let c=(()=>{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 s=this.transformQueryParams(n);return this.httpClient.get(t.prefixUri(e),Object.assign({params:s},i)).pipe((0,r.K)(t=>this.errorHandler.handle(t,e,i)))}post(e,n=null){return this.httpClient.post(t.prefixUri(e),n).pipe((0,r.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,r.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,r.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,r.K)(t=>this.errorHandler.handle(t,e)),(0,s.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:function(t,e,n){"use strict";n.d(e,{k:function(){return c}});var i=n(40205),r=n(81769),s=n(37716),o=n(19244),a=n(35718);let c=(()=>{class t{constructor(t,e){this.i18n=t,this.toast=e}handle(t,e,n={}){const s="object"==typeof t.error&&null!==t.error?t.error:{};if(s.status=t.status,s.type="http",s.errors||(s.errors={}),Object.keys(s.errors).forEach(t=>{const e=s.errors[t];s.errors[t]=Array.isArray(e)?e[0]:e}),n.suppressAuthToast||403!==s.status&&401!==s.status){if(422===s.status&&s.message&&!Object.keys(s.errors).length)this.toast.open(s.message,{duration:15e3});else if(500===s.status){const t=((null==s?void 0:s.message)||r.v.Default).substring(0,200);this.toast.open(t,{duration:15e3})}}else this.handle403Error(s);return(0,i._)(s)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(o.Z),s.LFG(a.F))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},81769:function(t,e,n){"use strict";n.d(e,{v:function(){return i},h:function(){return r}});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 r="https://support.vebto.com/help-center/articles/180/how-to-increase-file-maximum-upload-size"},99981:function(t,e,n){"use strict";n.d(e,{F:function(){return u}});var i=n(67574),r=n(25917),s=n(18819),o=n(90299),a=n(37716),c=n(91841),l=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,r.of)(this.cache[n]);{const i=this.get(t,e).pipe((0,s.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(c.eN),a.LFG(l.k))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},58092:function(t,e,n){"use strict";n.d(e,{N:function(){return r}});var i=n(37716);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=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},90962:function(t,e,n){"use strict";n.d(e,{m:function(){return r}});var i=n(37716);let r=(()=>{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(){try{return localStorage.setItem("test","test"),localStorage.removeItem("test"),!0}catch(t){return!1}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},28842:function(t,e,n){"use strict";n.d(e,{o:function(){return r}});var i=n(37716);let r=(()=>{class t{generate(t,e){if(this[t.model_type])return this[t.model_type](t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},74388:function(t,e,n){"use strict";n.d(e,{l:function(){return s}});var i=n(37716),r=n(99981);let s=(()=>{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(r.F))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},84430:function(t,e,n){"use strict";n.d(e,{f:function(){return a}});var i=n(26215),r=n(37716),s=n(58092),o=n(34673);let a=(()=>{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("theme")||t}setPreferredTheme(t){this.cookie.set("theme",t,90)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(s.N),r.LFG(o.Z))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},69538:function(t,e,n){"use strict";n.d(e,{v:function(){return o}});var i=n(37716),r=n(90299),s=n(34673);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(r.r),i.LFG(s.Z))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},15515:function(t,e,n){"use strict";n.d(e,{P:function(){return s}});var i=n(37716),r=n(19244);let s=(()=>{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,this.transValues))}else if(t.getAttribute("title")){const e=t.getAttribute("title");t.setAttribute("title",this.i18n.t(e,this.transValues))}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(r.Z))},t.\u0275dir=i.lG2({type:t,selectors:[["","trans",""],["","trans-placeholder",""],["","trans-title",""]],inputs:{transValues:"transValues"},features:[i.TTD]}),t})()},63297:function(t,e,n){"use strict";n.d(e,{R:function(){return s}});var i=n(37716),r=n(19244);let s=(()=>{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(r.Z,16))},t.\u0275pipe=i.Yjl({name:"trans",type:t,pure:!0}),t})()},49866:function(t,e,n){"use strict";n.d(e,{N:function(){return r}});var i=n(37716);let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},19244:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var i=n(37716),r=n(34673);let s=(()=>{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(r.Z))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},6097:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{i:function(){return AdHostComponent}});var _common_core_utils_random_string__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(58480),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(37716),_common_core_config_settings_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(34673),_common_auth_current_user__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(24688),_common_core_utils_lazy_loader_service__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(35402);let AdHostComponent=(()=>{class AdHostComponent{constructor(t,e,n,i,r){this.el=t,this.renderer=e,this.settings=n,this.currentUser=i,this.lazyLoader=r}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})()},93410:function(t,e,n){"use strict";n.d(e,{v:function(){return s}});var i=n(38583),r=n(37716);let s=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[i.ez]]}),t})()},96605:function(t,e,n){"use strict";n.d(e,{S:function(){return o}});var i=n(65072),r=n(26215),s=n(37716);let o=(()=>{class t{constructor(t){this.breakpointObserver=t,this.isMobile$=new r.X(!1),this.isTablet$=new r.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)(s.LFG(i.Yg))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},8208:function(t,e,n){"use strict";n.d(e,{z:function(){return h}});var i=n(22238),r=n(37716),s=n(19244),o=n(34673),a=n(76627),c=n(38583),l=n(51095);function u(t,e){if(1&t&&(r.TgZ(0,"p",9),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.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)(r.Y36(i.so),r.Y36(i.WI),r.Y36(s.Z),r.Y36(o.Z))},t.\u0275cmp=r.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&&(r.TgZ(0,"div",0),r.TgZ(1,"h2",1),r._uU(2),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,"div",4),r.TgZ(6,"p"),r._uU(7),r.qZA(),r.YNc(8,u,2,1,"p",5),r.qZA(),r.TgZ(9,"div",6),r.TgZ(10,"button",7),r.NdJ("click",function(){return e.close()}),r._uU(11),r.qZA(),r.TgZ(12,"button",8),r.NdJ("click",function(){return e.confirm()}),r._uU(13),r.qZA(),r.qZA()),2&t&&(r.xp6(2),r.Oqu(e.data.title),r.xp6(5),r.Oqu(e.data.body),r.xp6(1),r.Q6J("ngIf",e.data.bodyBold),r.xp6(3),r.Oqu(e.data.cancel),r.xp6(2),r.Oqu(e.data.ok))},directives:[i.uh,a.Hw,i.xY,c.O5,i.H8,l.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})()},14434:function(t,e,n){"use strict";n.d(e,{K:function(){return E}});var i=n(81669),r=n(35566);function s(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(87519),a=n(13653),c=n(37716),l=n(34673),u=n(24688),h=n(55809),d=n(38583),p=n(15515),f=n(76627),g=n(63423);function m(t,e){if(1&t&&(c.TgZ(0,"div",2),c._uU(1),c.qZA()),2&t){const t=c.oxw();c.xp6(1),c.Oqu(t.menu.name)}}function _(t,e){if(1&t&&c._UZ(0,"mat-icon",9),2&t){const t=c.oxw(3).$implicit;c.Q6J("svgIcon",t.icon)}}function b(t,e){if(1&t&&(c.TgZ(0,"a",6),c.YNc(1,_,1,1,"mat-icon",7),c.TgZ(2,"span",8),c._uU(3),c.qZA(),c.qZA()),2&t){const t=c.oxw(2).$implicit,e=c.oxw();c.Gre("nav-item custom-menu-item link-nav-item ",e.itemClass,""),c.Q6J("href",t.action,c.LSH)("ngClass",e.toSnakeCase(t.label))("target",t.target),c.xp6(1),c.Q6J("ngIf",t.icon),c.xp6(2),c.Oqu(t.label)}}function v(t,e){if(1&t&&c._UZ(0,"mat-icon",9),2&t){const t=c.oxw(4).$implicit;c.Q6J("svgIcon",t.icon)}}const y=function(t){return{exact:t}};function w(t,e){if(1&t&&(c.TgZ(0,"a",11),c.YNc(1,v,1,1,"mat-icon",7),c.TgZ(2,"span",8),c._uU(3),c.qZA(),c.qZA()),2&t){const t=c.oxw().ngIf,e=c.oxw(2).$implicit,n=c.oxw();c.Gre("nav-item custom-menu-item route-nav-item ",n.itemClass,""),c.Q6J("routerLink","/"+t.link)("queryParams",t.queryParams)("ngClass",n.toSnakeCase(e.label))("routerLinkActiveOptions",c.VKq(10,y,"/"===e.action||e.activeExact))("target",e.target),c.xp6(1),c.Q6J("ngIf",e.icon),c.xp6(2),c.Oqu(e.label)}}function x(t,e){1&t&&(c.ynx(0),c.YNc(1,w,4,12,"a",10),c.BQk()),2&t&&(c.xp6(1),c.Q6J("ngSwitchCase","route"))}function C(t,e){if(1&t&&(c.ynx(0),c.ynx(1,4),c.YNc(2,b,4,8,"a",5),c.YNc(3,x,2,1,"ng-container",3),c.BQk(),c.BQk()),2&t){const t=c.oxw().$implicit,e=c.oxw();c.xp6(1),c.Q6J("ngSwitch",e.getItemType(t)),c.xp6(1),c.Q6J("ngSwitchCase","link"),c.xp6(1),c.Q6J("ngIf",e.parseRoute(t.action))}}function k(t,e){if(1&t&&(c.ynx(0),c.YNc(1,C,4,3,"ng-container",3),c.BQk()),2&t){const t=e.$implicit,n=c.oxw();c.xp6(1),c.Q6J("ngIf",n.shouldShow(null==t?null:t.condition))}}const S=["*"];let E=(()=>{class t{constructor(t,e,n,r,s){this.settings=t,this.currentUser=e,this.changeDetector=n,this.appearance=r,this.cd=s,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 t=this.settings.all$().pipe((0,a.T)(1),("menus",(0,o.x)((t,e)=>t.menus===e.menus))).subscribe(()=>{this.initMenu(),this.cd.markForCheck()});this.subscriptions.push(t)}}ngOnDestroy(){this.subscriptions.forEach(t=>{t&&t.unsubscribe()})}toSnakeCase(t){return t?(0,r.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:s(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)(c.Y36(l.Z),c.Y36(u.I),c.Y36(c.sBO),c.Y36(h.f),c.Y36(c.sBO))},t.\u0275cmp=c.Xpm({type:t,selectors:[["custom-menu"]],hostVars:8,hostBindings:function(t,e){2&t&&c.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:S,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&&(c.F$t(),c.YNc(0,m,2,1,"div",0),c.YNc(1,k,2,1,"ng-container",1),c.Hsn(2)),2&t&&(c.Q6J("ngIf",e.showTitle),c.xp6(1),c.Q6J("ngForOf",e.menu.items))},directives:[d.O5,d.sg,d.RF,d.n9,d.mk,p.P,f.Hw,g.yS,g.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 transparent;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})()},4581:function(t,e,n){"use strict";n.d(e,{N:function(){return c}});var i=n(38583),r=n(63423),s=n(76627),o=n(49866),a=n(37716);let c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[i.ez,r.Bz,s.Ps,o.N]]}),t})()},81669:function(t,e,n){"use strict";n.d(e,{v:function(){return i}});class i{constructor(t={}){this.position="header",this.items=[];for(const e in t)this[e]=t[e]}}},15381:function(t,e,n){"use strict";n.d(e,{u:function(){return s}});var i=n(37716),r=n(22238);let s=(()=>{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(r.uw))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},98097:function(t,e,n){"use strict";n.d(e,{X:function(){return c}});var i=n(38583),r=n(24890),s=n(37716),o=n(34673);let a=(()=>{class t{constructor(t){this.settings=t}transform(t){return t&&"none"!==t?t.includes("linear-gradient")?t:((0,r.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(o.Z,16))},t.\u0275pipe=s.Yjl({name:"backgroundUrl",type:t,pure:!0}),t})(),c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[a],imports:[[i.ez]]}),t})()},18256:function(t,e,n){"use strict";n.d(e,{l:function(){return o}});var i=n(37716),r=n(38583),s=n(34673);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 r.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(s.Z,16),i.Y36(i.soG,16))},t.\u0275pipe=i.Yjl({name:"formattedDate",type:t,pure:!0}),t})()},66452:function(t,e,n){"use strict";n.d(e,{A:function(){return f}});var i=n(26215),r=n(24890),s=n(37716),o=n(34673),a=n(38583),c=n(2861),l=n(76627);function u(t,e){if(1&t&&s._UZ(0,"img",4),2&t){const t=s.oxw();s.Q6J("src",t.src,s.LSH)("alt",t.alt)("ngClass",t.className)}}function h(t,e){if(1&t&&s._UZ(0,"img",4),2&t){const t=s.oxw();s.Q6J("src",t.src,s.LSH)("alt",t.alt)("ngClass",t.className)}}function d(t,e){if(1&t&&s._UZ(0,"svg-image",5),2&t){const t=s.oxw();s.Q6J("name",t.src)("ngClass",t.className)}}function p(t,e){if(1&t&&s._UZ(0,"mat-icon",6),2&t){const t=s.oxw();s.Q6J("svgIcon",t.src)("ngClass",t.className)}}let f=(()=>{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,r.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)(s.Y36(o.Z),s.Y36(s.SBq))},t.\u0275cmp=s.Xpm({type:t,selectors:[["image-or-icon"]],inputs:{src:"src",alt:"alt",className:"className"},features:[s.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&&(s.ynx(0,0),s.ALo(1,"async"),s.YNc(2,u,1,3,"img",1),s.YNc(3,h,1,3,"img",1),s.YNc(4,d,1,2,"svg-image",2),s.YNc(5,p,1,2,"mat-icon",3),s.BQk()),2&t&&(s.Q6J("ngSwitch",s.lcZ(1,5,e.type$)),s.xp6(2),s.Q6J("ngSwitchCase","absolute"),s.xp6(1),s.Q6J("ngSwitchCase","relative"),s.xp6(1),s.Q6J("ngSwitchCase","svg"),s.xp6(1),s.Q6J("ngSwitchCase","icon"))},directives:[a.RF,a.n9,a.mk,c.L,l.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;-o-object-fit:cover;object-fit:cover;-o-object-position:top;object-position:top;margin:auto}"],changeDetection:0}),t})()},68285:function(t,e,n){"use strict";n.d(e,{T:function(){return a}});var i=n(38583),r=n(76627),s=n(85218),o=n(37716);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,r.Ps,s.a]]}),t})()},20616:function(t,e,n){"use strict";n.d(e,{Q:function(){return s}});var i=n(17238),r=n(37716);let s=(()=>{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=r.Xpm({type:t,selectors:[["loading-indicator"]],hostVars:1,hostBindings:function(t,e){2&t&&r.d8E("@visibility",e.isVisible)},inputs:{isVisible:"isVisible"},decls:9,vars:0,consts:[[1,"la-ball-spin-clockwise","spinner"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r._UZ(1,"div"),r._UZ(2,"div"),r._UZ(3,"div"),r._UZ(4,"div"),r._UZ(5,"div"),r._UZ(6,"div"),r._UZ(7,"div"),r._UZ(8,"div"),r.qZA())},styles:[".overlay[_nghost-%COMP%], .overlay   [_nghost-%COMP%]{position:fixed;width:100vw;height:100vh;top:0;left:0;z-index:10;background-color:hsla(0,0%,98%,.7)}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:transparent}[_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:rgba(0,0,0,.4)}.center[_nghost-%COMP%], .center   [_nghost-%COMP%]{top:calc(50% - 32px);left:calc(50% - 32px)}.overlay-light[_nghost-%COMP%], .overlay-light   [_nghost-%COMP%]{background-color:hsla(0,0%,100%,.9)}.overlay-dark[_nghost-%COMP%], .overlay-dark   [_nghost-%COMP%]{background-color:rgba(0,0,0,.1)}.overlay-transparent[_nghost-%COMP%], .overlay-transparent   [_nghost-%COMP%]{background-color:transparent}.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%;-webkit-animation:ball-spin-clockwise 1s ease-in-out infinite;animation:ball-spin-clockwise 1s ease-in-out infinite}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{top:5%;left:50%;-webkit-animation-delay:-.875s;animation-delay:-.875s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){top:18.1801948466%;left:81.8198051534%;-webkit-animation-delay:-.75s;animation-delay:-.75s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){top:50%;left:95%;-webkit-animation-delay:-.625s;animation-delay:-.625s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){top:81.8198051534%;left:81.8198051534%;-webkit-animation-delay:-.5s;animation-delay:-.5s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){top:94.9999999966%;left:50.0000000005%;-webkit-animation-delay:-.375s;animation-delay:-.375s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){top:81.8198046966%;left:18.1801949248%;-webkit-animation-delay:-.25s;animation-delay:-.25s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){top:49.9999750815%;left:5.0000051215%;-webkit-animation-delay:-.125s;animation-delay:-.125s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){top:18.179464974%;left:18.1803700518%;-webkit-animation-delay:0s;animation-delay:0s}@-webkit-keyframes ball-spin-clockwise{0%,to{opacity:1;transform:scale(1)}20%{opacity:1}80%{opacity:0;transform:scale(0)}}@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})()},43389:function(t,e,n){"use strict";n.d(e,{p:function(){return s}});var i=n(38583),r=n(37716);let s=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[i.ez]]}),t})()},757:function(t,e,n){"use strict";n.d(e,{F:function(){return O}});var i=n(37716),r=n(24688),s=n(8805),o=n(34673),a=n(96605),c=n(84430),l=n(28842),u=n(38583),h=n(63423),d=n(33935),p=n(76627),f=n(15515);function g(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",12),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).onItemClick()}),i._UZ(1,"mat-icon",13),i.TgZ(2,"span",8),i._uU(3,"Admin Area"),i.qZA(),i.qZA()}}function m(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",14),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).onItemClick()}),i._UZ(1,"mat-icon",15),i.TgZ(2,"span",8),i._uU(3,"Notifications"),i.qZA(),i.qZA()}}function _(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",16),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).onItemClick()}),i._UZ(1,"mat-icon",17),i.TgZ(2,"span",8),i._uU(3,"Profile"),i.qZA(),i.qZA()}if(2&t){const t=i.oxw(2);i.Q6J("routerLink",t.profileUrl)}}function b(t,e){if(1&t&&(i.TgZ(0,"a",20),i._UZ(1,"mat-icon",21),i.TgZ(2,"span",8),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 v(t,e){if(1&t&&(i.ynx(0),i.YNc(1,b,4,3,"a",19),i.BQk()),2&t){const t=e.$implicit,n=i.oxw(3);i.xp6(1),i.Q6J("ngIf",n.shouldShowMenuItem(t))}}function y(t,e){if(1&t&&(i.ynx(0),i.YNc(1,v,2,1,"ng-container",18),i.BQk()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngForOf",t.config.get("vebto.navbar.dropdownItems"))}}function w(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"a",22),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).onItemClick()}),i._UZ(2,"mat-icon",23),i.TgZ(3,"span",8),i._uU(4,"Subscription"),i.qZA(),i.qZA(),i.TgZ(5,"a",24),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).onItemClick()}),i._UZ(6,"mat-icon",25),i.TgZ(7,"span",8),i._uU(8,"Invoices"),i.qZA(),i.qZA(),i.BQk()}}function x(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",28),i.TgZ(2,"span",8),i._uU(3,"Light Mode"),i.qZA(),i.BQk())}function C(t,e){1&t&&(i._UZ(0,"mat-icon",29),i.TgZ(1,"span",8),i._uU(2,"Dark Mode"),i.qZA())}function k(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",26),i.NdJ("click",function(){i.CHM(t);const e=i.oxw(2);return e.theme.toggle(),e.onItemClick()}),i.YNc(1,x,4,0,"ng-container",0),i.ALo(2,"async"),i.YNc(3,C,3,0,"ng-template",null,27,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 S(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.YNc(4,_,4,1,"a",4),i.Hsn(5),i.YNc(6,y,2,1,"ng-container",5),i.TgZ(7,"a",6),i.NdJ("click",function(){return i.CHM(t),i.oxw().onItemClick()}),i._UZ(8,"mat-icon",7),i.TgZ(9,"span",8),i._uU(10,"Account Settings"),i.qZA(),i.qZA(),i.YNc(11,w,9,0,"ng-container",5),i.YNc(12,k,5,4,"div",9),i.TgZ(13,"div",10),i.NdJ("click",function(){i.CHM(t);const e=i.oxw();return e.auth.logOut(),e.onItemClick()}),i._UZ(14,"mat-icon",11),i.TgZ(15,"span",8),i._uU(16,"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,6,t.breakpoints.isMobile$)&&t.config.get("notifications.integrated")),i.xp6(2),i.Q6J("ngIf",t.profileUrl),i.xp6(2),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 E(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",32),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",30),i.NdJ("click",function(){return i.CHM(t),i.oxw().onItemClick()}),i._uU(1,"Login"),i.qZA(),i.YNc(2,E,2,0,"a",31)}if(2&t){const t=i.oxw();i.xp6(2),i.Q6J("ngIf",!t.config.get("registration.disable")&&!t.hideRegisterButton)}}const T=["*"];let O=(()=>{class t{constructor(t,e,n,r,s,o,a){this.currentUser=t,this.auth=e,this.config=n,this.breakpoints=r,this.theme=s,this.settings=o,this.url=a,this.hideRegisterButton=!1,this.hideConfigItems=!1,this.forceNotifButton=!1,this.itemClicked=new i.vpe,"function"==typeof this.url.user&&(this.profileUrl=this.url.user(this.currentUser.getModel()))}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(r.I),i.Y36(s.e),i.Y36(o.Z),i.Y36(a.S),i.Y36(c.f),i.Y36(o.Z),i.Y36(l.o))},t.\u0275cmp=i.Xpm({type:t,selectors:[["logged-in-user-menu"]],inputs:{hideRegisterButton:"hideRegisterButton",hideConfigItems:"hideConfigItems",forceNotifButton:"forceNotifButton"},outputs:{itemClicked:"itemClicked"},ngContentSelectors:T,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"],["mat-menu-item","",3,"routerLink","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"],["mat-menu-item","",3,"routerLink","click"],["svgIcon","account-circle"],[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,S,17,8,"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:[u.O5,h.yS,d.OP,p.Hw,f.P,u.sg],pipes:[u.Ov],styles:[""],changeDetection:0}),t})()},70837:function(t,e,n){"use strict";n.d(e,{e:function(){return H}});var i=n(37716),r=n(26215),s=n(90739),o=n(88002),a=n(34673),c=n(24688),l=n(96605),u=n(84430),h=n(38583),d=n(63423),p=n(51095),f=n(76627),g=n(33935),m=n(14434),_=n(757),b=n(15515);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(c.I),i.Y36(a.Z),i.Y36(l.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,g.p6,f.Hw,p.lW,g.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;-o-object-fit:cover;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(75978),k=n(8853),S=n(17238);const E=(0,S.X$)("bellAnimation",[(0,S.eR)("* => true",[(0,S.jt)("1000ms 0ms",(0,S.F4)([(0,S.oB)({visibility:S.l3,transform:"scale3d(1, 1, 1)",easing:"ease",offset:0}),(0,S.oB)({transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)",easing:"ease",offset:.1}),(0,S.oB)({transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)",easing:"ease",offset:.2}),(0,S.oB)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)",easing:"ease",offset:.3}),(0,S.oB)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)",easing:"ease",offset:.4}),(0,S.oB)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)",easing:"ease",offset:.5}),(0,S.oB)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)",easing:"ease",offset:.6}),(0,S.oB)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)",easing:"ease",offset:.7}),(0,S.oB)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)",easing:"ease",offset:.8}),(0,S.oB)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)",easing:"ease",offset:.9}),(0,S.oB)({transform:"scale3d(1, 1, 1)",easing:"ease",offset:1})]))])]);var A=n(87519),T=n(13653),O=n(7964),D=n(99665),I=n(70346);const P=["notifButton"];let F=(()=>{class t{constructor(t,e){this.overlay=t,this.notifications=e,this.animationTrigger$=new r.X(!1)}ngOnInit(){this.notifications.unreadCount$.pipe((0,A.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(D.g))},t.\u0275cmp=i.Xpm({type:t,selectors:[["notification-button"]],viewQuery:function(t,e){if(1&t&&i.Gf(P,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,f.Hw,I.k],pipes:[h.Ov],styles:[".mat-icon[_ngcontent-%COMP%]{-webkit-backface-visibility:hidden;backface-visibility:hidden}"],data:{animation:[E]},changeDetection:0}),t})();var R=n(63297);function M(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 L(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 N(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 Z(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 B(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 U(t,e){1&t&&i._UZ(0,"notification-button")}function z(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 q(t,e){if(1&t&&(i.ynx(0),i.YNc(1,z,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 Y(t,e){if(1&t&&(i.TgZ(0,"div",18),i.Hsn(1,1),i.YNc(2,U,1,0,"notification-button",4),i.ALo(3,"async"),i.YNc(4,q,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 $=["*",[["","rightContent",""]]],V=["*","[rightContent]"];let H=(()=>{class t{constructor(t,e,n,a,c){this.config=t,this.currentUser=e,this.breakpoints=n,this.el=a,this.themes=c,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 r.X(!1),this.mobileOrTablet$=(0,s.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(c.I),i.Y36(l.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($),i.TgZ(0,"div",0),i.YNc(1,M,3,4,"a",1),i.YNc(2,L,3,1,"a",2),i.YNc(3,N,2,0,"button",3),i.Hsn(4),i.YNc(5,Z,6,3,"ng-container",4),i.ALo(6,"async"),i.YNc(7,B,1,4,"custom-menu",5),i.ALo(8,"async"),i.YNc(9,Y,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,f.Hw,g.p6,g.VK,m.K,x,F],pipes:[h.Ov,R.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 rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}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::-moz-placeholder,material-navbar.accent .nav-searchbar:focus-within::-moz-placeholder,material-navbar.primary .nav-searchbar.always-white::-moz-placeholder,material-navbar.primary .nav-searchbar:focus-within::-moz-placeholder{color:var(--be-text)}material-navbar.accent .nav-searchbar.always-white:-ms-input-placeholder,material-navbar.accent .nav-searchbar:focus-within:-ms-input-placeholder,material-navbar.primary .nav-searchbar.always-white:-ms-input-placeholder,material-navbar.primary .nav-searchbar:focus-within:-ms-input-placeholder{color:var(--be-text)}material-navbar.accent .nav-searchbar.always-white::placeholder,material-navbar.accent .nav-searchbar:focus-within::placeholder,material-navbar.primary .nav-searchbar.always-white::placeholder,material-navbar.primary .nav-searchbar:focus-within::placeholder{color:var(--be-text)}material-navbar.accent .nav-searchbar.always-white+.mat-icon-button,material-navbar.accent .nav-searchbar:focus-within+.mat-icon-button,material-navbar.primary .nav-searchbar.always-white+.mat-icon-button,material-navbar.primary .nav-searchbar:focus-within+.mat-icon-button{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;transition:none}material-navbar.accent .nav-searchbar .nav-searchbar-input::-moz-placeholder,material-navbar.primary .nav-searchbar .nav-searchbar-input::-moz-placeholder{color:currentColor}material-navbar.accent .nav-searchbar .nav-searchbar-input:-ms-input-placeholder,material-navbar.primary .nav-searchbar .nav-searchbar-input:-ms-input-placeholder{color:currentColor}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:rgba(0,0,0,.87)}@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:transparent}"],encapsulation:2,changeDetection:0}),t})()},18295:function(t,e,n){"use strict";n.d(e,{l:function(){return d}});var i=n(38583),r=n(63423),s=n(51095),o=n(76627),a=n(33935),c=n(4581),l=n(40744),u=n(49866),h=n(37716);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,r.Bz,o.Ps,s.ot,a.Tx,c.N,u.N,l.m],c.N]}),t})()},76403:function(t,e,n){"use strict";n.d(e,{U:function(){return d}});var i=n(37716),r=n(34673),s=n(38583),o=n(76627),a=n(2861);function c(t,e){if(1&t&&i._UZ(0,"mat-icon",5),2&t){const t=i.oxw();i.Q6J("svgIcon",t.svgIcon)}}function l(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(r.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,c,1,1,"mat-icon",0),i.YNc(1,l,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:[s.O5,o.Hw,a.L],styles:[""],changeDetection:0}),t})()},95217:function(t,e,n){"use strict";n.d(e,{u:function(){return a}});var i=n(38583),r=n(85218),s=n(76627),o=n(37716);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,r.a,s.Ps]]}),t})()},72100:function(t,e,n){"use strict";n.d(e,{p:function(){return i}});const i=new(n(37716).OlP)("OVERLAY_PANEL_DATA")},67310:function(t,e,n){"use strict";n.d(e,{L:function(){return c}});var i=n(26215),r=n(13653),s=n(15257),o=n(88002),a=n(58480);class c{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,r.T)(1))}getPanelEl(){return this.overlayRef.overlayElement}updatePosition(){return this.overlayRef.updatePosition()}afterClosed(){return this.overlayRef.detachments().pipe((0,s.q)(1),(0,o.U)(()=>this.value.value))}afterOpened(){return this.overlayRef.attachments().pipe((0,s.q)(1))}}},7964:function(t,e,n){"use strict";n.d(e,{T:function(){return p}});var i=n(37716),r=n(87636),s=n(67310),o=n(72100);class a{attach(){}enable(){document.documentElement.classList.add("be-fullscreen-overlay-scrollblock")}disable(){document.documentElement.classList.remove("be-fullscreen-overlay-scrollblock")}}var c=n(45435),l=n(36461),u=n(90625),h=n(96605);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 s.L(a),h=t instanceof i.Rgc?new r.UE(t,n.viewContainerRef,n.data):new r.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,c.h)(t=>t.keyCode===l.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(s.L,e),n.set(o.p,t.data||null),new r.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})()},75978:function(t,e,n){"use strict";n.d(e,{x:function(){return i}});const i=[{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top"},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom"}]},2861:function(t,e,n){"use strict";n.d(e,{L:function(){return f}});var i=n(15257),r=n(37716),s=n(88002),o=n(93342),a=n(68939),c=n(18819),l=n(25917),u=n(38583),h=n(91841);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,l.of)(p(this.cache.get(e))):this.fetchIcon(e).pipe((0,s.U)(t=>this.svgElementFromString(t,e)),(0,o.b)(t=>this.cache.set(e,t)),(0,s.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,c.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)(r.LFG(h.eN),r.LFG(u.K0,8))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function p(t){return t.cloneNode(!0)}let f=(()=>{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)(r.Y36(d),r.Y36(r.SBq))},t.\u0275cmp=r.Xpm({type:t,selectors:[["svg-image"]],hostAttrs:["role","img"],inputs:{name:"name"},features:[r.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})()},85218:function(t,e,n){"use strict";n.d(e,{a:function(){return s}});var i=n(38583),r=n(37716);let s=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[i.ez]]}),t})()},35718:function(t,e,n){"use strict";n.d(e,{D:function(){return a},F:function(){return c}});var i=n(37716),r=n(34673),s=n(19244),o=n(77001);const a=15e3;let c=(()=>{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(r.Z),i.LFG(s.Z),i.LFG(o.ux))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},16850:function(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:function(){return i}})},24890:function(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:function(){return i}})},35402:function(t,e,n){"use strict";n.d(e,{j:function(){return s}});var i=n(24890),r=n(37716);let s=(()=>{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,r)=>{const s=(0,i.s)(t)?t:"client/assets/"+t,o=e.id||t.split("/").pop();"css"===e.type?this.loadStyleAsset(s,o,n):this.loadScriptAsset(s,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 r=document.createElement("script");r.async=!0,r.id=e||t.split("/").pop(),r.src=t,r.onload=()=>{this.loadedAssets[t]="loaded",n()},(i||document.body).appendChild(r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},1796:function(t,e,n){"use strict";n.d(e,{H:function(){return r}});var i=n(80568);function r(t,e){if(isNaN(parseFloat(String(t)))||!isFinite(t))return null;let n=0;for(;t>=1024;)t/=1024,n++;let r=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}}(r)),"bytes"===r&&t<2&&(r="byte"),parseFloat(t.toFixed(+e).toString()).toString()+" "+r}},58480:function(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:function(){return i}})},6966:function(t,e,n){"use strict";n.d(e,{V:function(){return s}});var i=n(23811),r=n.n(i);function s(t,e="-",n=!1){if(!t)return t;let i=r()(t,{lower:!0,replacement:e,strict:n,remove:/[*+~.()'"!:@?\|/]/g});return i||(i=t.replace(/\s+/g,"-").toLowerCase()),i}},35566:function(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:function(){return i}})},80568:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});const i=["bytes","KB","MB","GB","TB","PB"]},13913:function(t,e,n){"use strict";function i(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""}n.d(e,{z:function(){return i}})},21023:function(t,e,n){"use strict";n.d(e,{M:function(){return c}});var i=n(76627),r=n(51095),s=n(22238),o=n(49866),a=n(37716);let c=(()=>{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,r.ot,s.Is]]}),t})()},42690:function(t,e,n){"use strict";n.d(e,{a:function(){return o}});var i=n(37716),r=n(24688),s=n(63423);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(r.I),i.LFG(s.F0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},20765:function(t,e,n){"use strict";n.d(e,{d:function(){return c}});var i=n(37716),r=n(24688),s=n(63423),o=n(8805),a=n(34673);let c=(()=>{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(r.I),i.LFG(s.F0),i.LFG(o.e),i.LFG(a.Z))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},40744:function(t,e,n){"use strict";n.d(e,{m:function(){return m}});var i=n(38583),r=n(31682),s=n(68285),o=n(70346),a=n(51095),c=n(76627),l=n(12178),u=n(43389),h=n(49866),d=n(63423),p=n(8853),f=n(37716),g=n(15515);let m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=f.oAB({type:t}),t.\u0275inj=f.cJS({imports:[[i.ez,d.Bz,s.T,c.Ps,a.ot,o.g,u.p,h.N,l.Cv]]}),t})();f.B6R(p.w,[g.P,i.O5,a.lW,l.pW,r.Z,d.yS,c.Hw],[i.Ov])},8853:function(t,e,n){"use strict";n.d(e,{w:function(){return p}});var i=n(22238),r=n(37716),s=n(99665),o=n(34673),a=n(67310),c=n(24688);function l(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",9),r.NdJ("click",function(){return r.CHM(t),r.oxw().markAllAsRead()}),r._uU(1,"Mark all as read "),r.qZA()}}function u(t,e){1&t&&r._UZ(0,"mat-progress-bar",10)}function h(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"a",11),r.NdJ("click",function(){return r.CHM(t),r.oxw().closePanel()}),r.TgZ(1,"span",2),r._uU(2,"View all"),r.qZA(),r._UZ(3,"mat-icon",12),r.qZA()}}function d(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"a",13),r.NdJ("click",function(){return r.CHM(t),r.oxw().closePanel()}),r.TgZ(1,"span",2),r._uU(2,"Settings"),r.qZA(),r._UZ(3,"mat-icon",14),r.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)(r.Y36(s.g),r.Y36(o.Z),r.Y36(a.L),r.Y36(c.I))},t.\u0275cmp=r.Xpm({type:t,selectors:[["notification-panel"]],hostAttrs:[1,"material-panel"],hostVars:1,hostBindings:function(t,e){2&t&&r.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&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"h2",2),r._uU(3,"Notifications"),r.qZA(),r.YNc(4,l,2,0,"button",3),r.ALo(5,"async"),r.qZA(),r.YNc(6,u,1,0,"mat-progress-bar",4),r.ALo(7,"async"),r._UZ(8,"notification-list",5),r.ALo(9,"async"),r.TgZ(10,"div",6),r.YNc(11,h,4,0,"a",7),r.ALo(12,"async"),r.YNc(13,d,4,0,"a",8),r.ALo(14,"async"),r.qZA(),r.qZA()),2&t){let t;r.xp6(4),r.Q6J("ngIf",r.lcZ(5,6,e.notifications.unreadCount$)),r.xp6(2),r.Q6J("ngIf",r.lcZ(7,8,e.notifications.loading$)),r.xp6(2),r.Q6J("notifications",r.lcZ(9,10,e.notifications.all$))("compact",!0),r.xp6(3),r.Q6J("ngIf",r.lcZ(12,12,e.notifications.canLoadMore)),r.xp6(2),r.Q6J("ngIf",e.settings.get("notif.subs.integrated")&&e.currentUser.hasPermission("notification.subscribe")&&(null==(t=r.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})()},99665:function(t,e,n){"use strict";n.d(e,{g:function(){return d}});var i=n(26215),r=n(79765),s=n(45435),o=n(15257),a=n(93342),c=n(68939),l=n(37716),u=n(90299),h=n(24688);let d=(()=>{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 r.xQ,this.currentUser.model$.pipe((0,s.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("notifications/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("notifications",t).pipe((0,c.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(`notifications/${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)(l.LFG(u.r),l.LFG(h.I))},t.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},31682:function(t,e,n){"use strict";n.d(e,{Z:function(){return k}});var i=n(37716),r=n(24890),s=n(34673),o=n(63423),a=n(99665),c=n(24688),l=n(67310),u=n(38583),h=n(76627),d=n(15515),p=n(66452),f=n(51095);function g(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 m(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,g,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,r=i.oxw().$implicit;return i.oxw().performAction(n.action,r,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,r=i.oxw();i.xp6(1),i.Q6J("ngIf",(null==r.notifications[n-1]?null:r.notifications[n-1].time_period)!==t.time_period),i.xp6(1),i.ekj("compact",r.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",!r.compact)}}let k=(()=>{class t{constructor(t,e,n,r,s,o){this.settings=t,this.zone=e,this.router=n,this.api=r,this.currentUser=s,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,r.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(s.Z),i.Y36(i.R0b),i.Y36(o.F0),i.Y36(a.g),i.Y36(c.I),i.Y36(l.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,m,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,f.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})()},22470:function(t,e,n){"use strict";n.d(e,{Y:function(){return l}});var i=n(77157),r=n(55809),s=n(37716),o=n(63423),a=n(34673),c=n(24688);let l=(()=>{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,r=i.findIndex(t=>""===t.path);r>-1?(this.originalRoute=this.originalRoute||i[r],i[r]=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=${r.B}`)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(o.F0),s.LFG(a.Z),s.LFG(c.I))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},77157:function(t,e,n){"use strict";n.d(e,{y:function(){return g}});var i=n(26215),r=n(64278),s=(n(1011),n(27119),n(71209),n(98556),n(14714),n(45435)),o=n(71289),a=n(37716),c=n(76251),l=n(63423),u=n(39075),h=n(34673),d=n(38583),p=n(70837);function f(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 g=(()=>{class t{constructor(t,e,n,r,s){this.pages=t,this.route=e,this.sanitizer=n,this.router=r,this.settings=s,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,s.h)(t=>!!t),(0,o.g)(0)).subscribe(()=>{r.highlightAll()}))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(c.i),a.Y36(l.gz),a.Y36(u.H7),a.Y36(l.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,f,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})()},76251:function(t,e,n){"use strict";n.d(e,{i:function(){return s}});var i=n(37716),r=n(99981);let s=(()=>{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(r.F))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},55809:function(t,e,n){"use strict";n.d(e,{B:function(){return l},f:function(){return u}});var i=n(95347),r=n(45435),s=n(37716),o=n(35718),a=n(63423),c=n(34673);const l="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=${l}`),this.active&&(this.listenForMessages(),this.blockNotAllowedRoutes(),this.createDomNodes(),window.parent.postMessage(l,"*"))}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 r=i.getBoundingClientRect();r.height&&(i.scrollIntoView({block:"center",inline:"center",behavior:"smooth"}),n.style.width=r.width+"px",n.style.height=r.height+"px",n.style.top=document.documentElement.scrollTop+r.top+"px",n.style.left=r.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 r=n.querySelector("#be-custom-css");return r||(r=document.createElement(i),r.id="be-custom-css",n.appendChild(r)),r.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,r.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)(s.LFG(o.F),s.LFG(a.F0),s.LFG(c.Z))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},95347:function(t,e,n){"use strict";n.d(e,{R:function(){return 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))()},80708:function(t,e,n){"use strict";n.d(e,{t:function(){return s}});var i=n(37716),r=n(90299);let s=(()=>{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(r.r))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},53534:function(t,e,n){"use strict";n.d(e,{j:function(){return i}});var i=(()=>(function(t){t.image="image/*",t.audio="audio/*",t.video="video/mp4,video/mpeg,video/x-m4v,video/*"}(i||(i={})),i))()},83106:function(t,e,n){"use strict";function i(t){return/(?:\.([^.]+))?$/.exec(t)[1]}n.d(e,{D:function(){return r}});class r{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)})}}},97312:function(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=""),r(n,t,i)}),r(n,"file",t),n}function r(t,e,n){t.set?t.set(e,n):t.append(e,n)}n.d(e,{f:function(){return w}});var s=n(66421),o=n(88002),a=n(37716),c=n(90299),l=n(25917),u=n(94402),h=n(43190),d=n(19773),p=n(93342),f=n(45435),g=n(39761),m=n(91841),_=n(20551),b=n(6966),v=n(34673);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 r=i;return e.fileEntry?(0,l.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===m.dt.UploadProgress){e.initiallyLoaded=i,e.total=t.size;const s=e.loaded-n;n=e.loaded,e.loaded=r+=s,e.loaded>e.total&&(e.loaded=e.total-1)}return e}))},3),(0,o.U)(t=>(0,s.M)(t,n)),(0,p.b)(t=>{t.name===s.b.COMPLETED&&this.uploadedChunksCount++}),(0,f.h)(t=>t.name===s.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,l.of)(this.transformUploadSessionResponse(t.body)):this.fetchUploadSession().pipe((0,o.U)(t=>this.transformUploadSessionResponse(t))):(0,l.of)(t)}),(0,g.O)(this.getInitialUploadProgressEvent()))}))}getInitialUploadProgressEvent(){const t=this.uploadedChunksCount*this.sliceSize;return{type:m.dt.UploadProgress,name:s.b.PROGRESS,totalBytes:this.file.size,completedBytes:t,progress:(0,_.q)(t,this.file.size),speed:null,eta:null}}isLastChunkCompletedEvent(t){return t.name===s.b.COMPLETED&&this.uploadedChunksCount===this.totalChunks}transformUploadSessionResponse(t){return{type:m.dt.Response,name:s.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,l.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,r=Object.assign(Object.assign({},this.httParams),{_chunkStart:n,_chunkEnd:t,_chunkNumber:e});this.chunks.push(i(this.file.native.slice(n,t),r))}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(c.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 r=Date.now();return this.http.postWithProgress(n.uri||t.BASE_URI,i(e.native,n.httpParams)).pipe((0,o.U)(t=>(0,s.M)(t,r)))}}}return t.BASE_URI="uploads",t.\u0275fac=function(e){return new(e||t)(a.LFG(c.r),a.LFG(y),a.LFG(v.Z))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},20551:function(t,e,n){"use strict";function i(t,e){return Math.floor(100*t/e)}n.d(e,{q:function(){return i}})},41880:function(t,e,n){"use strict";n.d(e,{r:function(){return r}});var i=n(83106);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 r=Array.from(t.target.files).map(t=>new i.D(t));e(r),n.remove()},document.body.appendChild(n),n.click()})}},66421:function(t,e,n){"use strict";n.d(e,{b:function(){return l},M:function(){return u}});var i=n(91841),r=n(20551);function s(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=s(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 ":"",r=e.hours?("0"+e.minutes).substr(-2):e.minutes;return`${i}${r?r+"m ":""}${(r?("0"+e.seconds).substr(-2):e.seconds)+"s"}`}var c=n(1796),l=(()=>(function(t){t.STARTED="uploadStarted",t.PROGRESS="uploadProgress",t.COMPLETED="uploadCompleted",t.OTHER="unrecognizedEvent"}(l||(l={})),l))();function u(t,e){switch(t.type){case i.dt.Sent:return{type:t.type,name:l.STARTED,time:e};case i.dt.UploadProgress:return{type:t.type,name:l.PROGRESS,totalBytes:t.total,completedBytes:t.loaded,progress:(0,r.q)(t.loaded,t.total),speed:(0,c.H)(s(t,e)),eta:a(o(t,e))};case i.dt.Response:return{type:t.type,name:l.COMPLETED,body:t.body};default:return null}}},18715:function(t,e,n){"use strict";n.d(e,{c:function(){return a}});var i=n(37716),r=n(34673),s=n(35718),o=n(19244);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(r.Z),i.LFG(s.F),i.LFG(o.Z))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},68756:function(t,e,n){"use strict";n.d(e,{p:function(){return s}});var i=n(26232),r=n(1796);class s 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,r.H)(+this.params.maxSize)})}fails(t){return this.params.maxSize<t.size}}},82655:function(t,e,n){"use strict";n.d(e,{p:function(){return r}});var i=n(26232);class r 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(", "))})}}},26232:function(t,e,n){"use strict";n.d(e,{y:function(){return i}});class i{passes(t){return!this.fails(t)}}},87411:function(t,e,n){"use strict";var i=n(39075),r=n(37716),s=n(63423),o=n(45435);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={mimeType:e.mimeType||null,onBeforeSend:e.onBeforeSend||Function.prototype,onSuccess:e.onSuccess||Function.prototype,onError:e.onError||Function.prototype,onComplete:e.onComplete||Function.prototype},i=Array.isArray(t)?t:[t],r=Array.apply(null,Array(i.length)).map(function(t){return null});function s(t){var e="string"==typeof t,n=e&&"<"===t.trim().charAt(0);return e&&!n}function o(t,e){n.onError(t,i[e],e)}function a(t,e){var s=n.onSuccess(t,i[e],e);r[e]=t=!1===s?"":s||t,-1===r.indexOf(null)&&n.onComplete(r)}var c=document.createElement("a");i.forEach(function(t,e){if(c.setAttribute("href",t),c.href=String(c.href),Boolean(document.all&&!window.atob)&&c.host.split(":")[0]!==location.host.split(":")[0])if(c.protocol===location.protocol){var i=new XDomainRequest;i.open("GET",t),i.timeout=0,i.onprogress=Function.prototype,i.ontimeout=Function.prototype,i.onload=function(){var t=i.responseText;s(t)?a(t,e):o(i,e)},i.onerror=function(t){o(i,e)},setTimeout(function(){i.send()},0)}else console.warn("Internet Explorer 9 Cross-Origin (CORS) requests must use the same protocol (".concat(t,")")),o(null,e);else{var r=new XMLHttpRequest;r.open("GET",t),n.mimeType&&r.overrideMimeType&&r.overrideMimeType(n.mimeType),n.onBeforeSend(r,t,e),r.onreadystatechange=function(){if(4===r.readyState){var t=r.responseText;r.status<400&&s(t)||0===r.status&&s(t)?a(t,e):o(r,e)}},r.send()}})}function l(t){var e=/\/\*[\s\S]+?\*\//g,n=/(?:@import\s*)(?:url\(\s*)?(?:['"])([^'"]*)(?:['"])(?:\s*\))?(?:[^;]*;)/g,i={rootElement:t.rootElement||document,include:t.include||'style,link[rel="stylesheet"]',exclude:t.exclude||null,filter:t.filter||null,skipDisabled:!1!==t.skipDisabled,useCSSOM:t.useCSSOM||!1,onBeforeSend:t.onBeforeSend||Function.prototype,onSuccess:t.onSuccess||Function.prototype,onError:t.onError||Function.prototype,onComplete:t.onComplete||Function.prototype},r=Array.apply(null,i.rootElement.querySelectorAll(i.include)).filter(function(t){return!((e=t).matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector).call(e,i.exclude);var e}),s=Array.apply(null,Array(r.length)).map(function(t){return null});function o(){if(-1===s.indexOf(null)){s.reduce(function(t,e,n){return""===e&&t.push(n),t},[]).reverse().forEach(function(t){return[r,s].forEach(function(e){return e.splice(t,1)})});var t=s.join("");i.onComplete(t,s,r)}}function a(t,e,n,r){var a=i.onSuccess(t,n,r);h(t=void 0!==a&&!1===Boolean(a)?"":a||t,n,r,function(t,r){null===s[e]&&(r.forEach(function(t){return i.onError(t.xhr,n,t.url)}),s[e]=!i.filter||i.filter.test(t)?t:"",o())})}function l(t,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s={};return s.rules=(t.replace(e,"").match(n)||[]).filter(function(t){return-1===r.indexOf(t)}),s.urls=s.rules.map(function(t){return t.replace(n,"$1")}),s.absoluteUrls=s.urls.map(function(t){return u(t,i)}),s.absoluteRules=s.rules.map(function(t,e){var n=s.urls[e],r=u(s.absoluteUrls[e],i);return t.replace(n,r)}),s}function h(t,e,n,r){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=l(t,n,o);a.rules.length?c(a.absoluteUrls,{onBeforeSend:function(t,n,r){i.onBeforeSend(t,e,n)},onSuccess:function(t,n,r){var s=i.onSuccess(t,e,n),a=l(t=!1===s?"":s||t,n,o);return a.rules.forEach(function(e,n){t=t.replace(e,a.absoluteRules[n])}),t},onError:function(i,c,l){s.push({xhr:i,url:c}),o.push(a.rules[l]),h(t,e,n,r,s,o)},onComplete:function(i){i.forEach(function(e,n){t=t.replace(a.rules[n],e)}),h(t,e,n,r,s,o)}}):r(t,s)}r.length?r.forEach(function(t,e){var n=t.getAttribute("href"),r=t.getAttribute("rel"),l="link"===t.nodeName.toLowerCase()&&n&&r&&-1!==r.toLowerCase().indexOf("stylesheet"),h=!1!==i.skipDisabled&&t.disabled,d="style"===t.nodeName.toLowerCase();if(l&&!h)c(n,{mimeType:"text/css",onBeforeSend:function(e,n,r){i.onBeforeSend(e,t,n)},onSuccess:function(i,r,s){var o=u(n);a(i,e,t,o)},onError:function(n,r,a){s[e]="",i.onError(n,t,r),o()}});else if(d&&!h){var p=t.textContent;i.useCSSOM&&(p=Array.apply(null,t.sheet.cssRules).map(function(t){return t.cssText}).join("")),a(p,e,t,location.href)}else s[e]="",o()}):i.onComplete("",[])}function u(t,e){var n=document.implementation.createHTMLDocument(""),i=n.createElement("base"),r=n.createElement("a");return n.head.appendChild(i),n.body.appendChild(r),i.href=e||document.baseURI||(document.querySelector("base")||{}).href||location.href,r.href=t,r.href}var h=d;function d(t,e,n){t instanceof RegExp&&(t=p(t,n)),e instanceof RegExp&&(e=p(e,n));var i=f(t,e,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+t.length,i[1]),post:n.slice(i[1]+e.length)}}function p(t,e){var n=e.match(t);return n?n[0]:null}function f(t,e,n){var i,r,s,o,a,c=n.indexOf(t),l=n.indexOf(e,c+1),u=c;if(c>=0&&l>0){if(t===e)return[c,l];for(i=[],s=n.length;u>=0&&!a;)u==c?(i.push(u),c=n.indexOf(t,u+1)):1==i.length?a=[i.pop(),l]:((r=i.pop())<s&&(s=r,o=l),l=n.indexOf(e,u+1)),u=c<l&&c>=0?c:l;i.length&&(a=[s,o])}return a}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={preserveStatic:!0,removeComments:!1},i=a({},n,e),r=[];function s(t){throw new Error("CSS parse error: ".concat(t))}function o(e){var n=e.exec(t);if(n)return t=t.slice(n[0].length),n}function c(){return o(/^{\s*/)}function l(){return o(/^}/)}function u(){o(/^\s*/)}function d(){if(u(),"/"===t[0]&&"*"===t[1]){for(var e=2;t[e]&&("*"!==t[e]||"/"!==t[e+1]);)e++;if(!t[e])return s("end of comment is missing");var n=t.slice(2,e);return t=t.slice(e+2),{type:"comment",comment:n}}}function p(){for(var t,e=[];t=d();)e.push(t);return i.removeComments?[]:e}function f(){for(u();"}"===t[0];)s("extra closing bracket");var e=o(/^(("(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^{])+)/);if(e)return e[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(t){return t.replace(/,/g,"\u200c")}).split(/\s*(?![^(]*\)),\s*/).map(function(t){return t.replace(/\u200C/g,",")})}function g(){if("@"===t[0])return T();o(/^([;\s]*)+/);var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=o(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(n){if(n=n[0].trim(),!o(/^:\s*/))return s("property missing ':'");var i=o(/^((?:\/\*.*?\*\/|'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((\s*'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)]*?)\s*\)|[^};])+)/),r={type:"declaration",property:n.replace(e,""),value:i?i[0].replace(e,"").trim():""};return o(/^[;\s]*/),r}}function m(){if(!c())return s("missing '{'");for(var t,e=p();t=g();)e.push(t),e=e.concat(p());return l()?e:s("missing '}'")}function _(){u();for(var t,e=[];t=o(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)e.push(t[1]),o(/^,\s*/);if(e.length)return{type:"keyframe",values:e,declarations:m()}}function b(){var t=o(/^@([-\w]+)?keyframes\s*/);if(t){var e=t[1];if(!(t=o(/^([-\w]+)\s*/)))return s("@keyframes missing name");var n,i=t[1];if(!c())return s("@keyframes missing '{'");for(var r=p();n=_();)r.push(n),r=r.concat(p());return l()?{type:"keyframes",name:i,vendor:e,keyframes:r}:s("@keyframes missing '}'")}}function v(){if(o(/^@page */))return{type:"page",selectors:f()||[],declarations:m()}}function y(){var t=o(/@(top|bottom|left|right)-(left|center|right|top|middle|bottom)-?(corner)?\s*/);if(t)return{type:"page-margin-box",name:"".concat(t[1],"-").concat(t[2])+(t[3]?"-".concat(t[3]):""),declarations:m()}}function w(){if(o(/^@font-face\s*/))return{type:"font-face",declarations:m()}}function x(){var t=o(/^@supports *([^{]+)/);if(t)return{type:"supports",supports:t[1].trim(),rules:D()}}function C(){if(o(/^@host\s*/))return{type:"host",rules:D()}}function k(){var t=o(/^@media([^{]+)*/);if(t)return{type:"media",media:(t[1]||"").trim(),rules:D()}}function S(){var t=o(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return{type:"custom-media",name:t[1].trim(),media:t[2].trim()}}function E(){var t=o(/^@([-\w]+)?document *([^{]+)/);if(t)return{type:"document",document:t[2].trim(),vendor:t[1]?t[1].trim():null,rules:D()}}function A(){var t=o(/^@(import|charset|namespace)\s*([^;]+);/);if(t)return{type:t[1],name:t[2].trim()}}function T(){if(u(),"@"===t[0]){var e=A()||w()||k()||b()||x()||E()||S()||C()||v()||y();return e&&!i.preserveStatic?(e.declarations?e.declarations.some(function(t){return/var\(/.test(t.value)}):(e.keyframes||e.rules||[]).some(function(t){return(t.declarations||[]).some(function(t){return/var\(/.test(t.value)})}))?e:{}:e}}function O(){if(!i.preserveStatic){var e=h("{","}",t);if(e){var n=/:(?:root|host)(?![.:#(])/.test(e.pre)&&/--\S*\s*:/.test(e.body),r=/var\(/.test(e.body);if(!n&&!r)return t=t.slice(e.end+1),{}}}var o=f()||[],a=i.preserveStatic?m():m().filter(function(t){var e=o.some(function(t){return/:(?:root|host)(?![.:#(])/.test(t)})&&/^--\S/.test(t.property),n=/var\(/.test(t.value);return e||n});return o.length||s("selector missing"),{type:"rule",selectors:o,declarations:a}}function D(e){if(!e&&!c())return s("missing '{'");for(var n,i=p();t.length&&(e||"}"!==t[0])&&(n=T()||O());)n.type&&i.push(n),i=i.concat(p());return e||l()?i:s("missing '}'")}return{type:"stylesheet",stylesheet:{rules:D(!0),errors:r}}}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={parseHost:!1,store:{},onWarning:function(){}},i=a({},n,e),r=new RegExp(":".concat(i.parseHost?"host":"root","$"));return"string"==typeof t&&(t=g(t,i)),t.stylesheet.rules.forEach(function(t){"rule"===t.type&&t.selectors.some(function(t){return r.test(t)})&&t.declarations.forEach(function(t,e){var n=t.property,r=t.value;n&&0===n.indexOf("--")&&(i.store[n]=r)})}),i.store}function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i={charset:function(t){return"@charset "+t.name+";"},comment:function(t){return 0===t.comment.indexOf("__CSSVARSPONYFILL")?"/*"+t.comment+"*/":""},"custom-media":function(t){return"@custom-media "+t.name+" "+t.media+";"},declaration:function(t){return t.property+":"+t.value+";"},document:function(t){return"@"+(t.vendor||"")+"document "+t.document+"{"+r(t.rules)+"}"},"font-face":function(t){return"@font-face{"+r(t.declarations)+"}"},host:function(t){return"@host{"+r(t.rules)+"}"},import:function(t){return"@import "+t.name+";"},keyframe:function(t){return t.values.join(",")+"{"+r(t.declarations)+"}"},keyframes:function(t){return"@"+(t.vendor||"")+"keyframes "+t.name+"{"+r(t.keyframes)+"}"},media:function(t){return"@media "+t.media+"{"+r(t.rules)+"}"},namespace:function(t){return"@namespace "+t.name+";"},page:function(t){return"@page "+(t.selectors.length?t.selectors.join(", "):"")+"{"+r(t.declarations)+"}"},"page-margin-box":function(t){return"@"+t.name+"{"+r(t.declarations)+"}"},rule:function(t){var e=t.declarations;if(e.length)return t.selectors.join(",")+"{"+r(e)+"}"},supports:function(t){return"@supports "+t.supports+"{"+r(t.rules)+"}"}};function r(t){for(var r="",s=0;s<t.length;s++){var o=t[s];n&&n(o);var a=i[o.type](o);a&&(r+=a,a.length&&o.selectors&&(r+=e))}return r}return r(t.stylesheet.rules)}function b(t,e){t.rules.forEach(function(n){n.rules?b(n,e):n.keyframes?n.keyframes.forEach(function(t){"keyframe"===t.type&&e(t.declarations,n)}):n.declarations&&e(n.declarations,t)})}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={preserveStatic:!0,preserveVars:!1,variables:{},onWarning:function(){}},i=a({},n,e);return"string"==typeof t&&(t=g(t,i)),b(t.stylesheet,function(t,e){for(var n=0;n<t.length;n++){var r=t[n],s=r.type,o=r.property,a=r.value;if("declaration"===s)if(i.preserveVars||!o||0!==o.indexOf("--")){if(-1!==a.indexOf("var(")){var c=w(a,i);c!==r.value&&(c=y(c),i.preserveVars?(t.splice(n,0,{type:s,property:o,value:c}),n++):r.value=c)}}else t.splice(n,1),n--}}),_(t)}function y(t){return(t.match(/calc\(([^)]+)\)/g)||[]).forEach(function(e){var n="calc".concat(e.split("calc").join(""));t=t.replace(e,n)}),t}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(-1===t.indexOf("var("))return t;var i=h("(",")",t);function r(t){var i=t.split(",")[0].replace(/[\s\n\t]/g,""),r=(t.match(/(?:\s*,\s*){1}(.*)?/)||[])[1],s=Object.prototype.hasOwnProperty.call(e.variables,i)?String(e.variables[i]):void 0,o=s||(r?String(r):void 0),a=n||t;return s||e.onWarning('variable "'.concat(i,'" is undefined')),o&&"undefined"!==o&&o.length>0?w(o,e,a):"var(".concat(a,")")}if(i){if("var"===i.pre.slice(-3)){var s=0===i.body.trim().length;return s?(e.onWarning("var() must contain a non-whitespace string"),t):i.pre.slice(0,-3)+r(i.body)+w(i.post,e)}return i.pre+"(".concat(w(i.body,e),")")+w(i.post,e)}return-1!==t.indexOf("var(")&&e.onWarning('missing closing ")" in the value "'.concat(t,'"')),t}d.range=f;var x="undefined"!=typeof window,C=x&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)"),k={group:0,job:0},S={rootElement:x?document:null,shadowDOM:!1,include:"style,link[rel=stylesheet]",exclude:"",variables:{},onlyLegacy:!0,preserveStatic:!0,preserveVars:!1,silent:!1,updateDOM:!0,updateURLs:!0,watch:null,onBeforeSend:function(){},onError:function(){},onWarning:function(){},onSuccess:function(){},onComplete:function(){},onFinally:function(){}},E={cssComments:/\/\*[\s\S]+?\*\//g,cssKeyframes:/@(?:-\w*-)?keyframes/,cssMediaQueries:/@media[^{]+\{([\s\S]+?})\s*}/g,cssUrls:/url\((?!['"]?(?:data|http|\/\/):)['"]?([^'")]*)['"]?\)/g,cssVarDeclRules:/(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^}]*})/g,cssVarDecls:/(?:[\s;]*)(-{2}\w[\w-]*)(?:\s*:\s*)([^;]*);/g,cssVarFunc:/var\(\s*--[\w-]/,cssVars:/(?:(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^;]*;*\s*)|(?:var\(\s*))(--[^:)]+)(?:\s*[:)])/},A={dom:{},job:{},user:{}},T=!1,O=null,D=0,I=null,P=!1;function F(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e="cssVars(): ",n=a({},S,t);function i(t,i,r,s){!n.silent&&window.console&&console.error("".concat(e).concat(t,"\n"),i),n.onError(t,i,r,s)}function r(t){!n.silent&&window.console&&console.warn("".concat(e).concat(t)),n.onWarning(t)}function s(t){n.onFinally(Boolean(t),C,U()-n.__benchmark)}if(x){if(n.watch)return n.watch=S.watch,R(n),void F(n);if(!1===n.watch&&O&&(O.disconnect(),O=null),!n.__benchmark){if(T===n.rootElement)return void M(t);var o=[].slice.call(n.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])'));if(n.__benchmark=U(),n.exclude=[O?'[data-cssvars]:not([data-cssvars=""])':'[data-cssvars="out"]',"link[disabled]:not([data-cssvars])",n.exclude].filter(function(t){return t}).join(","),n.variables=Z(n.variables),o.forEach(function(t){var e="style"===t.nodeName.toLowerCase()&&t.__cssVars.text;e&&e&&t.textContent!==t.__cssVars.text&&(t.sheet&&(t.sheet.disabled=!1),t.setAttribute("data-cssvars",""))}),!O){var c=[].slice.call(n.rootElement.querySelectorAll('[data-cssvars="out"]'));c.forEach(function(t){var e=t.getAttribute("data-cssvars-group");e&&n.rootElement.querySelector('[data-cssvars="src"][data-cssvars-group="'.concat(e,'"]'))||t.parentNode.removeChild(t)}),D&&o.length<D&&(D=o.length,A.dom={})}}if("loading"!==document.readyState)if(C&&n.onlyLegacy){var u=!1;if(n.updateDOM){var h=n.rootElement.host||(n.rootElement===document?document.documentElement:n.rootElement);Object.keys(n.variables).forEach(function(t){var e=n.variables[t];u=u||e!==getComputedStyle(h).getPropertyValue(t),h.style.setProperty(t,e)})}s(u)}else!P&&(n.shadowDOM||n.rootElement.shadowRoot||n.rootElement.host)?l({rootElement:S.rootElement,include:S.include,exclude:n.exclude,skipDisabled:!1,onSuccess:function(t,e,n){return!((e.sheet||{}).disabled&&!e.__cssVars)&&((t=((t=t.replace(E.cssComments,"").replace(E.cssMediaQueries,"")).match(E.cssVarDeclRules)||[]).join(""))||!1)},onComplete:function(t,e,i){m(t,{store:A.dom,onWarning:r}),P=!0,F(n)}}):(T=n.rootElement,l({rootElement:n.rootElement,include:n.include,exclude:n.exclude,skipDisabled:!1,onBeforeSend:n.onBeforeSend,onError:function(t,e,n){var r=t.responseURL||B(n,location.href),s=t.statusText?"(".concat(t.statusText,")"):"Unspecified Error"+(0===t.status?" (possibly CORS related)":"");i("CSS XHR Error: ".concat(r," ").concat(t.status," ").concat(s),e,t,r)},onSuccess:function(t,e,i){if((e.sheet||{}).disabled&&!e.__cssVars)return!1;var r="link"===e.nodeName.toLowerCase(),s="style"===e.nodeName.toLowerCase()&&t!==e.textContent,o=n.onSuccess(t,e,i);return t=void 0!==o&&!1===Boolean(o)?"":o||t,n.updateURLs&&(r||s)&&(t=N(t,i)),t},onComplete:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],c=a({},A.dom,A.user);if(A.job={},o.forEach(function(t,s){var o=e[s];if(t.__cssVars=t.__cssVars||{},t.__cssVars.text=o,E.cssVars.test(o))try{var a=g(o,{preserveStatic:n.preserveStatic,removeComments:!0});m(a,{parseHost:Boolean(n.rootElement.host),store:A.dom,onWarning:r}),t.__cssVars.tree=a}catch(c){i(c.message,t)}}),a(A.job,A.dom),n.updateDOM?(a(A.user,n.variables),a(A.job,A.user)):(a(A.job,A.user,n.variables),a(c,n.variables)),k.job>0&&Boolean(Object.keys(A.job).length>Object.keys(c).length||Boolean(Object.keys(c).length&&Object.keys(A.job).some(function(t){return A.job[t]!==c[t]}))))z(n.rootElement),F(n);else{var l=[],u=[],h=!1;if(n.updateDOM&&k.job++,o.forEach(function(t,s){var o=!t.__cssVars.tree;if(t.__cssVars.tree)try{v(t.__cssVars.tree,a({},n,{variables:A.job,onWarning:r}));var c=_(t.__cssVars.tree);if(n.updateDOM){var d=E.cssVarFunc.test(e[s]);if(t.getAttribute("data-cssvars")||t.setAttribute("data-cssvars","src"),c.length&&d){var p=t.getAttribute("data-cssvars-group")||++k.group,f=c.replace(/\s/g,""),g=n.rootElement.querySelector('[data-cssvars="out"][data-cssvars-group="'.concat(p,'"]'))||document.createElement("style");h=h||E.cssKeyframes.test(c),n.preserveStatic&&t.sheet&&(t.sheet.disabled=!0),g.hasAttribute("data-cssvars")||g.setAttribute("data-cssvars","out"),f===t.textContent.replace(/\s/g,"")?(o=!0,g&&g.parentNode&&(t.removeAttribute("data-cssvars-group"),g.parentNode.removeChild(g))):f!==g.textContent.replace(/\s/g,"")&&([t,g].forEach(function(t){t.setAttribute("data-cssvars-job",k.job),t.setAttribute("data-cssvars-group",p)}),g.textContent=c,l.push(c),u.push(g),g.parentNode||t.parentNode.insertBefore(g,t.nextSibling))}}else t.textContent.replace(/\s/g,"")!==c&&l.push(c)}catch(m){i(m.message,t)}o&&t.setAttribute("data-cssvars","skip"),t.hasAttribute("data-cssvars-job")||t.setAttribute("data-cssvars-job",k.job)}),D=n.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])').length,n.shadowDOM)for(var d,p=[].concat(n.rootElement).concat([].slice.call(n.rootElement.querySelectorAll("*"))),f=0;d=p[f];++f)if(d.shadowRoot&&d.shadowRoot.querySelector("style")){var b=a({},n,{rootElement:d.shadowRoot});F(b)}n.updateDOM&&h&&L(n.rootElement),T=!1,n.onComplete(l.join(""),u,JSON.parse(JSON.stringify(A.job)),U()-n.__benchmark),s(u.length)}}}));else document.addEventListener("DOMContentLoaded",function e(n){F(t),document.removeEventListener("DOMContentLoaded",e)})}}function R(t){function e(t){return n(t)&&t.hasAttribute("disabled")||(t.sheet||{}).disabled}function n(t){return"link"===t.nodeName.toLowerCase()&&-1!==(t.getAttribute("rel")||"").indexOf("stylesheet")}function i(t){return"style"===t.nodeName.toLowerCase()}window.MutationObserver&&(O&&(O.disconnect(),O=null),(O=new MutationObserver(function(r){r.some(function(r){return function(i){var r=!1;if("attributes"===i.type&&n(i.target)&&!e(i.target)){var s="disabled"===i.attributeName,o="href"===i.attributeName,a="skip"===i.target.getAttribute("data-cssvars"),c="src"===i.target.getAttribute("data-cssvars");s?r=!a&&!c:o&&(a?i.target.setAttribute("data-cssvars",""):c&&z(t.rootElement,!0),r=!0)}return r}(r)||function(t){var e=!1;if("childList"===t.type){var n=i(t.target),r="out"===t.target.getAttribute("data-cssvars");e=n&&!r}return e}(r)||function(t){var r=!1;return"childList"===t.type&&(r=[].slice.call(t.addedNodes).some(function(t){var r=1===t.nodeType&&t.hasAttribute("data-cssvars"),s=i(t)&&E.cssVars.test(t.textContent);return!r&&(n(t)||s)&&!e(t)})),r}(r)||function(e){var n=!1;return"childList"===e.type&&(n=[].slice.call(e.removedNodes).some(function(e){var n=1===e.nodeType,i=n&&"out"===e.getAttribute("data-cssvars"),r=n&&"src"===e.getAttribute("data-cssvars"),s=r;if(r||i){var o=e.getAttribute("data-cssvars-group"),a=t.rootElement.querySelector('[data-cssvars-group="'.concat(o,'"]'));r&&z(t.rootElement,!0),a&&a.parentNode.removeChild(a)}return s})),n}(r)})&&F(t)})).observe(document.documentElement,{attributes:!0,attributeFilter:["disabled","href"],childList:!0,subtree:!0}))}function M(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;clearTimeout(I),I=setTimeout(function(){t.__benchmark=null,F(t)},e)}function L(t){var e=["animation-name","-moz-animation-name","-webkit-animation-name"].filter(function(t){return getComputedStyle(document.body)[t]})[0];if(e){for(var n=t.getElementsByTagName("*"),i=[],r=0,s=n.length;r<s;r++){var o=n[r];"none"!==getComputedStyle(o)[e]&&(o.style[e]+="__CSSVARSPONYFILL-KEYFRAMES__",i.push(o))}document;for(var a=0,c=i.length;a<c;a++){var l=i[a].style;l[e]=l[e].replace("__CSSVARSPONYFILL-KEYFRAMES__","")}}}function N(t,e){return(t.replace(E.cssComments,"").match(E.cssUrls)||[]).forEach(function(n){var i=n.replace(E.cssUrls,"$1"),r=B(i,e);t=t.replace(n,n.replace(i,r))}),t}function Z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=/^-{2}/;return Object.keys(t).reduce(function(n,i){return n[e.test(i)?i:"--".concat(i.replace(/^-+/,""))]=t[i],n},{})}function B(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href,n=document.implementation.createHTMLDocument(""),i=n.createElement("base"),r=n.createElement("a");return n.head.appendChild(i),n.body.appendChild(r),i.href=e,r.href=t,r.href}function U(){return x&&(window.performance||{}).now?window.performance.now():(new Date).getTime()}function z(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[].slice.call(t.querySelectorAll('[data-cssvars="skip"],[data-cssvars="src"]'));n.forEach(function(t){return t.setAttribute("data-cssvars","")}),e&&(A.dom={})}F.reset=function(){for(var t in k.job=0,k.group=0,T=!1,O&&(O.disconnect(),O=null),D=0,I=null,P=!1,A)A[t]={}};var j=F,q=n(22759);let Y=(()=>{class t{subscribeToEvents(e){this.globalClick$=(0,q.R)(e,"click"),this.globalKeyDown$=(0,q.R)(document,"keydown").pipe((0,o.h)(()=>!t.userIsTyping()))}static userIsTyping(){const t=document.activeElement.tagName;return!t||["input","textarea"].indexOf(t.toLowerCase())>-1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var $=n(90299),V=n(34673),H=n(22470),G=n(64762),Q=n(67310),J=n(15515),W=n(38583),K=n(51095);function X(t,e){1&t&&(r.TgZ(0,"a",3),r._uU(1,"Learn More"),r.qZA()),2&t&&r.Q6J("routerLink",e.ngIf)}let tt=(()=>{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)(r.Y36(V.Z),r.Y36(Q.L))},t.\u0275cmp=r.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&&(r.TgZ(0,"div",0),r._uU(1,"We use cookies to optimize site functionality and provide you with the best possible experience."),r.qZA(),r.YNc(2,X,2,1,"a",1),r.TgZ(3,"button",2),r.NdJ("click",function(){return e.hideNotice()}),r._uU(4,"OK"),r.qZA()),2&t&&(r.xp6(2),r.Q6J("ngIf",e.settings.get("cookie_notice.learn_more")))},directives:[J.P,W.O5,K.lW,s.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 rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}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 et=n(88002),nt=n(5304);const it=["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 rt=n(25917),st=n(7964),ot=n(55809);let at=(()=>{class t{constructor(t,e,n,i,r){this.panel=t,this.settings=e,this.http=n,this.appearance=i,this.router=r}maybeShow(){return(0,G.mG)(this,void 0,void 0,function*(){if(!(yield this.shouldShow()))return;const t=this.settings.get("cookie-notice.position","bottom");this.panel.open(tt,{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,et.U)(t=>it.includes(t.country_code)),(0,nt.K)(()=>(0,rt.of)(!0))).toPromise()}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(st.T),r.LFG(V.Z),r.LFG($.r),r.LFG(ot.f),r.LFG(s.F0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ct=(()=>{class t{constructor(t,e,n,i,r,s,o){this.browserEvents=t,this.el=e,this.http=n,this.settings=i,this.router=r,this.customHomepage=s,this.cookieNotice=o}ngOnInit(){this.browserEvents.subscribeToEvents(this.el.nativeElement),this.settings.setHttpClient(this.http),this.settings.get("analytics.tracking_code")&&this.triggerAnalyticsPageView(),this.customHomepage.select(),this.loadCssVariablesPolyfill(),this.cookieNotice.maybeShow()}triggerAnalyticsPageView(){this.router.events.pipe((0,o.h)(t=>t instanceof s.m2)).subscribe(t=>{window.ga&&(window.ga("set","page",t.urlAfterRedirects),window.ga("send","pageview"))})}loadCssVariablesPolyfill(){"undefined"!=typeof window&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)")||j()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(Y),r.Y36(r.SBq),r.Y36($.r),r.Y36(V.Z),r.Y36(s.F0),r.Y36(H.Y),r.Y36(at))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(t,e){1&t&&r._UZ(0,"router-outlet")},directives:[s.lC],styles:["app-root{display:block;width:100%;height:100%}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 lt=n(46237),ut=n(26215),ht=n(8805),dt=n(35718),pt=n(3679),ft=n(84430),gt=n(14434);const mt=function(){return["/register"]};function _t(t,e){1&t&&(r.ynx(0),r.TgZ(1,"span",9),r._uU(2,"Don't have an account?"),r.qZA(),r._uU(3," "),r.TgZ(4,"a",10),r._uU(5,"Sign up."),r.qZA(),r.BQk()),2&t&&(r.xp6(4),r.Q6J("routerLink",r.DdM(1,mt)))}const bt=function(){return["/login"]};function vt(t,e){1&t&&(r.ynx(0),r.TgZ(1,"span",9),r._uU(2,"Already have an account?"),r.qZA(),r._uU(3," "),r.TgZ(4,"a",11),r._uU(5,"Sign in."),r.qZA(),r.BQk()),2&t&&(r.xp6(4),r.Q6J("routerLink",r.DdM(1,bt)))}const yt=function(){return["/"]},wt=["*"];let xt=(()=>{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)(r.Y36(V.Z),r.Y36(ft.f),r.Y36(s.gz),r.Y36(ht.e))},t.\u0275cmp=r.Xpm({type:t,selectors:[["auth-page"]],inputs:{infoRowTarget:"infoRowTarget"},ngContentSelectors:wt,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&&(r.F$t(),r.TgZ(0,"div",0),r.TgZ(1,"a",1),r._UZ(2,"img",2),r.qZA(),r.TgZ(3,"div",3),r.Hsn(4),r.qZA(),r.TgZ(5,"div",4),r.YNc(6,_t,6,2,"ng-container",5),r.YNc(7,vt,6,2,"ng-container",5),r.qZA(),r.qZA(),r.TgZ(8,"div",6),r.TgZ(9,"a",7),r._uU(10),r.qZA(),r._UZ(11,"custom-menu",8),r.qZA()),2&t&&(r.xp6(1),r.Q6J("routerLink",r.DdM(6,yt)),r.xp6(1),r.Q6J("src",e.logoUrl(),r.LSH),r.xp6(4),r.Q6J("ngIf","signup"===e.infoRowTarget&&!e.settings.get("registration.disable")),r.xp6(1),r.Q6J("ngIf","signin"===e.infoRowTarget),r.xp6(3),r.hij("\xa9 ",e.settings.get("branding.site_name"),""),r.xp6(1),r.Q6J("horizontal",!0))},directives:[s.yS,W.O5,gt.K,J.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 rgba(60,66,87,.12),0 3px 6px 0 rgba(0,0,0,.12);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})();var Ct=n(76627);function kt(t,e){if(1&t&&(r.TgZ(0,"p",9),r._UZ(1,"mat-icon",10),r.TgZ(2,"span"),r._uU(3),r.qZA(),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(3),r.Oqu(t.email)}}function St(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"form",1),r.NdJ("ngSubmit",function(){return r.CHM(t),r.oxw().sendPasswordResetLink()}),r.TgZ(1,"div",2),r._uU(2,"Enter your email address below and we will send you a link to reset or create your password."),r.qZA(),r.TgZ(3,"div",3),r.TgZ(4,"div",4),r.TgZ(5,"label",5),r._uU(6,"Email"),r.qZA(),r._UZ(7,"input",6),r.YNc(8,kt,4,1,"p",7),r.qZA(),r.TgZ(9,"button",8),r.ALo(10,"async"),r._uU(11,"Continue"),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=e.ngIf,n=r.oxw();r.Q6J("formGroup",n.form),r.xp6(8),r.Q6J("ngIf",t.email),r.xp6(1),r.Q6J("disabled",r.lcZ(10,3,n.loading$))}}let Et=(()=>{class t{constructor(t,e,n,i,r){this.auth=t,this.settings=e,this.toast=n,this.router=i,this.fb=r,this.loading$=new ut.X(!1),this.form=this.fb.group({email:[""]}),this.errors$=new ut.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)(r.Y36(ht.e),r.Y36(V.Z),r.Y36(dt.F),r.Y36(s.F0),r.Y36(pt.qu))},t.\u0275cmp=r.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&&(r.TgZ(0,"auth-page"),r.YNc(1,St,12,5,"form",0),r.ALo(2,"async"),r.qZA()),2&t&&(r.xp6(1),r.Q6J("ngIf",r.lcZ(2,1,e.errors$)))},directives:[xt,W.O5,pt.JL,pt.sg,J.P,pt.Fj,pt.JJ,pt.u,pt.Q7,K.lW,Ct.Hw],pipes:[W.Ov],styles:[".page-header[_ngcontent-%COMP%]{margin-bottom:32px}"],changeDetection:0}),t})();var At=n(68939),Tt=n(21270),Ot=n(24688),Dt=n(19244);const It=new r.OlP("APP_CONFIG");let Pt=(()=>{class t{constructor(t){this.injector=t,this.settings=this.injector.get(V.Z),this.currentUser=this.injector.get(Ot.I),this.i18n=this.injector.get(Dt.Z),this.injector.get(It).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($.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(ft.f).registerThemes(this.data.themes),this.injector.get(ot.f).init(),e}registerIcons(){const t=this.settings.getAssetUrl("icons/merged.svg?v6");this.injector.get(Ct.jv).addSvgIconSet(this.injector.get(i.H7).bypassSecurityTrustResourceUrl(t))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.zs3))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Ft=n(7539),Rt=n(11436),Mt=n(63297);function Lt(t,e){if(1&t&&(r.TgZ(0,"p",16),r._UZ(1,"mat-icon",17),r.TgZ(2,"span"),r._uU(3),r.qZA(),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(3),r.Oqu(t.email)}}function Nt(t,e){if(1&t&&(r.TgZ(0,"p",16),r._UZ(1,"mat-icon",17),r.TgZ(2,"span"),r._uU(3),r.qZA(),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(3),r.Oqu(t.password)}}function Zt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",18),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).socialAuth.loginWith("envato")}),r._UZ(1,"mat-icon",19),r.TgZ(2,"span",20),r._uU(3,"Sign in with Envato instead"),r.qZA(),r.qZA()}}function Bt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",26),r.NdJ("click",function(){return r.CHM(t),r.oxw(4).socialAuth.loginWith("facebook")}),r.ALo(1,"trans"),r._UZ(2,"mat-icon",27),r.qZA()}2&t&&r.Q6J("matTooltip",r.lcZ(1,1,"Login with facebook"))}function Ut(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",28),r.NdJ("click",function(){return r.CHM(t),r.oxw(4).socialAuth.loginWith("google")}),r.ALo(1,"trans"),r._UZ(2,"mat-icon",29),r.qZA()}2&t&&r.Q6J("matTooltip",r.lcZ(1,1,"Login with google"))}function zt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",30),r.NdJ("click",function(){return r.CHM(t),r.oxw(4).socialAuth.loginWith("twitter")}),r.ALo(1,"trans"),r._UZ(2,"mat-icon",31),r.qZA()}2&t&&r.Q6J("matTooltip",r.lcZ(1,1,"Login with twitter"))}function jt(t,e){if(1&t&&(r.ynx(0),r.TgZ(1,"div",22),r.YNc(2,Bt,3,3,"button",23),r.YNc(3,Ut,3,3,"button",24),r.YNc(4,zt,3,3,"button",25),r.qZA(),r.BQk()),2&t){const t=r.oxw(3);r.xp6(2),r.Q6J("ngIf",t.settings.get("social.facebook.enable")),r.xp6(1),r.Q6J("ngIf",t.settings.get("social.google.enable")),r.xp6(1),r.Q6J("ngIf",t.settings.get("social.twitter.enable"))}}function qt(t,e){if(1&t&&r.YNc(0,jt,5,3,"ng-container",21),2&t){const t=r.oxw(2);r.Q6J("ngIf",!t.settings.get("registration.disable"))}}const Yt=function(t){return{siteName:t}},$t=function(){return["/forgot-password"]};function Vt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"form",1),r.NdJ("ngSubmit",function(){return r.CHM(t),r.oxw().login()}),r.TgZ(1,"div",2),r._uU(2),r.qZA(),r.TgZ(3,"div",3),r.TgZ(4,"div",4),r.TgZ(5,"label",5),r._uU(6,"Email"),r.qZA(),r._UZ(7,"input",6),r.YNc(8,Lt,4,1,"p",7),r.qZA(),r.TgZ(9,"div",4),r.TgZ(10,"div",8),r.TgZ(11,"label",9),r._uU(12,"Password"),r.qZA(),r.TgZ(13,"a",10),r._uU(14,"Forgot your password?"),r.qZA(),r.qZA(),r._UZ(15,"input",11),r.YNc(16,Nt,4,1,"p",7),r.qZA(),r.qZA(),r.TgZ(17,"mat-checkbox",12),r._uU(18,"Stay signed in for a month"),r.qZA(),r.TgZ(19,"button",13),r.ALo(20,"async"),r._uU(21," Continue "),r.qZA(),r.YNc(22,Zt,4,0,"button",14),r.YNc(23,qt,1,1,"ng-template",null,15,r.W1O),r.qZA()}if(2&t){const t=e.ngIf,n=r.MAs(24),i=r.oxw();r.Q6J("formGroup",i.form),r.xp6(1),r.Q6J("transValues",r.VKq(11,Yt,i.settings.get("branding.site_name"))),r.xp6(1),r.hij(" ",i.route.snapshot.data.message||"Sign in to your account"," "),r.xp6(6),r.Q6J("ngIf",t.email),r.xp6(5),r.Q6J("routerLink",r.DdM(13,$t)),r.xp6(3),r.Q6J("ngIf",t.password),r.xp6(3),r.Q6J("disabled",r.lcZ(20,9,i.loading$)),r.xp6(3),r.Q6J("ngIf",i.settings.get("social.envato.enable"))("ngIfElse",n)}}let Ht=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c){this.auth=t,this.socialAuth=e,this.settings=n,this.route=i,this.router=r,this.user=s,this.bootstrapper=o,this.fb=a,this.toast=c,this.loading$=new ut.X(!1),this.form=this.fb.group({email:[""],password:[""],remember:[!0]}),this.errResponse$=new ut.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,At.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)(r.Y36(ht.e),r.Y36(Tt.x),r.Y36(V.Z),r.Y36(s.gz),r.Y36(s.F0),r.Y36(Ot.I),r.Y36(Pt),r.Y36(pt.qu),r.Y36(dt.F))},t.\u0275cmp=r.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"],["type","button","class","no-style alternative-signin-method",3,"click",4,"ngIf","ngIfElse"],["defaultSocialAuth",""],[1,"error","big-error"],["svgIcon","warning"],["type","button",1,"no-style","alternative-signin-method",3,"click"],["svgIcon","envato-custom"],["trans",""],[4,"ngIf"],[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&&(r.TgZ(0,"auth-page"),r.YNc(1,Vt,25,14,"form",0),r.ALo(2,"async"),r.qZA()),2&t&&(r.xp6(1),r.Q6J("ngIf",r.lcZ(2,1,e.errResponse$)))},directives:[xt,W.O5,pt.JL,pt.sg,J.P,pt.Fj,pt.JJ,pt.u,pt.Q7,s.yS,Ft.oG,K.lW,Ct.Hw,Rt.gM],pipes:[W.Ov,Mt.R],styles:[""],changeDetection:0}),t})(),Gt=(()=>{class t{constructor(t,e,n,i,r){this.currentUser=t,this.auth=e,this.router=n,this.settings=i,this.listener=r}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)(r.LFG(Ot.I),r.LFG(ht.e),r.LFG(s.F0),r.LFG(V.Z),r.LFG(ot.f))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Qt=n(6966),Jt=n(35402);let Wt=(()=>{class t{constructor(t,e,n,i,r){this.settings=t,this.http=e,this.lazyLoader=n,this.router=i,this.toast=r}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,G.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,G.mG)(this,void 0,void 0,function*(){yield this.load(),window.grecaptcha.ready(()=>(0,G.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)(r.LFG(V.Z),r.LFG($.r),r.LFG(Jt.j),r.LFG(s.F0),r.LFG(dt.F))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Kt(t,e){if(1&t&&(r.TgZ(0,"p",17),r._UZ(1,"mat-icon",18),r.TgZ(2,"span"),r._uU(3),r.qZA(),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(3),r.Oqu(t.email)}}function Xt(t,e){if(1&t&&(r.TgZ(0,"p",17),r._UZ(1,"mat-icon",18),r.TgZ(2,"span"),r._uU(3),r.qZA(),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(3),r.Oqu(t.password)}}function te(t,e){if(1&t&&(r.TgZ(0,"p",17),r._UZ(1,"mat-icon",18),r.TgZ(2,"span"),r._uU(3),r.qZA(),r.qZA()),2&t){const t=r.oxw(2).ngIf;r.xp6(3),r.Oqu(t.purchase_code)}}function ee(t,e){if(1&t&&(r.TgZ(0,"div",5),r.TgZ(1,"label",19),r._uU(2,"Envato Purchase Code"),r.qZA(),r._UZ(3,"input",20),r.YNc(4,te,4,1,"p",8),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(4),r.Q6J("ngIf",t.purchase_code)}}function ne(t,e){if(1&t&&(r.TgZ(0,"a",26),r.TgZ(1,"strong"),r._uU(2),r.ALo(3,"trans"),r.qZA(),r.qZA()),2&t){const t=r.oxw().$implicit,e=r.oxw(3);r.Q6J("href","link"===t.type?t.action:e.settings.getBaseUrl()+"/"+t.action,r.LSH),r.xp6(2),r.Oqu(r.lcZ(3,2,t.label))}}function ie(t,e){if(1&t&&(r.TgZ(0,"strong"),r._uU(1),r.ALo(2,"trans"),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Oqu(r.lcZ(2,1,t.label))}}function re(t,e){if(1&t&&(r.TgZ(0,"mat-checkbox",23),r.TgZ(1,"span",24),r._uU(2,"I accept the"),r.qZA(),r._uU(3," "),r.YNc(4,ne,4,4,"a",25),r.YNc(5,ie,3,3,"strong",16),r.qZA()),2&t){const t=e.$implicit;r.Q6J("formControlName",t.id),r.xp6(4),r.Q6J("ngIf",t.action),r.xp6(1),r.Q6J("ngIf",!t.action)}}function se(t,e){if(1&t&&(r.TgZ(0,"div",21),r.YNc(1,re,6,3,"mat-checkbox",22),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.Q6J("ngForOf",t.registerPolicies)}}function oe(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",29),r.NdJ("click",function(){return r.CHM(t),r.oxw(3).socialAuth.loginWith("envato")}),r._UZ(1,"mat-icon",30),r.TgZ(2,"span",24),r._uU(3,"Sign in with Envato instead"),r.qZA(),r.qZA()}}function ae(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",35),r.NdJ("click",function(){return r.CHM(t),r.oxw(4).socialAuth.loginWith("facebook")}),r.ALo(1,"trans"),r._UZ(2,"mat-icon",36),r.qZA()}2&t&&r.Q6J("matTooltip",r.lcZ(1,1,"Login with facebook"))}function ce(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",37),r.NdJ("click",function(){return r.CHM(t),r.oxw(4).socialAuth.loginWith("google")}),r.ALo(1,"trans"),r._UZ(2,"mat-icon",38),r.qZA()}2&t&&r.Q6J("matTooltip",r.lcZ(1,1,"Login with google"))}function le(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",39),r.NdJ("click",function(){return r.CHM(t),r.oxw(4).socialAuth.loginWith("twitter")}),r.ALo(1,"trans"),r._UZ(2,"mat-icon",40),r.qZA()}2&t&&r.Q6J("matTooltip",r.lcZ(1,1,"Login with twitter"))}function ue(t,e){if(1&t&&(r.TgZ(0,"div",31),r.YNc(1,ae,3,3,"button",32),r.YNc(2,ce,3,3,"button",33),r.YNc(3,le,3,3,"button",34),r.qZA()),2&t){const t=r.oxw(3);r.xp6(1),r.Q6J("ngIf",t.settings.get("social.facebook.enable")),r.xp6(1),r.Q6J("ngIf",t.settings.get("social.google.enable")),r.xp6(1),r.Q6J("ngIf",t.settings.get("social.twitter.enable"))}}function he(t,e){if(1&t&&(r.ynx(0),r.YNc(1,oe,4,0,"button",27),r.YNc(2,ue,4,3,"ng-template",null,28,r.W1O),r.BQk()),2&t){const t=r.MAs(3),e=r.oxw(2);r.xp6(1),r.Q6J("ngIf",e.settings.get("social.envato.enable"))("ngIfElse",t)}}const de=function(t){return{siteName:t}};function pe(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"form",2),r.NdJ("ngSubmit",function(){return r.CHM(t),r.oxw().register()}),r.TgZ(1,"div",3),r._uU(2),r.qZA(),r.TgZ(3,"div",4),r.TgZ(4,"div",5),r.TgZ(5,"label",6),r._uU(6,"Email"),r.qZA(),r._UZ(7,"input",7),r.YNc(8,Kt,4,1,"p",8),r.qZA(),r.TgZ(9,"div",5),r.TgZ(10,"label",9),r._uU(11,"Password"),r.qZA(),r._UZ(12,"input",10),r.YNc(13,Xt,4,1,"p",8),r.qZA(),r.TgZ(14,"div",5),r.TgZ(15,"label",11),r._uU(16,"Confirm Password"),r.qZA(),r._UZ(17,"input",12),r.qZA(),r.YNc(18,ee,5,1,"div",13),r.qZA(),r.YNc(19,se,2,1,"div",14),r.TgZ(20,"button",15),r.ALo(21,"async"),r._uU(22,"Create Account"),r.qZA(),r.YNc(23,he,4,2,"ng-container",16),r.qZA()}if(2&t){const t=e.ngIf,n=r.oxw();r.Q6J("formGroup",n.form),r.xp6(1),r.Q6J("transValues",r.VKq(11,de,n.settings.get("branding.site_name"))),r.xp6(1),r.hij(" ",n.route.snapshot.data.message||"Create a new account"," "),r.xp6(6),r.Q6J("ngIf",t.email),r.xp6(5),r.Q6J("ngIf",t.password),r.xp6(5),r.Q6J("ngIf",n.settings.get("envato.enable")&&n.settings.get("envato.require_purchase_code")),r.xp6(1),r.Q6J("ngIf",n.registerPolicies.length),r.xp6(1),r.Q6J("disabled",r.lcZ(21,9,n.loading$)),r.xp6(3),r.Q6J("ngIf",!n.settings.get("registration.disable"))}}let fe=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c,l){this.auth=t,this.socialAuth=e,this.settings=n,this.route=i,this.user=r,this.router=s,this.toast=o,this.bootstrapper=a,this.recaptcha=c,this.fb=l,this.loading$=new ut.X(!1),this.registerPolicies=[],this.form=this.fb.group({email:[""],password:[""],password_confirmation:[""],purchase_code:[""]}),this.errors$=new ut.X({})}ngOnInit(){this.registerPolicies=this.settings.getJson("register_policies",[]),this.registerPolicies.forEach(t=>{t.id=(0,Qt.V)(t.label,"_"),this.form.addControl(t.id,new pt.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,G.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)(r.Y36(ht.e),r.Y36(Tt.x),r.Y36(V.Z),r.Y36(s.gz),r.Y36(Ot.I),r.Y36(s.F0),r.Y36(dt.F),r.Y36(Pt),r.Y36(Wt),r.Y36(pt.qu))},t.\u0275cmp=r.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&&(r.TgZ(0,"auth-page",0),r.YNc(1,pe,24,13,"form",1),r.ALo(2,"async"),r.qZA()),2&t&&(r.xp6(1),r.Q6J("ngIf",r.lcZ(2,1,e.errors$)))},directives:[xt,W.O5,pt.JL,pt.sg,J.P,pt.Fj,pt.JJ,pt.u,pt.Q7,K.lW,Ct.Hw,W.sg,Ft.oG,Ft.e_,Rt.gM],pipes:[W.Ov,Mt.R],styles:[".policies[_ngcontent-%COMP%]{margin-top:32px}.policy-checkbox[_ngcontent-%COMP%]{display:block;margin-bottom:3px}"],changeDetection:0}),t})();var ge=n(86584),me=n(90962);function _e(t,e){if(1&t&&(r.TgZ(0,"p",14),r._uU(1),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(1),r.Oqu(t.email)}}function be(t,e){if(1&t&&(r.TgZ(0,"p",15),r._uU(1),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(1),r.Oqu(t.password)}}function ve(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"form",1),r.NdJ("ngSubmit",function(){return r.CHM(t),r.oxw().resetPassword()}),r.TgZ(1,"div",2),r._uU(2,"Reset your account password"),r.qZA(),r.TgZ(3,"div",3),r.TgZ(4,"div",4),r.TgZ(5,"label",5),r._uU(6,"Email"),r.qZA(),r._UZ(7,"input",6),r.YNc(8,_e,2,1,"p",7),r.qZA(),r.TgZ(9,"div",4),r.TgZ(10,"label",8),r._uU(11,"New Password"),r.qZA(),r._UZ(12,"input",9),r.YNc(13,be,2,1,"p",10),r.qZA(),r.TgZ(14,"div",4),r.TgZ(15,"label",11),r._uU(16,"Confirm New Password"),r.qZA(),r._UZ(17,"input",12),r.qZA(),r.qZA(),r.TgZ(18,"button",13),r.ALo(19,"async"),r._uU(20,"Reset Password"),r.qZA(),r.qZA()}if(2&t){const t=e.ngIf,n=r.oxw();r.Q6J("formGroup",n.form),r.xp6(8),r.Q6J("ngIf",t.email),r.xp6(5),r.Q6J("ngIf",t.password),r.xp6(5),r.Q6J("disabled",r.lcZ(19,4,n.loading$))}}const ye=[{path:"login",component:Ht,canActivate:[Gt]},{path:"register",component:fe,canActivate:[Gt,(()=>{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(ge.b)&&(this.router.navigate(["/login"]),1))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(V.Z),r.LFG(s.F0),r.LFG(me.m))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()]},{path:"forgot-password",component:Et,canActivate:[Gt]},{path:"password/reset/:token",component:(()=>{class t{constructor(t,e,n,i,r,s,o){this.auth=t,this.settings=e,this.route=n,this.router=i,this.toast=r,this.currentUser=s,this.fb=o,this.loading$=new ut.X(!1),this.form=this.fb.group({email:[""],password:[""],password_confirmation:[""],token:[""]}),this.errors$=new ut.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)(r.Y36(ht.e),r.Y36(V.Z),r.Y36(s.gz),r.Y36(s.F0),r.Y36(dt.F),r.Y36(Ot.I),r.Y36(pt.qu))},t.\u0275cmp=r.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&&(r.TgZ(0,"auth-page"),r.YNc(1,ve,21,6,"form",0),r.ALo(2,"async"),r.qZA()),2&t&&(r.xp6(1),r.Q6J("ngIf",r.lcZ(2,1,e.errors$)))},directives:[xt,W.O5,pt.JL,pt.sg,J.P,pt.Fj,pt.JJ,pt.u,pt.Q7,K.lW],pipes:[W.Ov],styles:[""],changeDetection:0}),t})(),canActivate:[Gt]},{path:"workspace/join/register",component:fe,data:{message:"To join your team on :siteName, create an account"}},{path:"workspace/join/login",component:Ht,data:{message:"To join your team on :siteName, login to your account"}}];let we=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[s.Bz.forChild(ye)],s.Bz]}),t})();var xe=n(22238),Ce=n(49866),ke=n(43389),Se=n(4581);let Ee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[we,W.ez,pt.u5,pt.UX,s.Bz,ke.p,Ce.N,Se.N,xe.Is,Ct.Ps,K.ot,Rt.AV,Ft.p9]]}),t})();const Ae={assetsPrefix:"client",navbar:{defaultColor:"accent",defaultPosition:"drive-navbar",dropdownItems:[{route:"/drive",name:"My Files",icon:"network-drive-custom"}]},auth:{redirectUri:"/drive",adminRedirectUri:"/drive",color:"primary"},demo:{email:null},admin:{ads:[{slot:"ads.file-preview",description:"This ad will appear on shared file preview page."},{slot:"ads.drive",description:"This ad will appear on user drive page."},{slot:"ads.landing.top",description:"This ad will appear at the top of the landing page."}]},translations:{uploads_disk_driver_description:"Where drive file uploads should be stored."}};var Te=n(47661),Oe=n(23876),De=n(70837),Ie=n(74388),Pe=n(33935);function Fe(t,e){1&t&&(r.ynx(0),r._UZ(1,"mat-icon",9),r.TgZ(2,"span",3),r._uU(3,"Light Mode"),r.qZA(),r.BQk())}function Re(t,e){1&t&&(r._UZ(0,"mat-icon",10),r.TgZ(1,"span",3),r._uU(2,"Dark Mode"),r.qZA())}function Me(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",6),r.NdJ("click",function(){return r.CHM(t),r.oxw().theme.toggle()}),r.YNc(1,Fe,4,0,"ng-container",7),r.ALo(2,"async"),r.YNc(3,Re,3,0,"ng-template",null,8,r.W1O),r.qZA()}if(2&t){const t=r.MAs(4),e=r.oxw();let n;r.xp6(1),r.Q6J("ngIf",null==(n=r.lcZ(2,2,e.theme.selectedTheme$))?null:n.is_dark)("ngIfElse",t)}}function Le(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",11),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw().changeLanguage(e)}),r._UZ(1,"mat-icon",12),r._uU(2),r.qZA()}if(2&t){const t=e.$implicit,n=r.oxw();r.xp6(1),r.ekj("invisible",!n.i18n.isActive(t)),r.xp6(1),r.hij(" ",t.name," ")}}let Ne=(()=>{class t{constructor(t,e,n,i,r){this.settings=t,this.i18n=e,this.theme=n,this.valueLists=i,this.http=r,this.localizations$=new ut.X([{id:1,name:"English",language:"en"}]),this.changingLang$=new ut.X(!1)}langMenuOpened(){this.valueLists.get(["localizations"]).subscribe(t=>{this.localizations$.next(t.localizations)})}changeLanguage(t){this.i18n.isActive(t)||(this.changingLang$.next(!0),this.http.post("users/me/locale",{locale:t.language}).pipe((0,At.x)(()=>this.changingLang$.next(!1))).subscribe(t=>{this.i18n.setLocalization(t.locale)}))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.Z),r.Y36(Dt.Z),r.Y36(ft.f),r.Y36(Ie.l),r.Y36($.r))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-footer-lang-switcher"]],decls:10,vars:9,consts:[["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&&(r.YNc(0,Me,5,4,"button",0),r.TgZ(1,"button",1),r.NdJ("menuOpened",function(){return e.langMenuOpened()}),r.ALo(2,"async"),r._UZ(3,"mat-icon",2),r.TgZ(4,"span",3),r._uU(5),r.qZA(),r.qZA(),r.TgZ(6,"mat-menu",null,4),r.YNc(8,Le,3,3,"button",5),r.ALo(9,"async"),r.qZA()),2&t){const t=r.MAs(7);r.Q6J("ngIf",e.settings.get("themes.user_change")),r.xp6(1),r.Q6J("matMenuTriggerFor",t)("disabled",r.lcZ(2,5,e.changingLang$)),r.xp6(4),r.Oqu((null==e.i18n.localization||null==e.i18n.localization.model?null:e.i18n.localization.model.name)||"English"),r.xp6(3),r.Q6J("ngForOf",r.lcZ(9,7,e.localizations$))}},directives:[W.O5,K.lW,Pe.p6,Ct.Hw,J.P,Pe.VK,W.sg,Pe.OP],pipes:[W.Ov],styles:["[_nghost-%COMP%]{display:block}.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}"],changeDetection:0}),t})(),Ze=(()=>{class t{constructor(t){this.i18n=t;const e=(new Date).getFullYear();this.copyrightText=this.i18n.t("Copyright \xa9 :year, All Rights Reserved",{year:e})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(Dt.Z))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-footer"]],decls:8,vars:3,consts:[[1,"row","first-row"],["position","footer",1,"first-menu",3,"horizontal"],["position","footer-secondary",1,"second-menu",3,"horizontal"],[1,"row","second-row"],[1,"copyright","first-col"],[1,"selectors","second-col"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r._UZ(1,"custom-menu",1),r._UZ(2,"custom-menu",2),r.qZA(),r.TgZ(3,"div",3),r.TgZ(4,"div",4),r._uU(5),r.qZA(),r.TgZ(6,"div",5),r._UZ(7,"app-footer-lang-switcher"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Q6J("horizontal",!0),r.xp6(1),r.Q6J("horizontal",!0),r.xp6(3),r.hij(" ",e.copyrightText," "))},directives:[gt.K,Ne],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%]   custom-menu[_ngcontent-%COMP%]{border-bottom:1px solid var(--be-divider-lighter);padding-bottom:20px;margin-bottom:20px}.first-menu[_ngcontent-%COMP%]{flex:1 1 auto;color:var(--be-accent-default);padding-right:10px}.first-menu[_ngcontent-%COMP%]     .custom-menu-item:first-child{padding-left:0!important}.second-menu[_ngcontent-%COMP%]{margin-left:auto;flex-shrink:0}.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}@media only screen and (max-width:768px){.row[_ngcontent-%COMP%]{flex-direction:column}.first-col[_ngcontent-%COMP%]{margin-right:0}}"],changeDetection:0}),t})();var Be=n(6097),Ue=n(66452);function ze(t,e){if(1&t&&(r.TgZ(0,"a",21),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.content.actions.cta1)}}function je(t,e){if(1&t&&(r.TgZ(0,"a",22),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.content.actions.cta2)}}function qe(t,e){if(1&t&&(r.TgZ(0,"li",26),r._UZ(1,"image-or-icon",27),r.TgZ(2,"h3",28),r._uU(3),r.qZA(),r.TgZ(4,"p",28),r._uU(5),r.qZA(),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Q6J("src",t.image),r.xp6(2),r.Oqu(t.title),r.xp6(2),r.Oqu(t.subtitle)}}function Ye(t,e){if(1&t&&(r.ynx(0),r.TgZ(1,"div",17),r._UZ(2,"ad-host",23),r.TgZ(3,"ul",24),r.YNc(4,qe,6,3,"li",25),r.qZA(),r.qZA(),r._UZ(5,"div",15),r.BQk()),2&t){const t=r.oxw();r.xp6(4),r.Q6J("ngForOf",t.content.primaryFeatures)}}function $e(t,e){1&t&&r._UZ(0,"div",15)}function Ve(t,e){if(1&t&&(r.ynx(0),r.TgZ(1,"li",29),r._UZ(2,"img",30),r.TgZ(3,"section",31),r.TgZ(4,"small",28),r._uU(5),r.qZA(),r.TgZ(6,"h2",28),r._uU(7),r.qZA(),r._UZ(8,"div",32),r.TgZ(9,"p",28),r._uU(10),r.qZA(),r.qZA(),r.qZA(),r.YNc(11,$e,1,0,"div",33),r.BQk()),2&t){const t=e.$implicit,n=e.first,i=e.last,s=e.even;r.xp6(1),r.ekj("first-secondary-feature",n)("reverse",s),r.xp6(1),r.Q6J("src",t.image+"?v2",r.LSH),r.xp6(3),r.Oqu(t.subtitle),r.xp6(2),r.Oqu(t.title),r.xp6(3),r.Oqu(t.description),r.xp6(1),r.Q6J("ngIf",!i)}}function He(t,e){if(1&t&&(r.TgZ(0,"a",34),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.content.actions.cta3)}}let Ge=(()=>{class t{constructor(t,e,n){this.settings=t,this.cd=e,this.sanitizer=n}ngOnInit(){this.sub=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()})}ngOnDestroy(){this.sub.unsubscribe()}scrollToFeatures(){document.querySelector(".inline-features").scrollIntoView({block:"start",inline:"center",behavior:"smooth"})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.Z),r.Y36(r.sBO),r.Y36(i.H7))},t.\u0275cmp=r.Xpm({type:t,selectors:[["homepage"]],decls:26,vars:18,consts:[[1,"hero","header-overlay"],[1,"background-image"],[1,"hero-content"],["menuPosition","homepage-navbar",1,"login-button-white",3,"transparent"],[1,"content"],["trans","",1,"title"],["trans","",1,"subtitle"],[1,"action-buttons"],["mat-raised-button","","color","accent","class","cta-button","routerLink","/register","trans","",4,"ngIf"],["mat-button","","class","pricing-button","routerLink","/billing/pricing","trans","",4,"ngIf"],["mat-icon-button","",1,"down-button",3,"click"],["svgIcon","keyboard-arrow-down"],[4,"ngIf"],[1,"big-features","unstyled-list"],[4,"ngFor","ngForOf"],[1,"spacer"],[1,"bottom-cta"],[1,"be-container"],["trans","",1,"footer-title"],["trans","",1,"footer-description"],["mat-stroked-button","","routerLink","/login","trans","",4,"ngIf"],["mat-raised-button","","color","accent","routerLink","/register","trans","",1,"cta-button"],["mat-button","","routerLink","/billing/pricing","trans","",1,"pricing-button"],["slot","ads.landing.top"],[1,"inline-features","unstyled-list"],["class","inline-feature",4,"ngFor","ngForOf"],[1,"inline-feature"],[1,"inherit-size",3,"src"],["trans",""],[1,"big-feature","be-container"],[3,"src"],[1,"info"],[1,"feature-border"],["class","spacer",4,"ngIf"],["mat-stroked-button","","routerLink","/login","trans",""]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r._UZ(1,"div",1),r.TgZ(2,"div",2),r._UZ(3,"material-navbar",3),r.TgZ(4,"div",4),r.TgZ(5,"div",5),r._uU(6),r.qZA(),r.TgZ(7,"div",6),r._uU(8),r.qZA(),r.TgZ(9,"div",7),r.YNc(10,ze,2,1,"a",8),r.YNc(11,je,2,1,"a",9),r.qZA(),r.qZA(),r.qZA(),r.TgZ(12,"button",10),r.NdJ("click",function(){return e.scrollToFeatures()}),r._UZ(13,"mat-icon",11),r.qZA(),r.qZA(),r.YNc(14,Ye,6,1,"ng-container",12),r.TgZ(15,"ul",13),r.YNc(16,Ve,12,9,"ng-container",14),r.qZA(),r._UZ(17,"div",15),r.TgZ(18,"div",16),r.TgZ(19,"div",17),r.TgZ(20,"h2",18),r._uU(21),r.qZA(),r.TgZ(22,"p",19),r._uU(23),r.qZA(),r.YNc(24,He,2,1,"a",20),r.qZA(),r.qZA(),r._UZ(25,"app-footer",17)),2&t&&(r.Udp("background",e.overlayBackground),r.xp6(1),r.Udp("background-image","url("+e.content.headerImage+")")("opacity",e.content.headerImageOpacity),r.xp6(2),r.Q6J("transparent",!0),r.xp6(3),r.Oqu(e.content.headerTitle),r.xp6(2),r.Oqu(e.content.headerSubtitle),r.xp6(2),r.Q6J("ngIf",null==e.content.actions?null:e.content.actions.cta1),r.xp6(1),r.Q6J("ngIf",null==e.content.actions?null:e.content.actions.cta2),r.xp6(3),r.Q6J("ngIf",e.content.primaryFeatures.length),r.xp6(2),r.Q6J("ngForOf",e.content.secondaryFeatures),r.xp6(2),r.Udp("background-image","url("+e.content.footerImage+")"),r.xp6(3),r.Oqu(e.content.footerTitle),r.xp6(2),r.Oqu(e.content.footerSubtitle),r.xp6(1),r.Q6J("ngIf",null==e.content.actions?null:e.content.actions.cta3))},directives:[De.e,J.P,W.O5,K.lW,Ct.Hw,W.sg,Ze,K.zs,s.yS,Be.i,Ue.A],styles:['.background-image[_ngcontent-%COMP%], .header-overlay[_ngcontent-%COMP%], .hero-content[_ngcontent-%COMP%], [_nghost-%COMP%]{display:block;height:100%;width:100%}.hero[_ngcontent-%COMP%]{margin-bottom:60px}.hero-content[_ngcontent-%COMP%]{position:relative;z-index:3}.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%;background-attachment:fixed}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 70px);align-items:center;justify-content:center;color:#fff;max-width:820px;margin:0 auto;text-align:center}.content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:4.5rem;font-weight:500}.content[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{font-size:2.1rem;font-weight:300}.content[_ngcontent-%COMP%]   .mat-raised-button[_ngcontent-%COMP%]{min-height:50px;line-height:50px;margin-top:30px;min-width:190px;font-size:1.6rem;border-radius:30px}.content[_ngcontent-%COMP%]   .pricing-button[_ngcontent-%COMP%]{font-size:1.6rem;margin-left:10px}.down-button[_ngcontent-%COMP%]{position:absolute;bottom:5px;left:calc(50% - 33px);width:66px;height:66px;line-height:66px;color:#fff;z-index:3}.down-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:44px;height:44px;line-height:44px}.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%]{border-radius:10px;padding:34px 26px;box-shadow:0 10px 30px rgba(0,0,0,.08)}.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%]{display:block;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 rgba(0,0,0,.08)}.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}}.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}}.ads-landing-top-host[_ngcontent-%COMP%]{margin-top:60px;margin-bottom:60px}'],changeDetection:0}),t})();function Qe(t,e){if(1&t&&(r.TgZ(0,"p",14),r._uU(1),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(1),r.Oqu(t.name)}}function Je(t,e){if(1&t&&(r.TgZ(0,"p",14),r._uU(1),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(1),r.Oqu(t.email)}}function We(t,e){if(1&t&&(r.TgZ(0,"p",14),r._uU(1),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(1),r.Oqu(t.message)}}function Ke(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"form",3),r.NdJ("ngSubmit",function(){return r.CHM(t),r.oxw().submitMessage()}),r.TgZ(1,"h1",4),r._uU(2,"Contact Us"),r.qZA(),r.TgZ(3,"p",4),r._uU(4,"Please use the form below to send us a message and we'll get back to you as soon as possible."),r.qZA(),r.TgZ(5,"div",5),r.TgZ(6,"label",6),r._uU(7,"Name"),r.qZA(),r._UZ(8,"input",7),r.YNc(9,Qe,2,1,"p",8),r.qZA(),r.TgZ(10,"div",5),r.TgZ(11,"label",9),r._uU(12,"Email"),r.qZA(),r._UZ(13,"input",10),r.YNc(14,Je,2,1,"p",8),r.qZA(),r.TgZ(15,"div",5),r.TgZ(16,"label",11),r._uU(17,"Message"),r.qZA(),r._UZ(18,"textarea",12),r.YNc(19,We,2,1,"p",8),r.qZA(),r.TgZ(20,"button",13),r.ALo(21,"async"),r._uU(22,"Send"),r.qZA(),r.qZA()}if(2&t){const t=e.ngIf,n=r.oxw();r.Q6J("formGroup",n.form),r.xp6(9),r.Q6J("ngIf",t.name),r.xp6(5),r.Q6J("ngIf",t.email),r.xp6(5),r.Q6J("ngIf",t.message),r.xp6(1),r.Q6J("disabled",r.lcZ(21,5,n.loading$))}}let Xe=(()=>{class t{constructor(t,e,n,i,r){this.settings=t,this.http=e,this.toast=n,this.router=i,this.recaptcha=r,this.loading$=new ut.X(!1),this.form=new pt.cw({name:new pt.NI,email:new pt.NI,message:new pt.NI}),this.errors$=new ut.X({})}ngOnInit(){this.recaptcha.enabledFor("contact")&&this.recaptcha.load()}submitMessage(){return(0,G.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,At.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)(r.Y36(V.Z),r.Y36($.r),r.Y36(dt.F),r.Y36(s.F0),r.Y36(Wt))},t.\u0275cmp=r.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&&(r._UZ(0,"material-navbar",0),r.TgZ(1,"div",1),r.YNc(2,Ke,23,7,"form",2),r.ALo(3,"async"),r.qZA()),2&t&&(r.Q6J("container",!0)("menuPosition",e.settings.get("vebto.navbar.defaultPosition","custom-page-navbar")),r.xp6(2),r.Q6J("ngIf",r.lcZ(3,3,e.errors$)))},directives:[De.e,W.O5,pt.JL,pt.sg,J.P,pt.Fj,pt.JJ,pt.u,pt.Q7,K.lW],pipes:[W.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})(),tn=(()=>{class t{constructor(t){this.config=t}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.Z))},t.\u0275cmp=r.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&&(r._UZ(0,"img",0),r.TgZ(1,"h1",1),r._uU(2,"Opps! We can't find the page you're looking for."),r.qZA(),r.TgZ(3,"a",2),r._uU(4,"Home"),r.qZA())},directives:[J.P,s.yS,K.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})();var en=n(20616);const nn=[{path:"",pathMatch:"full",component:Ge,canActivate:[Gt]},{path:"admin",loadChildren:()=>n.e(123).then(n.bind(n,98123)).then(t=>t.AppAdminModule)},{path:"drive",loadChildren:()=>n.e(936).then(n.bind(n,86936)).then(t=>t.DriveModule)},{path:"billing",loadChildren:()=>n.e(819).then(n.bind(n,87819)).then(t=>t.BillingModule)},{path:"notifications",loadChildren:()=>n.e(72).then(n.bind(n,21072)).then(t=>t.NotificationsModule)},{path:"api-docs",loadChildren:()=>n.e(232).then(n.bind(n,23232)).then(t=>t.ApiDocsModule)},{path:"contact",component:Xe},{path:"loading",component:(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,selectors:[["loading-page"]],decls:1,vars:1,consts:[[1,"overlay",3,"isVisible"]],template:function(t,e){1&t&&r._UZ(0,"loading-indicator",0),2&t&&r.Q6J("isVisible",!0)},directives:[en.Q],styles:["loading-indicator.overlay[_ngcontent-%COMP%]{background-color:transparent}"],changeDetection:0}),t})()},{path:"**",pathMatch:"full",component:tn},{path:"404",pathMatch:"full",component:tn}];let rn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[s.Bz.forRoot(nn,{relativeLinkResolution:"legacy"})],s.Bz]}),t})();var sn=n(19773),on=n(35758),an=n(59193),cn=n(73429);let ln=(()=>{class t{constructor(t,e,n,i,r){this.users=t,this.router=e,this.currentUser=n,this.values=i,this.auth=r}resolve(t){return(0,on.D)([this.users.get(this.currentUser.get("id"),{with:["roles","social_profiles"]}).pipe((0,et.U)(t=>t.user)),this.values.get(["timezones","countries","localizations"])]).pipe((0,nt.K)(()=>(this.router.navigate([this.auth.getRedirectUri()]),an.E)),(0,sn.zg)(t=>t?(0,rt.of)({user:t[0],selects:t[1]}):(this.router.navigate([this.auth.getRedirectUri()]),an.E)))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(cn.Q),r.LFG(s.F0),r.LFG(Ot.I),r.LFG(Ie.l),r.LFG(ht.e))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var un=n(42690),hn=n(41880),dn=n(53534);const pn=new r.OlP("ACCOUNT_SETTINGS_PANELS");var fn=n(8208),gn=n(96967),mn=n.n(gn);function _n(t,e){if(1&t&&(r.TgZ(0,"div",12),r._uU(1),r.ALo(2,"async"),r.qZA()),2&t){const t=r.oxw(2);let e;r.xp6(1),r.Oqu(null==(e=r.lcZ(2,1,t.errors$))?null:e.tokenName)}}function bn(t,e){if(1&t&&(r.TgZ(0,"div",9),r._UZ(1,"input",10),r.YNc(2,_n,3,3,"div",11),r.ALo(3,"async"),r.qZA()),2&t){const t=r.oxw();let e;r.xp6(2),r.Q6J("ngIf",null==(e=r.lcZ(3,1,t.errors$))?null:e.tokenName)}}function vn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div"),r.TgZ(1,"div",13),r.TgZ(2,"input",14),r.NdJ("click",function(){return r.CHM(t),r.oxw().focusInput()})("change",function(){return r.CHM(t),r.oxw().focusInput()}),r.ALo(3,"async"),r.qZA(),r.TgZ(4,"button",15),r.NdJ("click",function(){return r.CHM(t),r.oxw().copyLinkToClipboard()}),r._uU(5,"Copy"),r.qZA(),r.qZA(),r.TgZ(6,"p"),r._UZ(7,"mat-icon",16),r.TgZ(8,"span",17),r._uU(9,"Make sure to store this token in a safe place. After this dialog is closed, token will not be viewable anymore."),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.xp6(2),r.Q6J("value",r.lcZ(3,1,t.plainTextToken$))}}function yn(t,e){if(1&t){const t=r.EpF();r.ynx(0),r.TgZ(1,"button",18),r.NdJ("click",function(){return r.CHM(t),r.oxw().close()}),r._uU(2,"Cancel"),r.qZA(),r.TgZ(3,"button",19),r.ALo(4,"async"),r._uU(5,"create"),r.qZA(),r.BQk()}if(2&t){const t=r.oxw();r.xp6(3),r.Q6J("disabled",r.lcZ(4,1,t.loading$))}}function wn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",18),r.NdJ("click",function(){const e=r.CHM(t).ngIf;return r.oxw().close(e)}),r._uU(1,"Close"),r.qZA()}}let xn=(()=>{class t{constructor(t,e,n){this.auth=t,this.dialogRef=e,this.toast=n,this.form=new pt.cw({name:new pt.NI("")}),this.errors$=new ut.X({}),this.loading$=new ut.X(!1),this.plainTextToken$=new ut.X(null),this.token$=new ut.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(),mn()(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)(r.Y36(ht.e),r.Y36(xe.so),r.Y36(dt.F))},t.\u0275cmp=r.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&&(r.TgZ(0,"div",0),r.TgZ(1,"h2",1),r._uU(2,"Create new token"),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,"form",4),r.NdJ("ngSubmit",function(){return e.confirm()}),r.TgZ(6,"mat-dialog-content",5),r.YNc(7,bn,4,3,"div",6),r.ALo(8,"async"),r.YNc(9,vn,10,3,"div",7),r.ALo(10,"async"),r.qZA(),r.TgZ(11,"mat-dialog-actions"),r.YNc(12,yn,6,3,"ng-container",7),r.ALo(13,"async"),r.YNc(14,wn,2,0,"button",8),r.ALo(15,"async"),r.qZA(),r.qZA()),2&t&&(r.xp6(5),r.Q6J("formGroup",e.form),r.xp6(2),r.Q6J("ngIf",!r.lcZ(8,5,e.plainTextToken$)),r.xp6(2),r.Q6J("ngIf",r.lcZ(10,7,e.plainTextToken$)),r.xp6(3),r.Q6J("ngIf",!r.lcZ(13,9,e.plainTextToken$)),r.xp6(2),r.Q6J("ngIf",r.lcZ(15,11,e.token$)))},directives:[xe.uh,J.P,K.lW,Ct.Hw,pt.JL,pt.sg,xe.xY,W.O5,xe.H8,pt.Fj,pt.JJ,pt.u,pt.Q7],pipes:[W.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 Cn=n(97312),kn=n(69538),Sn=n(81378),En=n(96605),An=n(15381),Tn=n(757);function On(t,e){if(1&t){const t=r.EpF();r.ynx(0),r.TgZ(1,"span",10),r._uU(2),r.qZA(),r.TgZ(3,"button",11),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).disconnectSocialAccount("envato")}),r._uU(4," Disable "),r.qZA(),r.BQk()}if(2&t){const t=e.ngIf;r.xp6(2),r.Oqu(t)}}function Dn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",12),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).connectSocialAccount("envato")}),r._uU(1," Enable "),r.qZA()}}function In(t,e){if(1&t&&(r.TgZ(0,"div",4),r.TgZ(1,"div",5),r._UZ(2,"mat-icon",6),r.qZA(),r.TgZ(3,"div",7),r._uU(4,"Envato Account"),r.qZA(),r.YNc(5,On,5,1,"ng-container",8),r.YNc(6,Dn,2,0,"ng-template",null,9,r.W1O),r.qZA()),2&t){const t=r.MAs(7),e=r.oxw();r.xp6(5),r.Q6J("ngIf",e.getSocialAccountUsername("envato"))("ngIfElse",t)}}function Pn(t,e){if(1&t){const t=r.EpF();r.ynx(0),r.TgZ(1,"span",10),r._uU(2),r.qZA(),r.TgZ(3,"button",11),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).disconnectSocialAccount("google")}),r._uU(4," Disable "),r.qZA(),r.BQk()}if(2&t){const t=e.ngIf;r.xp6(2),r.Oqu(t)}}function Fn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",12),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).connectSocialAccount("google")}),r._uU(1," Enable "),r.qZA()}}function Rn(t,e){if(1&t&&(r.TgZ(0,"div",13),r.TgZ(1,"div",14),r._UZ(2,"mat-icon",15),r.qZA(),r.TgZ(3,"div",7),r._uU(4,"Google Account"),r.qZA(),r.YNc(5,Pn,5,1,"ng-container",8),r.YNc(6,Fn,2,0,"ng-template",null,16,r.W1O),r.qZA()),2&t){const t=r.MAs(7),e=r.oxw();r.xp6(5),r.Q6J("ngIf",e.getSocialAccountUsername("google"))("ngIfElse",t)}}function Mn(t,e){if(1&t){const t=r.EpF();r.ynx(0),r.TgZ(1,"span",10),r._uU(2),r.qZA(),r.TgZ(3,"button",11),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).disconnectSocialAccount("facebook")}),r._uU(4," Disable "),r.qZA(),r.BQk()}if(2&t){const t=e.ngIf;r.xp6(2),r.Oqu(t)}}function Ln(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",12),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).connectSocialAccount("facebook")}),r._uU(1," Enable "),r.qZA()}}function Nn(t,e){if(1&t&&(r.TgZ(0,"div",17),r.TgZ(1,"div",18),r._UZ(2,"mat-icon",19),r.qZA(),r.TgZ(3,"div",7),r._uU(4,"Facebook Account"),r.qZA(),r.YNc(5,Mn,5,1,"ng-container",8),r.YNc(6,Ln,2,0,"ng-template",null,20,r.W1O),r.qZA()),2&t){const t=r.MAs(7),e=r.oxw();r.xp6(5),r.Q6J("ngIf",e.getSocialAccountUsername("facebook"))("ngIfElse",t)}}function Zn(t,e){if(1&t){const t=r.EpF();r.ynx(0),r.TgZ(1,"span",10),r._uU(2),r.qZA(),r.TgZ(3,"button",11),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).disconnectSocialAccount("twitter")}),r._uU(4," Disable "),r.qZA(),r.BQk()}if(2&t){const t=e.ngIf;r.xp6(2),r.Oqu(t)}}function Bn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",12),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).connectSocialAccount("twitter")}),r._uU(1," Enable "),r.qZA()}}function Un(t,e){if(1&t&&(r.TgZ(0,"div",21),r.TgZ(1,"div",22),r._UZ(2,"mat-icon",23),r.qZA(),r.TgZ(3,"div",7),r._uU(4,"Twitter Account"),r.qZA(),r.YNc(5,Zn,5,1,"ng-container",8),r.YNc(6,Bn,2,0,"ng-template",null,24,r.W1O),r.qZA()),2&t){const t=r.MAs(7),e=r.oxw();r.xp6(5),r.Q6J("ngIf",e.getSocialAccountUsername("twitter"))("ngIfElse",t)}}let zn=(()=>{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)(r.Y36(Tt.x),r.Y36(dt.F),r.Y36(V.Z),r.Y36(r.sBO))},t.\u0275cmp=r.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&&(r.YNc(0,In,8,2,"div",0),r.YNc(1,Rn,8,2,"div",1),r.YNc(2,Nn,8,2,"div",2),r.YNc(3,Un,8,2,"div",3)),2&t&&(r.Q6J("ngIf",e.settings.get("social.envato.enable")),r.xp6(1),r.Q6J("ngIf",e.settings.get("social.google.enable")),r.xp6(1),r.Q6J("ngIf",e.settings.get("social.facebook.enable")),r.xp6(1),r.Q6J("ngIf",e.settings.get("social.twitter.enable")))},directives:[W.O5,Ct.Hw,J.P,K.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 jn=n(76403),qn=n(18256);const Yn=["extraPanelRef"];function $n(t,e){if(1&t&&r._UZ(0,"material-navbar",2),2&t){const t=r.oxw();r.Q6J("menuPosition",t.settings.get("vebto.navbar.defaultPosition"))}}function Vn(t,e){if(1&t&&(r.ynx(0),r.TgZ(1,"button",50),r._UZ(2,"mat-icon",51),r.qZA(),r.TgZ(3,"mat-menu",null,52),r._UZ(5,"logged-in-user-menu"),r.qZA(),r.BQk()),2&t){const t=r.MAs(4);r.xp6(1),r.Q6J("matMenuTriggerFor",t)}}function Hn(t,e){}function Gn(t,e){if(1&t&&(r.TgZ(0,"div",53),r._uU(1),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(1),r.hij(" ",t.first_name," ")}}function Qn(t,e){if(1&t&&(r.TgZ(0,"div",54),r._uU(1),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(1),r.hij(" ",t.last_name," ")}}function Jn(t,e){if(1&t&&(r.TgZ(0,"div",55),r.TgZ(1,"div",11),r._uU(2,"Manage Social Login"),r.qZA(),r.TgZ(3,"div",12),r.TgZ(4,"div",24),r._uU(5,"Enable or disable connected social services"),r.qZA(),r._UZ(6,"connect-social-accounts-panel",56),r.ALo(7,"async"),r.qZA(),r.qZA()),2&t){const t=r.oxw(2);r.xp6(6),r.Q6J("user",r.lcZ(7,1,t.initialUser$))}}function Wn(t,e){if(1&t&&(r.TgZ(0,"div",68),r._uU(1),r.qZA()),2&t){const t=r.oxw(2).ngIf;r.xp6(1),r.hij(" ",t.current_password," ")}}function Kn(t,e){if(1&t&&(r.TgZ(0,"div",13),r.TgZ(1,"label",65),r._uU(2,"Current Password"),r.qZA(),r._UZ(3,"input",66),r.YNc(4,Wn,2,1,"div",67),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(4),r.Q6J("ngIf",t.current_password)}}function Xn(t,e){if(1&t&&(r.TgZ(0,"div",69),r._uU(1),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(1),r.hij(" ",t.new_password," ")}}function ti(t,e){if(1&t&&(r.TgZ(0,"div",70),r._uU(1),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(1),r.hij(" ",t.new_password_confirmation," ")}}function ei(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"form",57),r.NdJ("ngSubmit",function(){return r.CHM(t),r.oxw(2).changeUserPassword()}),r.TgZ(1,"div",11),r._uU(2,"Update Password"),r.qZA(),r.TgZ(3,"div",12),r.YNc(4,Kn,5,1,"div",58),r.TgZ(5,"div",13),r.TgZ(6,"label",59),r._uU(7,"New Password"),r.qZA(),r._UZ(8,"input",60),r.YNc(9,Xn,2,1,"div",61),r.qZA(),r.TgZ(10,"div",13),r.TgZ(11,"label",62),r._uU(12,"Confirm Password"),r.qZA(),r._UZ(13,"input",63),r.YNc(14,ti,2,1,"div",64),r.qZA(),r.qZA(),r.TgZ(15,"div",27),r.TgZ(16,"button",28),r.ALo(17,"async"),r._uU(18," Update "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=e.ngIf,n=r.oxw(2);r.Q6J("formGroup",n.passwordForm),r.xp6(4),r.Q6J("ngIf",n.currentUser.get("has_password")),r.xp6(5),r.Q6J("ngIf",t.new_password),r.xp6(5),r.Q6J("ngIf",t.new_password_confirmation),r.xp6(2),r.Q6J("disabled",r.lcZ(17,5,n.loading$))}}function ni(t,e){if(1&t&&(r.TgZ(0,"option",71),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t.language),r.xp6(1),r.hij(" ",t.name," ")}}function ii(t,e){if(1&t&&(r.TgZ(0,"div",72),r._uU(1),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(1),r.hij(" ",t.language," ")}}function ri(t,e){if(1&t&&(r.TgZ(0,"option",71),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.s9C("value",t.code),r.xp6(1),r.hij(" ",t.name," ")}}function si(t,e){if(1&t&&(r.TgZ(0,"div",73),r._uU(1),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(1),r.hij(" ",t.country," ")}}function oi(t,e){if(1&t&&(r.TgZ(0,"option",71),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t.value),r.xp6(1),r.hij(" ",t.text," ")}}function ai(t,e){if(1&t&&(r.TgZ(0,"optgroup",74),r.YNc(1,oi,2,2,"option",34),r.qZA()),2&t){const t=e.$implicit;r.Q6J("label",t.key),r.xp6(1),r.Q6J("ngForOf",t.value)}}function ci(t,e){if(1&t&&(r.TgZ(0,"div",75),r._uU(1),r.qZA()),2&t){const t=r.oxw().ngIf;r.xp6(1),r.hij(" ",t.timezone," ")}}function li(t,e){1&t&&(r.TgZ(0,"no-results-message",84),r.TgZ(1,"span",85),r._uU(2,"You have no personal access tokens yet"),r.qZA(),r.qZA())}function ui(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"li"),r.TgZ(1,"dl"),r.TgZ(2,"dt",49),r._uU(3,"Name"),r.qZA(),r.TgZ(4,"dd"),r._uU(5),r.qZA(),r.TgZ(6,"dt",49),r._uU(7,"Last Used"),r.qZA(),r.TgZ(8,"dd"),r._uU(9),r.ALo(10,"formattedDate"),r.qZA(),r.qZA(),r.TgZ(11,"button",45),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw(3).maybeDeleteToken(e)}),r._uU(12," Delete "),r.qZA(),r.qZA()}if(2&t){const t=e.$implicit;r.xp6(5),r.Oqu(t.name),r.xp6(4),r.hij(" ",t.last_used_at?r.lcZ(10,2,t.last_used_at):"-"," ")}}const hi=function(){return[]};function di(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",76),r.TgZ(1,"div",77),r.TgZ(2,"div",78),r._uU(3,"Manage API Access Tokens"),r.qZA(),r.TgZ(4,"a",79),r._uU(5,"Documentation"),r.qZA(),r.qZA(),r.TgZ(6,"div",12),r.YNc(7,li,3,0,"no-results-message",80),r.ALo(8,"async"),r.TgZ(9,"ul",81),r.YNc(10,ui,13,4,"li",82),r.ALo(11,"async"),r.qZA(),r.qZA(),r.TgZ(12,"div",27),r.TgZ(13,"button",83),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).openCreateTokenDialog()}),r._uU(14," Create new token "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(2);r.xp6(7),r.Q6J("ngIf",!(null!=r.lcZ(8,2,t.initialUser$).tokens&&r.lcZ(8,2,t.initialUser$).tokens.length)),r.xp6(3),r.Q6J("ngForOf",r.lcZ(11,4,t.initialUser$).tokens||r.DdM(6,hi))}}function pi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",3),r.TgZ(1,"h1",4),r.TgZ(2,"span",5),r._uU(3,"Account Settings"),r.qZA(),r.YNc(4,Vn,6,1,"ng-container",6),r.ALo(5,"async"),r.qZA(),r.TgZ(6,"div",7),r._uU(7," View and update your account details, profile and more. "),r.qZA(),r.TgZ(8,"div",8),r.YNc(9,Hn,0,0,"ng-template",null,9,r.W1O),r.TgZ(11,"form",10),r.NdJ("ngSubmit",function(){return r.CHM(t),r.oxw().updateAccountSettings()}),r.TgZ(12,"div",11),r._uU(13,"Update Name or Profile Image"),r.qZA(),r.TgZ(14,"div",12),r.TgZ(15,"div",13),r.TgZ(16,"label",14),r._uU(17,"First Name"),r.qZA(),r._UZ(18,"input",15),r.YNc(19,Gn,2,1,"div",16),r.qZA(),r.TgZ(20,"div",13),r.TgZ(21,"label",17),r._uU(22,"Last Name"),r.qZA(),r._UZ(23,"input",18),r.YNc(24,Qn,2,1,"div",19),r.qZA(),r.TgZ(25,"div",20),r.TgZ(26,"label",17),r._uU(27,"Profile image"),r.qZA(),r.TgZ(28,"div",21),r._UZ(29,"img",22),r.ALo(30,"async"),r.TgZ(31,"div",23),r.TgZ(32,"div",24),r._uU(33," For best results, upload a high resolution image. "),r.qZA(),r.TgZ(34,"button",25),r.NdJ("click",function(){return r.CHM(t),r.oxw().openAvatarUploadDialog()}),r._uU(35," Upload Image "),r.qZA(),r.TgZ(36,"button",26),r.NdJ("click",function(){return r.CHM(t),r.oxw().deleteAvatar()}),r._uU(37," Remove Image "),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.TgZ(38,"div",27),r.TgZ(39,"button",28),r.ALo(40,"async"),r._uU(41," Save Changes "),r.qZA(),r.qZA(),r.qZA(),r.YNc(42,Jn,8,3,"div",29),r.YNc(43,ei,19,7,"form",30),r.ALo(44,"async"),r.TgZ(45,"form",31),r.NdJ("ngSubmit",function(){return r.CHM(t),r.oxw().updateAccountSettings()}),r.TgZ(46,"div",11),r._uU(47,"Update Account Preferences"),r.qZA(),r.TgZ(48,"div",12),r.TgZ(49,"div",13),r.TgZ(50,"label",32),r._uU(51,"Language"),r.qZA(),r.TgZ(52,"select",33),r.NdJ("ngModelChange",function(e){return r.CHM(t),r.oxw().changeLanguage(e)}),r.YNc(53,ni,2,2,"option",34),r.qZA(),r.YNc(54,ii,2,1,"div",35),r.qZA(),r.TgZ(55,"div",13),r.TgZ(56,"label",36),r._uU(57,"Country"),r.qZA(),r.TgZ(58,"select",37),r.YNc(59,ri,2,2,"option",34),r.qZA(),r.YNc(60,si,2,1,"div",38),r.qZA(),r.TgZ(61,"div",13),r.TgZ(62,"label",39),r._uU(63,"Timezone"),r.qZA(),r.TgZ(64,"select",40),r.YNc(65,ai,2,2,"optgroup",41),r.ALo(66,"keyvalue"),r.qZA(),r.YNc(67,ci,2,1,"div",42),r.qZA(),r.qZA(),r.TgZ(68,"div",27),r.TgZ(69,"button",28),r.ALo(70,"async"),r._uU(71," Save Changes "),r.qZA(),r.qZA(),r.qZA(),r.YNc(72,di,15,7,"div",43),r.TgZ(73,"div",44),r.TgZ(74,"div",11),r._uU(75,"Danger Zone"),r.qZA(),r.TgZ(76,"div",12),r.TgZ(77,"button",45),r.NdJ("click",function(){return r.CHM(t),r.oxw().openConfirmAccountDeleteDialog()}),r._uU(78," Delete Account "),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.TgZ(79,"div",46),r.TgZ(80,"button",47),r.NdJ("click",function(){return r.CHM(t),r.oxw().auth.logOut()}),r._UZ(81,"mat-icon",48),r.TgZ(82,"span",49),r._uU(83,"Logout"),r.qZA(),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=e.ngIf,n=r.oxw();r.xp6(4),r.Q6J("ngIf",r.lcZ(5,17,n.breakpoints.isMobile$)),r.xp6(7),r.Q6J("formGroup",n.userForm),r.xp6(8),r.Q6J("ngIf",t.first_name),r.xp6(5),r.Q6J("ngIf",t.last_name),r.xp6(5),r.Q6J("src",r.lcZ(30,19,n.avatar$),r.LSH),r.xp6(10),r.Q6J("disabled",r.lcZ(40,21,n.loading$)),r.xp6(3),r.Q6J("ngIf",n.settings.anySocialLoginEnabled()),r.xp6(1),r.Q6J("ngIf",r.lcZ(44,23,n.passwordErrors$)),r.xp6(2),r.Q6J("formGroup",n.userForm),r.xp6(8),r.Q6J("ngForOf",n.selects.localizations),r.xp6(1),r.Q6J("ngIf",t.language),r.xp6(5),r.Q6J("ngForOf",n.selects.countries),r.xp6(1),r.Q6J("ngIf",t.country),r.xp6(5),r.Q6J("ngForOf",r.lcZ(66,25,n.selects.timezones)),r.xp6(2),r.Q6J("ngIf",t.timezone),r.xp6(2),r.Q6J("disabled",r.lcZ(70,27,n.loading$)),r.xp6(3),r.Q6J("ngIf",n.apiEnabled())}}let fi=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c,l,u,h,d,p,f,g){this.settings=t,this.route=e,this.users=n,this.currentUser=i,this.toast=r,this.uploads=s,this.i18n=o,this.localizations=a,this.auth=c,this.avatarValidator=l,this.fb=u,this.componentFactoryResolver=h,this.breakpoints=d,this.cd=p,this.dialog=f,this.extraPanels=g,this.loading$=new ut.X(!1),this.avatar$=new ut.X(null),this.initialUser$=new ut.X(null),this.userErrors$=new ut.X({}),this.passwordErrors$=new ut.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,At.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,hn.r)({types:[dn.j.image]}).then(t=>{this.avatarValidator.validateWithToast(t[0]).failed||this.users.uploadAvatar(this.currentUser.get("id"),t).pipe((0,At.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,At.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,At.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,At.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(fn.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(xn).afterClosed().subscribe(t=>{t&&this.initialUser$.next(Object.assign(Object.assign({},this.initialUser$.value),{tokens:[...this.initialUser$.value.tokens,t]}))})}openConfirmAccountDeleteDialog(){this.dialog.open(fn.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)(r.Y36(V.Z),r.Y36(s.gz),r.Y36(cn.Q),r.Y36(Ot.I),r.Y36(dt.F),r.Y36(Cn.f),r.Y36(Dt.Z),r.Y36(kn.v),r.Y36(ht.e),r.Y36(Sn.m),r.Y36(pt.qu),r.Y36(r._Vd),r.Y36(En.S),r.Y36(r.sBO),r.Y36(An.u),r.Y36(pn,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["account-settings"]],viewQuery:function(t,e){if(1&t&&r.Gf(Yn,5,r.s_b),2&t){let t;r.iGM(t=r.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&&(r.YNc(0,$n,1,1,"material-navbar",0),r.YNc(1,pi,84,29,"div",1),r.ALo(2,"async")),2&t&&(r.Q6J("ngIf",!e.settings.get("vebto.accountSettings.hideNavbar")),r.xp6(1),r.Q6J("ngIf",r.lcZ(2,2,e.userErrors$)))},directives:[W.O5,De.e,J.P,pt.JL,pt.sg,pt.Fj,pt.JJ,pt.u,K.lW,pt.EJ,W.sg,Ct.Hw,Pe.p6,Pe.VK,Tn.F,zn,pt.Q7,pt.YN,pt.Kr,s.yS,jn.U],pipes:[W.Ov,W.Nd,qn.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:transparent;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;-o-object-fit:cover;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 gi=n(20765);const mi=[{path:"account/settings",component:fi,resolve:{api:ln},canActivate:[un.a,gi.d],data:{name:"account-settings"}}];let _i=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[s.Bz.forChild(mi)],s.Bz]}),t})();var bi=n(18295),vi=n(95217),yi=n(98097),wi=n(65939);let xi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[ln],imports:[[W.ez,pt.u5,pt.UX,bi.l,_i,Ce.N,vi.u,xe.Is,yi.X,K.ot,Ct.Ps,Pe.Tx,wi.Nh],_i]}),t})();var Ci=n(2124),ki=(()=>(function(t){t.NoPermissions="You don't have required permissions to do that."}(ki||(ki={})),ki))();let Si=(()=>{class t extends Ci.k{constructor(t,e,n,i,r,s,o){super(t,i),this.i18n=t,this.currentUser=e,this.router=n,this.toast=i,this.zone=r,this.settings=s,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=dt.D),this.toast.open(t.message||ki.NoPermissions,e).onAction().subscribe(()=>{this.router.navigateByUrl(t.action.action),this.modal.closeAll()})}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(Dt.Z),r.LFG(Ot.I),r.LFG(s.F0),r.LFG(dt.F),r.LFG(r.R0b),r.LFG(V.Z),r.LFG(An.u))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Ei=n(74530),Ai=n.n(Ei);const Ti=["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 Oi extends r.qLn{constructor(t){super(),this.settings=t,this.installed=!1}handleError(t,e){t&&(super.handleError(t),this.installSentry()&&Ei.captureException(t.originalError||t,e))}installSentry(){return!!this.installed||!!this.settings.has("logging.sentry_public")&&(Ei.config(this.settings.get("logging.sentry_public"),{release:this.settings.get("version"),ignoreErrors:Ti}).install(),this.installed=!0)}}class Di extends Oi{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()&&Ai().setUserContext({id:this.currentUser.get("id"),username:this.currentUser.get("display_name"),email:this.currentUser.get("email")})}}var Ii=n(91841),Pi=n(93342),Fi=n(15257),Ri=n(13913);let Mi=(()=>{class t{constructor(t,e,n,i,r,s){this.document=t,this.router=e,this.settings=n,this.i18n=i,this.route=r,this.title=s,this.latestMetaTags$=new ut.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 s.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,Fi.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 s.m2),(0,et.U)(()=>this.route),(0,et.U)(t=>{for(;t.firstChild;)t=t.firstChild;return t}),(0,o.h)(t=>"primary"===t.outlet),(0,et.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,Ri.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)(r.LFG(W.K0),r.LFG(s.F0),r.LFG(V.Z),r.LFG(Dt.Z),r.LFG(s.gz),r.LFG(i.Dx))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Li=(()=>{class t{constructor(t){this.metaTags=t}intercept(t,e){return e.handle(t).pipe((0,Pi.b)(t=>(t instanceof Ii.Zn&&t.body&&t.body.seo&&this.metaTags.latestMetaTags$.next(t.body.seo),t)))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(Mi))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Ni=[{provide:It,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:Ci.k,useClass:Si},{provide:r.ip1,useFactory:function(t){return()=>t.bootstrap()},deps:[Pt],multi:!0},{provide:r.qLn,useFactory:function(t,e){return new Di(t,e)},deps:[V.Z,Ot.I]},{provide:Ii.TP,useClass:Li,multi:!0}];let Zi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[W.ez,bi.l,pt.u5,pt.UX,Ce.N,K.ot]]}),t})();var Bi=n(93410);let Ui=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[W.ez,Ce.N,s.Bz,K.ot]]}),t})();var zi=n(77001);const ji=[{path:"pages/:id/:slug",component:n(77157).y,data:{permissions:["custom_pages.view"],willSetSeo:!0}}];let qi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[s.Bz.forChild(ji)],s.Bz]}),t})(),Yi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[W.ez,s.Bz,qi,bi.l,Ce.N,K.ot]]}),t})();var $i=n(21023);let Vi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[W.ez,Se.N,Ce.N,K.ot,Ct.Ps,Pe.Tx]]}),t})();var Hi=n(68285);let Gi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t,bootstrap:[ct]}),t.\u0275inj=r.cJS({providers:[...Ni,{provide:It,useValue:Ae,multi:!0}],imports:[[W.ez,i.b2,lt.PW,Ii.JF,s.Bz,Ce.N,Ee,xi,Yi,rn,bi.l,Bi.v,Zi,Ui,$i.M,Vi,K.ot,Ct.Ps,zi.ZX,Te.$l.forRoot([]),Oe.G1.forRoot(),Hi.T]]}),t})();n(11524),(0,r.G48)(),i.q6().bootstrapModule(Gi).catch(t=>console.log(t))},64762:function(t,e,n){"use strict";function i(t,e,n,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,n,o):r(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}function r(t,e,n,i){return new(n||(n=Promise))(function(r,s){function o(t){try{c(i.next(t))}catch(e){s(e)}}function a(t){try{c(i.throw(t))}catch(e){s(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}c((i=i.apply(t,e||[])).next())})}n.d(e,{gn:function(){return i},mG:function(){return r}})}},function(t){"use strict";t(t.s=87411)}]);
//# sourceMappingURL=main-es2015.b9e79d4e6de6436ec702.js.map

Zerion Mini Shell 1.0