@drayman/elements 1.21.0 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/grid/main.js CHANGED
@@ -1 +1 @@
1
- !function(t){var e={};function n(s){if(e[s])return e[s].exports;var i=e[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,s){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(s,i,(function(e){return t[e]}).bind(null,i));return s},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}({0:function(t,e,n){t.exports=n("zUnb")},"4Xgz":function(t,e,n){"use strict";var s,i,r;"undefined"!=typeof window&&window,i=[n("MXs6")],void 0===(r="function"==typeof(s=function(t){var e=function(){var e,n={},s=[];function i(t){t||(t=document.documentElement);var e=window.getComputedStyle(t,null).fontSize;return parseFloat(e)||16}function r(t,e){var n=e.split(/\d/),s=n[n.length-1];switch(e=parseFloat(e),s){case"px":return e;case"em":return e*i(t);case"rem":return e*i();case"vw":return e*document.documentElement.clientWidth/100;case"vh":return e*document.documentElement.clientHeight/100;case"vmin":case"vmax":var r=document.documentElement.clientWidth/100,o=document.documentElement.clientHeight/100;return e*(0,Math["vmin"===s?"min":"max"])(r,o);default:return e}}function o(t,e){var s,i,o,a,l,c,h,u;this.element=t;var d=["min-width","min-height","max-width","max-height"];this.call=function(){for(s in o=function(t){if(!t.getBoundingClientRect)return{width:t.offsetWidth,height:t.offsetHeight};var e=t.getBoundingClientRect();return{width:Math.round(e.width),height:Math.round(e.height)}}(this.element),c={},n[e])n[e].hasOwnProperty(s)&&(a=r(this.element,(i=n[e][s]).value),l="width"===i.property?o.width:o.height,h="","min"===i.mode&&l>=a&&(h+=i.value),"max"===i.mode&&l<=a&&(h+=i.value),c[u=i.mode+"-"+i.property]||(c[u]=""),h&&-1===(" "+c[u]+" ").indexOf(" "+h+" ")&&(c[u]+=" "+h));for(var t in d)d.hasOwnProperty(t)&&(c[d[t]]?this.element.setAttribute(d[t],c[d[t]].substr(1)):this.element.removeAttribute(d[t]))}}function a(e,n){e.elementQueriesSetupInformation||(e.elementQueriesSetupInformation=new o(e,n)),e.elementQueriesSensor||(e.elementQueriesSensor=new t(e,(function(){e.elementQueriesSetupInformation.call()})))}function l(t,i,r,o){if(void 0===n[t]){n[t]=[];var a=s.length;e.innerHTML+="\n"+t+" {animation: 0.1s element-queries;}",e.innerHTML+="\n"+t+" > .resize-sensor {min-width: "+a+"px;}",s.push(t)}n[t].push({mode:i,property:r,value:o})}function c(t){var e;if(document.querySelectorAll&&(e=t?t.querySelectorAll.bind(t):document.querySelectorAll.bind(document)),e||"undefined"==typeof $$||(e=$$),e||"undefined"==typeof jQuery||(e=jQuery),!e)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return e}function h(e){var n=[],s=[],i=[],r=0,o=-1,a=[];for(var l in e.children)if(e.children.hasOwnProperty(l)&&e.children[l].tagName&&"img"===e.children[l].tagName.toLowerCase()){n.push(e.children[l]);var c=e.children[l].getAttribute("min-width")||e.children[l].getAttribute("data-min-width"),h=e.children[l].getAttribute("data-src")||e.children[l].getAttribute("url");i.push(h),s.push({minWidth:c}),c?e.children[l].style.display="none":(r=n.length-1,e.children[l].style.display="block")}function u(){var t,l=!1;for(t in n)n.hasOwnProperty(t)&&s[t].minWidth&&e.offsetWidth>s[t].minWidth&&(l=t);if(l||(l=r),o!==l)if(a[l])n[o].style.display="none",n[l].style.display="block",o=l;else{var c=new Image;c.onload=function(){n[l].src=i[l],n[o].style.display="none",n[l].style.display="block",a[l]=!0,o=l},c.src=i[l]}else n[l].src=i[l]}o=r,e.resizeSensorInstance=new t(e,u),u()}var u=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,d=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function p(t){var e,n,s,i;for(t=t.replace(/'/g,'"');null!==(e=u.exec(t));)for(n=e[1]+e[3],s=e[2];null!==(i=d.exec(s));)l(n,i[1],i[2],i[3])}function f(t){var e="";if(t)if("string"==typeof t)-1===(t=t.toLowerCase()).indexOf("min-width")&&-1===t.indexOf("max-width")||p(t);else for(var n=0,s=t.length;n<s;n++)1===t[n].type?-1!==(e=t[n].selectorText||t[n].cssText).indexOf("min-height")||-1!==e.indexOf("max-height")?p(e):-1===e.indexOf("min-width")&&-1===e.indexOf("max-width")||p(e):4===t[n].type?f(t[n].cssRules||t[n].rules):3===t[n].type&&t[n].styleSheet.hasOwnProperty("cssRules")&&f(t[n].styleSheet.cssRules)}var m=!1;this.init=function(){var n="animationstart";void 0!==document.documentElement.style.webkitAnimationName?n="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?n="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(n="oanimationstart"),document.body.addEventListener(n,(function(e){var n=e.target,i=n&&window.getComputedStyle(n,null),r=i&&i.getPropertyValue("animation-name");if(r&&-1!==r.indexOf("element-queries")){n.elementQueriesSensor=new t(n,(function(){n.elementQueriesSetupInformation&&n.elementQueriesSetupInformation.call()}));var o=window.getComputedStyle(n.resizeSensor,null).getPropertyValue("min-width");o=parseInt(o.replace("px","")),a(e.target,s[o])}})),m||((e=document.createElement("style")).type="text/css",e.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",e.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(e),m=!0);for(var i=0,r=document.styleSheets.length;i<r;i++)try{document.styleSheets[i].href&&0===document.styleSheets[i].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[i].href),f(document.styleSheets[i].cssRules||document.styleSheets[i].rules||document.styleSheets[i].cssText)}catch(o){}!function(){for(var t=c()("[data-responsive-image],[responsive-image]"),e=0,n=t.length;e<n;e++)h(t[e])}()},this.findElementQueriesElements=function(t){!function(t){var e=c(t);for(var s in n)if(n.hasOwnProperty(s))for(var i=e(s,t),r=0,o=i.length;r<o;r++)a(i[r],s)}(t)},this.update=function(){this.init()}};return e.update=function(){e.instance.update()},e.detach=function(t){t.elementQueriesSetupInformation?(t.elementQueriesSensor.detach(),delete t.elementQueriesSetupInformation,delete t.elementQueriesSensor):t.resizeSensorInstance&&(t.resizeSensorInstance.detach(),delete t.resizeSensorInstance)},e.init=function(){e.instance||(e.instance=new e),e.instance.init()},e.findElementQueriesElements=function(t){e.instance.findElementQueriesElements(t)},e.listen=function(){!function(t){if(document.addEventListener)document.addEventListener("DOMContentLoaded",t,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var e=setInterval((function(){/loaded|complete/i.test(document.readyState)&&(t(),clearInterval(e))}),10);else window.onload=t}(e.init)},e})?s.apply(e,i):s)||(t.exports=r)},"5vqC":function(t,e,n){t.exports={ResizeSensor:n("MXs6"),ElementQueries:n("4Xgz")}},MXs6:function(t,e,n){"use strict";var s,i;"undefined"!=typeof window&&window,void 0===(i="function"==typeof(s=function(){if("undefined"==typeof window)return null;var t="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(e){return t.setTimeout(e,20)},n=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||function(e){t.clearTimeout(e)};function s(t,e){var n=Object.prototype.toString.call(t),s="[object Array]"===n||"[object NodeList]"===n||"[object HTMLCollection]"===n||"[object Object]"===n||"undefined"!=typeof jQuery&&t instanceof jQuery||"undefined"!=typeof Elements&&t instanceof Elements,i=0,r=t.length;if(s)for(;i<r;i++)e(t[i]);else e(t)}function i(t){if(!t.getBoundingClientRect)return{width:t.offsetWidth,height:t.offsetHeight};var e=t.getBoundingClientRect();return{width:Math.round(e.width),height:Math.round(e.height)}}function r(t,e){Object.keys(e).forEach((function(n){t.style[n]=e[n]}))}var o=function(t,a){var l=0;function c(){var t,e,n=[];this.add=function(t){n.push(t)},this.call=function(s){for(t=0,e=n.length;t<e;t++)n[t].call(this,s)},this.remove=function(s){var i=[];for(t=0,e=n.length;t<e;t++)n[t]!==s&&i.push(n[t]);n=i},this.length=function(){return n.length}}s(t,(function(t){!function(t,n){if(t)if(t.resizedAttached)t.resizedAttached.add(n);else{t.resizedAttached=new c,t.resizedAttached.add(n),t.resizeSensor=document.createElement("div"),t.resizeSensor.dir="ltr",t.resizeSensor.className="resize-sensor";var s={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},o={position:"absolute",left:"0px",top:"0px",transition:"0s"};r(t.resizeSensor,s);var a=document.createElement("div");a.className="resize-sensor-expand",r(a,s);var h=document.createElement("div");r(h,o),a.appendChild(h);var u=document.createElement("div");u.className="resize-sensor-shrink",r(u,s);var d=document.createElement("div");r(d,o),r(d,{width:"200%",height:"200%"}),u.appendChild(d),t.resizeSensor.appendChild(a),t.resizeSensor.appendChild(u),t.appendChild(t.resizeSensor);var p=window.getComputedStyle(t),f=p?p.getPropertyValue("position"):null;"absolute"!==f&&"relative"!==f&&"fixed"!==f&&"sticky"!==f&&(t.style.position="relative");var m=!1,g=0,_=i(t),y=0,b=0,v=!0;l=0;var w=function(){if(v){if(0===t.offsetWidth&&0===t.offsetHeight)return void(l||(l=e((function(){l=0,w()}))));v=!1}var n,s;s=t.offsetHeight,h.style.width=(n=t.offsetWidth)+10+"px",h.style.height=s+10+"px",a.scrollLeft=n+10,a.scrollTop=s+10,u.scrollLeft=n+10,u.scrollTop=s+10};t.resizeSensor.resetSensor=w;var C=function(){g=0,m&&(y=_.width,b=_.height,t.resizedAttached&&t.resizedAttached.call(_))},E=function(){_=i(t),(m=_.width!==y||_.height!==b)&&!g&&(g=e(C)),w()},S=function(t,e,n){t.attachEvent?t.attachEvent("on"+e,n):t.addEventListener(e,n)};S(a,"scroll",E),S(u,"scroll",E),l=e((function(){l=0,w()}))}}(t,a)})),this.detach=function(e){l||(n(l),l=0),o.detach(t,e)},this.reset=function(){t.resizeSensor.resetSensor()}};if(o.reset=function(t){s(t,(function(t){t.resizeSensor.resetSensor()}))},o.detach=function(t,e){s(t,(function(t){t&&(t.resizedAttached&&"function"==typeof e&&(t.resizedAttached.remove(e),t.resizedAttached.length())||t.resizeSensor&&(t.contains(t.resizeSensor)&&t.removeChild(t.resizeSensor),delete t.resizeSensor,delete t.resizedAttached))}))},"undefined"!=typeof MutationObserver){var a=new MutationObserver((function(t){for(var e in t)if(t.hasOwnProperty(e))for(var n=t[e].addedNodes,s=0;s<n.length;s++)n[s].resizeSensor&&o.reset(n[s])}));document.addEventListener("DOMContentLoaded",(function(t){a.observe(document.body,{childList:!0,subtree:!0})}))}return o})?s.call(e,n,e,t):s)||(t.exports=i)},zUnb:function(t,e,n){"use strict";function s(t){return"function"==typeof t}n.r(e);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}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const h=(()=>{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})();let u=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(s(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(a){e=a instanceof h?d(a.errors):[a]}}if(l(o)){let t=-1,n=o.length;for(;++t<n;){const n=o[t];if(c(n))try{n.unsubscribe()}catch(a){e=e||[],a instanceof h?e=e.concat(d(a.errors)):e.push(a)}}}if(e)throw new h(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:s}=n;if(null===s)n._parentOrParents=this;else if(s instanceof t){if(s===this)return n;n._parentOrParents=[s,this]}else{if(-1!==s.indexOf(this))return n;s.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function d(t){return t.reduce((t,e)=>t.concat(e instanceof h?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends u{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,t,e,n)}}[p](){return this}static create(t,e,n){const s=new f(t,e,n);return s.syncErrorThrowable=!1,s}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 m extends f{constructor(t,e,n,i){let r;super(),this._parentSubscriber=t;let o=this;s(e)?r=e:e&&(r=e.next,n=e.error,i=e.complete,e!==a&&(o=Object.create(e),s(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.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}=r;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):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.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(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(s){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(o(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(t){return t}let y=(()=>{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:s}=this,i=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(i.add(s?s.call(i,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),r.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=b(e))((e,n)=>{let s;s=this.subscribe(e=>{try{t(e)}catch(i){n(i),s&&s.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?_:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=b(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const v=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends u{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)}}class C extends f{constructor(t){super(t),this.destination=t}}let E=(()=>{class t extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(t){const e=new S(this,this);return e.operator=t,e}next(t){if(this.closed)throw new v;if(!this.isStopped){const{observers:e}=this,n=e.length,s=e.slice();for(let i=0;i<n;i++)s[i].next(t)}}error(t){if(this.closed)throw new v;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,s=e.slice();for(let i=0;i<n;i++)s[i].error(t);this.observers.length=0}complete(){if(this.closed)throw new v;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let s=0;s<e;s++)n[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new v;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new v;return this.hasError?(t.error(this.thrownError),u.EMPTY):this.isStopped?(t.complete(),u.EMPTY):(this.observers.push(t),new w(this,t))}asObservable(){const t=new y;return t.source=this,t}}return t.create=(t,e)=>new S(t,e),t})();class S extends E{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):u.EMPTY}}function x(t){return t&&"function"==typeof t.schedule}function T(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 k(t,e))}}class k{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 f{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)}}const I=t=>e=>{for(let n=0,s=t.length;n<s&&!e.closed;n++)e.next(t[n]);e.complete()};function R(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const A=R(),D=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function P(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const N=t=>{if(t&&"function"==typeof t[g])return s=t,t=>{const e=s[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(D(t))return I(t);if(P(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[A])return e=t,t=>{const n=e[A]();for(;;){let e;try{e=n.next()}catch(s){return t.error(s),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=c(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,s};function F(t,e){return new y(n=>{const s=new u;let i=0;return s.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||s.add(this.schedule())):n.complete()}))),s})}function L(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new y(n=>{const s=new u;return s.add(e.schedule(()=>{const i=t[g]();s.add(i.subscribe({next(t){s.add(e.schedule(()=>n.next(t)))},error(t){s.add(e.schedule(()=>n.error(t)))},complete(){s.add(e.schedule(()=>n.complete()))}}))})),s})}(t,e);if(P(t))return function(t,e){return new y(n=>{const s=new u;return s.add(e.schedule(()=>t.then(t=>{s.add(e.schedule(()=>{n.next(t),s.add(e.schedule(()=>n.complete()))}))},t=>{s.add(e.schedule(()=>n.error(t)))}))),s})}(t,e);if(D(t))return F(t,e);if(function(t){return t&&"function"==typeof t[A]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new y(n=>{const s=new u;let i;return s.add(()=>{i&&"function"==typeof i.return&&i.return()}),s.add(e.schedule(()=>{i=t[A](),s.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=i.next();t=n.value,e=n.done}catch(s){return void n.error(s)}e?n.complete():(n.next(t),this.schedule())})))})),s})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof y?t:new y(N(t))}class M extends f{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 j extends f{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function H(t,e){if(!e.closed)return t instanceof y?t.subscribe(e):N(t)(e)}function V(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?s=>s.pipe(V((n,s)=>L(t(n,s)).pipe(T((t,i)=>e(n,t,s,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new B(t,n)))}class B{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new z(t,this.project,this.concurrent))}}class z extends j{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(s){return void this.destination.error(s)}this.active++,this._innerSub(e)}_innerSub(t){const e=new M(this),n=this.destination;n.add(e);const s=H(t,e);s!==e&&n.add(s)}_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()}}function W(t=Number.POSITIVE_INFINITY){return V(_,t)}function $(t,e){return e?F(t,e):new y(I(t))}function q(...t){let e=Number.POSITIVE_INFINITY,n=null,s=t[t.length-1];return x(s)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof s&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof y?t[0]:W(e)($(t,n))}function U(){return function(t){return t.lift(new Q(t))}}class Q{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const s=new Z(t,n),i=e.subscribe(s);return s.closed||(s.connection=n.connect()),i}}class Z extends f{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,s=t._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}class K extends 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 u,t.add(this.source.subscribe(new Y(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.EMPTY)),t}refCount(){return U()(this)}}const G=(()=>{const t=K.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 Y extends C{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()}}}function X(){return new E}function J(){return t=>{return U()((e=X,function(t){let n;n="function"==typeof e?e:function(){return e};const s=Object.create(t,G);return s.source=t,s.subjectFactory=n,s})(t));var e}}function tt(t){return{toString:t}.toString()}const et="__parameters__";function nt(t,e,n){return tt(()=>{const s=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function i(...t){if(this instanceof i)return s.apply(this,t),this;const e=new i(...t);return n.annotation=e,n;function n(t,n,s){const i=t.hasOwnProperty(et)?t[et]:Object.defineProperty(t,et,{value:[]})[et];for(;i.length<=s;)i.push(null);return(i[s]=i[s]||[]).push(e),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}const st=nt("Inject",t=>({token:t})),it=nt("Optional"),rt=nt("Self"),ot=nt("SkipSelf");var at=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function lt(t){for(let e in t)if(t[e]===lt)return e;throw Error("Could not find renamed property on target object.")}function ct(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ht(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ut(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function dt(t){return pt(t,t[mt])||pt(t,t[yt])}function pt(t,e){return e&&e.token===t?e:null}function ft(t){return t&&(t.hasOwnProperty(gt)||t.hasOwnProperty(bt))?t[gt]:null}const mt=lt({"\u0275prov":lt}),gt=lt({"\u0275inj":lt}),_t=lt({"\u0275provFallback":lt}),yt=lt({ngInjectableDef:lt}),bt=lt({ngInjectorDef:lt});function vt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(vt).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 wt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Ct=lt({__forward_ref__:lt});function Et(t){return t.__forward_ref__=Et,t.toString=function(){return vt(this())},t}function St(t){return xt(t)?t():t}function xt(t){return"function"==typeof t&&t.hasOwnProperty(Ct)&&t.__forward_ref__===Et}const Tt="undefined"!=typeof globalThis&&globalThis,kt="undefined"!=typeof window&&window,Ot="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,It="undefined"!=typeof global&&global,Rt=Tt||It||kt||Ot,At=lt({"\u0275cmp":lt}),Dt=lt({"\u0275dir":lt}),Pt=lt({"\u0275pipe":lt}),Nt=lt({"\u0275mod":lt}),Ft=lt({"\u0275loc":lt}),Lt=lt({"\u0275fac":lt}),Mt=lt({__NG_ELEMENT_ID__:lt});class jt{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=ht({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Ht=new jt("INJECTOR",-1),Vt={},Bt=/\n/gm,zt="__source",Wt=lt({provide:String,useValue:lt});let $t,qt=void 0;function Ut(t){const e=qt;return qt=t,e}function Qt(t){const e=$t;return $t=t,e}function Zt(t,e=at.Default){if(void 0===qt)throw new Error("inject() must be called from an injection context");return null===qt?Yt(t,void 0,e):qt.get(t,e&at.Optional?null:void 0,e)}function Kt(t,e=at.Default){return($t||Zt)(St(t),e)}const Gt=Kt;function Yt(t,e,n){const s=dt(t);if(s&&"root"==s.providedIn)return void 0===s.value?s.value=s.factory():s.value;if(n&at.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${vt(t)}]`)}function Xt(t){const e=[];for(let n=0;n<t.length;n++){const s=St(t[n]);if(Array.isArray(s)){if(0===s.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=at.Default;for(let e=0;e<s.length;e++){const i=s[e];i instanceof it||"Optional"===i.ngMetadataName||i===it?n|=at.Optional:i instanceof ot||"SkipSelf"===i.ngMetadataName||i===ot?n|=at.SkipSelf:i instanceof rt||"Self"===i.ngMetadataName||i===rt?n|=at.Self:t=i instanceof st||i===st?i.token:i}e.push(Kt(t,n))}else e.push(Kt(s))}return e}class Jt{get(t,e=Vt){if(e===Vt){const e=new Error(`NullInjectorError: No provider for ${vt(t)}!`);throw e.name="NullInjectorError",e}return e}}class te{}function ee(t,e){t.forEach(t=>Array.isArray(t)?ee(t,e):e(t))}function ne(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function se(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ie(t,e){const n=[];for(let s=0;s<t;s++)n.push(e);return n}function re(t,e,n){let s=ae(t,e);return s>=0?t[1|s]=n:(s=~s,function(t,e,n,s){let i=t.length;if(i==e)t.push(n,s);else if(1===i)t.push(s,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=s}}(t,s,e,n)),s}function oe(t,e){const n=ae(t,e);if(n>=0)return t[1|n]}function ae(t,e){return function(t,e,n){let s=0,i=t.length>>1;for(;i!==s;){const n=s+(i-s>>1),r=t[n<<1];if(e===r)return n<<1;r>e?i=n:s=n+1}return~(i<<1)}(t,e)}var le=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),ce=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const he={},ue=[];let de=0;function pe(t){return tt(()=>{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===le.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ue,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ce.Emulated,id:"c",styles:t.styles||ue,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,i=t.features,r=t.pipes;return n.id+=de++,n.inputs=ye(t.inputs,e),n.outputs=ye(t.outputs),i&&i.forEach(t=>t(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map(fe):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(me):null,n})}function fe(t){return we(t)||function(t){return t[Dt]||null}(t)}function me(t){return function(t){return t[Pt]||null}(t)}const ge={};function _e(t){const e={type:t.type,bootstrap:t.bootstrap||ue,declarations:t.declarations||ue,imports:t.imports||ue,exports:t.exports||ue,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&tt(()=>{ge[t.id]=t.type}),e}function ye(t,e){if(null==t)return he;const n={};for(const s in t)if(t.hasOwnProperty(s)){let i=t[s],r=i;Array.isArray(i)&&(r=i[1],i=i[0]),n[i]=s,e&&(e[i]=r)}return n}const be=pe;function ve(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function we(t){return t[At]||null}function Ce(t,e){return t.hasOwnProperty(Lt)?t[Lt]:null}function Ee(t,e){const n=t[Nt]||null;if(!n&&!0===e)throw new Error(`Type ${vt(t)} does not have '\u0275mod' property.`);return n}const Se=20,xe=10;function Te(t){return Array.isArray(t)&&"object"==typeof t[1]}function ke(t){return Array.isArray(t)&&!0===t[1]}function Oe(t){return 0!=(8&t.flags)}function Ie(t){return 2==(2&t.flags)}function Re(t){return 1==(1&t.flags)}function Ae(t){return null!==t.template}function De(t){return 0!=(512&t[2])}class Pe{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ne(){return Fe}function Fe(t){return t.type.prototype.ngOnChanges&&(t.setInput=Me),Le}function Le(){const t=je(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===he)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Me(t,e,n,s){const i=je(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:he,current:null}),r=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[n],l=o[a];r[a]=new Pe(l&&l.currentValue,e,o===he),t[s]=e}function je(t){return t.__ngSimpleChanges__||null}Ne.ngInherit=!0;let He=void 0;function Ve(){return void 0!==He?He:"undefined"!=typeof document?document:void 0}function Be(t){return!!t.listen}const ze={createRenderer:(t,e)=>Ve()};function We(t){for(;Array.isArray(t);)t=t[0];return t}function $e(t,e){return We(e[t+Se])}function qe(t,e){return We(e[t.index])}function Ue(t,e){return t.data[e+Se]}function Qe(t,e){return t[e+Se]}function Ze(t,e){const n=e[t];return Te(n)?n:n[0]}function Ke(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ge(t){return 4==(4&t[2])}function Ye(t){return 128==(128&t[2])}function Xe(t,e){return null===t||null==e?null:t[e]}function Je(t){t[18]=0}function tn(t,e){t[5]+=e;let n=t,s=t[3];for(;null!==s&&(1===e&&1===n[5]||-1===e&&0===n[5]);)s[5]+=e,n=s,s=s[3]}const en={lFrame:Cn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function nn(){return en.bindingsEnabled}function sn(){return en.lFrame.lView}function rn(){return en.lFrame.tView}function on(t){en.lFrame.contextLView=t}function an(){return en.lFrame.previousOrParentTNode}function ln(t,e){en.lFrame.previousOrParentTNode=t,en.lFrame.isParent=e}function cn(){return en.lFrame.isParent}function hn(){en.lFrame.isParent=!1}function un(){return en.checkNoChangesMode}function dn(t){en.checkNoChangesMode=t}function pn(){return en.lFrame.bindingIndex++}function fn(t){const e=en.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function mn(t,e){const n=en.lFrame;n.bindingIndex=n.bindingRootIndex=t,gn(e)}function gn(t){en.lFrame.currentDirectiveIndex=t}function _n(){return en.lFrame.currentQueryIndex}function yn(t){en.lFrame.currentQueryIndex=t}function bn(t,e){const n=wn();en.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function vn(t,e){const n=wn(),s=t[1];en.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=s,n.contextLView=t,n.bindingIndex=s.bindingStartIndex}function wn(){const t=en.lFrame,e=null===t?null:t.child;return null===e?Cn(t):e}function Cn(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function En(){const t=en.lFrame;return en.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const Sn=En;function xn(){const t=En();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Tn(){return en.lFrame.selectedIndex}function kn(t){en.lFrame.selectedIndex=t}function On(){const t=en.lFrame;return Ue(t.tView,t.selectedIndex)}function In(t,e){for(let n=e.directiveStart,s=e.directiveEnd;n<s;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:i,ngAfterViewInit:r,ngAfterViewChecked:o,ngOnDestroy:a}=e;s&&(t.contentHooks||(t.contentHooks=[])).push(-n,s),i&&((t.contentHooks||(t.contentHooks=[])).push(n,i),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,i)),r&&(t.viewHooks||(t.viewHooks=[])).push(-n,r),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function Rn(t,e,n){Pn(t,e,3,n)}function An(t,e,n,s){(3&t[2])===n&&Pn(t,e,n,s)}function Dn(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Pn(t,e,n,s){const i=null!=s?s:-1;let r=0;for(let o=void 0!==s?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(r=e[o],null!=s&&r>=s)break}else e[o]<0&&(t[18]+=65536),(r<i||-1==i)&&(Nn(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Nn(t,e,n,s){const i=n[s]<0,r=n[s+1],o=t[i?-n[s]:n[s]];i?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}class Fn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ln(t,e,n){const s=Be(t);let i=0;for(;i<n.length;){const r=n[i];if("number"==typeof r){if(0!==r)break;i++;const o=n[i++],a=n[i++],l=n[i++];s?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=r,a=n[++i];jn(o)?s&&t.setProperty(e,o,a):s?t.setAttribute(e,o,a):e.setAttribute(o,a),i++}}return i}function Mn(t){return 3===t||4===t||6===t}function jn(t){return 64===t.charCodeAt(0)}function Hn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let s=0;s<e.length;s++){const i=e[s];"number"==typeof i?n=i:0===n||Vn(t,n,i,null,-1===n||2===n?e[++s]:null)}}return t}function Vn(t,e,n,s,i){let r=0,o=t.length;if(-1===e)o=-1;else for(;r<t.length;){const n=t[r++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=r-1;break}}}for(;r<t.length;){const e=t[r];if("number"==typeof e)break;if(e===n){if(null===s)return void(null!==i&&(t[r+1]=i));if(s===t[r+1])return void(t[r+2]=i)}r++,null!==s&&r++,null!==i&&r++}-1!==o&&(t.splice(o,0,e),r=o+1),t.splice(r++,0,n),null!==s&&t.splice(r++,0,s),null!==i&&t.splice(r++,0,i)}function Bn(t){return-1!==t}function zn(t){return 32767&t}function Wn(t){return t>>16}function $n(t,e){let n=Wn(t),s=e;for(;n>0;)s=s[15],n--;return s}function qn(t){return"string"==typeof t?t:null==t?"":""+t}function Un(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():qn(t)}const Qn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Rt))();function Zn(t){return{name:"body",target:t.ownerDocument.body}}function Kn(t){return t instanceof Function?t():t}let Gn=!0;function Yn(t){const e=Gn;return Gn=t,e}let Xn=0;function Jn(t,e){const n=es(t,e);if(-1!==n)return n;const s=e[1];s.firstCreatePass&&(t.injectorIndex=e.length,ts(s.data,t),ts(e,null),ts(s.blueprint,null));const i=ns(t,e),r=t.injectorIndex;if(Bn(i)){const t=zn(i),n=$n(i,e),s=n[1].data;for(let i=0;i<8;i++)e[r+i]=n[t+i]|s[t+i]}return e[r+8]=i,r}function ts(t,e){t.push(0,0,0,0,0,0,0,0,e)}function es(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function ns(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],s=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,s++;return n?n.injectorIndex|s<<16:-1}function ss(t,e,n){!function(t,e,n){let s;"string"==typeof n?s=n.charCodeAt(0)||0:n.hasOwnProperty(Mt)&&(s=n[Mt]),null==s&&(s=n[Mt]=Xn++);const i=255&s,r=1<<i,o=64&i,a=32&i,l=e.data;128&i?o?a?l[t+7]|=r:l[t+6]|=r:a?l[t+5]|=r:l[t+4]|=r:o?a?l[t+3]|=r:l[t+2]|=r:a?l[t+1]|=r:l[t]|=r}(t,e,n)}function is(t,e,n,s=at.Default,i){if(null!==t){const i=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Mt)?t[Mt]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof i){bn(e,t);try{const t=i();if(null!=t||s&at.Optional)return t;throw new Error(`No provider for ${Un(n)}!`)}finally{Sn()}}else if("number"==typeof i){if(-1===i)return new us(t,e);let r=null,o=es(t,e),a=-1,l=s&at.Host?e[16][6]:null;for((-1===o||s&at.SkipSelf)&&(a=-1===o?ns(t,e):e[o+8],hs(s,!1)?(r=e[1],o=zn(a),e=$n(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(cs(i,o,t.data)){const t=os(o,e,n,r,s,l);if(t!==rs)return t}hs(s,e[1].data[o+8]===l)&&cs(i,o,e)?(r=t,o=zn(a),e=$n(a,e)):o=-1}}}if(s&at.Optional&&void 0===i&&(i=null),0==(s&(at.Self|at.Host))){const t=e[9],r=Qt(void 0);try{return t?t.get(n,i,s&at.Optional):Yt(n,i,s&at.Optional)}finally{Qt(r)}}if(s&at.Optional)return i;throw new Error(`NodeInjector: NOT_FOUND [${Un(n)}]`)}const rs={};function os(t,e,n,s,i,r){const o=e[1],a=o.data[t+8],l=as(a,o,n,null==s?Ie(a)&&Gn:s!=o&&3===a.type,i&at.Host&&r===a);return null!==l?ls(e,o,l,a):rs}function as(t,e,n,s,i){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,h=i?a+c:t.directiveEnd;for(let u=s?a:a+c;u<h;u++){const t=o[u];if(u<l&&n===t||u>=l&&t.type===n)return u}if(i){const t=o[l];if(t&&Ae(t)&&t.type===n)return l}return null}function ls(t,e,n,s){let i=t[n];const r=e.data;if(i instanceof Fn){const o=i;if(o.resolving)throw new Error("Circular dep for "+Un(r[n]));const a=Yn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=Qt(o.injectImpl)),bn(t,s);try{i=t[n]=o.factory(void 0,r,t,s),e.firstCreatePass&&n>=s.directiveStart&&function(t,e,n){const{ngOnChanges:s,ngOnInit:i,ngDoCheck:r}=e.type.prototype;if(s){const s=Fe(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{o.injectImpl&&Qt(l),Yn(a),o.resolving=!1,Sn()}}return i}function cs(t,e,n){const s=64&t,i=32&t;let r;return r=128&t?s?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:s?i?n[e+3]:n[e+2]:i?n[e+1]:n[e],!!(r&1<<t)}function hs(t,e){return!(t&at.Self||t&at.Host&&e)}class us{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return is(this._tNode,this._lView,t,void 0,e)}}function ds(t){const e=t;if(xt(t))return()=>{const t=ds(St(e));return t?t():null};let n=Ce(e);if(null===n){const t=ft(e);n=t&&t.factory}return n||null}function ps(t){return tt(()=>{const e=t.prototype.constructor,n=e[Lt]||ds(e),s=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==s;){const t=i[Lt]||ds(i);if(t&&t!==n)return t;i=Object.getPrototypeOf(i)}return t=>new t})}function fs(t){return t.ngDebugContext}function ms(t){return t.ngOriginalError}function gs(t,...e){t.error(...e)}class _s{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),s=function(t){return t.ngErrorLogger||gs}(t);s(this._console,"ERROR",t),e&&s(this._console,"ORIGINAL ERROR",e),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?fs(t)?fs(t):this._findContext(ms(t)):null}_findOriginalError(t){let e=ms(t);for(;e&&ms(e);)e=ms(e);return e}}class ys{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class bs extends ys{getTypeName(){return"HTML"}}class vs extends ys{getTypeName(){return"Style"}}class ws extends ys{getTypeName(){return"Script"}}class Cs extends ys{getTypeName(){return"URL"}}class Es extends ys{getTypeName(){return"ResourceURL"}}function Ss(t){return t instanceof ys?t.changingThisBreaksApplicationSecurity:t}function xs(t,e){const n=Ts(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Ts(t){return t instanceof ys&&t.getTypeName()||null}let ks=!0,Os=!1;function Is(){return Os=!0,ks}class Rs{getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class As{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=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let s=e.length-1;0<s;s--){const n=e.item(s).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 Ds=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Ps=/^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 Ns(t){return(t=String(t)).match(Ds)||t.match(Ps)?t:(Is()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function Fs(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Ls(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Ms=Fs("area,br,col,hr,img,wbr"),js=Fs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Hs=Fs("rp,rt"),Vs=Ls(Hs,js),Bs=Ls(Ms,Ls(js,Fs("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")),Ls(Hs,Fs("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")),Vs),zs=Fs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ws=Fs("srcset"),$s=Ls(zs,Ws,Fs("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"),Fs("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")),qs=Fs("script,style,template");class Us{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(!Bs.hasOwnProperty(e))return this.sanitizedSomething=!0,!qs.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let i=0;i<n.length;i++){const t=n.item(i),e=t.name,r=e.toLowerCase();if(!$s.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=t.value;zs[r]&&(o=Ns(o)),Ws[r]&&(s=o,o=(s=String(s)).split(",").map(t=>Ns(t.trim())).join(", ")),this.buf.push(" ",e,'="',Ks(o),'"')}var s;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Bs.hasOwnProperty(e)&&!Ms.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Ks(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 Qs=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zs=/([^\#-~ |!])/g;function Ks(t){return t.replace(/&/g,"&amp;").replace(Qs,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Zs,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Gs;function Ys(t,e){let n=null;try{Gs=Gs||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Rs:new As(t)}(t);let s=e?String(e):"";n=Gs.getInertBodyElement(s);let i=5,r=s;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,s=r,r=n.innerHTML,n=Gs.getInertBodyElement(s)}while(s!==r);const o=new Us,a=o.sanitizeChildren(Xs(n)||n);return Is()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Xs(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Xs(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Js=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function ti(t){const e=function(){const t=sn();return t&&t[12]}();return e?e.sanitize(Js.HTML,t)||"":xs(t,"HTML")?Ss(t):Ys(Ve(),qn(t))}function ei(t,e){t.__ngContext__=e}function ni(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function si(){throw new Error("Cannot mix multi providers and regular providers")}function ii(t,e,n){let s=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const n=e.length;if(i+n===s||t.charCodeAt(i+n)<=32)return i}n=i+1}}const ri="ng-template";function oi(t,e,n){let s=0;for(;s<t.length;){let i=t[s++];if(n&&"class"===i){if(i=t[s],-1!==ii(i.toLowerCase(),e,0))return!0}else if(1===i){for(;s<t.length&&"string"==typeof(i=t[s++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function ai(t){return 0===t.type&&t.tagName!==ri}function li(t,e,n){return e===(0!==t.type||n?t.tagName:ri)}function ci(t,e,n){let s=4;const i=t.attrs||[],r=function(t){for(let e=0;e<t.length;e++)if(Mn(t[e]))return e;return t.length}(i);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&s){if(s=2|1&s,""!==l&&!li(t,l,n)||""===l&&1===e.length){if(hi(s))return!1;o=!0}}else{const c=8&s?l:e[++a];if(8&s&&null!==t.attrs){if(!oi(t.attrs,c,n)){if(hi(s))return!1;o=!0}continue}const h=ui(8&s?"class":l,i,ai(t),n);if(-1===h){if(hi(s))return!1;o=!0;continue}if(""!==c){let t;t=h>r?"":i[h+1].toLowerCase();const e=8&s?t:null;if(e&&-1!==ii(e,c,0)||2&s&&c!==t){if(hi(s))return!1;o=!0}}}}else{if(!o&&!hi(s)&&!hi(l))return!1;if(o&&hi(l))continue;o=!1,s=l|1&s}}return hi(s)||o}function hi(t){return 0==(1&t)}function ui(t,e,n,s){if(null===e)return-1;let i=0;if(s||!n){let n=!1;for(;i<e.length;){const s=e[i];if(s===t)return i;if(3===s||6===s)n=!0;else{if(1===s||2===s){let t=e[++i];for(;"string"==typeof t;)t=e[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const s=t[n];if("number"==typeof s)return-1;if(s===e)return n;n++}return-1}(e,t)}function di(t,e,n=!1){for(let s=0;s<e.length;s++)if(ci(t,e[s],n))return!0;return!1}function pi(t,e){t:for(let n=0;n<e.length;n++){const s=e[n];if(t.length===s.length){for(let e=0;e<t.length;e++)if(t[e]!==s[e])continue t;return!0}}return!1}function fi(t,e){return t?":not("+e.trim()+")":e}function mi(t){let e=t[0],n=1,s=2,i="",r=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&s){const e=t[++n];i+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&s?i+="."+o:4&s&&(i+=" "+o);else""===i||hi(o)||(e+=fi(r,i),i=""),s=o,r=r||!hi(s);n++}return""!==i&&(e+=fi(r,i)),e}const gi={};function _i(t){const e=t[3];return ke(e)?e[3]:e}function yi(t){return vi(t[13])}function bi(t){return vi(t[4])}function vi(t){for(;null!==t&&!ke(t);)t=t[4];return t}function wi(t){Ci(rn(),sn(),Tn()+t,un())}function Ci(t,e,n,s){if(!s)if(3==(3&e[2])){const s=t.preOrderCheckHooks;null!==s&&Rn(e,s,n)}else{const s=t.preOrderHooks;null!==s&&An(e,s,0,n)}kn(n)}function Ei(t,e){return t<<17|e<<2}function Si(t){return t>>17&32767}function xi(t){return 2|t}function Ti(t){return(131068&t)>>2}function ki(t,e){return-131069&t|e<<2}function Oi(t){return 1|t}function Ii(t,e){const n=t.contentQueries;if(null!==n)for(let s=0;s<n.length;s+=2){const i=n[s],r=n[s+1];if(-1!==r){const n=t.data[r];yn(i),n.contentQueries(2,e[r],r)}}}function Ri(t,e,n){return Be(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Ai(t,e,n,s,i,r,o,a,l,c){const h=e.blueprint.slice();return h[0]=i,h[2]=140|s,Je(h),h[3]=h[15]=t,h[8]=n,h[10]=o||t&&t[10],h[11]=a||t&&t[11],h[12]=l||t&&t[12]||null,h[9]=c||t&&t[9]||null,h[6]=r,h[16]=2==e.type?t[16]:h,h}function Di(t,e,n,s,i,r){const o=n+Se,a=t.data[o]||function(t,e,n,s,i,r){const o=an(),a=cn(),l=a?o:o&&o.parent,c=t.data[n]=Wi(0,l&&l!==e?l:null,s,n,i,r);return null===t.firstChild&&(t.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(t,e,o,s,i,r);return ln(a,!0),a}function Pi(t,e,n){vn(e,e[6]);try{const s=t.viewQuery;null!==s&&hr(1,s,n);const i=t.template;null!==i&&Li(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Ii(t,e),t.staticViewQueries&&hr(2,t.viewQuery,n);const r=t.components;null!==r&&function(t,e){for(let n=0;n<e.length;n++)rr(t,e[n])}(e,r)}catch(s){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),s}finally{e[2]&=-5,xn()}}function Ni(t,e,n,s){const i=e[2];if(256==(256&i))return;vn(e,e[6]);const r=un();try{Je(e),en.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Li(t,e,n,2,s);const o=3==(3&i);if(!r)if(o){const n=t.preOrderCheckHooks;null!==n&&Rn(e,n,null)}else{const n=t.preOrderHooks;null!==n&&An(e,n,0,null),Dn(e,0)}if(function(t){for(let e=yi(t);null!==e;e=bi(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],s=n[3];0==(1024&n[2])&&tn(s,1),n[2]|=1024}}}(e),function(t){for(let e=yi(t);null!==e;e=bi(e))for(let t=xe;t<e.length;t++){const n=e[t],s=n[1];Ye(n)&&Ni(s,n,s.template,n[8])}}(e),null!==t.contentQueries&&Ii(t,e),!r)if(o){const n=t.contentCheckHooks;null!==n&&Rn(e,n)}else{const n=t.contentHooks;null!==n&&An(e,n,1),Dn(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let s=t.expandoStartIndex,i=-1,r=-1;for(let t=0;t<n.length;t++){const o=n[t];"number"==typeof o?o<=0?(r=0-o,kn(r),s+=9+n[++t],i=s):s+=o:(null!==o&&(mn(s,i),o(2,e[i])),i++)}}}finally{kn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)ir(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&hr(2,l,s),!r)if(o){const n=t.viewCheckHooks;null!==n&&Rn(e,n)}else{const n=t.viewHooks;null!==n&&An(e,n,2),Dn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,tn(e[3],-1))}finally{xn()}}function Fi(t,e,n,s){const i=e[10],r=!un(),o=Ge(e);try{r&&!o&&i.begin&&i.begin(),o&&Pi(t,e,s),Ni(t,e,n,s)}finally{r&&!o&&i.end&&i.end()}}function Li(t,e,n,s,i){const r=Tn();try{kn(-1),2&s&&e.length>Se&&Ci(t,e,0,un()),n(s,i)}finally{kn(r)}}function Mi(t,e,n){if(Oe(e)){const s=e.directiveEnd;for(let i=e.directiveStart;i<s;i++){const e=t.data[i];e.contentQueries&&e.contentQueries(1,n[i],i)}}}function ji(t,e,n){nn()&&(function(t,e,n,s){const i=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||Jn(n,e),ei(s,e);const o=n.initialInputs;for(let a=i;a<r;a++){const s=t.data[a],r=Ae(s);r&&tr(e,n,s);const l=ls(e,t,a,n);ei(l,e),null!==o&&er(0,a-i,l,s,0,o),r&&(Ze(n.index,e)[8]=l)}}(t,e,n,qe(n,e)),128==(128&n.flags)&&function(t,e,n){const s=n.directiveStart,i=n.directiveEnd,r=t.expandoInstructions,o=t.firstCreatePass,a=n.index-Se,l=en.lFrame.currentDirectiveIndex;try{kn(a);for(let n=s;n<i;n++){const s=t.data[n],i=e[n];gn(n),null!==s.hostBindings||0!==s.hostVars||null!==s.hostAttrs?Zi(s,i):o&&r.push(null)}}finally{kn(-1),gn(l)}}(t,e,n))}function Hi(t,e,n=qe){const s=e.localNames;if(null!==s){let i=e.index+1;for(let r=0;r<s.length;r+=2){const o=s[r+1],a=-1===o?n(e,t):t[o];t[i++]=a}}}function Vi(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Bi(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Bi(t,e,n,s,i,r,o,a,l,c){const h=Se+s,u=h+i,d=function(t,e){const n=[];for(let s=0;s<e;s++)n.push(s<t?null:gi);return n}(h,u),p="function"==typeof c?c():c;return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:u,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function zi(t,e,n,s){const i=dr(e);i.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(s,i.length-1)}function Wi(t,e,n,s,i,r){return{type:n,index:s,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function $i(t,e,n){for(let s in t)if(t.hasOwnProperty(s)){const i=t[s];(n=null===n?{}:n).hasOwnProperty(s)?n[s].push(e,i):n[s]=[e,i]}return n}function qi(t,e,n,s){let i=!1;if(nn()){const r=function(t,e,n){const s=t.directiveRegistry;let i=null;if(s)for(let r=0;r<s.length;r++){const o=s[r];di(n,o.selectors,!1)&&(i||(i=[]),ss(Jn(n,e),t,o.type),Ae(o)?(2&n.flags&&ni(n),Gi(t,n),i.unshift(o)):i.push(o))}return i}(t,e,n),o=null===s?null:{"":-1};if(null!==r){let s=0;i=!0,Xi(n,t.data.length,r.length);for(let t=0;t<r.length;t++){const e=r[t];e.providersResolver&&e.providersResolver(e)}Ki(t,n,r.length);let a=!1,l=!1;for(let i=0;i<r.length;i++){const c=r[i];n.mergedAttrs=Hn(n.mergedAttrs,c.hostAttrs),Ji(t,e,c),Yi(t.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const h=c.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-Se),a=!0),l||!h.ngOnChanges&&!h.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-Se),l=!0),Ui(t,c),s+=c.hostVars}!function(t,e){const n=e.directiveEnd,s=t.data,i=e.attrs,r=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=s[l],n=t.inputs,c=null===i||ai(e)?null:nr(n,i);r.push(c),o=$i(n,l,o),a=$i(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=r,e.inputs=o,e.outputs=a}(t,n),Qi(t,e,s)}o&&function(t,e,n){if(e){const s=t.localNames=[];for(let t=0;t<e.length;t+=2){const i=n[e[t+1]];if(null==i)throw new Error(`Export of name '${e[t+1]}' not found!`);s.push(e[t],i)}}}(n,s,o)}return n.mergedAttrs=Hn(n.mergedAttrs,n.attrs),i}function Ui(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function Qi(t,e,n){for(let s=0;s<n;s++)e.push(gi),t.blueprint.push(gi),t.data.push(null)}function Zi(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ki(t,e,n){const s=Se-e.index,i=t.data.length-(1048575&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(s,i,n)}function Gi(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Yi(t,e,n){if(n){if(e.exportAs)for(let s=0;s<e.exportAs.length;s++)n[e.exportAs[s]]=t;Ae(e)&&(n[""]=t)}}function Xi(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Ji(t,e,n){t.data.push(n);const s=n.factory||(n.factory=Ce(n.type)),i=new Fn(s,Ae(n),null);t.blueprint.push(i),e.push(i)}function tr(t,e,n){const s=qe(e,t),i=Vi(n),r=t[10],o=or(t,Ai(t,i,null,n.onPush?64:16,s,e,r,r.createRenderer(s,n)));t[e.index]=o}function er(t,e,n,s,i,r){const o=r[e];if(null!==o){const t=s.setInput;for(let e=0;e<o.length;){const i=o[e++],r=o[e++],a=o[e++];null!==t?s.setInput(n,a,i,r):n[r]=a}}}function nr(t,e){let n=null,s=0;for(;s<e.length;){const i=e[s];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[s+1])),s+=2}else s+=2;else s+=4}return n}function sr(t,e,n,s){return new Array(t,!0,!1,e,null,0,s,n,null,null)}function ir(t,e){const n=Ze(e,t);if(Ye(n)){const t=n[1];80&n[2]?Ni(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let s=yi(e);null!==s;s=bi(s))for(let e=xe;e<s.length;e++){const n=s[e];if(1024&n[2]){const t=n[1];Ni(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let s=0;s<n.length;s++){const i=Ze(n[s],e);Ye(i)&&i[5]>0&&t(i)}}(n)}}function rr(t,e){const n=Ze(e,t),s=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(s,n),Pi(s,n,n[8])}function or(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function ar(t){for(;t;){t[2]|=64;const e=_i(t);if(De(t)&&!e)return t;t=e}return null}function lr(t,e,n){const s=e[10];s.begin&&s.begin();try{Ni(t,e,t.template,n)}catch(i){throw pr(e,i),i}finally{s.end&&s.end()}}function cr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],s=Ke(n),i=s[1];Fi(i,s,i.template,n)}}(t[8])}function hr(t,e,n){yn(0),e(t,n)}const ur=(()=>Promise.resolve(null))();function dr(t){return t[7]||(t[7]=[])}function pr(t,e){const n=t[9],s=n?n.get(_s,null):null;s&&s.handleError(e)}function fr(t,e,n,s,i){for(let r=0;r<n.length;){const o=n[r++],a=n[r++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,i,s,a):l[a]=i}}function mr(t,e){const n=e[3];return-1===t.index?ke(n)?n:null:n}function gr(t,e){const n=mr(t,e);return n?Or(e[11],n[7]):null}function _r(t,e,n,s,i){if(null!=s){let r,o=!1;ke(s)?r=s:Te(s)&&(o=!0,s=s[0]);const a=We(s);0===t&&null!==n?null==i?Tr(e,n,a):xr(e,n,a,i||null):1===t&&null!==n?xr(e,n,a,i||null):2===t?function(t,e,n){const s=Or(t,e);s&&function(t,e,n,s){Be(t)?t.removeChild(e,n,s):e.removeChild(n)}(t,s,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,s,i){const r=n[7];r!==We(n)&&_r(e,t,s,r,i);for(let o=xe;o<n.length;o++){const i=n[o];Pr(i[1],i,t,e,s,r)}}(e,t,r,n,i)}}function yr(t,e,n,s){const i=gr(t.node,e);i&&Pr(t,e,e[11],n?1:2,i,s)}function br(t,e){const n=t[9],s=n.indexOf(e);1024&e[2]&&tn(e[3],-1),n.splice(s,1)}function vr(t,e){if(t.length<=xe)return;const n=xe+e,s=t[n];if(s){const i=s[17];null!==i&&i!==t&&br(i,s),e>0&&(t[n-1][4]=s[4]);const r=se(t,xe+e);yr(s[1],s,!1,null);const o=r[19];null!==o&&o.detachView(r[1]),s[3]=null,s[4]=null,s[2]&=-129}return s}function wr(t,e){if(!(256&e[2])){const n=e[11];Be(n)&&n.destroyNode&&Pr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Er(t[1],t);for(;e;){let n=null;if(Te(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Te(e)&&Er(e[1],e),e=Cr(e,t);null===e&&(e=t),Te(e)&&Er(e[1],e),n=e&&e[4]}e=n}}(e)}}function Cr(t,e){let n;return Te(t)&&(n=t[6])&&2===n.type?mr(n,t):t[3]===e?null:t[3]}function Er(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 s=0;s<n.length;s+=2){const t=e[n[s]];if(!(t instanceof Fn)){const e=n[s+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const i=n[s+1],r="function"==typeof i?i(e):We(e[i]),o=t[n[s+2]],a=n[s+3];"boolean"==typeof a?r.removeEventListener(n[s],o,a):a>=0?t[a]():t[-a].unsubscribe(),s+=2}else n[s].call(t[n[s+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Be(e[11])&&e[11].destroy();const s=e[17];if(null!==s&&ke(e[3])){s!==e[3]&&br(s,e);const n=e[19];null!==n&&n.detachView(t)}}}function Sr(t,e,n){let s=e.parent;for(;null!=s&&(4===s.type||5===s.type);)s=(e=s).parent;if(null==s){const t=n[6];return 2===t.type?gr(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return qe(e,n).parentNode;if(2&s.flags){const e=t.data,n=e[e[s.index].directiveStart].encapsulation;if(n!==ce.ShadowDom&&n!==ce.Native)return null}return qe(s,n)}function xr(t,e,n,s){Be(t)?t.insertBefore(e,n,s):e.insertBefore(n,s,!0)}function Tr(t,e,n){Be(t)?t.appendChild(e,n):e.appendChild(n)}function kr(t,e,n,s){null!==s?xr(t,e,n,s):Tr(t,e,n)}function Or(t,e){return Be(t)?t.parentNode(e):e.parentNode}function Ir(t,e){if(2===t.type){const n=mr(t,e);return null===n?null:Ar(n.indexOf(e,xe)-xe,n)}return 4===t.type||5===t.type?qe(t,e):null}function Rr(t,e,n,s){const i=Sr(t,s,e);if(null!=i){const t=e[11],r=Ir(s.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)kr(t,i,n[e],r);else kr(t,i,n,r)}}function Ar(t,e){const n=xe+t+1;if(n<e.length){const t=e[n],s=t[1].firstChild;if(null!==s)return function t(e,n){if(null!==n){const s=n.type;if(3===s)return qe(n,e);if(0===s)return Ar(-1,e[n.index]);if(4===s||5===s){const s=n.child;if(null!==s)return t(e,s);{const t=e[n.index];return ke(t)?Ar(-1,t):We(t)}}{const s=e[16],i=s[6],r=_i(s),o=i.projection[n.projection];return null!=o?t(r,o):t(e,n.next)}}return null}(t,s)}return e[7]}function Dr(t,e,n,s,i,r,o){for(;null!=n;){const a=s[n.index],l=n.type;o&&0===e&&(a&&ei(We(a),s),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(Dr(t,e,n.child,s,i,r,!1),_r(e,t,i,a,r)):1===l?Nr(t,e,s,n,i,r):_r(e,t,i,a,r)),n=o?n.projectionNext:n.next}}function Pr(t,e,n,s,i,r){Dr(n,s,t.node.child,e,i,r,!1)}function Nr(t,e,n,s,i,r){const o=n[16],a=o[6].projection[s.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)_r(e,t,i,a[l],r);else Dr(t,e,a,o[3],i,r,!0)}function Fr(t,e,n){Be(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Lr(t,e,n){Be(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Mr{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,s,i,r=!1){for(;null!==s;){const o=n[s.index];if(null!==o&&i.push(We(o)),ke(o))for(let e=xe;e<o.length;e++){const n=o[e],s=n[1].firstChild;null!==s&&t(n[1],n,s,i)}const a=s.type;if(4===a||5===a)t(e,n,s.child,i);else if(1===a){const e=n[16],r=e[6].projection[s.projection];if(Array.isArray(r))i.push(...r);else{const n=_i(e);t(n[1],n,r,i,!0)}}s=r?s.projectionNext:s.next}return i}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}wr(this._lView[1],this._lView)}onDestroy(t){zi(this._lView[1],this._lView,null,t)}markForCheck(){ar(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){lr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){dn(!0);try{lr(t,e,n)}finally{dn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Pr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class jr extends Mr{constructor(t){super(t),this._view=t}detectChanges(){cr(this._view)}checkNoChanges(){!function(t){dn(!0);try{cr(t)}finally{dn(!1)}}(this._view)}get context(){return null}}let Hr,Vr,Br;function zr(t,e,n){return Hr||(Hr=class extends t{}),new Hr(qe(e,n))}function Wr(t,e,n,s){return Vr||(Vr=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ai(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const s=this._declarationView[19];return null!==s&&(n[19]=s.createEmbeddedView(e)),Pi(e,n,t),new Mr(n)}}),0===n.type?new Vr(s,n,zr(e,n,s)):null}function $r(t,e,n,s){let i;Br||(Br=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return zr(e,this._hostTNode,this._hostView)}get injector(){return new us(this._hostTNode,this._hostView)}get parentInjector(){const t=ns(this._hostTNode,this._hostView),e=$n(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let s=Wn(t),i=e,r=e[6];for(;s>1;)i=i[15],r=i[6],s--;return r}(t,this._hostView,this._hostTNode);return Bn(t)&&null!=n?new us(n,e):new us(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-xe}createEmbeddedView(t,e,n){const s=t.createEmbeddedView(e||{});return this.insert(s,n),s}createComponent(t,e,n,s,i){const r=n||this.parentInjector;if(!i&&null==t.ngModule&&r){const t=r.get(te,null);t&&(i=t)}const o=t.create(r,s,void 0,i);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,s=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),ke(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],s=new Br(e,e[6],e[3]);s.detach(s.indexOf(t))}}const i=this._adjustIndex(e);return function(t,e,n,s){const i=xe+s,r=n.length;s>0&&(n[i-1][4]=e),s<r-xe?(e[4]=n[i],ne(n,xe+s,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}(s,n,this._lContainer,i),yr(s,n,!0,Ar(i,this._lContainer)),t.attachToViewContainerRef(this),ne(this._lContainer[8],i,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=vr(this._lContainer,e);n&&(se(this._lContainer[8],e),wr(n[1],n))}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=vr(this._lContainer,e);return n&&null!=se(this._lContainer[8],e)?new Mr(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const r=s[n.index];if(ke(r))i=r;else{let t;if(4===n.type)t=We(r);else if(t=s[11].createComment(""),De(s)){const e=s[11],i=qe(n,s);xr(e,Or(e,i),t,function(t,e){return Be(t)?t.nextSibling(e):e.nextSibling}(e,i))}else Rr(s[1],s,t,n);s[n.index]=i=sr(r,s,t,n),or(s,i)}return new Br(i,n,s)}function qr(t=!1){return function(t,e,n){if(!n&&Ie(t)){const n=Ze(t.index,e);return new Mr(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Mr(e[16],e):null}(an(),sn(),t)}let Ur=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Qr(),t})();const Qr=qr,Zr=new jt("Set Injector scope."),Kr={},Gr={},Yr=[];let Xr=void 0;function Jr(){return void 0===Xr&&(Xr=new Jt),Xr}function to(t,e=null,n=null,s){return new eo(t,n,e||Jr(),s)}class eo{constructor(t,e,n,s=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];e&&ee(e,n=>this.processProvider(n,t,e)),ee([t],t=>this.processInjectorType(t,[],i)),this.records.set(Ht,so(void 0,this));const r=this.records.get(Zr);this.scope=null!=r?r.value:null,this.source=s||("object"==typeof t?null:vt(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=Vt,n=at.Default){this.assertNotDestroyed();const s=Ut(this);try{if(!(n&at.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(i=t)||"object"==typeof i&&i instanceof jt)&&dt(t);e=n&&this.injectableDefInScope(n)?so(no(t),Kr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&at.Self?Jr():this.parent).get(t,e=n&at.Optional&&e===Vt?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(vt(t)),s)throw r;return function(t,e,n,s){const i=t.ngTempTokenPath;throw e[zt]&&i.unshift(e[zt]),t.message=function(t,e,n,s=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=vt(e);if(Array.isArray(e))i=e.map(vt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let s=e[n];t.push(n+":"+("string"==typeof s?JSON.stringify(s):vt(s)))}i=`{${t.join(", ")}}`}return`${n}${s?"("+s+")":""}[${i}]: ${t.replace(Bt,"\n ")}`}("\n"+t.message,i,n,s),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{Ut(s)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(vt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=St(t)))return!1;let s=ft(t);const i=null==s&&t.ngModule||void 0,r=void 0===i?t:i,o=-1!==n.indexOf(r);if(void 0!==i&&(s=ft(i)),null==s)return!1;if(null!=s.imports&&!o){let t;n.push(r);try{ee(s.imports,s=>{this.processInjectorType(s,e,n)&&(void 0===t&&(t=[]),t.push(s))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:s}=t[e];ee(s,t=>this.processProvider(t,n,s||Yr))}}this.injectorDefTypes.add(r),this.records.set(r,so(s.factory,Kr));const a=s.providers;if(null!=a&&!o){const e=t;ee(a,t=>this.processProvider(t,e,a))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let s=ro(t=St(t))?t:St(t&&t.provide);const i=function(t,e,n){return io(t)?so(void 0,t.useValue):so(function(t,e,n){let s=void 0;if(ro(t)){const e=St(t);return Ce(e)||no(e)}if(io(t))s=()=>St(t.useValue);else if((i=t)&&i.useFactory)s=()=>t.useFactory(...Xt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))s=()=>Kt(St(t.useExisting));else{const i=St(t&&(t.useClass||t.provide));if(i||function(t,e,n){let s="";throw t&&e&&(s=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${vt(t)}'`+s)}(e,n,t),!function(t){return!!t.deps}(t))return Ce(i)||no(i);s=()=>new i(...Xt(t.deps))}var i;return s}(t,e,n),Kr)}(t,e,n);if(ro(t)||!0!==t.multi){const t=this.records.get(s);t&&void 0!==t.multi&&si()}else{let e=this.records.get(s);e?void 0===e.multi&&si():(e=so(void 0,Kr,!0),e.factory=()=>Xt(e.multi),this.records.set(s,e)),s=t,e.multi.push(t)}this.records.set(s,i)}hydrate(t,e){var n;return e.value===Gr?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(vt(t)):e.value===Kr&&(e.value=Gr,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){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function no(t){const e=dt(t),n=null!==e?e.factory:Ce(t);if(null!==n)return n;const s=ft(t);if(null!==s)return s.factory;if(t instanceof jt)throw new Error(`Token ${vt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=ie(e,"?");throw new Error(`Can't resolve all parameters for ${vt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[mt]||t[yt]||t[_t]&&t[_t]());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 so(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function io(t){return null!==t&&"object"==typeof t&&Wt in t}function ro(t){return"function"==typeof t}const oo=function(t,e,n){return function(t,e=null,n=null,s){const i=to(t,e,n,s);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};let ao=(()=>{class t{static create(t,e){return Array.isArray(t)?oo(t,e,""):oo(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Vt,t.NULL=new Jt,t.\u0275prov=ht({token:t,providedIn:"any",factory:()=>Kt(Ht)}),t.__NG_ELEMENT_ID__=-1,t})();function lo(t,e,n){let s=n?t.styles:null,i=n?t.classes:null,r=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?r=t:1==r?i=wt(i,t):2==r&&(s=wt(s,t+": "+e[++o]+";"))}n?t.styles=s:t.stylesWithoutHost=s,n?t.classes=i:t.classesWithoutHost=i}let co=null;function ho(){if(!co){const t=Rt.Symbol;if(t&&t.iterator)co=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&&(co=n)}}}return co}class uo{constructor(t){this.wrapped=t}static wrap(t){return new uo(t)}static unwrap(t){return uo.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof uo}}function po(t){return!!fo(t)&&(Array.isArray(t)||!(t instanceof Map)&&ho()in t)}function fo(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function mo(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function go(t,e,n,s){const i=sn();return mo(i,pn(),e)&&(rn(),function(t,e,n,s,i,r){const o=qe(t,e),a=e[11];if(null==s)Be(a)?a.removeAttribute(o,n,r):o.removeAttribute(n);else{const e=null==i?qn(s):i(s,t.tagName||"",n);Be(a)?a.setAttribute(o,n,e,r):r?o.setAttributeNS(r,n,e):o.setAttribute(n,e)}}(On(),i,t,e,n,s)),go}function _o(t,e,n,s,i,r,o,a){const l=sn(),c=rn(),h=t+Se,u=c.firstCreatePass?function(t,e,n,s,i,r,o,a,l){const c=e.consts,h=Di(e,n[6],t,0,o||null,Xe(c,a));qi(e,n,h,Xe(c,l)),In(e,h);const u=h.tViews=Bi(2,-1,s,i,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),d=Wi(0,null,2,-1,null,null);return d.injectorIndex=h.injectorIndex,u.node=d,null!==e.queries&&(e.queries.template(e,h),u.queries=e.queries.embeddedTView(h)),h}(t,c,l,e,n,s,i,r,o):c.data[h];ln(u,!1);const d=l[11].createComment("");Rr(c,l,d,u),ei(d,l),or(l,l[h]=sr(d,l,d,u)),Re(u)&&ji(c,l,u),null!=o&&Hi(l,u,a)}function yo(t){return Qe(en.lFrame.contextLView,t)}function bo(t,e=at.Default){const n=sn();return null==n?Kt(t,e):is(an(),n,St(t),e)}function vo(t,e,n){const s=sn();return mo(s,pn(),e)&&function(t,e,n,s,i,r,o,a){const l=qe(e,n);let c,h=e.inputs;var u;null!=h&&(c=h[s])?(fr(t,n,c,s,i),Ie(e)&&function(t,e){const n=Ze(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(s="class"===(u=s)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,i=null!=o?o(i,e.tagName||"",s):i,Be(r)?r.setProperty(l,s,i):jn(s)||(l.setProperty?l.setProperty(s,i):l[s]=i))}(rn(),On(),s,t,e,s[11],n),vo}function wo(t,e,n,s,i){const r=i?"class":"style";fr(t,n,e.inputs[r],r,s)}function Co(t,e,n,s){const i=sn(),r=rn(),o=Se+t,a=i[11],l=i[o]=Ri(e,a,en.lFrame.currentNamespace),c=r.firstCreatePass?function(t,e,n,s,i,r,o){const a=e.consts,l=Xe(a,r),c=Di(e,n[6],t,3,i,l);return qi(e,n,c,Xe(a,o)),null!==c.attrs&&lo(c,c.attrs,!1),null!==c.mergedAttrs&&lo(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(t,r,i,0,e,n,s):r.data[o];ln(c,!0);const h=c.mergedAttrs;null!==h&&Ln(a,l,h);const u=c.classes;null!==u&&Lr(a,l,u);const d=c.styles;null!==d&&Fr(a,l,d),Rr(r,i,l,c),0===en.lFrame.elementDepthCount&&ei(l,i),en.lFrame.elementDepthCount++,Re(c)&&(ji(r,i,c),Mi(r,c,i)),null!==s&&Hi(i,c)}function Eo(){let t=an();cn()?hn():(t=t.parent,ln(t,!1));const e=t;en.lFrame.elementDepthCount--;const n=rn();n.firstCreatePass&&(In(n,t),Oe(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&wo(n,e,sn(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&wo(n,e,sn(),e.stylesWithoutHost,!1)}function So(t,e,n,s){Co(t,e,n,s),Eo()}function xo(t,e,n){const s=sn(),i=rn(),r=t+Se,o=i.firstCreatePass?function(t,e,n,s,i){const r=e.consts,o=Xe(r,s),a=Di(e,n[6],t,4,"ng-container",o);return null!==o&&lo(a,o,!0),qi(e,n,a,Xe(r,i)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,i,s,e,n):i.data[r];ln(o,!0);const a=s[r]=s[11].createComment("");Rr(i,s,a,o),ei(a,s),Re(o)&&(ji(i,s,o),Mi(i,o,s)),null!=n&&Hi(s,o)}function To(){let t=an();const e=rn();cn()?hn():(t=t.parent,ln(t,!1)),e.firstCreatePass&&(In(e,t),Oe(t)&&e.queries.elementEnd(t))}function ko(t,e,n){xo(t,e,n),To()}function Oo(){return sn()}function Io(t){return!!t&&"function"==typeof t.then}function Ro(t,e,n=!1,s){const i=sn(),r=rn(),o=an();return function(t,e,n,s,i,r,o=!1,a){const l=Re(s),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),h=dr(e);let u=!0;if(3===s.type){const d=qe(s,e),p=a?a(d):he,f=p.target||d,m=h.length,g=a?t=>a(We(t[s.index])).target:s.index;if(Be(n)){let o=null;if(!a&&l&&(o=function(t,e,n,s){const i=t.cleanup;if(null!=i)for(let r=0;r<i.length-1;r+=2){const t=i[r];if(t===n&&i[r+1]===s){const t=e[7],n=i[r+2];return t.length>n?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,i,s.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=Do(s,e,r,!1);const t=n.listen(p.name||f,i,r);h.push(r,t),c&&c.push(i,g,m,m+1)}}else r=Do(s,e,r,!0),f.addEventListener(i,r,o),h.push(r),c&&c.push(i,g,m,o)}const d=s.outputs;let p;if(u&&null!==d&&(p=d[i])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(r),o=h.length;h.push(r,t),c&&c.push(i,s.index,o,-(o+1))}}}(r,i,i[11],o,t,e,n,s),Ro}function Ao(t,e,n){try{return!1!==e(n)}catch(s){return pr(t,s),!1}}function Do(t,e,n,s){return function i(r){if(r===Function)return n;const o=2&t.flags?Ze(t.index,e):e;0==(32&e[2])&&ar(o);let a=Ao(e,n,r),l=i.__ngNextListenerFn__;for(;l;)a=Ao(e,l,r)&&a,l=l.__ngNextListenerFn__;return s&&!1===a&&(r.preventDefault(),r.returnValue=!1),a}}function Po(t=1){return function(t){return(en.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,en.lFrame.contextLView))[8]}(t)}function No(t,e){let n=null;const s=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 i=0;i<e.length;i++){const r=e[i];if("*"!==r){if(null===s?di(t,r,!0):pi(s,r))return i}else n=i}return n}function Fo(t){const e=sn()[16][6];if(!e.projection){const n=e.projection=ie(t?t.length:1,null),s=n.slice();let i=e.child;for(;null!==i;){const e=t?No(i,t):0;null!==e&&(s[e]?s[e].projectionNext=i:n[e]=i,s[e]=i),i=i.next}}}function Lo(t,e=0,n){const s=sn(),i=rn(),r=Di(i,s[6],t,1,null,n||null);null===r.projection&&(r.projection=e),hn(),function(t,e,n){Nr(e[11],0,e,n,Sr(t,n,e),Ir(n.parent||e[6],e))}(i,s,r)}const Mo=[];function jo(t,e,n,s,i){const r=t[n+1],o=null===e;let a=s?Si(r):Ti(r),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];Ho(t[a],e)&&(l=!0,t[a+1]=s?Oi(n):xi(n)),a=s?Si(n):Ti(n)}l&&(t[n+1]=s?xi(r):Oi(r))}function Ho(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ae(t,e)>=0}const Vo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bo(t){return t.substring(Vo.key,Vo.keyEnd)}function zo(t){return t.substring(Vo.value,Vo.valueEnd)}function Wo(t,e){const n=Vo.textEnd;let s=Vo.key=$o(t,e,n);return n===s?-1:(s=Vo.keyEnd=function(t,e,n){let s;for(;e<n&&(45===(s=t.charCodeAt(e))||95===s||(-33&s)>=65&&(-33&s)<=90||s>=48&&s<=57);)e++;return e}(t,s,n),s=qo(t,s,n),s=Vo.value=$o(t,s,n),s=Vo.valueEnd=function(t,e,n){let s=-1,i=-1,r=-1,o=e,a=o;for(;o<n;){const l=t.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=Uo(t,l,o,n):e===o-4&&85===r&&82===i&&76===s&&40===l?a=o=Uo(t,41,o,n):l>32&&(a=o),r=i,i=s,s=-33&l}return a}(t,s,n),qo(t,s,n))}function $o(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function qo(t,e,n,s){return(e=$o(t,e,n))<n&&e++,e}function Uo(t,e,n,s){let i=-1,r=n;for(;r<s;){const n=t.charCodeAt(r++);if(n==e&&92!==i)return r;i=92==n&&92===i?0:n}throw new Error}function Qo(t,e,n){return Yo(t,e,n,!1),Qo}function Zo(t,e){return Yo(t,e,null,!0),Zo}function Ko(t){!function(t,e,n,s){const i=rn(),r=fn(2);i.firstUpdatePass&&Jo(i,null,r,s);const o=sn();if(n!==gi&&mo(o,r,n)){const a=i.data[Tn()+Se];if(oa(a,s)&&!Xo(i,r)){let t=a.stylesWithoutHost;null!==t&&(n=wt(t,n||"")),wo(i,a,o,n,s)}else!function(t,e,n,s,i,r,o,a){i===gi&&(i=Mo);let l=0,c=0,h=0<i.length?i[0]:null,u=0<r.length?r[0]:null;for(;null!==h||null!==u;){const o=l<i.length?i[l+1]:void 0,d=c<r.length?r[c+1]:void 0;let p=null,f=void 0;h===u?(l+=2,c+=2,o!==d&&(p=u,f=d)):null===u||null!==h&&h<u?(l+=2,p=h):(c+=2,p=u,f=d),null!==p&&sa(t,e,n,s,p,f,false,a),h=l<i.length?i[l]:null,u=c<r.length?r[c]:null}}(i,a,o,o[11],o[r+1],o[r+1]=function(t,e,n){if(null==n||""===n)return Mo;const s=[],i=Ss(n);if(Array.isArray(i))for(let r=0;r<i.length;r++)t(s,i[r],!0);else if("object"==typeof i)for(const r in i)i.hasOwnProperty(r)&&t(s,r,i[r]);else"string"==typeof i&&e(s,i);return s}(t,e,n),0,r)}}(na,Go,t,!1)}function Go(t,e){for(let n=function(t){return function(t){Vo.key=0,Vo.keyEnd=0,Vo.value=0,Vo.valueEnd=0,Vo.textEnd=t.length}(t),Wo(t,$o(t,0,Vo.textEnd))}(e);n>=0;n=Wo(e,n))na(t,Bo(e),zo(e))}function Yo(t,e,n,s){const i=sn(),r=rn(),o=fn(2);r.firstUpdatePass&&Jo(r,t,o,s),e!==gi&&mo(i,o,e)&&sa(r,r.data[Tn()+Se],i,i[11],t,i[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=vt(Ss(t)))),t}(e,n),s,o)}function Xo(t,e){return e>=t.expandoStartIndex}function Jo(t,e,n,s){const i=t.data;if(null===i[n+1]){const r=i[Tn()+Se],o=Xo(t,n);oa(r,s)&&null===e&&!o&&(e=!1),e=function(t,e,n,s){const i=function(t){const e=en.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let r=s?e.residualClasses:e.residualStyles;if(null===i)0===(s?e.classBindings:e.styleBindings)&&(n=ea(n=ta(null,t,e,n,s),e.attrs,s),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==i)if(n=ta(i,t,e,n,s),null===r){let n=function(t,e,n){const s=n?e.classBindings:e.styleBindings;if(0!==Ti(s))return t[Si(s)]}(t,e,s);void 0!==n&&Array.isArray(n)&&(n=ta(null,t,e,n[1],s),n=ea(n,e.attrs,s),function(t,e,n,s){t[Si(n?e.classBindings:e.styleBindings)]=s}(t,e,s,n))}else r=function(t,e,n){let s=void 0;const i=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<i;r++)s=ea(s,t[r].hostAttrs,n);return ea(s,e.attrs,n)}(t,e,s)}return void 0!==r&&(s?e.residualClasses=r:e.residualStyles=r),n}(i,r,e,s),function(t,e,n,s,i,r){let o=r?e.classBindings:e.styleBindings,a=Si(o),l=Ti(o);t[s]=n;let c,h=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||ae(t,c)>0)&&(h=!0)}else c=n;if(i)if(0!==l){const e=Si(t[a+1]);t[s+1]=Ei(e,a),0!==e&&(t[e+1]=ki(t[e+1],s)),t[a+1]=131071&t[a+1]|s<<17}else t[s+1]=Ei(a,0),0!==a&&(t[a+1]=ki(t[a+1],s)),a=s;else t[s+1]=Ei(l,0),0===a?a=s:t[l+1]=ki(t[l+1],s),l=s;h&&(t[s+1]=xi(t[s+1])),jo(t,c,s,!0),jo(t,c,s,!1),function(t,e,n,s,i){const r=i?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&ae(r,e)>=0&&(n[s+1]=Oi(n[s+1]))}(e,c,t,s,r),o=Ei(a,l),r?e.classBindings=o:e.styleBindings=o}(i,r,e,n,o,s)}}function ta(t,e,n,s,i){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(r=e[a],s=ea(s,r.hostAttrs,i),r!==t);)a++;return null!==t&&(n.directiveStylingLast=a),s}function ea(t,e,n){const s=n?1:2;let i=-1;if(null!==e)for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?i=o:i===s&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),re(t,o,!!n||e[++r]))}return void 0===t?null:t}function na(t,e,n){re(t,e,Ss(n))}function sa(t,e,n,s,i,r,o,a){if(3!==e.type)return;const l=t.data,c=l[a+1];ra(1==(1&c)?ia(l,e,n,i,Ti(c),o):void 0)||(ra(r)||2==(2&c)&&(r=ia(l,null,n,i,a,o)),function(t,e,n,s,i){const r=Be(t);if(e)i?r?t.addClass(n,s):n.classList.add(s):r?t.removeClass(n,s):n.classList.remove(s);else{const e=-1==s.indexOf("-")?void 0:2;null==i?r?t.removeStyle(n,s,e):n.style.removeProperty(s):r?t.setStyle(n,s,i,e):n.style.setProperty(s,i)}}(s,o,$e(Tn(),n),i,r))}function ia(t,e,n,s,i,r){const o=null===e;let a=void 0;for(;i>0;){const e=t[i],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=n[i+1];h===gi&&(h=c?Mo:void 0);let u=c?oe(h,s):l===s?h:void 0;if(r&&!ra(u)&&(u=oe(e,s)),ra(u)&&(a=u,o))return a;const d=t[i+1];i=o?Si(d):Ti(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=oe(t,s))}return a}function ra(t){return void 0!==t}function oa(t,e){return 0!=(t.flags&(e?16:32))}function aa(t,e=""){const n=sn(),s=rn(),i=t+Se,r=s.firstCreatePass?Di(s,n[6],t,3,null,null):s.data[i],o=n[i]=function(t,e){return Be(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Rr(s,n,o,r),ln(r,!1)}function la(t){return ca("",t,""),la}function ca(t,e,n){const s=sn(),i=function(t,e,n,s){return mo(t,pn(),n)?e+qn(n)+s:gi}(s,t,e,n);return i!==gi&&function(t,e,n){const s=$e(e,t),i=t[11];Be(i)?i.setValue(s,n):s.textContent=n}(s,Tn(),i),ca}function ha(t,e){const n=Ke(t)[1],s=n.data.length-1;In(n,{directiveStart:s,directiveEnd:s+1})}function ua(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const s=[t];for(;e;){let i=void 0;if(Ae(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){s.push(i);const e=t;e.inputs=da(t.inputs),e.declaredInputs=da(t.declaredInputs),e.outputs=da(t.outputs);const n=i.hostBindings;n&&ma(t,n);const r=i.viewQuery,o=i.contentQueries;if(r&&pa(t,r),o&&fa(t,o),ct(t.inputs,i.inputs),ct(t.declaredInputs,i.declaredInputs),ct(t.outputs,i.outputs),Ae(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}}const e=i.features;if(e)for(let s=0;s<e.length;s++){const i=e[s];i&&i.ngInherit&&i(t),i===ua&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let s=t.length-1;s>=0;s--){const i=t[s];i.hostVars=e+=i.hostVars,i.hostAttrs=Hn(i.hostAttrs,n=Hn(n,i.hostAttrs))}}(s)}function da(t){return t===he?{}:t===ue?[]:t}function pa(t,e){const n=t.viewQuery;t.viewQuery=n?(t,s)=>{e(t,s),n(t,s)}:e}function fa(t,e){const n=t.contentQueries;t.contentQueries=n?(t,s,i)=>{e(t,s,i),n(t,s,i)}:e}function ma(t,e){const n=t.hostBindings;t.hostBindings=n?(t,s)=>{e(t,s),n(t,s)}:e}class ga{}class _a{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${vt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ya=(()=>{class t{}return t.NULL=new _a,t})(),ba=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>va(t),t})();const va=function(t){return zr(t,an(),sn())};class wa{}var Ca=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Ea=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Sa(),t})();const Sa=function(){const t=sn(),e=Ze(an().index,t);return function(t){const e=t[11];if(Be(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Te(e)?e:t)};let xa=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>null}),t})();class Ta{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const ka=new Ta("10.1.0");class Oa{constructor(){}supports(t){return po(t)}create(t){return new Ra(t)}}const Ia=(t,e)=>e;class Ra{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||Ia}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,s=0,i=null;for(;e||n;){const r=!n||e&&e.currentIndex<Na(n,s,i)?e:n,o=Na(r,s,i),a=r.currentIndex;if(r===n)s--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)s++;else{i||(i=[]);const t=o-s,e=a-s;if(t!=e){for(let n=0;n<t;n++){const s=n<i.length?i[n]:i[n]=0,r=s+n;e<=r&&r<t&&(i[n]=s+1)}i[r.previousIndex]=e-t}}o!==a&&t(r,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!po(t))throw new Error(`Error trying to diff '${vt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,s,i=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],s=this._trackByFn(e,n),null!==i&&Object.is(i.trackById,s)?(r&&(i=this._verifyReinsertion(i,n,s,e)),Object.is(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,s,e),r=!0),i=i._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[ho()]();let s;for(;!(s=n.next()).done;)e(s.value)}}(t,t=>{s=this._trackByFn(e,t),null!==i&&Object.is(i.trackById,s)?(r&&(i=this._verifyReinsertion(i,t,s,e)),Object.is(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,s,e),r=!0),i=i._next,e++}),this.length=e;return this._truncate(i),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,e;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=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,s){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,s)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,s)):t=this._addAfter(new Aa(e,n),i,s),t}_verifyReinsertion(t,e,n,s){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),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 s=t._prevRemoved,i=t._nextRemoved;return null===s?this._removalsHead=i:s._nextRemoved=i,null===i?this._removalsTail=s:i._prevRemoved=s,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 s=null===e?this._itHead:e._next;return t._next=s,t._prev=e,null===s?this._itTail=t:s._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Pa),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 Pa),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 Aa{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 Da{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 Pa{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Da,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 Na(t,e,n){const s=t.previousIndex;if(null===s)return s;let i=0;return n&&s<n.length&&(i=n[s]),s+e+i}class Fa{constructor(){}supports(t){return t instanceof Map||fo(t)}create(){return new La}}class La{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||fo(t)))throw new Error(`Error trying to diff '${vt(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 s=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,s)}}),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 s=n._prev,i=n._next;return s&&(s._next=i),i&&(i._prev=s),n._next=null,n._prev=null,n}const n=new Ma(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 Ma{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}}let ja=(()=>{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=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new it]]}}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=ht({token:t,providedIn:"root",factory:()=>new t([new Oa])}),t})(),Ha=(()=>{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=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new it]]}}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=ht({token:t,providedIn:"root",factory:()=>new t([new Fa])}),t})();const Va=[new Fa],Ba=new ja([new Oa]),za=new Ha(Va);let Wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>$a(t,ba),t})();const $a=function(t,e){return Wr(t,e,an(),sn())};let qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ua(t,ba),t})();const Ua=function(t,e){return $r(t,e,an(),sn())},Qa={};class Za extends ya{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=we(t);return new Ya(e,this.ngModule)}}function Ka(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Ga=new jt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Qn});class Ya extends ga{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(mi).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Ka(this.componentDef.inputs)}get outputs(){return Ka(this.componentDef.outputs)}create(t,e,n,s){const i=(s=s||this.ngModule)?function(t,e){return{get:(n,s,i)=>{const r=t.get(n,Qa,i);return r!==Qa||s===Qa?r:e.get(n,s,i)}}}(t,s.injector):t,r=i.get(wa,ze),o=i.get(xa,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Be(t))return t.selectRootElement(e,n===ce.ShadowDom);let s="string"==typeof e?t.querySelector(e):e;return s.textContent="",s}(a,n,this.componentDef.encapsulation):Ri(l,r.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:Qn,clean:ur,playerHandler:null,flags:0},d=Bi(0,-1,null,1,0,null,null,null,null,null),p=Ai(null,d,u,h,null,null,r,a,o,i);let f,m;vn(p,null);try{const t=function(t,e,n,s,i,r){const o=n[1];n[20]=t;const a=Di(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(lo(a,l,!0),null!==t&&(Ln(i,t,l),null!==a.classes&&Lr(i,t,a.classes),null!==a.styles&&Fr(i,t,a.styles)));const c=s.createRenderer(t,e),h=Ai(n,Vi(e),null,e.onPush?64:16,n[20],a,s,c,void 0);return o.firstCreatePass&&(ss(Jn(a,n),o,e.type),Gi(o,a),Xi(a,n.length,1)),or(n,h),n[20]=h}(c,this.componentDef,p,r,a);if(c)if(n)Ln(a,c,["ng-version",ka.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let s=1,i=2;for(;s<t.length;){let r=t[s];if("string"==typeof r)2===i?""!==r&&e.push(r,t[++s]):8===i&&n.push(r);else{if(!hi(i))break;i=r}s++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Ln(a,c,t),e&&e.length>0&&Lr(a,c,e.join(" "))}if(m=Ue(d,0),void 0!==e){const t=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const s=e[n];t.push(null!=s?Array.from(s):null)}}f=function(t,e,n,s,i){const r=n[1],o=function(t,e,n){const s=an();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Ki(t,s,1),Ji(t,e,n));const i=ls(e,t,e.length-1,s);ei(i,e);const r=qe(s,e);return r&&ei(r,e),i}(r,n,e);s.components.push(o),t[8]=o,i&&i.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=an();if(r.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){kn(a.index-Se);const t=n[1];Ui(t,e),Qi(t,n,e.hostVars),Zi(e,o)}return o}(t,this.componentDef,p,u,[ha]),Pi(d,p,null)}finally{xn()}const g=new Xa(this.componentType,f,zr(ba,m,p),p,m);return d.node.child=m,g}}class Xa extends class{}{constructor(t,e,n,s,i){super(),this.location=n,this._rootLView=s,this._tNode=i,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new jr(s),function(t,e,n,s){let i=t.node;null==i&&(t.node=i=Wi(0,null,2,-1,null,null)),s[6]=i}(s[1],0,0,s),this.componentType=t}get injector(){return new us(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const Ja=void 0;var tl=["en",[["a","p"],["AM","PM"],Ja],[["AM","PM"],Ja,Ja],[["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"]],Ja,[["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"]],Ja,[["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}",Ja,"{1} 'at' {0}",Ja],[".",",",";","%","+","-","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 el={};function nl(t){return t in el||(el[t]=Rt.ng&&Rt.ng.common&&Rt.ng.common.locales&&Rt.ng.common.locales[t]),el[t]}var sl=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const il="en-US";let rl=il;function ol(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,s){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(rl=t.toLowerCase().replace(/_/g,"-"))}const al=new Map;class ll extends te{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Za(this);const n=Ee(t),s=t[Ft]||null;s&&ol(s),this._bootstrapComponents=Kn(n.bootstrap),this._r3Injector=to(t,e,[{provide:te,useValue:this},{provide:ya,useValue:this.componentFactoryResolver}],vt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ao.THROW_IF_NOT_FOUND,n=at.Default){return t===ao||t===te||t===Ht?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class cl extends class{}{constructor(t){super(),this.moduleType=t,null!==Ee(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${vt(e)} vs ${vt(e.name)}`)})(t,al.get(t),e),al.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new ll(this.moduleType,t)}}function hl(t,e,n){const s=sn(),i=Qe(s,t);return function(t,e){return uo.isWrapped(e)&&(e=uo.unwrap(e),t[en.lFrame.bindingIndex]=gi),e}(s,function(t,e){return t[1].data[e+Se].pure}(s,t)?function(t,e,n,s,i,r){const o=e+n;return mo(t,o,i)?function(t,e,n){return t[e]=n}(t,o+1,r?s.call(r,i):s(i)):function(t,e){const n=t[e];return n===gi?void 0:n}(t,o+1)}(s,function(){const t=en.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}(),e,i.transform,n,i):i.transform(n))}const ul=class extends E{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let s,i=t=>null,r=()=>null;t&&"object"==typeof t?(s=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(s,i,r);return t instanceof u&&t.add(o),o}};function dl(){return this._results[ho()]()}class pl{constructor(){this.dirty=!0,this._results=[],this.changes=new ul,this.length=0;const t=ho(),e=pl.prototype;e[t]||(e[t]=dl)}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){this._results=function t(e,n){void 0===n&&(n=e);for(let s=0;s<e.length;s++){let i=e[s];Array.isArray(i)?(n===e&&(n=e.slice(0,s)),t(i,n)):n!==e&&n.push(i)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class fl{constructor(t){this.queryList=t,this.matches=null}clone(){return new fl(this.queryList)}setDirty(){this.queryList.setDirty()}}class ml{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,s=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);s.push(this.queries[n.indexInDeclarationView].clone())}return new ml(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==xl(t,e).matches&&this.queries[e].setDirty()}}class gl{constructor(t,e,n,s=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=s}}class _l{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 s=null!==e?e.length:0,i=this.getByIndex(n).embeddedTView(t,s);i&&(i.indexInDeclarationView=n,null!==e?e.push(i):e=[i])}return null!==e?new _l(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 yl{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 yl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===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 s=0;s<n.length;s++){const i=n[s];this.matchTNodeWithReadOption(t,e,bl(e,i)),this.matchTNodeWithReadOption(t,e,as(e,t,i,!1,!1))}else n===Wa?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,as(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const s=this.metadata.read;if(null!==s)if(s===ba||s===qa||s===Wa&&0===e.type)this.addMatch(e.index,-2);else{const n=as(e,t,s,!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 bl(t,e){const n=t.localNames;if(null!==n)for(let s=0;s<n.length;s+=2)if(n[s]===e)return n[s+1];return null}function vl(t,e,n,s){return-1===n?function(t,e){return 3===t.type||4===t.type?zr(ba,t,e):0===t.type?Wr(Wa,ba,t,e):null}(e,t):-2===n?function(t,e,n){return n===ba?zr(ba,e,t):n===Wa?Wr(Wa,ba,e,t):n===qa?$r(qa,ba,e,t):void 0}(t,e,s):ls(t,t[1],n,e)}function wl(t,e,n,s){const i=e[19].queries[s];if(null===i.matches){const s=t.data,r=n.matches,o=[];for(let t=0;t<r.length;t+=2){const i=r[t];o.push(i<0?null:vl(e,s[i],r[t+1],n.metadata.read))}i.matches=o}return i.matches}function Cl(t){const e=sn(),n=rn(),s=_n();yn(s+1);const i=xl(n,s);if(t.dirty&&Ge(e)===i.metadata.isStatic){if(null===i.matches)t.reset([]);else{const r=i.crossesNgTemplate?function t(e,n,s,i){const r=e.queries.getByIndex(s),o=r.matches;if(null!==o){const a=wl(e,n,r,s);for(let e=0;e<o.length;e+=2){const s=o[e];if(s>0)i.push(a[e/2]);else{const r=o[e+1],a=n[-s];for(let e=xe;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,r,i)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const s=e[n];t(s[1],s,r,i)}}}}}return i}(n,e,s,[]):wl(n,e,i,s);t.reset(r),t.notifyOnChanges()}return!0}return!1}function El(t,e,n){!function(t,e,n,s,i,r){t.firstCreatePass&&function(t,e,n){null===t.queries&&(t.queries=new _l),t.queries.track(new yl(e,-1))}(t,new gl(n,s,false,i)),function(t,e){const n=new pl;zi(t,e,n,n.destroy),null===e[19]&&(e[19]=new ml),e[19].queries.push(new fl(n))}(t,e)}(rn(),sn(),t,e,n)}function Sl(){return t=sn(),e=_n(),t[19].queries[e].queryList;var t,e}function xl(t,e){return t.queries.getByIndex(e)}function Tl(t,e){return Wr(Wa,ba,t,e)}const kl=new jt("Application Initializer");let Ol=(()=>{class t{constructor(t){this.appInits=t,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]();Io(e)&&t.push(e)}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)(Kt(kl,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Il=new jt("AppId"),Rl={provide:Il,useFactory:function(){return`${Al()}${Al()}${Al()}`},deps:[]};function Al(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Dl=new jt("Platform Initializer"),Pl=new jt("Platform ID"),Nl=new jt("appBootstrapListener");let Fl=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Ll=new jt("LocaleId"),Ml=new jt("DefaultCurrencyCode");class jl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Hl=function(t){return new cl(t)},Vl=Hl,Bl=function(t){return Promise.resolve(Hl(t))},zl=function(t){const e=Hl(t),n=Kn(Ee(t).declarations).reduce((t,e)=>{const n=we(e);return n&&t.push(new Ya(n)),t},[]);return new jl(e,n)},Wl=zl,$l=function(t){return Promise.resolve(zl(t))};let ql=(()=>{class t{constructor(){this.compileModuleSync=Vl,this.compileModuleAsync=Bl,this.compileModuleAndAllComponentsSync=Wl,this.compileModuleAndAllComponentsAsync=$l}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Ul=(()=>Promise.resolve(0))();function Ql(t){"undefined"==typeof Zone?Ul.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Zl{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ul(!1),this.onMicrotaskEmpty=new ul(!1),this.onStable=new ul(!1),this.onError=new ul(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=Rt.requestAnimationFrame,e=Rt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const s=e[Zone.__symbol__("OriginalDelegate")];s&&(e=s)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Rt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Xl(t),Yl(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Xl(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,s,i,r,o,a)=>{try{return Jl(t),n.invokeTask(i,r,o,a)}finally{e&&"eventTask"===r.type&&e(),tc(t)}},onInvoke:(e,n,s,i,r,o,a)=>{try{return Jl(t),e.invoke(s,i,r,o,a)}finally{tc(t)}},onHasTask:(e,n,s,i)=>{e.hasTask(s,i),n===s&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Xl(t),Yl(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,s,i)=>(e.handleError(s,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Zl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Zl.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,s){const i=this._inner,r=i.scheduleEventTask("NgZoneEvent: "+s,t,Gl,Kl,Kl);try{return i.runTask(r,e,n)}finally{i.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Kl(){}const Gl={};function Yl(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 Xl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Jl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function tc(t){t._nesting--,Yl(t)}class ec{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ul,this.onMicrotaskEmpty=new ul,this.onStable=new ul,this.onError=new ul}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,s){return t.apply(e,n)}}let nc=(()=>{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:()=>{Zl.assertNotInAngularZone(),Ql(()=>{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())Ql(()=>{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 s=-1;e&&e>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==s),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:s,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/dist/task-tracking.js" 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)(Kt(Zl))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),sc=(()=>{class t{constructor(){this._applications=new Map,oc.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 oc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class ic{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let rc,oc=new ic;const ac=new jt("AllowMultipleToken");function lc(t,e,n=[]){const s="Platform: "+e,i=new jt(s);return(e=[])=>{let r=cc();if(!r||r.injector.get(ac,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:Zr,useValue:"platform"});!function(t){if(rc&&!rc.destroyed&&!rc.injector.get(ac,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");rc=t.get(hc);const e=t.get(Dl,null);e&&e.forEach(t=>t())}(ao.create({providers:t,name:s}))}return function(t){const e=cc();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}(i)}}function cc(){return rc&&!rc.destroyed?rc:null}let hc=(()=>{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 ec:("zone.js"===t?void 0:t)||new Zl({enableLongStackTrace:Is(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),s=[{provide:Zl,useValue:n}];return n.run(()=>{const e=ao.create({providers:s,parent:this.injector,name:t.moduleType.name}),i=t.create(e),r=i.injector.get(_s,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>pc(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const s=n();return Io(s)?s.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):s}catch(s){throw e.runOutsideAngular(()=>t.handleError(s)),s}}(r,n,()=>{const t=i.injector.get(Ol);return t.runInitializers(),t.donePromise.then(()=>(ol(i.injector.get(Ll,il)||il),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const n=uc({},e);return function(t,e,n){const s=new cl(n);return Promise.resolve(s)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(dc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${vt(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)(Kt(ao))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function uc(t,e){return Array.isArray(e)?e.reduce(uc,t):Object.assign(Object.assign({},t),e)}let dc=(()=>{class t{constructor(t,e,n,s,i,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=s,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Is(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Zl.assertNotInAngularZone(),Ql(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Zl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=q(o,a.pipe(J()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof ga?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(te),i=n.create(ao.NULL,[],e||n.selector,s);i.onDestroy(()=>{this._unloadComponent(i)});const r=i.injector.get(nc,null);return r&&i.injector.get(sc).registerApplication(i.location.nativeElement,r),this._loadComponent(i),Is()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}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;pc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Nl,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),pc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Kt(Zl),Kt(Fl),Kt(ao),Kt(_s),Kt(ya),Kt(Ol))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function pc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const fc=lc(null,"core",[{provide:Pl,useValue:"unknown"},{provide:hc,deps:[ao]},{provide:sc,deps:[]},{provide:Fl,deps:[]}]),mc=[{provide:dc,useClass:dc,deps:[Zl,Fl,ao,_s,ya,Ol]},{provide:Ga,deps:[Zl],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Ol,useClass:Ol,deps:[[new it,kl]]},{provide:ql,useClass:ql,deps:[]},Rl,{provide:ja,useFactory:function(){return Ba},deps:[]},{provide:Ha,useFactory:function(){return za},deps:[]},{provide:Ll,useFactory:function(t){return ol(t=t||"undefined"!=typeof $localize&&$localize.locale||il),t},deps:[[new st(Ll),new it,new ot]]},{provide:Ml,useValue:"USD"}];let gc=(()=>{class t{constructor(t){}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(dc))},providers:mc}),t})();function _c(t){return null!=t&&""+t!="false"}function yc(t){return Array.isArray(t)?t:[t]}function bc(t){return null==t?"":"string"==typeof t?t:t+"px"}function vc(t){return t instanceof ba?t.nativeElement:t}function wc(...t){let e=t[t.length-1];return x(e)?(t.pop(),F(t,e)):$(t)}function Cc(t,e,n,i){return s(n)&&(i=n,n=void 0),i?Cc(t,e,n).pipe(T(t=>l(t)?i(...t):i(t))):new y(s=>{!function t(e,n,s,i,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,s,r),o=()=>t.removeEventListener(n,s,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,s),o=()=>t.off(n,s)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,s),o=()=>t.removeListener(n,s)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o<a;o++)t(e[o],n,s,i,r)}i.add(o)}(t,e,(function(t){s.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),s,n)})}class Ec extends u{constructor(t,e){super()}schedule(t,e=0){return this}}class Sc extends Ec{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,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(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=!1,s=void 0;try{this.work(t)}catch(i){n=!0,s=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),s}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let xc=(()=>{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 Tc extends xc{constructor(t,e=xc.now){super(t,()=>Tc.delegate&&Tc.delegate!==this?Tc.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Tc.delegate&&Tc.delegate!==this?Tc.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}}}const kc=new Tc(Sc);class Oc{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Ic(t,this.durationSelector))}}class Ic extends j{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 s=H(n,new M(this));!s||s.closed?this.clearThrottle():this.add(this.throttled=s)}}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()}}function Rc(t){return!l(t)&&t-parseFloat(t)+1>=0}function Ac(t){const{index:e,period:n,subscriber:s}=t;if(s.next(e),!s.closed){if(-1===n)return s.complete();t.index=e+1,this.schedule(t,n)}}function Dc(t,e=kc){return n=()=>function(t=0,e,n){let s=-1;return Rc(e)?s=Number(e)<1?1:Number(e):x(e)&&(n=e),x(n)||(n=kc),new y(e=>{const i=Rc(t)?t:+t-n.now();return n.schedule(Ac,i,{index:0,period:s,subscriber:e})})}(t,e),function(t){return t.lift(new Oc(n))};var n}function Pc(t,e){return function(n){return n.lift(new Nc(t,e))}}class Nc{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Fc(t,this.predicate,this.thisArg))}}class Fc extends f{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)}}function Lc(t){return e=>e.lift(new Mc(t))}class Mc{constructor(t){this.notifier=t}call(t,e){const n=new jc(t),s=H(this.notifier,new M(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class jc extends j{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Hc(...t){return W(1)(wc(...t))}function Vc(...t){const e=t[t.length-1];return x(e)?(t.pop(),n=>Hc(t,n,e)):e=>Hc(t,e)}function Bc(t,e){return"function"==typeof e?n=>n.pipe(Bc((n,s)=>L(t(n,s)).pipe(T((t,i)=>e(n,t,s,i))))):e=>e.lift(new zc(t))}class zc{constructor(t){this.project=t}call(t,e){return e.subscribe(new Wc(t,this.project))}}class Wc extends j{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(s){return void this.destination.error(s)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new M(this),s=this.destination;s.add(n),this.innerSubscription=H(t,n),this.innerSubscription!==n&&s.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)}}class $c extends Sc{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)}}class qc extends Tc{}const Uc=new qc($c),Qc=new y(t=>t.complete());function Zc(t){return t?function(t){return new y(e=>t.schedule(()=>e.complete()))}(t):Qc}function Kc(t,e){return new y(e?n=>e.schedule(Gc,0,{error:t,subscriber:n}):e=>e.error(t))}function Gc({error:t,subscriber:e}){e.error(t)}let Yc=(()=>{class t{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 wc(this.value);case"E":return Kc(this.error);case"C":return Zc()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class Xc extends f{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(Xc.dispatch,this.delay,new Jc(t,this.destination)))}_next(t){this.scheduleMessage(Yc.createNext(t))}_error(t){this.scheduleMessage(Yc.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Yc.createComplete()),this.unsubscribe()}}class Jc{constructor(t,e){this.notification=t,this.destination=e}}class th extends E{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){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new eh(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,i=n.length;let r;if(this.closed)throw new v;if(this.isStopped||this.hasError?r=u.EMPTY:(this.observers.push(t),r=new w(this,t)),s&&t.add(t=new Xc(t,s)),e)for(let o=0;o<i&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<i&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),r}_getNow(){return(this.scheduler||Uc).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,s=this._events,i=s.length;let r=0;for(;r<i&&!(t-s[r].time<n);)r++;return i>e&&(r=Math.max(r,i-e)),r>0&&s.splice(0,r),s}}class eh{constructor(t,e){this.time=t,this.value=e}}let nh=null;function sh(){return nh}const ih=new jt("DocumentToken");let rh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:oh,token:t,providedIn:"platform"}),t})();function oh(){return Kt(ah)}let ah=(()=>{class t extends rh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=sh().getLocation(),this._history=sh().getHistory()}getBaseHrefFromDOM(){return sh().getBaseHref(this._doc)}onPopState(t){sh().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){sh().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}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){lh()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){lh()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Kt(ih))},t.\u0275prov=ht({factory:ch,token:t,providedIn:"platform"}),t})();function lh(){return!!window.history.pushState}function ch(){return new ah(Kt(ih))}function hh(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 uh(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 dh(t){return t&&"?"!==t[0]?"?"+t:t}let ph=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:fh,token:t,providedIn:"root"}),t})();function fh(t){const e=Kt(ih).location;return new gh(Kt(rh),e&&e.origin||"")}const mh=new jt("appBaseHref");let gh=(()=>{class t extends ph{constructor(t,e){if(super(),this._platformLocation=t,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}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return hh(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+dh(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,s){const i=this.prepareExternalUrl(n+dh(s));this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,s){const i=this.prepareExternalUrl(n+dh(s));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Kt(rh),Kt(mh,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),_h=(()=>{class t{constructor(t,e){this._subject=new ul,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=uh(bh(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+dh(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,bh(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+dh(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+dh(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}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)(Kt(ph),Kt(rh))},t.normalizeQueryParams=dh,t.joinWithSlash=hh,t.stripTrailingSlash=uh,t.\u0275prov=ht({factory:yh,token:t,providedIn:"root"}),t})();function yh(){return new _h(Kt(ph),Kt(rh))}function bh(t){return t.replace(/\/index.html$/,"")}var vh=function(t){return 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}({});class wh{}let Ch=(()=>{class t extends wh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=nl(e);if(n)return n;const s=e.split("-")[0];if(n=nl(s),n)return n;if("en"===s)return tl;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[sl.PluralCase]}(e||this.locale)(t)){case vh.Zero:return"zero";case vh.One:return"one";case vh.Two:return"two";case vh.Few:return"few";case vh.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Ll))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Eh=(()=>{class t{constructor(t,e,n,s){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=s,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&&(po(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 "+vt(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)(bo(ja),bo(Ha),bo(ba),bo(Ea))},t.\u0275dir=be({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Sh{constructor(t,e,n,s){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let xh=(()=>{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){Is()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),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,s)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Sh(null,this._ngForOf,-1,-1),null===s?void 0:s),i=new Th(t,n);e.push(i)}else if(null==s)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,s);const r=new Th(t,i);e.push(r)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,s=this._viewContainer.length;n<s;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=s,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)(bo(qa),bo(Wa),bo(ja))},t.\u0275dir=be({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Th{constructor(t,e){this.record=t,this.view=e}}let kh=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Oh,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){Ih("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Ih("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)(bo(qa),bo(Wa))},t.\u0275dir=be({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Oh{constructor(){this.$implicit=null,this.ngIf=null}}function Ih(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${vt(e)}'.`)}class Rh{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 Ah=(()=>{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=be({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),Dh=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Rh(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(bo(qa),bo(Wa),bo(Ah,1))},t.\u0275dir=be({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Ph=(()=>{class t{constructor(t,e,n){n._addDefault(new Rh(t,e))}}return t.\u0275fac=function(e){return new(e||t)(bo(qa),bo(Wa),bo(Ah,1))},t.\u0275dir=be({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Nh=(()=>{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,s]=t.split(".");null!=(e=null!=e&&s?`${e}${s}`: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)(bo(ba),bo(Ha),bo(Ea))},t.\u0275dir=be({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Fh=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){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&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(bo(qa))},t.\u0275dir=be({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Ne]}),t})();class Lh{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Mh{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const jh=new Mh,Hh=new Lh;let Vh,Bh=(()=>{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(Io(e))return jh;if(function(t){return!!t&&"function"==typeof t.subscribe}(e))return Hh;throw Error(`InvalidPipeArgument: '${e}' for pipe '${vt(t)}'`)}_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)(function(t=at.Default){const e=qr(!0);if(null!=e||t&at.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=ve({name:"async",type:t,pure:!1}),t})(),zh=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[{provide:wh,useClass:Ch}]}),t})();try{Vh="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Tb){Vh=!1}let Wh,$h,qh,Uh,Qh=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?"browser"===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&&!Vh)&&"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)(Kt(Pl))},t.\u0275prov=ht({factory:function(){return new t(Kt(Pl))},token:t,providedIn:"root"}),t})(),Zh=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();function Kh(t){return function(){if(null==Wh&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Wh=!0}))}finally{Wh=Wh||!1}return Wh}()?t:!!t.capture}function Gh(){if("object"!=typeof document||!document)return 0;if(null==$h){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"),s=n.style;s.width="2px",s.height="1px",t.appendChild(n),document.body.appendChild(t),$h=0,0===t.scrollLeft&&(t.scrollLeft=1,$h=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return $h}const Yh=new jt("cdk-dir-doc",{providedIn:"root",factory:function(){return Gt(ih)}});let Xh=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new ul,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)(Kt(Yh,8))},t.\u0275prov=ht({factory:function(){return new t(Kt(Yh,8))},token:t,providedIn:"root"}),t})(),Jh=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),tu=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new E,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 y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Dc(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):wc()}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(Pc(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,s)=>{this._scrollableContainsElement(s,t)&&e.push(s)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Cc(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Zl),Kt(Qh),Kt(ih,8))},t.\u0275prov=ht({factory:function(){return new t(Kt(Zl),Kt(Qh),Kt(ih,8))},token:t,providedIn:"root"}),t})(),eu=(()=>{class t{constructor(t,e,n,s){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=s,this._destroyed=new E,this._elementScrolled=new y(t=>this.ngZone.runOutsideAngular(()=>Cc(this.elementRef.nativeElement,"scroll").pipe(Lc(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!=Gh()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Gh()?t.left=t.right:1==Gh()&&(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;!function(){if(null==qh)if("object"==typeof document&&document||(qh=!1),"scrollBehavior"in document.documentElement.style)qh=!0;else{const t=Element.prototype.scrollTo;qh=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}return qh}()?(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left)):e.scrollTo(t)}measureScrollOffset(t){const e="left",n="right",s=this.elementRef.nativeElement;if("top"==t)return s.scrollTop;if("bottom"==t)return s.scrollHeight-s.clientHeight-s.scrollTop;const i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?n:e:"end"==t&&(t=i?e:n),i&&2==Gh()?t==e?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:i&&1==Gh()?t==e?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:t==e?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(bo(ba),bo(tu),bo(Zl),bo(Xh,8))},t.\u0275dir=be({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),nu=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new E,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._getDocument(),e=this._getWindow(),n=t.documentElement,s=n.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-s.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Dc(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().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)(Kt(Qh),Kt(Zl),Kt(ih,8))},t.\u0275prov=ht({factory:function(){return new t(Kt(Qh),Kt(Zl),Kt(ih,8))},token:t,providedIn:"root"}),t})(),su=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),iu=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Jh,Zh,su],Jh,su]}),t})();class ru{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 ou extends ru{constructor(t,e,n,s){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=s}}class au extends ru{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 lu extends ru{constructor(t){super(),this.element=t instanceof ba?t.nativeElement:t}}class cu extends class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof ou?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof au?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof lu?(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)}}{constructor(t,e,n,s,i){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=s,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=i}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)),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)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let hu=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();const uu=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function du(t){return e=>0===t?Zc():e.lift(new pu(t))}class pu{constructor(t){if(this.total=t,this.total<0)throw new uu}call(t,e){return e.subscribe(new fu(t,this.total))}}class fu extends f{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()))}}class mu{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=bc(-this._previousScrollPosition.left),t.style.top=bc(-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,s=e.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=s,n.scrollBehavior=i}}_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 gu{constructor(t,e,n,s){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=s,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 _u{enable(){}disable(){}attach(){}}function yu(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function bu(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class vu{constructor(t,e,n,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=s,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();yu(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 wu=(()=>{class t{constructor(t,e,n,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new _u,this.close=t=>new gu(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new mu(this._viewportRuler,this._document),this.reposition=t=>new vu(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=s}}return t.\u0275fac=function(e){return new(e||t)(Kt(tu),Kt(nu),Kt(Zl),Kt(ih))},t.\u0275prov=ht({factory:function(){return new t(Kt(tu),Kt(nu),Kt(Zl),Kt(ih))},token:t,providedIn:"root"}),t})();class Cu{constructor(t){if(this.scrollStrategy=new _u,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 Eu{constructor(t,e,n,s,i){this.offsetX=n,this.offsetY=s,this.panelClass=i,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class Su{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let xu=(()=>{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)(Kt(ih))},t.\u0275prov=ht({factory:function(){return new t(Kt(ih))},token:t,providedIn:"root"}),t})(),Tu=(()=>{class t extends xu{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)(Kt(ih))},t.\u0275prov=ht({factory:function(){return new t(Kt(ih))},token:t,providedIn:"root"}),t})(),ku=(()=>{class t extends xu{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 s=n.length-1;s>-1;s--){const i=n[s];if(!(i._outsidePointerEvents.observers.length<1)&&i.hasAttached()){if(i.overlayElement.contains(e))break;i._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Kt(ih),Kt(Qh))},t.\u0275prov=ht({factory:function(){return new t(Kt(ih),Kt(Qh))},token:t,providedIn:"root"}),t})();const Ou=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let Iu=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window,e="cdk-overlay-container";if(t||Ou){const t=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e])}const n=this._document.createElement("div");n.classList.add(e),Ou?n.setAttribute("platform","test"):t||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}return t.\u0275fac=function(e){return new(e||t)(Kt(ih),Kt(Qh))},t.\u0275prov=ht({factory:function(){return new t(Kt(ih),Kt(Qh))},token:t,providedIn:"root"}),t})();class Ru{constructor(t,e,n,s,i,r,o,a,l){this._portalOutlet=t,this._host=e,this._pane=n,this._config=s,this._ngZone=i,this._keyboardDispatcher=r,this._document=o,this._location=a,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new E,this._attachments=new E,this._detachments=new E,this._locationChanges=u.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new E,this._outsidePointerEvents=new E,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.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(du(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._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher&&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&&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&&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=bc(this._config.width),t.height=bc(this._config.height),t.minWidth=bc(this._config.minWidth),t.minHeight=bc(this._config.minHeight),t.maxWidth=bc(this._config.maxWidth),t.maxHeight=bc(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const s=t.classList;yc(e).forEach(t=>{t&&(n?s.add(t):s.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Lc(q(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 Au="cdk-overlay-connected-position-bounding-box",Du=/([A-Za-z%]+)$/;class Pu{constructor(t,e,n,s,i){this._viewportRuler=e,this._document=n,this._platform=s,this._overlayContainer=i,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 E,this._resizeSubscription=u.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(Au),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,s=[];let i;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?s.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!i||i.overlayFit.visibleArea<l.visibleArea)&&(i={overlayFit:l,overlayPoint:a,originPoint:o,position:r,overlayRect:e})}if(s.length){let t=null,e=-1;for(const n of s){const s=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);s>e&&(e=s,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(i.position,i.originPoint);this._applyPosition(i.position,i.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Nu(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Au),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,s;if("center"==e.originX)n=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,i=this._isRtl()?t.left:t.right;n="start"==e.originX?s:i}return s="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:s}}_getOverlayPoint(t,e,n){let s,i;return s="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,i="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+s,y:t.y+i}}_getOverlayFit(t,e,n,s){let{x:i,y:r}=t,o=this._getOffset(s,"x"),a=this._getOffset(s,"y");o&&(i+=o),a&&(r+=a);let l=0-r,c=r+e.height-n.height,h=this._subtractOverflows(e.width,0-i,i+e.width-n.width),u=this._subtractOverflows(e.height,l,c),d=h*u;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:u===e.height,fitsInViewportHorizontally:h==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const s=n.bottom-e.y,i=n.right-e.x,r=Fu(this._overlayRef.getConfig().minHeight),o=Fu(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=i;return(t.fitsInViewportVertically||null!=r&&r<=s)&&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 s=this._viewportRect,i=Math.max(t.x+e.width-s.width,0),r=Math.max(t.y+e.height-s.height,0),o=Math.max(s.top-n.top-t.y,0),a=Math.max(s.left-n.left-t.x,0);let l=0,c=0;return l=e.width<=s.width?a||-i:t.x<this._viewportMargin?s.left-n.left-t.x:0,c=e.height<=s.height?o||-r:t.y<this._viewportMargin?s.top-n.top-t.y:0,this._previousPushAmount={x:l,y:c},{x:t.x+l,y:t.y+c}}_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 Su(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,s=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let i=0;i<e.length;i++)e[i].style.transformOrigin=`${n} ${s}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,s=this._isRtl();let i,r,o,a,l,c;if("top"===e.overlayY)r=t.y,i=n.height-r+this._viewportMargin;else if("bottom"===e.overlayY)o=n.height-t.y+2*this._viewportMargin,i=n.height-o+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),s=this._lastBoundingBoxSize.height;i=2*e,r=t.y-e,i>s&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-s/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),s=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>s&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-s/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:i}}_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 s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,i=this._overlayRef.getConfig().maxWidth;s.height=bc(n.height),s.top=bc(n.top),s.bottom=bc(n.bottom),s.width=bc(n.width),s.left=bc(n.left),s.right=bc(n.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(s.maxHeight=bc(t)),i&&(s.maxWidth=bc(i))}this._lastBoundingBoxSize=n,Nu(this._boundingBox.style,s)}_resetBoundingBoxStyles(){Nu(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Nu(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},s=this._hasExactPosition(),i=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(s){const s=this._viewportRuler.getViewportScrollPosition();Nu(n,this._getExactOverlayY(e,t,s)),Nu(n,this._getExactOverlayX(e,t,s))}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(),r.maxHeight&&(s?n.maxHeight=bc(r.maxHeight):i&&(n.maxHeight="")),r.maxWidth&&(s?n.maxWidth=bc(r.maxWidth):i&&(n.maxWidth="")),Nu(this._pane.style,n)}_getExactOverlayY(t,e,n){let s={top:"",bottom:""},i=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return i.y-=r,"bottom"===t.overlayY?s.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":s.top=bc(i.y),s}_getExactOverlayX(t,e,n){let s,i={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=bc(r.x),i}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:bu(t,n),isOriginOutsideView:yu(t,n),isOverlayClipped:bu(e,n),isOverlayOutsideView:yu(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&&yc(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 ba)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 Nu(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Fu(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(Du);return n&&"px"!==n?null:parseFloat(e)}return t||null}class Lu{constructor(t,e,n,s,i,r,o){this._preferredPositions=[],this._positionStrategy=new Pu(n,s,i,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,s){const i=new Eu(t,e,n,s);return this._preferredPositions.push(i),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const Mu="cdk-global-overlay-wrapper";class ju{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(Mu),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:s,height:i,maxWidth:r,maxHeight:o}=n,a=!("100%"!==s&&"100vw"!==s||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==i&&"100vh"!==i||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(Mu),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Hu=(()=>{class t{constructor(t,e,n,s){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=s}global(){return new ju}connectedTo(t,e,n){return new Lu(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Pu(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(Kt(nu),Kt(ih),Kt(Qh),Kt(Iu))},t.\u0275prov=ht({factory:function(){return new t(Kt(nu),Kt(ih),Kt(Qh),Kt(Iu))},token:t,providedIn:"root"}),t})(),Vu=0,Bu=(()=>{class t{constructor(t,e,n,s,i,r,o,a,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=s,this._keyboardDispatcher=i,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),s=this._createPortalOutlet(n),i=new Cu(t);return i.direction=i.direction||this._directionality.value,new Ru(s,e,n,i,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-"+Vu++,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(dc)),new cu(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(Kt(wu),Kt(Iu),Kt(ya),Kt(Hu),Kt(Tu),Kt(ao),Kt(Zl),Kt(ih),Kt(Xh),Kt(_h),Kt(ku))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const zu={provide:new jt("cdk-connected-overlay-scroll-strategy"),deps:[Bu],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Wu=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Bu,zu],imports:[[Jh,hu,iu],iu]}),t})();const $u=(()=>{const t=Element.prototype;return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector})(),qu={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return qu.schedule(t,0);if(void 0===window.requestAnimationFrame)return qu.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};function Uu(t,e,n){let s=n;return function(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((e,n)=>!("*"===e||!function(t,e){return $u.call(t,e)}(t,e)||(s=n,0))),s}class Qu{constructor(t,e){this.componentFactory=e.get(ya).resolveComponentFactory(t)}create(t){return new Zu(this.componentFactory,t)}}class Zu{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new th(1),this.events=this.eventEmitters.pipe(Bc(t=>q(...t))),this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set,this.ngZone=this.injector.get(Zl),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=qu.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{var n,s;null!==this.componentRef?((n=e)!==(s=this.getInputValue(t))&&(n==n||s==s)||void 0===e&&this.unchangedInputs.has(t))&&(this.recordInputChange(t,e),this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=ao.create({providers:[],parent:this.injector}),n=function(t,e){const n=t.childNodes,s=e.map(()=>[]);let i=-1;e.some((t,e)=>"*"===t&&(i=e,!0));for(let r=0,o=n.length;r<o;++r){const t=n[r],o=Uu(t,e,i);-1!==o&&s[o].push(t)}return s}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(dc).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.implementsOnChanges&&this.unchangedInputs.add(t),this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:e,templateName:n})=>t.instance[e].pipe(T(t=>({name:n,value:t}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=qu.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[t];if(n)return void(n.currentValue=e);const s=this.unchangedInputs.has(t);this.unchangedInputs.delete(t);const i=s?void 0:this.getInputValue(t);this.inputChanges[t]=new Pe(i,e,s)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class Ku extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Gu(t,e){const n=function(t,e){return e.get(ya).resolveComponentFactory(t).inputs}(t,e.injector),s=e.strategyFactory||new Qu(t,e.injector),i=function(t){const e={};return t.forEach(({propName:t,templateName:n})=>{var s;e[(s=n,s.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))]=t}),e}(n);class r extends Ku{constructor(t){super(),this.injector=t}get ngElementStrategy(){if(!this._ngElementStrategy){const t=this._ngElementStrategy=s.create(this.injector||e.injector),i=n.filter(({propName:t})=>this.hasOwnProperty(t)).map(({propName:t})=>[t,this[t]]);this instanceof r?i.forEach(([t])=>delete this[t]):Yu(n,this),i.forEach(([e,n])=>t.setInputValue(e,n))}return this._ngElementStrategy}attributeChangedCallback(t,e,n,s){this.ngElementStrategy.setInputValue(i[t],n)}connectedCallback(){let t=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),t=!0),this.ngElementStrategy.connect(this),t||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(t=>{const e=function(t,e,n){if("function"!=typeof CustomEvent){const s=t.createEvent("CustomEvent");return s.initCustomEvent(e,!1,!1,n),s}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,t.name,t.value);this.dispatchEvent(e)})}}return r.observedAttributes=Object.keys(i),Object.defineProperty(r.prototype,"ngElementStrategy",{enumerable:!0}),Yu(n,r.prototype),r}function Yu(t,e){t.forEach(({propName:t})=>{Object.defineProperty(e,t,{get(){return this.ngElementStrategy.getInputValue(t)},set(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})})}class Xu extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Xu,nh||(nh=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}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}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=td||(td=document.querySelector("base"),td)?td.getAttribute("href"):null;return null==e?null:(n=e,Ju||(Ju=document.createElement("a")),Ju.setAttribute("href",n),"/"===Ju.pathname.charAt(0)?Ju.pathname:"/"+Ju.pathname);var n}resetBaseElement(){td=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return function(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[s,i]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(s.trim()===e)return decodeURIComponent(i)}return null}(document.cookie,t)}}let Ju,td=null;const ed=new jt("TRANSITION_ID"),nd=[{provide:kl,useFactory:function(t,e,n){return()=>{n.get(Ol).donePromise.then(()=>{const n=sh();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[ed,ih,ao],multi:!0}];class sd{static init(){var t;t=new sd,oc=t}addToWindow(t){Rt.getAngularTestability=(e,n=!0)=>{const s=t.findTestabilityInTree(e,n);if(null==s)throw new Error("Could not find testability for element.");return s},Rt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Rt.getAllAngularRootElements=()=>t.getAllRootElements(),Rt.frameworkStabilizers||(Rt.frameworkStabilizers=[]),Rt.frameworkStabilizers.push(t=>{const e=Rt.getAllAngularTestabilities();let n=e.length,s=!1;const i=function(e){s=s||e,n--,0==n&&t(s)};e.forEach((function(t){t.whenStable(i)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?sh().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const id=new jt("EventManagerPlugins");let rd=(()=>{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 s=0;s<n.length;s++){const e=n[s];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)(Kt(id),Kt(Zl))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class od{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const s=sh().getGlobalEventTarget(this._doc,t);if(!s)throw new Error(`Unsupported event target ${s} for event ${e}`);return this.addEventListener(s,e,n)}}let ad=(()=>{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=ht({token:t,factory:t.\u0275fac}),t})(),ld=(()=>{class t extends ad{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>sh().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Kt(ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const cd={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/"},hd=/%COMP%/g;function ud(t,e,n){for(let s=0;s<e.length;s++){let i=e[s];Array.isArray(i)?ud(t,i,n):(i=i.replace(hd,t),n.push(i))}return n}function dd(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let pd=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new fd(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ce.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new md(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case ce.Native:case ce.ShadowDom:return new gd(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=ud(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)(Kt(rd),Kt(ld),Kt(Il))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class fd{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(cd[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,s){if(s){e=s+":"+e;const i=cd[s];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const s=cd[n];s?t.removeAttributeNS(s,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,s){s&Ca.DashCase?t.style.setProperty(e,n,s&Ca.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Ca.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,dd(n)):this.eventManager.addEventListener(t,e,dd(n))}}class md extends fd{constructor(t,e,n,s){super(t),this.component=n;const i=ud(s+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(hd,s+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(hd,s+"-"+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 gd extends fd{constructor(t,e,n,s){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=s,this.shadowRoot=s.encapsulation===ce.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=ud(s.id,s.styles,[]);for(let r=0;r<i.length;r++){const t=document.createElement("style");t.textContent=i[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let _d=(()=>{class t extends od{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)(Kt(ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const yd=["alt","control","meta","shift"],bd={"\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"},vd={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"},wd={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Cd=(()=>{class t extends od{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const i=t.parseEventName(n),r=t.eventCallback(i.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>sh().onAndCancel(e,i.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const i=t._normalizeKey(n.pop());let r="";if(yd.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=i,0!=n.length||0===i.length)return null;const o={};return o.domEventName=s,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&vd.hasOwnProperty(e)&&(e=vd[e]))}return bd[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),yd.forEach(s=>{s!=n&&(0,wd[s])(t)&&(e+=s+".")}),e+=n,e}static eventCallback(e,n,s){return i=>{t.getEventFullKey(i)===e&&s.runGuarded(()=>n(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Kt(ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Ed=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return Kt(Sd)},token:t,providedIn:"root"}),t})(),Sd=(()=>{class t extends Ed{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Js.NONE:return e;case Js.HTML:return xs(e,"HTML")?Ss(e):Ys(this._doc,String(e));case Js.STYLE:return xs(e,"Style")?Ss(e):e;case Js.SCRIPT:if(xs(e,"Script"))return Ss(e);throw new Error("unsafe value used in a script context");case Js.URL:return Ts(e),xs(e,"URL")?Ss(e):Ns(String(e));case Js.RESOURCE_URL:if(xs(e,"ResourceURL"))return Ss(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new bs(t)}bypassSecurityTrustStyle(t){return new vs(t)}bypassSecurityTrustScript(t){return new ws(t)}bypassSecurityTrustUrl(t){return new Cs(t)}bypassSecurityTrustResourceUrl(t){return new Es(t)}}return t.\u0275fac=function(e){return new(e||t)(Kt(ih))},t.\u0275prov=ht({factory:function(){return t=Kt(Ht),new Sd(t.get(ih));var t},token:t,providedIn:"root"}),t})();const xd=lc(fc,"browser",[{provide:Pl,useValue:"browser"},{provide:Dl,useValue:function(){Xu.makeCurrent(),sd.init()},multi:!0},{provide:ih,useFactory:function(){return function(t){He=t}(document),document},deps:[]}]),Td=[[],{provide:Zr,useValue:"root"},{provide:_s,useFactory:function(){return new _s},deps:[]},{provide:id,useClass:_d,multi:!0,deps:[ih,Zl,Pl]},{provide:id,useClass:Cd,multi:!0,deps:[ih]},[],{provide:pd,useClass:pd,deps:[rd,ld,Il]},{provide:wa,useExisting:pd},{provide:ad,useExisting:ld},{provide:ld,useClass:ld,deps:[ih]},{provide:nc,useClass:nc,deps:[Zl]},{provide:rd,useClass:rd,deps:[id,Zl]},[]];let kd=(()=>{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:Il,useValue:e.appId},{provide:ed,useExisting:Il},nd]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(t,12))},providers:Td,imports:[zh,gc]}),t})();"undefined"!=typeof window&&window;class Od{}const Id="*";function Rd(t,e){return{type:7,name:t,definitions:e,options:{}}}function Ad(t,e=null){return{type:4,styles:e,timings:t}}function Dd(t,e=null){return{type:2,steps:t,options:e}}function Pd(t){return{type:6,styles:t,offset:null}}function Nd(t,e,n){return{type:0,name:t,styles:e,options:n}}function Fd(t){return{type:5,steps:t}}function Ld(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function Md(t){Promise.resolve(null).then(t)}class jd{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,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(){Md(()=>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(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Hd{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,s=0;const i=this.players.length;0==i?Md(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==i&&this._onFinish()}),t.onDestroy(()=>{++n==i&&this._onDestroy()}),t.onStart(()=>{++s==i&&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(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}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}}function Vd(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Bd(t){switch(t.length){case 0:return new jd;case 1:return t[0];default:return new Hd(t)}}function zd(t,e,n,s,i={},r={}){const o=[],a=[];let l=-1,c=null;if(s.forEach(t=>{const n=t.offset,s=n==l,h=s&&c||{};Object.keys(t).forEach(n=>{let s=n,a=t[n];if("offset"!==n)switch(s=e.normalizePropertyName(s,o),a){case"!":a=i[n];break;case Id:a=r[n];break;default:a=e.normalizeStyleValue(n,s,a,o)}h[s]=a}),s||a.push(h),c=h,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Wd(t,e,n,s){switch(e){case"start":t.onStart(()=>s(n&&$d(n,"start",t)));break;case"done":t.onDone(()=>s(n&&$d(n,"done",t)));break;case"destroy":t.onDestroy(()=>s(n&&$d(n,"destroy",t)))}}function $d(t,e,n){const s=n.totalTime,i=qd(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==s?t.totalTime:s,!!n.disabled),r=t._data;return null!=r&&(i._data=r),i}function qd(t,e,n,s,i="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:s,phaseName:i,totalTime:r,disabled:!!o}}function Ud(t,e,n){let s;return t instanceof Map?(s=t.get(e),s||t.set(e,s=n)):(s=t[e],s||(s=t[e]=n)),s}function Qd(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Zd=(t,e)=>!1,Kd=(t,e)=>!1,Gd=(t,e,n)=>[];const Yd=Vd();(Yd||"undefined"!=typeof Element)&&(Zd=(t,e)=>t.contains(e),Kd=(()=>{if(Yd||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]):Kd}})(),Gd=(t,e,n)=>{let s=[];if(n)s.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&s.push(n)}return s});let Xd=null,Jd=!1;function tp(t){Xd||(Xd=("undefined"!=typeof document?document.body:null)||{},Jd=!!Xd.style&&"WebkitAppearance"in Xd.style);let e=!0;return Xd.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in Xd.style,!e&&Jd)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Xd.style),e}const ep=Kd,np=Zd,sp=Gd;function ip(t){const e={};return Object.keys(t).forEach(n=>{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[s]=t[n]}),e}let rp=(()=>{class t{validateStyleProperty(t){return tp(t)}matchesElement(t,e){return ep(t,e)}containsElement(t,e){return np(t,e)}query(t,e,n){return sp(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,s,i,r=[],o){return new jd(n,s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),op=(()=>{class t{}return t.NOOP=new rp,t})();const ap="ng-enter",lp="ng-leave",cp="ng-trigger",hp=".ng-trigger",up="ng-animating",dp=".ng-animating";function pp(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:fp(parseFloat(e[1]),e[2])}function fp(t,e){switch(e){case"s":return 1e3*t;default:return t}}function mp(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let s,i=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};s=fp(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(i=fp(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else s=t;if(!n){let n=!1,r=e.length;s<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:s,delay:i,easing:r}}(t,e,n)}function gp(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function _p(t,e,n={}){if(e)for(let s in t)n[s]=t[s];else gp(t,n);return n}function yp(t,e,n){return n?e+":"+n+";":""}function bp(t){let e="";for(let n=0;n<t.style.length;n++){const s=t.style.item(n);e+=yp(0,s,t.style.getPropertyValue(s))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=yp(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function vp(t,e,n){t.style&&(Object.keys(e).forEach(s=>{const i=Op(s);n&&!n.hasOwnProperty(s)&&(n[s]=t.style[i]),t.style[i]=e[s]}),Vd()&&bp(t))}function wp(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Op(e);t.style[n]=""}),Vd()&&bp(t))}function Cp(t){return Array.isArray(t)?1==t.length?t[0]:Dd(t):t}const Ep=new RegExp("{{\\s*(.+?)\\s*}}","g");function Sp(t){let e=[];if("string"==typeof t){let n;for(;n=Ep.exec(t);)e.push(n[1]);Ep.lastIndex=0}return e}function xp(t,e,n){const s=t.toString(),i=s.replace(Ep,(t,s)=>{let i=e[s];return e.hasOwnProperty(s)||(n.push("Please provide a value for the animation param "+s),i=""),i.toString()});return i==s?t:i}function Tp(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const kp=/-+([a-z0-9])/g;function Op(t){return t.replace(kp,(...t)=>t[1].toUpperCase())}function Ip(t,e){return 0===t||0===e}function Rp(t,e,n){const s=Object.keys(n);if(s.length&&e.length){let r=e[0],o=[];if(s.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var i=1;i<e.length;i++){let n=e[i];o.forEach((function(e){n[e]=Dp(t,e)}))}}return e}function Ap(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 Dp(t,e){return window.getComputedStyle(t)[e]}const Pp="*";function Np(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const s=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 s)return void e.push(s);t=s}const s=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const i=s[1],r=s[2],o=s[3];e.push(Mp(i,o)),"<"!=r[0]||i==Pp&&o==Pp||e.push(Mp(o,i))}(t,n,e)):n.push(t),n}const Fp=new Set(["true","1"]),Lp=new Set(["false","0"]);function Mp(t,e){const n=Fp.has(t)||Lp.has(t),s=Fp.has(e)||Lp.has(e);return(i,r)=>{let o=t==Pp||t==i,a=e==Pp||e==r;return!o&&n&&"boolean"==typeof i&&(o=i?Fp.has(t):Lp.has(t)),!a&&s&&"boolean"==typeof r&&(a=r?Fp.has(e):Lp.has(e)),o&&a}}const jp=new RegExp("s*:selfs*,?","g");function Hp(t,e,n){return new Vp(t).build(e,n)}class Vp{constructor(t){this._driver=t}build(t,e){const n=new Bp(e);return this._resetContextStyleTimingState(n),Ap(this,Cp(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,s=e.depCount=0;const i=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,s=n.name;s.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,i.push(this.visitState(n,e))}),n.name=s}else if(1==t.type){const i=this.visitTransition(t,e);n+=i.queryCount,s+=i.depCount,r.push(i)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:i,transitions:r,queryCount:n,depCount:s,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),s=t.options&&t.options.params||null;if(n.containsDynamicStyles){const i=new Set,r=s||{};if(n.styles.forEach(t=>{if(zp(t)){const e=t;Object.keys(e).forEach(t=>{Sp(e[t]).forEach(t=>{r.hasOwnProperty(t)||i.add(t)})})}}),i.size){const n=Tp(i.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:s?{params:s}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Ap(this,Cp(t.animation),e);return{type:1,matchers:Np(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Wp(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Ap(this,t,e)),options:Wp(t.options)}}visitGroup(t,e){const n=e.currentTime;let s=0;const i=t.steps.map(t=>{e.currentTime=n;const i=Ap(this,t,e);return s=Math.max(s,e.currentTime),i});return e.currentTime=s,{type:3,steps:i,options:Wp(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 $p(mp(t,e).duration,0,"");const s=t;if(s.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=$p(0,0,"");return t.dynamic=!0,t.strValue=s,t}return n=n||mp(s,e),$p(n.duration,n.delay,n.easing)}(t.timings,e.errors);let s;e.currentAnimateTimings=n;let i=t.styles?t.styles:Pd({});if(5==i.type)s=this.visitKeyframes(i,e);else{let i=t.styles,r=!1;if(!i){r=!0;const t={};n.easing&&(t.easing=n.easing),i=Pd(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(i,e);o.isEmptyStep=r,s=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:s,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==Id?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let s=!1,i=null;return n.forEach(t=>{if(zp(t)){const e=t,n=e.easing;if(n&&(i=n,delete e.easing),!s)for(let t in e)if(e[t].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let s=e.currentTime,i=e.currentTime;n&&i>0&&(i-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(i!=s&&i>=o.startTime&&s<=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 "${i}ms" and "${s}ms"`),a=!1),i=o.startTime),a&&(r[n]={startTime:i,endTime:s}),e.options&&function(t,e,n){const s=e.params||{},i=Sp(t);i.length&&i.forEach(t=>{s.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 s=0;const i=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(zp(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(zp(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(s++,c=n.offset=l),o=o||c<0||c>1,r=r||c<a,a=c,i.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let h=0;s>0&&s<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(h=1/(c-1));const u=c-1,d=e.currentTime,p=e.currentAnimateTimings,f=p.duration;return l.forEach((t,s)=>{const r=h>0?s==u?1:h*s:i[s],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Ap(this,Cp(t.animation),e),options:Wp(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Wp(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Wp(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,s=t.options||{};e.queryCount++,e.currentQuery=t;const[i,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(jp,"")),[t=t.replace(/@\*/g,hp).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,dp),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+i:i,Ud(e.collectedStyles,e.currentQuerySelector,{});const o=Ap(this,Cp(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:s.limit||0,optional:!!s.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:Wp(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"}:mp(t.timings,e.errors,!0);return{type:12,animation:Ap(this,Cp(t.animation),e),timings:n,options:null}}}class Bp{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 zp(t){return!Array.isArray(t)&&"object"==typeof t}function Wp(t){var e;return t?(t=gp(t)).params&&(t.params=(e=t.params)?gp(e):null):t={},t}function $p(t,e,n){return{duration:t,delay:e,easing:n}}function qp(t,e,n,s,i,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}class Up{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 Qp=new RegExp(":enter","g"),Zp=new RegExp(":leave","g");function Kp(t,e,n,s,i,r={},o={},a,l,c=[]){return(new Gp).buildKeyframes(t,e,n,s,i,r,o,a,l,c)}class Gp{buildKeyframes(t,e,n,s,i,r,o,a,l,c=[]){l=l||new Up;const h=new Xp(t,e,l,s,i,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),Ap(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[qp(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 s=e.createSubContext(t.options),i=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,s,s.options);i!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let s=e.currentTimeline.currentTime;const i=null!=n.duration?pp(n.duration):null,r=null!=n.delay?pp(n.delay):null;return 0!==i&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,i,r);s=Math.max(s,n.duration+n.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),Ap(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let s=e;const i=t.options;if(i&&(i.params||i.delay)&&(s=e.createSubContext(i),s.transformIntoNewTimeline(),null!=i.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Yp);const t=pp(i.delay);s.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Ap(this,t,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let s=e.currentTimeline.currentTime;const i=t.options&&t.options.delay?pp(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);i&&o.delayNextStep(i),Ap(this,r,o),s=Math.max(s,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(s),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return mp(e.params?xp(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),s=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),s.snapshotCurrentStyles());const i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,s=e.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const i=s&&s.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,s=e.currentTimeline.duration,i=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*i),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(s+i),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,s=t.options||{},i=s.delay?pp(s.delay):0;i&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Yp);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,s)=>{e.currentQueryIndex=s;const o=e.createSubContext(t.options,n);i&&o.delayNextStep(i),n===e.element&&(a=o.currentTimeline),Ap(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,s=e.currentTimeline,i=t.timings,r=Math.abs(i.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Ap(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const Yp={};class Xp{constructor(t,e,n,s,i,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=i,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Yp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Jp(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let s=this.options;null!=n.duration&&(s.duration=pp(n.duration)),null!=n.delay&&(s.delay=pp(n.delay));const i=n.params;if(i){let t=s.params;t||(t=this.options.params={}),Object.keys(i).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=xp(i[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 s=e||this.element,i=new Xp(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=Yp,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const s={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new tf(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,s,t.stretchStartingKeyframe);return this.timelines.push(i),s}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,s,i,r){let o=[];if(s&&o.push(this.element),t.length>0){t=(t=t.replace(Qp,"."+this._enterClassName)).replace(Zp,"."+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 i||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class Jp{constructor(t,e,n,s){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=s,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 Jp(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]||Id,this._currentKeyframe[t]=Id}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,s){e&&(this._previousKeyframe.easing=e);const i=s&&s.params||{},r=function(t,e){const n={};let s;return t.forEach(t=>{"*"===t?(s=s||Object.keys(e),s.forEach(t=>{n[t]=Id})):_p(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=xp(r[t],i,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:Id),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],s=t._styleSummary[e];(!n||s.time>n.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((i,r)=>{const o=_p(i,!0);Object.keys(o).forEach(n=>{const s=o[n];"!"==s?t.add(n):s==Id&&e.add(n)}),n||(o.offset=r/this.duration),s.push(o)});const i=t.size?Tp(t.values()):[],r=e.size?Tp(e.values()):[];if(n){const t=s[0],e=gp(t);t.offset=0,e.offset=1,s=[t,e]}return qp(this.element,s,i,r,this.duration,this.startTime,this.easing,!1)}}class tf extends Jp{constructor(t,e,n,s,i,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=s,this.postStyleProps=i,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const i=[],r=n+e,o=e/r,a=_p(t[0],!1);a.offset=0,i.push(a);const l=_p(t[0],!1);l.offset=ef(o),i.push(l);const c=t.length-1;for(let s=1;s<=c;s++){let o=_p(t[s],!1);o.offset=ef((e+o.offset*n)/r),i.push(o)}n=r,e=0,s="",t=i}return qp(this.element,t,this.preStyleProps,this.postStyleProps,n,e,s,!0)}}function ef(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class nf{}class sf extends nf{normalizePropertyName(t,e){return Op(t)}normalizeStyleValue(t,e,n,s){let i="";const r=n.toString().trim();if(rf[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&s.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+i}}const rf=(()=>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 of(t,e,n,s,i,r,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const af={};class lf{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,s){return function(t,e,n,s,i){return t.some(t=>t(e,n,s,i))}(this.ast.matchers,t,e,n,s)}buildStyles(t,e,n){const s=this._stateStyles["*"],i=this._stateStyles[t],r=s?s.buildStyles(e,n):{};return i?i.buildStyles(e,n):r}build(t,e,n,s,i,r,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||af,d=this.buildStyles(n,o&&o.params||af,h),p=a&&a.params||af,f=this.buildStyles(s,p,h),m=new Set,g=new Map,_=new Map,y="void"===s,b={params:Object.assign(Object.assign({},u),p)},v=c?[]:Kp(t,e,this.ast.animation,i,r,d,f,b,l,h);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return of(e,this._triggerName,n,s,y,d,f,[],[],g,_,w,h);v.forEach(t=>{const n=t.element,s=Ud(g,n,{});t.preStyleProps.forEach(t=>s[t]=!0);const i=Ud(_,n,{});t.postStyleProps.forEach(t=>i[t]=!0),n!==e&&m.add(n)});const C=Tp(m.values());return of(e,this._triggerName,n,s,y,d,f,v,C,g,_,w)}}class cf{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},s=gp(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(s[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const i=t;Object.keys(i).forEach(t=>{let r=i[t];r.length>1&&(r=xp(r,s,e)),n[t]=r})}}),n}}class hf{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new cf(t.style,t.options&&t.options.params||{})}),uf(this.states,"true","1"),uf(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new lf(t,e,this.states))}),this.fallbackTransition=new lf(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,s){return this.transitionFactories.find(i=>i.match(t,e,n,s))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function uf(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const df=new Up;class pf{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],s=Hp(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]=s}_buildPlayer(t,e,n){const s=t.element,i=zd(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(s,i,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const s=[],i=this._animations[t];let r;const o=new Map;if(i?(r=Kp(this._driver,e,i,ap,lp,{},{},n,df,s),r.forEach(t=>{const e=Ud(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),r=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,Id)})});const a=Bd(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}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,s){const i=qd(e,"","","");return Wd(this._getPlayer(t),n,i,s),()=>{}}command(t,e,n,s){if("register"==n)return void this.register(t,s[0]);if("create"==n)return void this.create(t,e,s[0]||{});const i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(t)}}}const ff="ng-animate-queued",mf="ng-animate-disabled",gf=".ng-animate-disabled",_f=[],yf={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},bf={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class vf{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(s=n?t.value:t)?s:null,n){const e=gp(t);delete e.value,this.options=e}else this.options={};var s;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 wf="void",Cf=new vf(wf);class Ef{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,Rf(e,this._hostClassName)}listen(t,e,n,s){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"!=(i=n)&&"done"!=i)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var i;const r=Ud(this._elementListeners,t,[]),o={name:e,phase:n,callback:s};r.push(o);const a=Ud(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Rf(t,cp),Rf(t,"ng-trigger-"+e),a[e]=Cf),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,s=!0){const i=this._getTrigger(e),r=new xf(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Rf(t,cp),Rf(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new vf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Cf),l.value!==wf&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),s=Object.keys(e);if(n.length!=s.length)return!1;for(let i=0;i<n.length;i++){const s=n[i];if(!e.hasOwnProperty(s)||t[s]!==e[s])return!1}return!0}(a.params,l.params)){const e=[],n=i.matchStyles(a.value,a.params,e),s=i.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{wp(t,n),vp(t,s)})}return}const c=Ud(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=i.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!s)return;h=i.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(Rf(t,ff),r.onStart(()=>{Af(t,ff)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,hp,!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,s){const i=this._engine.statesByElement.get(t);if(i){const r=[];if(Object.keys(i).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,wf,s);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Bd(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const i=this._triggers[s].fallbackTransition,r=this._engine.statesByElement.get(t)[s]||Cf,o=new vf(wf),a=new xf(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:i,fromState:r,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let s=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)s=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(t),s)n.markElementAsRemoved(this.id,t,!1,e);else{const s=t.__ng_removed;s&&s!==yf||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Rf(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const i=n.element,r=this._elementListeners.get(i);r&&r.forEach(e=>{if(e.name==n.triggerName){const s=qd(i,n.triggerName,n.fromState.value,n.toState.value);s._data=t,Wd(n.player,e.phase,s,e.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,s=e.transition.ast.depCount;return 0==n||0==s?n-s: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 Sf{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 Ef(t,e,this);return e.parentNode?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 s=!1;for(let i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),s=!0;break}s||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 s=this._namespaceLookup[t];s&&s.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 s=0;s<t.length;s++){const i=n[t[s]].namespaceId;if(i){const t=this._fetchNamespace(i);t&&e.add(t)}}}return e}trigger(t,e,n,s){if(Tf(e)){const i=this._fetchNamespace(t);if(i)return i.trigger(e,n,s),!0}return!1}insertNode(t,e,n,s){if(!Tf(e))return;const i=e.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,n)}s&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Rf(t,mf)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Af(t,mf))}removeNode(t,e,n,s){if(Tf(e)){const i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,s):this.markElementAsRemoved(t,e,!1,s),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(t,e,n,s){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,s,i){return Tf(e)?this._fetchNamespace(t).listen(e,n,s,i):()=>{}}_buildInstruction(t,e,n,s,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,s,t.fromState.options,t.toState.options,e,i)}destroyInnerAnimations(t){let e=this.driver.query(t,hp,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,dp,!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 Bd(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=yf,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,gf)&&this.markElementAsDisabled(t,!1),this.driver.query(t,gf,!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++)Rf(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?Bd(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 Up,s=[],i=new Map,r=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const h=this.bodyNode,u=Array.from(this.statesByElement.keys()),d=If(u,this.collectedEnterElements),p=new Map;let f=0;d.forEach((t,e)=>{const n=ap+f++;p.set(e,n),t.forEach(t=>Rf(t,n))});const m=[],g=new Set,_=new Set;for(let R=0;R<this.collectedLeaveElements.length;R++){const t=this.collectedLeaveElements[R],e=t.__ng_removed;e&&e.setForRemoval&&(m.push(t),g.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>g.add(t)):_.add(t))}const y=new Map,b=If(u,Array.from(g));b.forEach((t,e)=>{const n=lp+f++;y.set(e,n),t.forEach(t=>Rf(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>Af(t,n))}),b.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>Af(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let R=this._namespaceList.length-1;R>=0;R--)this._namespaceList[R].drainQueuedTransitions(e).forEach(t=>{const e=t.player,i=t.element;if(v.push(e),this.collectedEnterElements.length){const t=i.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!h||!this.driver.containsElement(h,i),u=y.get(i),d=p.get(i),f=this._buildInstruction(t,n,d,u,c);if(f.errors&&f.errors.length)w.push(f);else{if(c)return e.onStart(()=>wp(i,f.fromStyles)),e.onDestroy(()=>vp(i,f.toStyles)),void s.push(e);if(t.isFallbackTransition)return e.onStart(()=>wp(i,f.fromStyles)),e.onDestroy(()=>vp(i,f.toStyles)),void s.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(i,f.timelines),r.push({instruction:f,player:e,element:i}),f.queriedElements.forEach(t=>Ud(o,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let s=l.get(e);s||l.set(e,s=new Set),n.forEach(t=>s.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),v.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,E=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),s.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Ud(C,e,[]).push(t),t.destroy()})});const S=m.filter(t=>Pf(t,a,l)),x=new Map;Of(x,this.driver,_,l,Id).forEach(t=>{Pf(t,a,l)&&S.push(t)});const T=new Map;d.forEach((t,e)=>{Of(T,this.driver,new Set(t),a,"!")}),S.forEach(t=>{const e=x.get(t),n=T.get(t);x.set(t,Object.assign(Object.assign({},e),n))});const k=[],O=[],I={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>vp(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void s.push(r);let t=I;if(E.size>1){let n=e;const s=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}s.push(n)}s.forEach(e=>E.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,C,i,T,x);if(r.setRealPlayer(n),t===I)k.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=Bd(e)),s.push(r)}}else wp(e,o.fromStyles),r.onDestroy(()=>vp(e,o.toStyles)),O.push(r),c.has(e)&&s.push(r)}),O.forEach(t=>{const e=i.get(t.element);if(e&&e.length){const n=Bd(e);t.setRealPlayer(n)}}),s.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let R=0;R<m.length;R++){const t=m[R],e=t.__ng_removed;if(Af(t,lp),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let s=this.driver.query(t,dp,!0);for(let t=0;t<s.length;t++){let e=o.get(s[t]);e&&e.length&&n.push(...e)}}const s=n.filter(t=>!t.destroyed);s.length?Df(this,t,s):this.processLeaveNode(t)}return m.length=0,k.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),k}elementContainsData(t,e){let n=!1;const s=e.__ng_removed;return s&&s.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,s,i){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!i||i==wf;e.forEach(e=>{e.queued||(t||e.triggerName==s)&&r.push(e)})}}return(n||s)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||s&&s!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const s=e.element,i=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==s,l=Ud(n,t,[]);this._getPreviousPlayers(t,a,i,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}wp(s,e.fromStyles)}_buildAnimation(t,e,n,s,i,r){const o=e.triggerName,a=e.element,l=[],c=new Set,h=new Set,u=e.timelines.map(e=>{const u=e.element;c.add(u);const d=u.__ng_removed;if(d&&d.removedBeforeQueried)return new jd(e.duration,e.delay);const p=u!==a,f=function(t){const e=[];return function t(e,n){for(let s=0;s<e.length;s++){const i=e[s];i instanceof Hd?t(i.players,n):n.push(i)}}(t,e),e}((n.get(u)||_f).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),m=i.get(u),g=r.get(u),_=zd(0,this._normalizer,0,e.keyframes,m,g),y=this._buildPlayer(e,_,f);if(e.subTimeline&&s&&h.add(u),p){const e=new xf(t,o,u);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{Ud(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let s;if(t instanceof Map){if(s=t.get(e),s){if(s.length){const t=s.indexOf(n);s.splice(t,1)}0==s.length&&t.delete(e)}}else if(s=t[e],s){if(s.length){const t=s.indexOf(n);s.splice(t,1)}0==s.length&&delete t[e]}return s}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Rf(t,up));const d=Bd(u);return d.onDestroy(()=>{c.forEach(t=>Af(t,up)),vp(a,e.toStyles)}),h.forEach(t=>{Ud(s,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new jd(t.duration,t.delay)}}class xf{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new jd,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=>Wd(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){Ud(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 Tf(t){return t&&1===t.nodeType}function kf(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Of(t,e,n,s,i){const r=[];n.forEach(t=>r.push(kf(t)));const o=[];s.forEach((n,s)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(s,t,i);n&&0!=n.length||(s.__ng_removed=bf,o.push(s))}),t.set(s,r)});let a=0;return n.forEach(t=>kf(t,r[a++])),o}function If(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const s=new Set(e),i=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let r=i.get(e);if(r)return r;const o=e.parentNode;return r=n.has(o)?o:s.has(o)?1:t(o),i.set(e,r),r}(t);1!==e&&n.get(e).push(t)}),n}function Rf(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Af(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Df(t,e,n){Bd(n).onDone(()=>t.processLeaveNode(e))}function Pf(t,e,n){const s=n.get(t);if(!s)return!1;let i=e.get(t);return i?s.forEach(t=>i.add(t)):e.set(t,s),n.delete(t),!0}class Nf{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Sf(t,e,n),this._timelineEngine=new pf(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,s,i){const r=t+"-"+s;let o=this._triggerCache[r];if(!o){const t=[],e=Hp(this._driver,i,t);if(t.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new hf(t,e)}(s,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,s,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,s){this._transitionEngine.insertNode(t,e,n,s)}onRemove(t,e,n,s){this._transitionEngine.removeNode(t,e,s||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,s){if("@"==n.charAt(0)){const[t,i]=Qd(n);this._timelineEngine.command(t,e,i,s)}else this._transitionEngine.trigger(t,e,n,s)}listen(t,e,n,s,i){if("@"==n.charAt(0)){const[t,s]=Qd(n);return this._timelineEngine.listen(t,e,s,i)}return this._transitionEngine.listen(t,e,n,s,i)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Ff(t,e){let n=null,s=null;return Array.isArray(e)&&e.length?(n=Mf(e[0]),e.length>1&&(s=Mf(e[e.length-1]))):e&&(n=Mf(e)),n||s?new Lf(t,n,s):null}let Lf=(()=>{class t{constructor(e,n,s){this._element=e,this._startStyles=n,this._endStyles=s,this._state=0;let i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&vp(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(vp(this._element,this._initialStyles),this._endStyles&&(vp(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(wp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wp(this._element,this._endStyles),this._endStyles=null),vp(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Mf(t){let e=null;const n=Object.keys(t);for(let s=0;s<n.length;s++){const i=n[s];jf(i)&&(e=e||{},e[i]=t[i])}return e}function jf(t){return"display"===t||"position"===t}const Hf="animation",Vf="animationend";class Bf{constructor(t,e,n,s,i,r,o){this._element=t,this._name=e,this._duration=n,this._delay=s,this._easing=i,this._fillMode=r,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Qf(t,"").trim();n.length&&(function(t,e){let n=0;for(let s=0;s<t.length;s++)","===t.charAt(s)&&n++}(n),e=`${n}, ${e}`),Uf(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),qf(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){zf(this._element,this._name,"paused")}resume(){zf(this._element,this._name,"running")}setPosition(t){const e=Wf(this._element,this._name);this._position=t*this._duration,Uf(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(),qf(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Qf(t,"").split(","),s=$f(n,e);s>=0&&(n.splice(s,1),Uf(t,"",n.join(",")))}(this._element,this._name))}}function zf(t,e,n){Uf(t,"PlayState",n,Wf(t,e))}function Wf(t,e){const n=Qf(t,"");return n.indexOf(",")>0?$f(n.split(","),e):$f([n],e)}function $f(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function qf(t,e,n){n?t.removeEventListener(Vf,e):t.addEventListener(Vf,e)}function Uf(t,e,n,s){const i=Hf+e;if(null!=s){const e=t.style[i];if(e.length){const t=e.split(",");t[s]=n,n=t.join(",")}}t.style[i]=n}function Qf(t,e){return t.style[Hf+e]}class Zf{constructor(t,e,n,s,i,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=s,this._delay=i,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=s+i,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._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Bf(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]:Dp(this.element,n))})}this.currentSnapshot=t}}class Kf extends jd{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=ip(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 Gf{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return tp(t)}matchesElement(t,e){return ep(t,e)}containsElement(t,e){return np(t,e)}query(t,e,n){return sp(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>ip(t));let s=`@keyframes ${e} {\n`,i="";n.forEach(t=>{i=" ";const e=parseFloat(t.offset);s+=`${i}${100*e}% {\n`,i+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(s+=`${i}animation-timing-function: ${n};\n`));default:return void(s+=`${i}${e}: ${n};\n`)}}),s+=i+"}\n"}),s+="}\n";const r=document.createElement("style");return r.innerHTML=s,r}animate(t,e,n,s,i,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof Zf),l={};Ip(n,s)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Rp(t,e,l));if(0==n)return new Kf(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=Ff(t,e),p=new Zf(t,e,h,n,s,i,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class Yf{constructor(t,e,n,s){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(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){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]:Dp(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Xf{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Jf().toString()),this._cssKeyframesDriver=new Gf}validateStyleProperty(t){return tp(t)}matchesElement(t,e){return ep(t,e)}containsElement(t,e){return np(t,e)}query(t,e,n){return sp(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,s,i,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,s,i,r);const a={duration:n,delay:s,fill:0==s?"both":"forwards"};i&&(a.easing=i);const l={},c=r.filter(t=>t instanceof Yf);Ip(n,s)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=Ff(t,e=Rp(t,e=e.map(t=>_p(t,!1)),l));return new Yf(t,e,a,h)}}function Jf(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let tm=(()=>{class t extends Od{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:ce.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Dd(t):t;return sm(this._renderer,null,e,"register",[n]),new em(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Kt(wa),Kt(ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class em extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new nm(this._id,t,e||{},this._renderer)}}class nm{constructor(t,e,n,s){this.id=t,this.element=e,this._renderer=s,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 sm(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")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function sm(t,e,n,s,i){return t.setProperty(e,`@@${n}:${s}`,i)}const im="@",rm="@.disabled";let om=(()=>{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 am("",n,this.engine),this._rendererCache.set(n,t)),t}const s=e.id,i=e.id+"-"+this._currentId;this._currentId++,this.engine.register(i,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(s,i,t,e.name,e)};return e.data.animation.forEach(r),new lm(this,i,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)(Kt(wa),Kt(Nf),Kt(Zl))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class am{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){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}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,s){this.delegate.setAttribute(t,e,n,s)}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,s){this.delegate.setStyle(t,e,n,s)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==im&&e==rm?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 lm extends am{constructor(t,e,n,s){super(e,n,s),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==im?"."==e.charAt(1)&&e==rm?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)==im){const s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let i=e.substr(1),r="";return i.charAt(0)!=im&&([i,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(i)),this.engine.listen(this.namespaceId,s,i,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let cm=(()=>{class t extends Nf{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(Kt(ih),Kt(op),Kt(nf))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const hm=new jt("AnimationModuleType"),um=[{provide:op,useFactory:function(){return"function"==typeof Jf()?new Xf:new Gf}},{provide:hm,useValue:"BrowserAnimations"},{provide:Od,useClass:tm},{provide:nf,useFactory:function(){return new sf}},{provide:Nf,useClass:cm},{provide:wa,useFactory:function(t,e,n){return new om(t,e,n)},deps:[pd,Nf,Zl]}];let dm=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:um,imports:[kd]}),t})();var pm=n("5vqC");class fm{constructor(t,e,n,s,i){this.element=t,this.newWidth=e,this.newHeight=n,this.oldWidth=s,this.oldHeight=i}}let mm=(()=>{class t{constructor(t){this.element=t,this.resized=new ul}ngOnInit(){pm.ResizeSensor&&(this.resizeSensor=new pm.ResizeSensor(this.element.nativeElement,()=>this.onResized()))}ngOnDestroy(){this.resizeSensor&&this.resizeSensor.detach()}onResized(){const t=this.element.nativeElement.clientWidth,e=this.element.nativeElement.clientHeight;if(t===this.oldWidth&&e===this.oldHeight)return;const n=new fm(this.element,t,e,this.oldWidth,this.oldHeight);this.oldWidth=this.element.nativeElement.clientWidth,this.oldHeight=this.element.nativeElement.clientHeight,this.resized.emit(n)}}return t.\u0275fac=function(e){return new(e||t)(bo(ba))},t.\u0275dir=be({type:t,selectors:[["","resized",""]],outputs:{resized:"resized"}}),t})(),gm=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[]]}),t})(),_m=(()=>{class t{constructor(t){this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container",e=this._document.querySelectorAll("."+t);if(null==e?void 0:e.length)this._containerElement=e[0];else{const e=this._document.createElement("div");e.classList.add(t),this._document.body.appendChild(e),this._containerElement=e}}}return t.\u0275fac=function(e){return new(e||t)(Kt(ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function ym(){}function bm(t,e,n){return function(s){return s.lift(new vm(t,e,n))}}class vm{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new wm(t,this.nextOrObserver,this.error,this.complete))}}class wm extends f{constructor(t,e,n,i){super(t),this._tapNext=ym,this._tapError=ym,this._tapComplete=ym,this._tapError=n||ym,this._tapComplete=i||ym,s(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||ym,this._tapError=e.error||ym,this._tapComplete=e.complete||ym)}_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()}}function Cm(t,e=kc){return n=>n.lift(new Em(t,e))}class Em{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Sm(t,this.dueTime,this.scheduler))}}class Sm extends f{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(xm,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 xm(t){t.debouncedNext()}let Tm=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),km=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Tm]}),t})();function Om(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const Im="cdk-describedby-message-container",Rm="cdk-describedby-host";let Am=0;const Dm=new Map;let Pm=null,Nm=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Dm.set(e,{messageElement:e,referenceCount:0})):Dm.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=Dm.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}Pm&&0===Pm.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(Rm);Pm&&this._deleteMessagesContainer(),Dm.clear()}_createMessageElement(t){const e=this._document.createElement("div");this._setMessageId(e),e.textContent=t,this._createMessagesContainer(),Pm.appendChild(e),Dm.set(t,{messageElement:e,referenceCount:0})}_setMessageId(t){t.id||(t.id="cdk-describedby-message-"+Am++)}_deleteMessageElement(t){const e=Dm.get(t),n=e&&e.messageElement;Pm&&n&&Pm.removeChild(n),Dm.delete(t)}_createMessagesContainer(){if(!Pm){const t=!this._platform||!this._platform.EDGE&&!this._platform.TRIDENT,e=this._document.getElementById(Im);e&&e.parentNode&&e.parentNode.removeChild(e),Pm=this._document.createElement("div"),Pm.id=Im,Pm.classList.add("cdk-visually-hidden"),Pm.setAttribute("aria-hidden",t+""),this._document.body.appendChild(Pm)}}_deleteMessagesContainer(){Pm&&Pm.parentNode&&(Pm.parentNode.removeChild(Pm),Pm=null)}_removeCdkDescribedByReferenceIds(t){const e=Om(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=Dm.get(e);!function(t,e,n){const s=Om(t,e);s.some(t=>t.trim()==n.trim())||(s.push(n.trim()),t.setAttribute(e,s.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute(Rm,""),n.referenceCount++}_removeMessageReference(t,e){const n=Dm.get(e);n.referenceCount--,function(t,e,n){const s=Om(t,e).filter(t=>t!=n.trim());s.length?t.setAttribute(e,s.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(Rm)}_isElementDescribedByMessage(t,e){const n=Om(t,"aria-describedby"),s=Dm.get(e),i=s&&s.messageElement.id;return!!i&&-1!=n.indexOf(i)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":(""+e).trim(),s=t.getAttribute("aria-label");return!(!n||s&&s.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Kt(ih),Kt(Qh))},t.\u0275prov=ht({factory:function(){return new t(Kt(ih),Kt(Qh))},token:t,providedIn:"root"}),t})();function Fm(t){return 0===t.buttons}"undefined"!=typeof Element&&Element;const Lm=new jt("cdk-focus-monitor-default-options"),Mm=Kh({passive:!0,capture:!0});let jm=(()=>{class t{constructor(t,e,n,s){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=Fm(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=Hm(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=Hm(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let s=e;s;s=s.parentElement)n.call(this,t,s)},this._document=n,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return wc(null);const n=vc(t),s=function(t){if(function(){if(null==Uh){const t="undefined"!=typeof document?document.head:null;Uh=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Uh}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(n)||this._getDocument(),i=this._elementInfo.get(n);if(i)return e&&(i.checkChildren=!0),i.subject;const r={checkChildren:e,subject:new E,rootNode:s};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=vc(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 s=vc(t);this._setOriginForCurrentEventQueue(e),"function"==typeof s.focus&&s.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=Hm(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);if(!n||!n.checkChildren&&e!==Hm(t))return;const s=this._getFocusOrigin(t);this._setClasses(e,s),this._emitOrigin(n.subject,s),this._lastFocusOrigin=s}_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,Mm),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Mm)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Mm),t.addEventListener("mousedown",this._documentMousedownListener,Mm),t.addEventListener("touchstart",this._documentTouchstartListener,Mm),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,Mm),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Mm),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Mm),t.removeEventListener("mousedown",this._documentMousedownListener,Mm),t.removeEventListener("touchstart",this._documentTouchstartListener,Mm),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Zl),Kt(Qh),Kt(ih,8),Kt(Lm,8))},t.\u0275prov=ht({factory:function(){return new t(Kt(Zl),Kt(Qh),Kt(ih,8),Kt(Lm,8))},token:t,providedIn:"root"}),t})();function Hm(t){return t.composedPath?t.composedPath()[0]:t.target}const Vm="cdk-high-contrast-black-on-white",Bm="cdk-high-contrast-white-on-black",zm="cdk-high-contrast-active";let Wm=(()=>{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,s=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),s){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(zm),t.remove(Vm),t.remove(Bm);const e=this.getHighContrastMode();1===e?(t.add(zm),t.add(Vm)):2===e&&(t.add(zm),t.add(Bm))}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Qh),Kt(ih))},t.\u0275prov=ht({factory:function(){return new t(Kt(Qh),Kt(ih))},token:t,providedIn:"root"}),t})(),$m=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(Wm))},imports:[[Zh,km]]}),t})();const qm=new Ta("10.2.0"),Um=new Ta("10.2.0"),Qm=new jt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Zm,Km=(()=>{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)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Is()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);const s=getComputedStyle(n);s&&"none"!==s.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"),e.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Um.full!==qm.full&&console.warn("The Angular Material version ("+Um.full+") does not match the Angular CDK version ("+qm.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(Wm),Kt(Qm,8),Kt(ih,8))},imports:[[Jh],Jh]}),t})();function Gm(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=_c(t)}}}function Ym(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 Xm(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=_c(t)}}}try{Zm="undefined"!=typeof Intl}catch(Tb){Zm=!1}class Jm{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const tg={enterDuration:450,exitDuration:400},eg=Kh({passive:!0}),ng=["mousedown","touchstart"],sg=["mouseup","mouseleave","touchend","touchcancel"];class ig{constructor(t,e,n,s){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=vc(n))}fadeInRipple(t,e,n={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),i=Object.assign(Object.assign({},tg),n.animation);n.centered&&(t=s.left+s.width/2,e=s.top+s.height/2);const r=n.radius||function(t,e,n){const s=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),i=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(s*s+i*i)}(t,e,s),o=t-s.left,a=e-s.top,l=i.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new Jm(this,c,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,n.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}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,s=Object.assign(Object.assign({},tg),t.config.animation);n.style.transitionDuration=s.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=vc(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(ng))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(sg),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Fm(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){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,eg)})})}_removeTriggerEvents(){this._triggerElement&&(ng.forEach(t=>{this._triggerElement.removeEventListener(t,this,eg)}),this._pointerUpEventsRegistered&&sg.forEach(t=>{this._triggerElement.removeEventListener(t,this,eg)}))}}const rg=new jt("mat-ripple-global-options");let og=(()=>{class t{constructor(t,e,n,s,i){this._elementRef=t,this._animationMode=i,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new ig(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){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()}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)(bo(ba),bo(Zl),bo(Qh),bo(rg,8),bo(hm,8))},t.\u0275dir=be({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Zo("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})(),ag=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Km,Zh],Km]}),t})();const lg=["mat-button",""],cg=["*"],hg=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class ug{constructor(t){this._elementRef=t}}const dg=Ym(Gm(Xm(ug)));let pg=(()=>{class t extends dg{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 s of hg)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);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="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,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)(bo(ba),bo(jm),bo(hm,8))},t.\u0275cmp=pe({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){var n;1&t&&El(og,!0),2&t&&Cl(n=Sl())&&(e.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(go("disabled",e.disabled||null),Zo("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ua],attrs:lg,ngContentSelectors:cg,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&&(Fo(),Co(0,"span",0),Lo(1),Eo(),So(2,"span",1),So(3,"span",2)),2&t&&(wi(2),Zo("mat-button-ripple-round",e.isRoundButton||e.isIconButton),vo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[og],styles:[".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}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.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:block;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}\n"],encapsulation:2,changeDetection:0}),t})(),fg=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[ag,Km],Km]}),t})();function mg(t,e){return new y(n=>{const s=t.length;if(0===s)return void n.complete();const i=new Array(s);let r=0,o=0;for(let a=0;a<s;a++){const l=L(t[a]);let c=!1;n.add(l.subscribe({next:t=>{c||(c=!0,o++),i[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==s&&c||(o===s&&n.next(e?e.reduce((t,e,n)=>(t[e]=i[n],t),{}):i),n.complete())}}))}})}function gg(t){return function(e){const n=new _g(t),s=e.lift(n);return n.caught=s}}class _g{constructor(t){this.selector=t}call(t,e){return e.subscribe(new yg(t,this.selector,this.caught))}}class yg extends j{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const s=new M(this);this.add(s);const i=H(n,s);i!==s&&this.add(i)}}}class bg{constructor(t){this.callback=t}call(t,e){return e.subscribe(new vg(t,this.callback))}}class vg extends f{constructor(t,e){super(t),this.add(new u(e))}}class wg{}class Cg{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),s=n.toLowerCase(),i=t.slice(e+1).trim();this.maybeSetNormalizedName(n,s),this.headers.has(s)?this.headers.get(s).push(i):this.headers.set(s,[i])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const s=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(e,s))})}:this.headers=new Map}has(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 Cg?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 Cg;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Cg?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 s=("a"===t.op?this.headers.get(e):void 0)||[];s.push(...n),this.headers.set(e,s);break;case"d":const i=t.value;if(i){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===i.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 Eg{encodeKey(t){return Sg(t)}encodeValue(t){return Sg(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Sg(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,"/")}class xg{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Eg,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.split("&").forEach(t=>{const s=t.indexOf("="),[i,r]=-1==s?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,s)),e.decodeValue(t.slice(s+1))],o=n.get(i)||[];o.push(r),n.set(i,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"})}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 xg({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function Tg(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function kg(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Og(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Ig{constructor(t,e,n,s){let i;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)||s?(this.body=void 0!==n?n:null,i=s):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new Cg),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 xg,this.urlWithParams=e}serializeBody(){return null===this.body?null:Tg(this.body)||kg(this.body)||Og(this.body)||"string"==typeof this.body?this.body:this.body instanceof xg?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||Og(this.body)?null:kg(this.body)?this.body.type||null:Tg(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof xg?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,s=t.responseType||this.responseType,i=void 0!==t.body?t.body:this.body,r=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new Ig(e,n,i,{params:l,headers:a,reportProgress:o,responseType:s,withCredentials:r})}}var Rg=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class Ag extends class{constructor(t,e=200,n="OK"){this.headers=t.headers||new Cg,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}}{constructor(t={}){super(t),this.type=Rg.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ag({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})}}function Dg(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Pg=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let s;if(t instanceof Ig)s=t;else{let i=void 0;i=n.headers instanceof Cg?n.headers:new Cg(n.headers);let r=void 0;n.params&&(r=n.params instanceof xg?n.params:new xg({fromObject:n.params})),s=new Ig(t,e,void 0!==n.body?n.body:null,{headers:i,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=wc(s).pipe(V(t=>this.handler.handle(t),void 0,1));if(t instanceof Ig||"events"===n.observe)return i;const r=i.pipe(Pc(t=>t instanceof Ag));switch(n.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return r.pipe(T(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(T(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(T(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(T(t=>t.body))}case"response":return r;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 xg).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,Dg(n,e))}post(t,e,n={}){return this.request("POST",t,Dg(n,e))}put(t,e,n={}){return this.request("PUT",t,Dg(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Kt(wg))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Ng=["*"];function Fg(t){return Error(`Unable to find icon with the name "${t}"`)}function Lg(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Mg(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class jg{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let Hg=(()=>{class t{constructor(t,e,n,s){this._httpClient=t,this._sanitizer=e,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,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,s){return this._addSvgIconConfig(t,e,new jg(n,null,s))}addSvgIconLiteralInNamespace(t,e,n,s){const i=this._sanitizer.sanitize(Js.HTML,n);if(!i)throw Mg(n);return this._addSvgIconConfig(t,e,new jg("",i,s))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new jg(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const s=this._sanitizer.sanitize(Js.HTML,e);if(!s)throw Mg(e);return this._addSvgIconSetConfig(t,new jg("",s,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(Js.RESOURCE_URL,t);if(!e)throw Lg(t);const n=this._cachedIconsByUrl.get(e);return n?wc(Vg(n)):this._loadSvgIconFromConfig(new jg(t,null)).pipe(bm(t=>this._cachedIconsByUrl.set(e,t)),T(t=>Vg(t)))}getNamedSvgIcon(t,e=""){const n=Bg(e,t),s=this._svgIconConfigs.get(n);if(s)return this._getSvgFromConfig(s);const i=this._iconSetConfigs.get(e);return i?this._getSvgFromIconSetConfigs(t,i):Kc(Fg(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?wc(Vg(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(T(t=>Vg(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?wc(n):function(...t){if(1===t.length){const e=t[0];if(l(e))return mg(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return mg(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return mg(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(T(t=>e(...t)))}return mg(t,null)}(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(gg(e=>{const n=this._sanitizer.sanitize(Js.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),wc(null)})))).pipe(T(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw Fg(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const s=e[n];if(s.svgText&&s.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(s),n=this._extractSvgIconFromSet(e,t,s.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(bm(e=>t.svgText=e),T(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?wc(null):this._fetchIcon(t).pipe(bm(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const s=t.querySelector(`[id="${e}"]`);if(!s)return null;const i=s.cloneNode(!0);if(i.removeAttribute("id"),"svg"===i.nodeName.toLowerCase())return this._setSvgAttributes(i,n);if("symbol"===i.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(i),n);const r=this._svgElementFromString("<svg></svg>");return r.appendChild(i),this._setSvgAttributes(r,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString("<svg></svg>"),n=t.attributes;for(let s=0;s<n.length;s++){const{name:t,value:i}=n[s];"id"!==t&&e.setAttribute(t,i)}for(let s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[s].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){var e;const{url:n,options:s}=t,i=null!==(e=null==s?void 0:s.withCredentials)&&void 0!==e&&e;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==n)throw Error(`Cannot fetch icon from URL "${n}".`);const r=this._sanitizer.sanitize(Js.RESOURCE_URL,n);if(!r)throw Lg(n);const o=this._inProgressUrlFetches.get(r);if(o)return o;const a=this._httpClient.get(r,{responseType:"text",withCredentials:i}).pipe((l=()=>this._inProgressUrlFetches.delete(r),t=>t.lift(new bg(l))),J());var l;return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(Bg(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}}return t.\u0275fac=function(e){return new(e||t)(Kt(Pg,8),Kt(Ed),Kt(ih,8),Kt(_s))},t.\u0275prov=ht({factory:function(){return new t(Kt(Pg,8),Kt(Ed),Kt(ih,8),Kt(_s))},token:t,providedIn:"root"}),t})();function Vg(t){return t.cloneNode(!0)}function Bg(t,e){return t+":"+e}class zg{constructor(t){this._elementRef=t}}const Wg=Ym(zg),$g=new jt("mat-icon-location",{providedIn:"root",factory:function(){const t=Gt(ih),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),qg=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Ug=qg.map(t=>`[${t}]`).join(", "),Qg=/^url\(['"]?#(.*?)['"]?\)$/;let Zg=(()=>{class t extends Wg{constructor(t,e,n,s,i){super(t),this._iconRegistry=e,this._location=s,this._errorHandler=i,this._inline=!1,this._currentIconFetch=u.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=_c(t)}get fontSet(){return this._fontSet}set fontSet(t){this._fontSet=this._cleanupFontValue(t)}get fontIcon(){return this._fontIcon}set fontIcon(t){this._fontIcon=this._cleanupFontValue(t)}_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}"`)}}ngOnChanges(t){const e=t.svgIcon;if(this._svgNamespace=null,this._svgName=null,e)if(this._currentIconFetch.unsubscribe(),this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);t&&(this._svgNamespace=t),e&&(this._svgName=e),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(e,t).pipe(du(1)).subscribe(t=>this._setSvgElement(t),n=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${e}! ${n.message}`))})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&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 s=0;s<e.length;s++)e[s].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(Ug),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<e.length;s++)qg.forEach(t=>{const i=e[s],r=i.getAttribute(t),o=r?r.match(Qg):null;if(o){let e=n.get(i);e||(e=[],n.set(i,e)),e.push({name:t,value:o[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(bo(ba),bo(Hg),("aria-hidden",function(t,e){const n=t.attrs;if(n){const t=n.length;let s=0;for(;s<t;){const i=n[s];if(Mn(i))break;if(0===i)s+=2;else if("number"==typeof i)for(s++;s<t&&"string"==typeof n[s];)s++;else{if(i===e)return n[s+1];s+=2}}}return null}(an(),"aria-hidden")),bo($g),bo(_s))},t.\u0275cmp=pe({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(go("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),Zo("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[ua,Ne],ngContentSelectors:Ng,decls:1,vars:0,template:function(t,e){1&t&&(Fo(),Lo(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})(),Kg=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Km],Km]}),t})();class Gg extends f{notifyNext(t,e,n,s,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Yg extends f{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()}}function Xg(t,e,n,s,i=new Yg(t,n,s)){if(!i.closed)return e instanceof y?e.subscribe(i):N(e)(i)}const Jg={};class t_{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new e_(t,this.resultSelector))}}class e_ extends Gg{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Jg),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(Xg(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const s=this.values,i=this.toRespond?s[n]===Jg?--this.toRespond:this.toRespond:0;s[n]=e,0===i&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}class n_{constructor(t){this.total=t}call(t,e){return e.subscribe(new s_(t,this.total))}}class s_ extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const i_=new Set;let r_,o_=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):a_}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!i_.has(t))try{r_||(r_=document.createElement("style"),r_.setAttribute("type","text/css"),document.head.appendChild(r_)),r_.sheet&&(r_.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),i_.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Qh))},t.\u0275prov=ht({factory:function(){return new t(Kt(Qh))},token:t,providedIn:"root"}),t})();function a_(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let l_=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new E}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return c_(yc(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=function(...t){let e=void 0,n=void 0;return x(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),$(t,n).lift(new t_(e))}(c_(yc(t)).map(t=>this._registerQuery(t).observable));return e=Hc(e.pipe(du(1)),e.pipe(t=>t.lift(new n_(1)),Cm(0))),e.pipe(T(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 y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Vc(e),T(({matches:e})=>({query:t,matches:e})),Lc(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(Kt(o_),Kt(Zl))},t.\u0275prov=ht({factory:function(){return new t(Kt(o_),Kt(Zl))},token:t,providedIn:"root"}),t})();function c_(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const h_={tooltipState:Rd("state",[Nd("initial, void, hidden",Pd({opacity:0,transform:"scale(0)"})),Nd("visible",Pd({transform:"scale(1)"})),Ld("* => visible",Ad("200ms cubic-bezier(0, 0, 0.2, 1)",Fd([Pd({opacity:0,transform:"scale(0)",offset:0}),Pd({opacity:.5,transform:"scale(0.99)",offset:.5}),Pd({opacity:1,transform:"scale(1)",offset:1})]))),Ld("* => hidden",Ad("100ms cubic-bezier(0, 0, 0.2, 1)",Pd({opacity:0})))])},u_=Kh({passive:!0}),d_=new jt("mat-tooltip-scroll-strategy"),p_={provide:d_,deps:[Bu],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},f_=new jt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let m_=(()=>{class t{constructor(t,e,n,s,i,r,o,a,l,c,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=s,this._ngZone=i,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new E,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!function(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),i.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=_c(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+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)})}))}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(Lc(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,u_)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),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 ou(g_,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Lc(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(Lc(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(Lc(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:s,y:i}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:s,originY:i}}}_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:s,y:i}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:s,overlayY:i}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(du(1),Lc(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()]);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,u_)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_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)(bo(Bu),bo(ba),bo(tu),bo(qa),bo(Zl),bo(Qh),bo(Nm),bo(jm),bo(d_),bo(Xh,8),bo(f_,8))},t.\u0275dir=be({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})(),g_=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new E,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}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)(bo(Ur),bo(l_))},t.\u0275cmp=pe({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&Ro("click",(function(){return e._handleBodyInteraction()}),!1,Zn),2&t&&Qo("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(Co(0,"div",0),Ro("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),function(t,e){const n=rn();let s;n.firstCreatePass?(s=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const s=e[n];if(t===s.name)return s}throw new Error("The pipe 'async' could not be found!")}("async",n.pipeRegistry),n.data[21]=s,s.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(21,s.onDestroy)):s=n.data[21];const i=s.factory||(s.factory=Ce(s.type)),r=Qt(bo),o=Yn(!1),a=i();Yn(o),Qt(r),function(t,e,n,s){21>=t.data.length&&(t.data[21]=null,t.blueprint[21]=null),e[21]=s}(n,sn(),0,a)}(),aa(2),Eo()),2&t&&(Zo("mat-tooltip-handset",null==(n=hl(1,5,e._isHandset))?null:n.matches),vo("ngClass",e.tooltipClass)("@state",e._visibility),wi(2),la(e.message))},directives:[Eh],pipes:[Bh],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:[h_.tooltipState]},changeDetection:0}),t})(),__=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[p_],imports:[[$m,zh,Wu,Km],Km,su]}),t})();const y_=new y(ym);function b_(t){return Boolean(t.parentElement&&"picture"===t.parentElement.nodeName.toLowerCase())}function v_(t){return"img"===t.nodeName.toLowerCase()}function w_(t,e,n){return v_(t)?n&&"srcset"in t?t.srcset=e:t.src=e:t.style.backgroundImage=`url('${e}')`,t}function C_(t){return e=>{const n=e.parentElement.getElementsByTagName("source");for(let s=0;s<n.length;s++){const e=n[s].getAttribute(t);e&&("srcset"in n[s]?n[s].srcset=e:n[s].src=e)}}}const E_=C_("defaultImage"),S_=C_("lazyLoad"),x_=C_("errorImage");function T_(t){return(e,n,s)=>{v_(e)&&b_(e)&&t(e),n&&w_(e,n,s)}}const k_=T_(E_),O_=T_(S_),I_=T_(x_),R_="ng-lazyloaded",A_="ng-lazyloading";function D_(t,e){t.className=t.className.replace(e,"")}function P_(t,e){t.className.includes(e)||(t.className+=" "+e)}let N_=(()=>{class t extends class extends class{constructor(){this.navigator="undefined"!=typeof window?window.navigator:void 0}setPlatformId(t){this.platformId=t}onDestroy(t){}onAttributeChange(t){}}{setup(t){var e;k_(t.element,t.defaultImagePath,t.useSrcset),P_(t.element,A_),(e=t.element).className&&e.className.includes("ng-lazyloaded")&&D_(t.element,R_)}finally(t){P_(t.element,R_),D_(t.element,A_)}loadImage(t){if(this.skipLazyLoading(t))return[t.imagePath];const{element:e,useSrcset:n,imagePath:s,decode:i}=t;let r;if(v_(e)&&b_(e)){const t=e.parentNode.cloneNode(!0);r=t.getElementsByTagName("img")[0],S_(r),w_(r,s,n)}else r=new Image,v_(e)&&e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),v_(e)&&e.sizes&&(r.sizes=e.sizes),n&&"srcset"in r?r.srcset=s:r.src=s;return i&&r.decode?r.decode().then(()=>s):new Promise((t,e)=>{r.onload=()=>t(s),r.onerror=()=>e(null)})}setErrorImage(t,e){const{element:n,useSrcset:s,errorImagePath:i}=e;I_(n,i,s),P_(n,"ng-failed-lazyloaded")}setLoadedImage(t,e){const{element:n,useSrcset:s}=e;O_(n,t,s)}isDisabled(){return"server"===this.platformId&&!this.isBot()}skipLazyLoading(t){return this.isBot(t)}isBot(t){var e;return!!(null===(e=this.navigator)||void 0===e?void 0:e.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(this.navigator.userAgent)}}{constructor(){super(...arguments),this.observers=new WeakMap,this.intersectionSubject=new E,this.uniqKey={}}getObservable(t){if(this.skipLazyLoading(t))return wc({isIntersecting:!0});if(t.customObservable)return t.customObservable;const e=t.scrollContainer||this.uniqKey,n={root:t.scrollContainer||null};t.offset&&(n.rootMargin=t.offset+"px");let s=this.observers.get(e);return s||(s=new IntersectionObserver(t=>this.loadingCallback(t),n),this.observers.set(e,s)),s.observe(t.element),y.create(e=>{const n=this.intersectionSubject.pipe(Pc(e=>e.target===t.element)).subscribe(e);return()=>{n.unsubscribe(),s.unobserve(t.element)}})}isVisible(t){return t.isIntersecting}loadingCallback(t){t.forEach(t=>this.intersectionSubject.next(t))}}return t.\u0275fac=function(e){return F_(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const F_=ps(N_),L_=new jt("LazyLoadImageHooks");let M_=(()=>{class t{constructor(t,e,n,s){this.onStateChange=new ul,this.elementRef=t,this.ngZone=e,this.propertyChanges$=new th,this.hooks=s,this.hooks.setPlatformId(n),this.uid=Math.random().toString(36).substr(2,9)}ngOnChanges(){!0!==this.debug||this.debugSubscription||(this.debugSubscription=this.onStateChange.subscribe(t=>console.log(t))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange,id:this.uid})}ngAfterContentInit(){if(this.hooks.isDisabled())return null;this.ngZone.runOutsideAngular(()=>{this.loadSubscription=this.propertyChanges$.pipe(bm(t=>this.hooks.onAttributeChange(t)),bm(t=>t.onStateChange.emit({reason:"setup"})),bm(t=>this.hooks.setup(t)),Bc(t=>t.imagePath?this.hooks.getObservable(t).pipe(function(t,e){return n=>n.pipe(bm(t=>e.onStateChange.emit({reason:"observer-emit",data:t})),Pc(n=>t.isVisible(n,e)),du(1),bm(()=>e.onStateChange.emit({reason:"start-loading"})),V(()=>t.loadImage(e)),bm(()=>e.onStateChange.emit({reason:"mount-image"})),bm(n=>t.setLoadedImage(n,e)),bm(()=>e.onStateChange.emit({reason:"loading-succeeded"})),T(()=>!0),gg(n=>(e.onStateChange.emit({reason:"loading-failed",data:n}),t.setErrorImage(n,e),wc(!1))),bm(()=>{e.onStateChange.emit({reason:"finally"}),t.finally(e)}))}(this.hooks,t)):y_)).subscribe({next:()=>null})})}ngOnDestroy(){var t,e;this.propertyChanges$.pipe(du(1)).subscribe({next:t=>this.hooks.onDestroy(t)}).unsubscribe(),null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(e=this.debugSubscription)||void 0===e||e.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(bo(ba),bo(Zl),bo(Pl),bo(L_))},t.\u0275dir=be({type:t,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange"},features:[Ne]}),t})(),j_=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[{provide:L_,useClass:N_}]}),t})();var H_="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,V_=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(H_&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}(),B_=H_&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),V_))}};function z_(t){return t&&"[object Function]"==={}.toString.call(t)}function W_(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function $_(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function q_(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=W_(t);return/(auto|scroll|overlay)/.test(e.overflow+e.overflowY+e.overflowX)?t:q_($_(t))}function U_(t){return t&&t.referenceNode?t.referenceNode:t}var Q_=H_&&!(!window.MSInputMethodContext||!document.documentMode),Z_=H_&&/MSIE 10/.test(navigator.userAgent);function K_(t){return 11===t?Q_:10===t?Z_:Q_||Z_}function G_(t){if(!t)return document.documentElement;for(var e=K_(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var s=n&&n.nodeName;return s&&"BODY"!==s&&"HTML"!==s?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===W_(n,"position")?G_(n):n:t?t.ownerDocument.documentElement:document.documentElement}function Y_(t){return null!==t.parentNode?Y_(t.parentNode):t}function X_(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,s=n?t:e,i=n?e:t,r=document.createRange();r.setStart(s,0),r.setEnd(i,0);var o,a,l=r.commonAncestorContainer;if(t!==l&&e!==l||s.contains(i))return"BODY"===(a=(o=l).nodeName)||"HTML"!==a&&G_(o.firstElementChild)!==o?G_(l):l;var c=Y_(t);return c.host?X_(c.host,e):X_(t,Y_(e).host)}function J_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",s=t.nodeName;if("BODY"===s||"HTML"===s){var i=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||i;return r[n]}return t[n]}function ty(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=J_(e,"top"),i=J_(e,"left"),r=n?-1:1;return t.top+=s*r,t.bottom+=s*r,t.left+=i*r,t.right+=i*r,t}function ey(t,e){var n="x"===e?"Left":"Top",s="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+s+"Width"])}function ny(t,e,n,s){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],K_(10)?parseInt(n["offset"+t])+parseInt(s["margin"+("Height"===t?"Top":"Left")])+parseInt(s["margin"+("Height"===t?"Bottom":"Right")]):0)}function sy(t){var e=t.body,n=t.documentElement,s=K_(10)&&getComputedStyle(n);return{height:ny("Height",e,n,s),width:ny("Width",e,n,s)}}var iy=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},ry=function(){function t(t,e){for(var n=0;n<e.length;n++){var s=e[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,n,s){return n&&t(e.prototype,n),s&&t(e,s),e}}(),oy=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},ay=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t};function ly(t){return ay({},t,{right:t.left+t.width,bottom:t.top+t.height})}function cy(t){var e={};try{if(K_(10)){e=t.getBoundingClientRect();var n=J_(t,"top"),s=J_(t,"left");e.top+=n,e.left+=s,e.bottom+=n,e.right+=s}else e=t.getBoundingClientRect()}catch(c){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?sy(t.ownerDocument):{},o=t.offsetWidth-(r.width||t.clientWidth||i.width),a=t.offsetHeight-(r.height||t.clientHeight||i.height);if(o||a){var l=W_(t);o-=ey(l,"x"),a-=ey(l,"y"),i.width-=o,i.height-=a}return ly(i)}function hy(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=K_(10),i="HTML"===e.nodeName,r=cy(t),o=cy(e),a=q_(t),l=W_(e),c=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var u=ly({top:r.top-o.top-c,left:r.left-o.left-h,width:r.width,height:r.height});if(u.marginTop=0,u.marginLeft=0,!s&&i){var d=parseFloat(l.marginTop),p=parseFloat(l.marginLeft);u.top-=c-d,u.bottom-=c-d,u.left-=h-p,u.right-=h-p,u.marginTop=d,u.marginLeft=p}return(s&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(u=ty(u,e)),u}function uy(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,s=hy(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),o=e?0:J_(n),a=e?0:J_(n,"left"),l={top:o-s.top+s.marginTop,left:a-s.left+s.marginLeft,width:i,height:r};return ly(l)}function dy(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===W_(t,"position"))return!0;var n=$_(t);return!!n&&dy(n)}function py(t){if(!t||!t.parentElement||K_())return document.documentElement;for(var e=t.parentElement;e&&"none"===W_(e,"transform");)e=e.parentElement;return e||document.documentElement}function fy(t,e,n,s){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},o=i?py(t):X_(t,U_(e));if("viewport"===s)r=uy(o,i);else{var a=void 0;"scrollParent"===s?"BODY"===(a=q_($_(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===s?t.ownerDocument.documentElement:s;var l=hy(a,o,i);if("HTML"!==a.nodeName||dy(o))r=l;else{var c=sy(t.ownerDocument),h=c.height,u=c.width;r.top+=l.top-l.marginTop,r.bottom=h+l.top,r.left+=l.left-l.marginLeft,r.right=u+l.left}}var d="number"==typeof(n=n||0);return r.left+=d?n:n.left||0,r.top+=d?n:n.top||0,r.right-=d?n:n.right||0,r.bottom-=d?n:n.bottom||0,r}function my(t){return t.width*t.height}function gy(t,e,n,s,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var o=fy(n,s,r,i),a={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},l=Object.keys(a).map((function(t){return ay({key:t},a[t],{area:my(a[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){return t.width>=n.clientWidth&&t.height>=n.clientHeight})),h=c.length>0?c[0].key:l[0].key,u=t.split("-")[1];return h+(u?"-"+u:"")}function _y(t,e,n){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=s?py(e):X_(e,U_(n));return hy(n,i,s)}function yy(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),s=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+s,height:t.offsetHeight+n}}function by(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function vy(t,e,n){n=n.split("-")[0];var s=yy(t),i={width:s.width,height:s.height},r=-1!==["right","left"].indexOf(n),o=r?"top":"left",a=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return i[o]=e[o]+e[l]/2-s[l]/2,i[a]=n===a?e[a]-s[c]:e[by(a)],i}function wy(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Cy(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t.name===n}));var s=wy(t,(function(t){return t.name===n}));return t.indexOf(s)}(t,0,n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&z_(n)&&(e.offsets.popper=ly(e.offsets.popper),e.offsets.reference=ly(e.offsets.reference),e=n(e,t))})),e}function Ey(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=_y(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=gy(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=vy(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Cy(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function Sy(t,e){return t.some((function(t){return t.enabled&&t.name===e}))}function xy(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),s=0;s<e.length;s++){var i=e[s],r=i?""+i+n:t;if(void 0!==document.body.style[r])return r}return null}function Ty(){return this.state.isDestroyed=!0,Sy(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[xy("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function ky(t){var e=t.ownerDocument;return e?e.defaultView:window}function Oy(){this.state.eventsEnabled||(this.state=function(t,e,n,s){n.updateBound=s,ky(t).addEventListener("resize",n.updateBound,{passive:!0});var i=q_(t);return function t(e,n,s,i){var r="BODY"===e.nodeName,o=r?e.ownerDocument.defaultView:e;o.addEventListener(n,s,{passive:!0}),r||t(q_(o.parentNode),n,s,i),i.push(o)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}(this.reference,0,this.state,this.scheduleUpdate))}function Iy(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(t,e){return ky(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}(this.reference,this.state))}function Ry(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function Ay(t,e){Object.keys(e).forEach((function(n){var s="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Ry(e[n])&&(s="px"),t.style[n]=e[n]+s}))}var Dy=H_&&/Firefox/i.test(navigator.userAgent);function Py(t,e,n){var s=wy(t,(function(t){return t.name===e})),i=!!s&&t.some((function(t){return t.name===n&&t.enabled&&t.order<s.order}));if(!i){var r="`"+e+"`";console.warn("`"+n+"` modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return i}var Ny=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Fy=Ny.slice(3);function Ly(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Fy.indexOf(t),s=Fy.slice(n+1).concat(Fy.slice(0,n));return e?s.reverse():s}var My={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],s=e.split("-")[1];if(s){var i=t.offsets,r=i.reference,o=i.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",h={start:oy({},l,r[l]),end:oy({},l,r[l]+r[c]-o[c])};t.offsets.popper=ay({},o,h[s])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n,s=e.offset,i=t.offsets,r=i.popper,o=i.reference,a=t.placement.split("-")[0];return n=Ry(+s)?[+s,0]:function(t,e,n,s){var i=[0,0],r=-1!==["right","left"].indexOf(s),o=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=o.indexOf(wy(o,(function(t){return-1!==t.search(/,|\s/)})));o[a]&&-1===o[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[o.slice(0,a).concat([o[a].split(l)[0]]),[o[a].split(l)[1]].concat(o.slice(a+1))]:[o];return(c=c.map((function(t,s){var i=(1===s?!r:r)?"height":"width",o=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,o=!0,t):o?(t[t.length-1]+=e,o=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,s){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],o=i[2];if(!r)return t;if(0===o.indexOf("%")){var a=void 0;switch(o){case"%p":a=n;break;case"%":case"%r":default:a=s}return ly(a)[e]/100*r}return"vh"===o||"vw"===o?("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r:r}(t,i,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,s){Ry(n)&&(i[e]+=n*("-"===t[s-1]?-1:1))}))})),i}(s,r,o,a),"left"===a?(r.top+=n[0],r.left-=n[1]):"right"===a?(r.top+=n[0],r.left+=n[1]):"top"===a?(r.left+=n[0],r.top-=n[1]):"bottom"===a&&(r.left+=n[0],r.top+=n[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||G_(t.instance.popper);t.instance.reference===n&&(n=G_(n));var s=xy("transform"),i=t.instance.popper.style,r=i.top,o=i.left,a=i[s];i.top="",i.left="",i[s]="";var l=fy(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=r,i.left=o,i[s]=a,e.boundaries=l;var c=t.offsets.popper,h={primary:function(t){var n=c[t];return c[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(c[t],l[t])),oy({},t,n)},secondary:function(t){var n="right"===t?"left":"top",s=c[n];return c[t]>l[t]&&!e.escapeWithReference&&(s=Math.min(c[n],l[t]-("right"===t?c.width:c.height))),oy({},n,s)}};return e.priority.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=ay({},c,h[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,s=e.reference,i=t.placement.split("-")[0],r=Math.floor,o=-1!==["top","bottom"].indexOf(i),a=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return n[a]<r(s[l])&&(t.offsets.popper[l]=r(s[l])-n[c]),n[l]>r(s[a])&&(t.offsets.popper[l]=r(s[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Py(t.instance.modifiers,"arrow","keepTogether"))return t;var s=e.element;if("string"==typeof s){if(!(s=t.instance.popper.querySelector(s)))return t}else if(!t.instance.popper.contains(s))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],r=t.offsets,o=r.popper,a=r.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",h=l?"Top":"Left",u=h.toLowerCase(),d=l?"left":"top",p=l?"bottom":"right",f=yy(s)[c];a[p]-f<o[u]&&(t.offsets.popper[u]-=o[u]-(a[p]-f)),a[u]+f>o[p]&&(t.offsets.popper[u]+=a[u]+f-o[p]),t.offsets.popper=ly(t.offsets.popper);var m=a[u]+a[c]/2-f/2,g=W_(t.instance.popper),_=parseFloat(g["margin"+h]),y=parseFloat(g["border"+h+"Width"]),b=m-t.offsets.popper[u]-_-y;return b=Math.max(Math.min(o[c]-f,b),0),t.arrowElement=s,t.offsets.arrow=(oy(n={},u,Math.round(b)),oy(n,d,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(Sy(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=fy(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),s=t.placement.split("-")[0],i=by(s),r=t.placement.split("-")[1]||"",o=[];switch(e.behavior){case"flip":o=[s,i];break;case"clockwise":o=Ly(s);break;case"counterclockwise":o=Ly(s,!0);break;default:o=e.behavior}return o.forEach((function(a,l){if(s!==a||o.length===l+1)return t;s=t.placement.split("-")[0],i=by(s);var c=t.offsets.popper,h=t.offsets.reference,u=Math.floor,d="left"===s&&u(c.right)>u(h.left)||"right"===s&&u(c.left)<u(h.right)||"top"===s&&u(c.bottom)>u(h.top)||"bottom"===s&&u(c.top)<u(h.bottom),p=u(c.left)<u(n.left),f=u(c.right)>u(n.right),m=u(c.top)<u(n.top),g=u(c.bottom)>u(n.bottom),_="left"===s&&p||"right"===s&&f||"top"===s&&m||"bottom"===s&&g,y=-1!==["top","bottom"].indexOf(s),b=!!e.flipVariations&&(y&&"start"===r&&p||y&&"end"===r&&f||!y&&"start"===r&&m||!y&&"end"===r&&g)||!!e.flipVariationsByContent&&(y&&"start"===r&&f||y&&"end"===r&&p||!y&&"start"===r&&g||!y&&"end"===r&&m);(d||_||b)&&(t.flipped=!0,(d||_)&&(s=o[l+1]),b&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=s+(r?"-"+r:""),t.offsets.popper=ay({},t.offsets.popper,vy(t.instance.popper,t.offsets.reference,t.placement)),t=Cy(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],s=t.offsets,i=s.popper,r=s.reference,o=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[o?"left":"top"]=r[n]-(a?i[o?"width":"height"]:0),t.placement=by(e),t.offsets.popper=ly(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Py(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=wy(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,s=e.y,i=t.offsets.popper,r=wy(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o,a,l=void 0!==r?r:e.gpuAcceleration,c=G_(t.instance.popper),h=cy(c),u={position:i.position},d=function(t,e){var n=t.offsets,s=n.popper,i=Math.round,r=Math.floor,o=function(t){return t},a=i(n.reference.width),l=i(s.width),c=-1!==["left","right"].indexOf(t.placement),h=-1!==t.placement.indexOf("-"),u=e?c||h||a%2==l%2?i:r:o,d=e?i:o;return{left:u(a%2==1&&l%2==1&&!h&&e?s.left-1:s.left),top:d(s.top),bottom:d(s.bottom),right:u(s.right)}}(t,window.devicePixelRatio<2||!Dy),p="bottom"===n?"top":"bottom",f="right"===s?"left":"right",m=xy("transform");if(a="bottom"===p?"HTML"===c.nodeName?-c.clientHeight+d.bottom:-h.height+d.bottom:d.top,o="right"===f?"HTML"===c.nodeName?-c.clientWidth+d.right:-h.width+d.right:d.left,l&&m)u[m]="translate3d("+o+"px, "+a+"px, 0)",u[p]=0,u[f]=0,u.willChange="transform";else{var g="right"===f?-1:1;u[p]=a*("bottom"===p?-1:1),u[f]=o*g,u.willChange=p+", "+f}return t.attributes=ay({},{"x-placement":t.placement},t.attributes),t.styles=ay({},u,t.styles),t.arrowStyles=ay({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return Ay(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&Ay(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,s,i){var r=_y(i,e,t,n.positionFixed),o=gy(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",o),Ay(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},jy=function(){function t(e,n){var s=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};iy(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(s.update)},this.update=B_(this.update.bind(this)),this.options=ay({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(ay({},t.Defaults.modifiers,i.modifiers)).forEach((function(e){s.options.modifiers[e]=ay({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return ay({name:t},s.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&z_(t.onLoad)&&t.onLoad(s.reference,s.popper,s.options,t,s.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return ry(t,[{key:"update",value:function(){return Ey.call(this)}},{key:"destroy",value:function(){return Ty.call(this)}},{key:"enableEventListeners",value:function(){return Oy.call(this)}},{key:"disableEventListeners",value:function(){return Iy.call(this)}}]),t}();jy.Utils=("undefined"!=typeof window?window:global).PopperUtils,jy.placements=Ny,jy.Defaults=My;var Hy=jy;const Vy=["popperViewRef"];function By(t,e){1&t&&(Co(0,"div",5),Lo(1),Eo()),2&t&&vo("innerHTML",Po().text,ti)}function zy(t,e){1&t&&(Co(0,"div",6),Lo(1,1),Eo())}const Wy=["*","*"];let $y=(()=>{class t{}return t.CLICK="click",t.HOVER="hover",t.MOUSEDOWN="mousedown",t.NONE="none",t})(),qy=(()=>{class t{}return t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.TopStart="top-start",t.BottomStart="bottom-start",t.LeftStart="left-start",t.RightStart="right-start",t.TopEnd="top-end",t.BottomEnd="bottom-end",t.LeftEnd="left-end",t.RightEnd="right-end",t.Auto="auto",t.AutoStart="auto-start",t.AutoEnd="auto-end",t})(),Uy=(()=>{class t{constructor(t,e,n,s){this.elemRef=t,this.renderer=e,this.viewRef=n,this.CDR=s,this.popperOptions={disableAnimation:!1,disableDefaultStyling:!1,placement:qy.Auto,boundariesElement:"",trigger:$y.HOVER,positionFixed:!1,appendToBody:!1,popperModifiers:{}},this.isMouseOver=!1,this.onHidden=new ul,this.displayType="none",this.opacity=0,this.ariaHidden="true",this.arrowColor=null,this.state=!0}onMouseOver(){this.isMouseOver=!0}showOnLeave(){this.isMouseOver=!1,(this.popperOptions.trigger===$y.HOVER||this.popperOptions.hideOnMouseLeave)&&this.hide()}onDocumentResize(){this.update()}ngOnDestroy(){this.clean(),this.popperOptions.appendTo&&this.elemRef&&this.elemRef.nativeElement&&this.elemRef.nativeElement.parentNode&&(this.viewRef.detach(),this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement))}clean(){this.toggleVisibility(!1),this.popperInstance&&(this.popperInstance.disableEventListeners(),this.popperInstance.destroy())}show(){if(!this.referenceObject)return;const t=this.popperOptions.appendTo&&document.querySelector(this.popperOptions.appendTo);t&&this.elemRef.nativeElement.parentNode!==t&&(this.elemRef.nativeElement.parentNode&&this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement),t.appendChild(this.elemRef.nativeElement));let e={placement:this.popperOptions.placement,positionFixed:this.popperOptions.positionFixed,modifiers:{arrow:{element:this.popperViewRef.nativeElement.querySelector(".ngxp__arrow")}}};this.onUpdate&&(e.onUpdate=this.onUpdate);let n=this.popperOptions.boundariesElement&&document.querySelector(this.popperOptions.boundariesElement);e.modifiers&&n&&(e.modifiers.preventOverflow={boundariesElement:n}),e.modifiers&&void 0!==this.popperOptions.preventOverflow&&(e.modifiers.preventOverflow=e.modifiers.preventOverflow||{},e.modifiers.preventOverflow.enabled=this.popperOptions.preventOverflow,e.modifiers.preventOverflow.enabled||(e.modifiers.hide={enabled:!1})),this.determineArrowColor(),e.modifiers=Object.assign(e.modifiers,this.popperOptions.popperModifiers),this.popperInstance=new Hy(this.referenceObject,this.popperViewRef.nativeElement,e),this.popperInstance.enableEventListeners(),this.scheduleUpdate(),this.toggleVisibility(!0),this.globalResize=this.renderer.listen("document","resize",this.onDocumentResize.bind(this))}determineArrowColor(){["background-color","backgroundColor"].some(t=>!!this.popperOptions.styles&&!!this.popperOptions.styles.hasOwnProperty(t)&&(this.arrowColor=this.popperOptions.styles[t],!0))}update(){this.popperInstance&&this.popperInstance.update()}scheduleUpdate(){this.popperInstance&&this.popperInstance.scheduleUpdate()}hide(){this.popperInstance&&this.popperInstance.destroy(),this.toggleVisibility(!1),this.onHidden.emit()}toggleVisibility(t){t?(this.opacity=1,this.displayType="block",this.ariaHidden="false",this.state=!0):(this.opacity=0,this.displayType="none",this.ariaHidden="true",this.state=!1),this.CDR.destroyed||this.CDR.detectChanges()}extractAppliedClassListExpr(t){if(!t||"string"!=typeof t)return null;try{return t.replace(/ /,"").split(",").reduce((t,e)=>(t[e]=!0,t),{})}catch(e){return null}}clearGlobalResize(){this.globalResize&&"function"==typeof this.globalResize&&this.globalResize()}}return t.\u0275fac=function(e){return new(e||t)(bo(ba),bo(Ea),bo(qa),bo(Ur))},t.\u0275cmp=pe({type:t,selectors:[["popper-content"]],viewQuery:function(t,e){var n;1&t&&El(Vy,!0),2&t&&Cl(n=Sl())&&(e.popperViewRef=n.first)},hostBindings:function(t,e){1&t&&Ro("mouseover",(function(){return e.onMouseOver()}))("mouseleave",(function(){return e.showOnLeave()}))},ngContentSelectors:Wy,decls:5,vars:20,consts:[[3,"ngStyle","ngClass"],["popperViewRef",""],["class","ngxp__inner",3,"innerHTML",4,"ngIf"],["class","ngxp__inner",4,"ngIf"],[1,"ngxp__arrow",3,"ngClass"],[1,"ngxp__inner",3,"innerHTML"],[1,"ngxp__inner"]],template:function(t,e){1&t&&(Fo(Wy),Co(0,"div",0,1),_o(2,By,2,1,"div",2),_o(3,zy,2,0,"div",3),So(4,"div",4),Eo()),2&t&&(Qo("display",e.displayType)("opacity",e.opacity),Zo("ngxp__container",!e.popperOptions.disableDefaultStyling)("ngxp__animation",!e.popperOptions.disableAnimation),vo("ngStyle",e.popperOptions.styles)("ngClass",e.extractAppliedClassListExpr(e.popperOptions.applyClass)),go("aria-hidden",e.ariaHidden)("aria-describedby",e.popperOptions.ariaDescribe||null)("role",e.popperOptions.ariaRole),wi(2),vo("ngIf",e.text),wi(1),vo("ngIf",!e.text),wi(1),Qo("border-color",e.arrowColor),Zo("__force-arrow",e.arrowColor),vo("ngClass",e.extractAppliedClassListExpr(e.popperOptions.applyArrowClass)))},directives:[Nh,Eh,kh],styles:[".ngxp__container{display:none;position:absolute;border-radius:3px;border:1px solid grey;box-shadow:0 0 2px rgba(0,0,0,.5);padding:10px}.ngxp__container.ngxp__animation{-webkit-animation:150ms ease-out ngxp-fadeIn;animation:150ms ease-out ngxp-fadeIn}.ngxp__container>.ngxp__arrow{border-color:grey;width:0;height:0;border-style:solid;position:absolute;margin:5px}.ngxp__container[x-placement^=bottom],.ngxp__container[x-placement^=left],.ngxp__container[x-placement^=right],.ngxp__container[x-placement^=top]{display:block}.ngxp__container[x-placement^=top]{margin-bottom:5px}.ngxp__container[x-placement^=top]>.ngxp__arrow{border-width:5px 5px 0;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=top]>.ngxp__arrow.__force-arrow{border-right-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=bottom]{margin-top:5px}.ngxp__container[x-placement^=bottom]>.ngxp__arrow{border-width:0 5px 5px;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=bottom]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-right-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=right]{margin-left:5px}.ngxp__container[x-placement^=right]>.ngxp__arrow{border-width:5px 5px 5px 0;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=right]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=left]{margin-right:5px}.ngxp__container[x-placement^=left]>.ngxp__arrow{border-width:5px 0 5px 5px;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=left]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-right-color:transparent!important}@-webkit-keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}@keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}"],encapsulation:2,changeDetection:0}),t})(),Qy=(()=>{class t{constructor(e,n,s,i,r,o={}){this.viewContainerRef=e,this.changeDetectorRef=n,this.resolver=s,this.elementRef=i,this.renderer=r,this.popperDefaults=o,this.popperContentClass=Uy,this.shown=!1,this.subscriptions=[],this.eventListeners=[],this.globalEventListeners=[],this.hideTimeout=0,this.timeoutAfterShow=0,this.popperOnShown=new ul,this.popperOnHidden=new ul,this.popperOnUpdate=new ul,t.baseOptions=Object.assign({},t.baseOptions,this.popperDefaults)}hideOnClickOutsideHandler(t){this.disabled||!this.hideOnClickOutside||t.srcElement&&t.srcElement===this.popperContent.elemRef.nativeElement||this.popperContent.elemRef.nativeElement.contains(t.srcElement)||this.scheduledHide(t,this.hideTimeout)}hideOnScrollHandler(t){!this.disabled&&this.hideOnScroll&&this.scheduledHide(t,this.hideTimeout)}applyTriggerListeners(){switch(this.showTrigger){case $y.CLICK:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"click",this.toggle.bind(this)));break;case $y.MOUSEDOWN:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mousedown",this.toggle.bind(this)));break;case $y.HOVER:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseenter",this.scheduledShow.bind(this,this.showDelay))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout)))}this.showTrigger!==$y.HOVER&&this.hideOnMouseLeave&&(this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout))))}static assignDefined(t,...e){for(const n of e)for(const e of Object.keys(n)){const s=n[e];void 0!==s&&(t[e]=s)}return t}ngOnInit(){if(this.hideOnClickOutside=void 0===this.hideOnClickOutside?this.closeOnClickOutside:this.hideOnClickOutside,"string"==typeof this.content){const t=this.content;this.popperContent=this.constructContent(),this.popperContent.text=t}else this.popperContent=this.content;const t=this.popperContent;t.referenceObject=this.getRefElement(),this.setContentProperties(t),this.setDefaults(),this.applyTriggerListeners(),this.showOnStart&&this.scheduledShow()}ngOnChanges(t){t.popperDisabled&&t.popperDisabled.currentValue&&this.hide(),t.content&&!t.content.firstChange&&"string"==typeof t.content.currentValue&&(this.popperContent.text=t.content.currentValue),t.applyClass&&!t.applyClass.firstChange&&"string"==typeof t.applyClass.currentValue&&(this.popperContent.popperOptions.applyClass=t.applyClass.currentValue),t.applyArrowClass&&!t.applyArrowClass.firstChange&&"string"==typeof t.applyArrowClass.currentValue&&(this.popperContent.popperOptions.applyArrowClass=t.applyArrowClass.currentValue)}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe&&t.unsubscribe()),this.subscriptions.length=0,this.clearEventListeners(),this.clearGlobalEventListeners(),clearTimeout(this.scheduledShowTimeout),clearTimeout(this.scheduledHideTimeout),this.popperContent&&this.popperContent.clean()}toggle(){this.disabled||(this.shown?this.scheduledHide(null,this.hideTimeout):this.scheduledShow())}show(){if(this.shown)return void this.overrideHideTimeout();this.shown=!0;const t=this.popperContent,e=this.getRefElement();t.referenceObject!==e&&(t.referenceObject=e),this.setContentProperties(t),t.show(),this.popperOnShown.emit(this),this.timeoutAfterShow>0&&this.scheduledHide(null,this.timeoutAfterShow),this.globalEventListeners.push(this.renderer.listen("document","touchend",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen("document","click",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen(this.getScrollParent(this.getRefElement()),"scroll",this.hideOnScrollHandler.bind(this)))}hide(){this.disabled||(this.shown?(this.shown=!1,this.popperContentRef?this.popperContentRef.instance.hide():this.popperContent.hide(),this.popperOnHidden.emit(this),this.clearGlobalEventListeners()):this.overrideShowTimeout())}scheduledShow(t=this.showDelay){this.disabled||(this.overrideHideTimeout(),this.scheduledShowTimeout=setTimeout(()=>{this.show(),this.applyChanges()},t))}scheduledHide(t=null,e=this.hideTimeout){this.disabled||(this.overrideShowTimeout(),this.scheduledHideTimeout=setTimeout(()=>{const e=t?t.toElement:null,n=!!this.popperContent.popperViewRef&&this.popperContent.popperViewRef.nativeElement;!n||n===e||n.contains(e)||this.content.isMouseOver||(this.hide(),this.applyChanges())},e))}getRefElement(){return this.targetElement||this.viewContainerRef.element.nativeElement}applyChanges(){this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()}setDefaults(){this.showDelay=void 0===this.showDelay?t.baseOptions.showDelay:this.showDelay,this.showTrigger=void 0===this.showTrigger?t.baseOptions.trigger:this.showTrigger,this.hideOnClickOutside=void 0===this.hideOnClickOutside?t.baseOptions.hideOnClickOutside:this.hideOnClickOutside,this.hideOnScroll=void 0===this.hideOnScroll?t.baseOptions.hideOnScroll:this.hideOnScroll,this.hideOnMouseLeave=void 0===this.hideOnMouseLeave?t.baseOptions.hideOnMouseLeave:this.hideOnMouseLeave,this.ariaRole=void 0===this.ariaRole?t.baseOptions.ariaRole:this.ariaRole,this.ariaDescribe=void 0===this.ariaDescribe?t.baseOptions.ariaDescribe:this.ariaDescribe,this.styles=void 0===this.styles?Object.assign({},t.baseOptions.styles):this.styles}clearEventListeners(){this.eventListeners.forEach(t=>{t&&"function"==typeof t&&t()}),this.eventListeners.length=0}clearGlobalEventListeners(){this.globalEventListeners.forEach(t=>{t&&"function"==typeof t&&t()}),this.globalEventListeners.length=0}overrideShowTimeout(){this.scheduledShowTimeout&&(clearTimeout(this.scheduledShowTimeout),this.scheduledHideTimeout=0)}overrideHideTimeout(){this.scheduledHideTimeout&&(clearTimeout(this.scheduledHideTimeout),this.scheduledHideTimeout=0)}constructContent(){const t=this.resolver.resolveComponentFactory(this.popperContentClass);return this.popperContentRef=this.viewContainerRef.createComponent(t),this.popperContentRef.instance}setContentProperties(e){e.popperOptions=t.assignDefined(e.popperOptions,t.baseOptions,{showDelay:this.showDelay,disableAnimation:this.disableAnimation,disableDefaultStyling:this.disableStyle,placement:this.placement,boundariesElement:this.boundariesElement,trigger:this.showTrigger,positionFixed:this.positionFixed,popperModifiers:this.popperModifiers,ariaDescribe:this.ariaDescribe,ariaRole:this.ariaRole,applyClass:this.applyClass,applyArrowClass:this.applyArrowClass,hideOnMouseLeave:this.hideOnMouseLeave,styles:this.styles,appendTo:this.appendTo,preventOverflow:this.preventOverflow}),e.onUpdate=this.onPopperUpdate.bind(this),this.subscriptions.push(e.onHidden.subscribe(this.hide.bind(this)))}getScrollParent(t){const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return t?"visible"!==e&&"hidden"!==e&&t.scrollHeight>=t.clientHeight?t:this.getScrollParent(t.parentNode)||document:null}onPopperUpdate(t){this.popperOnUpdate.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(bo(qa),bo(Ur),bo(ya),bo(ba),bo(Ea),bo("popperDefaults"))},t.\u0275dir=be({type:t,selectors:[["","popper",""]],inputs:{hideTimeout:["popperTimeout","hideTimeout"],timeoutAfterShow:["popperTimeoutAfterShow","timeoutAfterShow"],hideOnClickOutside:["popperHideOnClickOutside","hideOnClickOutside"],showDelay:["popperDelay","showDelay"],showTrigger:["popperTrigger","showTrigger"],hideOnScroll:["popperHideOnScroll","hideOnScroll"],hideOnMouseLeave:["popperHideOnMouseLeave","hideOnMouseLeave"],ariaRole:["popperAriaRole","ariaRole"],ariaDescribe:["popperAriaDescribeBy","ariaDescribe"],styles:["popperStyles","styles"],content:["popper","content"],disabled:["popperDisabled","disabled"],placement:["popperPlacement","placement"],targetElement:["popperTarget","targetElement"],boundariesElement:["popperBoundaries","boundariesElement"],showOnStart:["popperShowOnStart","showOnStart"],closeOnClickOutside:["popperCloseOnClickOutside","closeOnClickOutside"],positionFixed:["popperPositionFixed","positionFixed"],popperModifiers:"popperModifiers",disableStyle:["popperDisableStyle","disableStyle"],disableAnimation:["popperDisableAnimation","disableAnimation"],applyClass:["popperApplyClass","applyClass"],applyArrowClass:["popperApplyArrowClass","applyArrowClass"],appendTo:["popperAppendTo","appendTo"],preventOverflow:["popperPreventOverflow","preventOverflow"]},outputs:{popperOnShown:"popperOnShown",popperOnHidden:"popperOnHidden",popperOnUpdate:"popperOnUpdate"},exportAs:["popper"],features:[Ne]}),t.baseOptions={showDelay:0,placement:qy.Auto,hideOnClickOutside:!0,hideOnMouseLeave:!1,hideOnScroll:!1,showTrigger:$y.HOVER,appendTo:void 0,ariaRole:"popper",ariaDescribe:"",styles:{}},t})(),Zy=(()=>{class t{ngDoBootstrap(){}static forRoot(e={}){return{ngModule:t,providers:[{provide:"popperDefaults",useValue:e}]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[zh]]}),t})();function Ky(t,e){1&t&&ko(0)}function Gy(t,e){if(1&t){const t=Oo();xo(0),Co(1,"button",7),Ro("click",(function(e){return on(t),Po().emitClick(e)})),_o(2,Ky,1,0,"ng-container",8),Eo(),To()}if(2&t){const t=Po(),e=yo(12),n=yo(10);wi(1),vo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),go("aria-label",t.label+" raised button"),wi(1),vo("ngTemplateOutlet",n)}}function Yy(t,e){1&t&&ko(0)}function Xy(t,e){if(1&t){const t=Oo();xo(0),Co(1,"button",9),Ro("click",(function(e){return on(t),Po().emitClick(e)})),_o(2,Yy,1,0,"ng-container",8),Eo(),To()}if(2&t){const t=Po(),e=yo(12),n=yo(10);wi(1),vo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),go("aria-label",t.label+" stroked button"),wi(1),vo("ngTemplateOutlet",n)}}function Jy(t,e){1&t&&ko(0)}function tb(t,e){if(1&t){const t=Oo();xo(0),Co(1,"button",10),Ro("click",(function(e){return on(t),Po().emitClick(e)})),_o(2,Jy,1,0,"ng-container",8),Eo(),To()}if(2&t){const t=Po(),e=yo(12),n=yo(10);wi(1),vo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),go("aria-label",t.label+" flat button"),wi(1),vo("ngTemplateOutlet",n)}}function eb(t,e){1&t&&ko(0)}function nb(t,e){if(1&t){const t=Oo();xo(0),Co(1,"button",11),Ro("click",(function(e){return on(t),Po().emitClick(e)})),_o(2,eb,1,0,"ng-container",8),Eo(),To()}if(2&t){const t=Po(),e=yo(12),n=yo(10);wi(1),vo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),go("aria-label",t.label+" icon button"),wi(1),vo("ngTemplateOutlet",n)}}function sb(t,e){1&t&&ko(0)}function ib(t,e){if(1&t){const t=Oo();xo(0),Co(1,"button",12),Ro("click",(function(e){return on(t),Po().emitClick(e)})),_o(2,sb,1,0,"ng-container",8),Eo(),To()}if(2&t){const t=Po(),e=yo(12),n=yo(10);wi(1),vo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),go("aria-label",t.label+" fab button"),wi(1),vo("ngTemplateOutlet",n)}}function rb(t,e){1&t&&ko(0)}function ob(t,e){if(1&t){const t=Oo();xo(0),Co(1,"button",13),Ro("click",(function(e){return on(t),Po().emitClick(e)})),_o(2,rb,1,0,"ng-container",8),Eo(),To()}if(2&t){const t=Po(),e=yo(12),n=yo(10);wi(1),vo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),go("aria-label",t.label+" mini fab button"),wi(1),vo("ngTemplateOutlet",n)}}function ab(t,e){1&t&&ko(0)}function lb(t,e){if(1&t){const t=Oo();xo(0),Co(1,"button",14),Ro("click",(function(e){return on(t),Po().emitClick(e)})),_o(2,ab,1,0,"ng-container",8),Eo(),To()}if(2&t){const t=Po(),e=yo(12),n=yo(10);wi(1),vo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),go("aria-label",t.label+" unstyled button"),wi(1),vo("ngTemplateOutlet",n)}}function cb(t,e){1&t&&ko(0)}function hb(t,e){if(1&t){const t=Oo();xo(0),Co(1,"button",15),Ro("click",(function(e){return on(t),Po().emitClick(e)})),_o(2,cb,1,0,"ng-container",8),Eo(),To()}if(2&t){const t=Po(),e=yo(12),n=yo(10);wi(1),vo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup))("popperAppendTo","body"),go("aria-label",t.label+" basic button"),wi(1),vo("ngTemplateOutlet",n)}}function ub(t,e){if(1&t&&(Co(0,"mat-icon",18),aa(1),Eo()),2&t){const t=Po(2);vo("ngStyle",t.buttonIconStyle),wi(1),la(t.icon)}}function db(t,e){if(1&t&&(Co(0,"div"),aa(1),Eo()),2&t){const t=Po(2);wi(1),la(t.label||"Button")}}function pb(t,e){if(1&t&&(_o(0,ub,2,2,"mat-icon",16),_o(1,db,2,1,"div",17)),2&t){const t=Po();vo("ngIf",t.icon),wi(1),vo("ngIf",!t.icon)}}function fb(t,e){1&t&&So(0,"img",19),2&t&&vo("lazyLoad",Po().imgUrl)}function mb(t,e){if(1&t&&(Co(0,"div"),aa(1),Eo()),2&t){const t=Po();Ko(t.popup.style),wi(1),la(t.popup.text)}}let gb=(()=>{class t{emitClick(t){t.stopPropagation(),this.onClick()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["drayman-button-internal"]],inputs:{onClick:"onClick",label:"label",view:"view",icon:"icon",tooltip:"tooltip",disabled:"disabled",imgUrl:"imgUrl",popup:"popup",buttonStyle:"buttonStyle",buttonIconStyle:"buttonIconStyle"},decls:15,vars:10,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["button",""],["thumbnailContent",""],["style","width: 150px; z-index: 1001;",3,"lazyLoad",4,"ngIf"],[3,"style",4,"ngIf"],["type","button","mat-raised-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],[4,"ngTemplateOutlet"],["type","button","mat-stroked-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-flat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-icon-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-mini-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","popperAppendTo","click"],[3,"ngStyle",4,"ngIf"],[4,"ngIf"],[3,"ngStyle"],[2,"width","150px","z-index","1001",3,"lazyLoad"]],template:function(t,e){1&t&&(xo(0,0),_o(1,Gy,3,7,"ng-container",1),_o(2,Xy,3,7,"ng-container",1),_o(3,tb,3,7,"ng-container",1),_o(4,nb,3,7,"ng-container",1),_o(5,ib,3,7,"ng-container",1),_o(6,ob,3,7,"ng-container",1),_o(7,lb,3,7,"ng-container",1),_o(8,hb,3,8,"ng-container",2),To(),_o(9,pb,2,2,"ng-template",null,3,Tl),Co(11,"popper-content",null,4),_o(13,fb,1,1,"img",5),_o(14,mb,2,3,"div",6),Eo()),2&t&&(vo("ngSwitch",e.view),wi(1),vo("ngSwitchCase","raised"),wi(1),vo("ngSwitchCase","stroked"),wi(1),vo("ngSwitchCase","flat"),wi(1),vo("ngSwitchCase","icon"),wi(1),vo("ngSwitchCase","fab"),wi(1),vo("ngSwitchCase","miniFab"),wi(1),vo("ngSwitchCase","unstyled"),wi(6),vo("ngIf",e.imgUrl),wi(1),vo("ngIf",e.popup))},directives:[Ah,Dh,Ph,Uy,kh,pg,m_,Nh,Qy,Fh,Zg,M_],styles:[""]}),t})();class _b extends N_{loadImage({imagePath:t}){return e=this,void 0,s=function*(){const e=yield fetch(t),n=yield e.blob();if(n.size)return URL.createObjectURL(n)},new((n=void 0)||(n=Promise))((function(t,i){function r(t){try{a(s.next(t))}catch(e){i(e)}}function o(t){try{a(s.throw(t))}catch(e){i(e)}}function a(e){var s;e.done?t(e.value):(s=e.value,s instanceof n?s:new n((function(t){t(s)}))).then(r,o)}a((s=s.apply(e,[])).next())}));var e,n,s}}let yb=(()=>{class t{constructor(t){this.injector=t}ngDoBootstrap(){const t=Gu(gb,{injector:this.injector});customElements.define("drayman-button",t)}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(ao))},providers:[{provide:L_,useClass:_b},{provide:Iu,useClass:_m}],imports:[[kd,dm,fg,__,Kg,j_,Zy.forRoot({disableDefaultStyling:!0,applyArrowClass:"hidden",showDelay:500,trigger:"hover",hideOnClickOutside:!1,styles:{position:"relative",background:"#fff",padding:"5px 5px 0 5px","z-index":"1001","border-radius":"2px","box-shadow":"0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)"},placement:"right"})]]}),t})();const bb=["container"];function vb(t,e){if(1&t&&(xo(0),So(1,"div",8),To()),2&t){const t=Po().$implicit,e=Po(2);wi(1),Ko(t.style),vo("innerHTML",e.getSanitizedString(t.value),ti)}}function wb(t,e){if(1&t&&(xo(0),Co(1,"div"),So(2,"drayman-button-internal",9),Eo(),To()),2&t){const t=Po().$implicit,e=Po().$implicit,n=Po();wi(1),Ko(t.style),wi(1),vo("label",t.value.label)("onClick",n.emitContentButtonClick.bind(n,e,t.value))("view",t.value.view)("icon",t.value.icon)("tooltip",t.value.tooltip)("disabled",t.value.disabled)("imgUrl",t.value.imgUrl)("popup",t.value.popup)("buttonStyle",t.value.buttonStyle)("options",t.value)}}function Cb(t,e){if(1&t&&(xo(0),xo(1,6),_o(2,vb,2,3,"ng-container",7),_o(3,wb,3,12,"ng-container",7),To(),To()),2&t){const t=e.$implicit;wi(1),vo("ngSwitch",t.type),wi(1),vo("ngSwitchCase","text"),wi(1),vo("ngSwitchCase","button")}}function Eb(t,e){if(1&t){const t=Oo();Co(0,"div",4),Ro("contextmenu",(function(n){on(t);const s=e.$implicit;return Po().oncontextmenu(n,s)}))("click",(function(n){on(t);const s=e.$implicit;return Po().emitCellClick(n,s)}))("mousedown",(function(n){on(t);const s=e.$implicit;return Po().onMouseDown(n,s)}))("mouseup",(function(n){on(t);const s=e.$implicit;return Po().onMouseUp(n,s)}))("mouseover",(function(n){on(t);const s=e.$implicit;return Po().onMouseOver(n,s)}))("mouseleave",(function(n){on(t);const s=e.$implicit;return Po().onMouseLeave(n,s)})),Co(1,"div"),_o(2,Cb,4,3,"ng-container",5),Eo(),Eo()}if(2&t){const t=e.$implicit;Ko(Po().getCellStyle(t)),go("ref",t.ref),wi(1),Ko(t.contentStyle),wi(1),vo("ngForOf",t.content)}}let Sb=(()=>{class t{constructor(t,e){this.elementRef=t,this.sanitizer=e,this.selectedCells=[],this.scrollTo=({row:t})=>{this.cellHeight&&this.scrollable.scrollTo({top:t*this.cellHeight})},this.grid=[],this.scrollDirection="vertical",this.scrollbarWidth="narrow",this.resized$=new E,this.selectedCellsChanged$=new E,this._selectedCells=[],this.pendingSelectedCells=[],this.hoveredRow=-1}onWheel(t){"horizontal"===this.scrollDirection&&(t.preventDefault(),this.containerRef.nativeElement.scrollLeft+=t.deltaY)}get scrollbarWidthClass(){return"narrow"===this.scrollbarWidth?null:"scrollbar-"+this.scrollbarWidth}getCellStyle(t){var e,n,s;const i=t.rowSpan?t.row+t.rowSpan:t.row+1,r=t.colSpan?t.col+t.colSpan:t.col+1;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.cellStyle),this.hoveredRow===t.row?this.rowHoverStyle:{}),[...this.pendingSelectedCells,...this._selectedCells].find(e=>e.selectionGroup===t.selectionGroup)?Object.assign({},null===(e=this.selectionMode)||void 0===e?void 0:e.similarGroupCellStyle):{}),[...this.pendingSelectedCells,...this._selectedCells].length&&![...this.pendingSelectedCells,...this._selectedCells].find(e=>e.selectionGroup===t.selectionGroup)?Object.assign({},null===(n=this.selectionMode)||void 0===n?void 0:n.otherGroupCellStyle):{}),[...this.pendingSelectedCells,...this._selectedCells].find(e=>e.row===t.row&&e.col===t.col)?Object.assign(Object.assign({},null===(s=this.selectionMode)||void 0===s?void 0:s.cellStyle),t.selectionCellStyle):{}),{gridArea:`${t.row+1}/${t.col+1}/${i+1}/${r+1}`})}ngOnDestroy(){}getSanitizedString(t){return this.sanitizer.bypassSecurityTrustHtml(t)}oncontextmenu(t,e){t.ctrlKey&&(t.preventDefault(),this.emitCellClick(t,e,!0))}emitCellClick(t,e,n=!1){var s,i,r;t.ctrlKey&&(t.preventDefault(),n=!0),(null===(s=this.selectionMode)||void 0===s?void 0:s.enabled)?this.pendingSelectedCells.length||(n?(this._selectedCells=[e],this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!0})):this._selectedCells.find(t=>t.row===e.row&&t.col===e.col)?(this._selectedCells=this._selectedCells.filter(t=>!(t.row===e.row&&t.col===e.col)),this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!1})):e.disableSelect||this._selectedCells.length&&(null===(i=this._selectedCells[0])||void 0===i?void 0:i.selectionGroup)!==e.selectionGroup||(this._selectedCells.push(e),this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!1}))):null===(r=this.onCellClick)||void 0===r||r.call(this,{cell:e})}onMouseLeave(t,e){this.hoveredRow=-1}onMouseDown(t,e){var n,s;((null===(n=this.selectionMode)||void 0===n?void 0:n.enabled)&&!this._selectedCells.length||(null===(s=this._selectedCells[0])||void 0===s?void 0:s.selectionGroup)===e.selectionGroup)&&(this.ctrl=t.ctrlKey,this.startSelectionCell=e)}onMouseUp(t,e){this.startSelectionCell=null,this.pendingSelectedCells.length&&(this._selectedCells=[...this.ctrl?[]:this._selectedCells,...this.pendingSelectedCells],this.pendingSelectedCells=[],this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!!this.ctrl}))}onMouseOver(t,e){if(this.hoveredRow=e.row,this.startSelectionCell){const t=Math.min(e.col,this.startSelectionCell.col),n=Math.max(e.col,this.startSelectionCell.col),s=Math.min(e.row,this.startSelectionCell.row),i=Math.max(e.row,this.startSelectionCell.row);this.pendingSelectedCells=this.grid.filter(e=>{var r;return!e.disableSelect&&e.col>=t&&e.col<=n&&e.row>=s&&e.row<=i&&e.selectionGroup===(null===(r=this.startSelectionCell)||void 0===r?void 0:r.selectionGroup)})}}onGridMouseLeave(t){this.startSelectionCell=null,this.pendingSelectedCells.length&&(this._selectedCells=[...this._selectedCells,...this.pendingSelectedCells],this.pendingSelectedCells=[],this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!1}))}emitContentButtonClick(t,e){var n;null===(n=this.onContentButtonClick)||void 0===n||n.call(this,{cell:t,button:e})}onResized(t){t.oldHeight&&t.oldWidth&&this.resized$.next()}ngAfterViewInit(){q(this.scrollable.elementScrolled(),this.resized$).pipe(Cm(50)).subscribe(t=>{var e;null===(e=this.onScroll)||void 0===e||e.call(this,{currentCol:this.cellWidth?Math.floor(this.scrollable.measureScrollOffset("left")/this.cellWidth):0,visibleColCount:this.cellWidth?Math.ceil(this.scrollable.getElementRef().nativeElement.clientWidth/this.cellWidth):this.columnCount,currentRow:this.cellHeight?Math.floor(this.scrollable.measureScrollOffset("top")/this.cellHeight):0,visibleRowCount:this.cellHeight?Math.ceil(this.scrollable.getElementRef().nativeElement.clientHeight/this.cellHeight):this.rowCount})}),this.selectedCellsChanged$.pipe(Cm(250)).subscribe(t=>{var e;null===(e=this.onSelectedCellsChange)||void 0===e||e.call(this,Object.assign(Object.assign({},t),{selectedCells:t.selectedCells.filter((e,n)=>t.selectedCells.findIndex(t=>t.row===e.row&&t.col===e.col)===n)}))})}ngOnInit(){}ngOnChanges(t){this.selectedCells&&(this._selectedCells=[...this.selectedCells])}get gridStyle(){const t=(this.cellHeight||0)*(this.rowCount||0);return{gridTemplateColumns:`repeat(${this.columnCount}, ${this.cellWidth?this.cellWidth+"px":"auto"})`,gridTemplateRows:`repeat(${this.rowCount}, ${this.cellHeight?this.cellHeight+"px":"autor"})`,width:this.cellWidth?this.columnCount*this.cellWidth+"px":"100%",height:t?t+"px":"100%",display:"grid",userSelect:"none"}}}return t.\u0275fac=function(e){return new(e||t)(bo(ba),bo(Ed))},t.\u0275cmp=pe({type:t,selectors:[["drayman-grid-internal"]],viewQuery:function(t,e){var n;1&t&&(El(bb,!0),El(eu,!0)),2&t&&(Cl(n=Sl())&&(e.containerRef=n.first),Cl(n=Sl())&&(e.scrollable=n.first))},hostBindings:function(t,e){1&t&&Ro("wheel",(function(t){return e.onWheel(t)}))},inputs:{selectionMode:"selectionMode",selectedCells:"selectedCells",rowHoverStyle:"rowHoverStyle",onSelectedCellsChange:"onSelectedCellsChange",scrollTo:"scrollTo",onLoad:"onLoad",onContentButtonClick:"onContentButtonClick",onCellClick:"onCellClick",grid:"grid",scrollDirection:"scrollDirection",gridRef:"gridRef",onScroll:"onScroll",cellHeight:"cellHeight",cellWidth:"cellWidth",columnCount:"columnCount",rowCount:"rowCount",scrollbarWidth:"scrollbarWidth"},features:[Ne],decls:4,vars:5,consts:[["cdkScrollable","",1,"wrapper",3,"ngClass","resized"],["container",""],[3,"mouseleave"],["tabindex","-1",3,"style","contextmenu","click","mousedown","mouseup","mouseover","mouseleave",4,"ngFor","ngForOf"],["tabindex","-1",3,"contextmenu","click","mousedown","mouseup","mouseover","mouseleave"],[4,"ngFor","ngForOf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"innerHTML"],[3,"label","onClick","view","icon","tooltip","disabled","imgUrl","popup","buttonStyle","options"]],template:function(t,e){1&t&&(Co(0,"div",0,1),Ro("resized",(function(t){return e.onResized(t)})),Co(2,"div",2),Ro("mouseleave",(function(t){return e.onGridMouseLeave(t)})),_o(3,Eb,3,6,"div",3),Eo(),Eo()),2&t&&(vo("ngClass",e.scrollbarWidthClass),wi(2),Ko(e.gridStyle),go("ref",e.gridRef),wi(1),vo("ngForOf",e.grid))},directives:[eu,Eh,mm,xh,Ah,Dh,gb],styles:[".wrapper[_ngcontent-%COMP%]{width:100%;height:100%;overflow:auto}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px;height:8px}.scrollbar-medium[_ngcontent-%COMP%]::-webkit-scrollbar{width:12px;height:12px}.scrollbar-wide[_ngcontent-%COMP%]::-webkit-scrollbar{width:16px;height:16px}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);border-radius:10px}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.5)}"]}),t})(),xb=(()=>{class t{constructor(t){this.injector=t}ngDoBootstrap(){const t=Gu(Sb,{injector:this.injector});customElements.define("drayman-grid",t)}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(ao))},providers:[{provide:Iu,useClass:_m}],imports:[[kd,dm,iu,gm,yb]]}),t})();(function(){if(Os)throw new Error("Cannot enable prod mode after platform setup.");ks=!1})(),xd().bootstrapModule(xb).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}});
1
+ !function(t){var e={};function n(s){if(e[s])return e[s].exports;var i=e[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,s){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(s,i,(function(e){return t[e]}).bind(null,i));return s},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}({0:function(t,e,n){t.exports=n("zUnb")},"4Xgz":function(t,e,n){"use strict";var s,i,r;"undefined"!=typeof window&&window,i=[n("MXs6")],void 0===(r="function"==typeof(s=function(t){var e=function(){var e,n={},s=[];function i(t){t||(t=document.documentElement);var e=window.getComputedStyle(t,null).fontSize;return parseFloat(e)||16}function r(t,e){var n=e.split(/\d/),s=n[n.length-1];switch(e=parseFloat(e),s){case"px":return e;case"em":return e*i(t);case"rem":return e*i();case"vw":return e*document.documentElement.clientWidth/100;case"vh":return e*document.documentElement.clientHeight/100;case"vmin":case"vmax":var r=document.documentElement.clientWidth/100,o=document.documentElement.clientHeight/100;return e*(0,Math["vmin"===s?"min":"max"])(r,o);default:return e}}function o(t,e){var s,i,o,a,l,c,h,u;this.element=t;var d=["min-width","min-height","max-width","max-height"];this.call=function(){for(s in o=function(t){if(!t.getBoundingClientRect)return{width:t.offsetWidth,height:t.offsetHeight};var e=t.getBoundingClientRect();return{width:Math.round(e.width),height:Math.round(e.height)}}(this.element),c={},n[e])n[e].hasOwnProperty(s)&&(a=r(this.element,(i=n[e][s]).value),l="width"===i.property?o.width:o.height,h="","min"===i.mode&&l>=a&&(h+=i.value),"max"===i.mode&&l<=a&&(h+=i.value),c[u=i.mode+"-"+i.property]||(c[u]=""),h&&-1===(" "+c[u]+" ").indexOf(" "+h+" ")&&(c[u]+=" "+h));for(var t in d)d.hasOwnProperty(t)&&(c[d[t]]?this.element.setAttribute(d[t],c[d[t]].substr(1)):this.element.removeAttribute(d[t]))}}function a(e,n){e.elementQueriesSetupInformation||(e.elementQueriesSetupInformation=new o(e,n)),e.elementQueriesSensor||(e.elementQueriesSensor=new t(e,(function(){e.elementQueriesSetupInformation.call()})))}function l(t,i,r,o){if(void 0===n[t]){n[t]=[];var a=s.length;e.innerHTML+="\n"+t+" {animation: 0.1s element-queries;}",e.innerHTML+="\n"+t+" > .resize-sensor {min-width: "+a+"px;}",s.push(t)}n[t].push({mode:i,property:r,value:o})}function c(t){var e;if(document.querySelectorAll&&(e=t?t.querySelectorAll.bind(t):document.querySelectorAll.bind(document)),e||"undefined"==typeof $$||(e=$$),e||"undefined"==typeof jQuery||(e=jQuery),!e)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return e}function h(e){var n=[],s=[],i=[],r=0,o=-1,a=[];for(var l in e.children)if(e.children.hasOwnProperty(l)&&e.children[l].tagName&&"img"===e.children[l].tagName.toLowerCase()){n.push(e.children[l]);var c=e.children[l].getAttribute("min-width")||e.children[l].getAttribute("data-min-width"),h=e.children[l].getAttribute("data-src")||e.children[l].getAttribute("url");i.push(h),s.push({minWidth:c}),c?e.children[l].style.display="none":(r=n.length-1,e.children[l].style.display="block")}function u(){var t,l=!1;for(t in n)n.hasOwnProperty(t)&&s[t].minWidth&&e.offsetWidth>s[t].minWidth&&(l=t);if(l||(l=r),o!==l)if(a[l])n[o].style.display="none",n[l].style.display="block",o=l;else{var c=new Image;c.onload=function(){n[l].src=i[l],n[o].style.display="none",n[l].style.display="block",a[l]=!0,o=l},c.src=i[l]}else n[l].src=i[l]}o=r,e.resizeSensorInstance=new t(e,u),u()}var u=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,d=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function p(t){var e,n,s,i;for(t=t.replace(/'/g,'"');null!==(e=u.exec(t));)for(n=e[1]+e[3],s=e[2];null!==(i=d.exec(s));)l(n,i[1],i[2],i[3])}function f(t){var e="";if(t)if("string"==typeof t)-1===(t=t.toLowerCase()).indexOf("min-width")&&-1===t.indexOf("max-width")||p(t);else for(var n=0,s=t.length;n<s;n++)1===t[n].type?-1!==(e=t[n].selectorText||t[n].cssText).indexOf("min-height")||-1!==e.indexOf("max-height")?p(e):-1===e.indexOf("min-width")&&-1===e.indexOf("max-width")||p(e):4===t[n].type?f(t[n].cssRules||t[n].rules):3===t[n].type&&t[n].styleSheet.hasOwnProperty("cssRules")&&f(t[n].styleSheet.cssRules)}var m=!1;this.init=function(){var n="animationstart";void 0!==document.documentElement.style.webkitAnimationName?n="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?n="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(n="oanimationstart"),document.body.addEventListener(n,(function(e){var n=e.target,i=n&&window.getComputedStyle(n,null),r=i&&i.getPropertyValue("animation-name");if(r&&-1!==r.indexOf("element-queries")){n.elementQueriesSensor=new t(n,(function(){n.elementQueriesSetupInformation&&n.elementQueriesSetupInformation.call()}));var o=window.getComputedStyle(n.resizeSensor,null).getPropertyValue("min-width");o=parseInt(o.replace("px","")),a(e.target,s[o])}})),m||((e=document.createElement("style")).type="text/css",e.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",e.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(e),m=!0);for(var i=0,r=document.styleSheets.length;i<r;i++)try{document.styleSheets[i].href&&0===document.styleSheets[i].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[i].href),f(document.styleSheets[i].cssRules||document.styleSheets[i].rules||document.styleSheets[i].cssText)}catch(o){}!function(){for(var t=c()("[data-responsive-image],[responsive-image]"),e=0,n=t.length;e<n;e++)h(t[e])}()},this.findElementQueriesElements=function(t){!function(t){var e=c(t);for(var s in n)if(n.hasOwnProperty(s))for(var i=e(s,t),r=0,o=i.length;r<o;r++)a(i[r],s)}(t)},this.update=function(){this.init()}};return e.update=function(){e.instance.update()},e.detach=function(t){t.elementQueriesSetupInformation?(t.elementQueriesSensor.detach(),delete t.elementQueriesSetupInformation,delete t.elementQueriesSensor):t.resizeSensorInstance&&(t.resizeSensorInstance.detach(),delete t.resizeSensorInstance)},e.init=function(){e.instance||(e.instance=new e),e.instance.init()},e.findElementQueriesElements=function(t){e.instance.findElementQueriesElements(t)},e.listen=function(){!function(t){if(document.addEventListener)document.addEventListener("DOMContentLoaded",t,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var e=setInterval((function(){/loaded|complete/i.test(document.readyState)&&(t(),clearInterval(e))}),10);else window.onload=t}(e.init)},e})?s.apply(e,i):s)||(t.exports=r)},"5vqC":function(t,e,n){t.exports={ResizeSensor:n("MXs6"),ElementQueries:n("4Xgz")}},MXs6:function(t,e,n){"use strict";var s,i;"undefined"!=typeof window&&window,void 0===(i="function"==typeof(s=function(){if("undefined"==typeof window)return null;var t="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(e){return t.setTimeout(e,20)},n=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||function(e){t.clearTimeout(e)};function s(t,e){var n=Object.prototype.toString.call(t),s="[object Array]"===n||"[object NodeList]"===n||"[object HTMLCollection]"===n||"[object Object]"===n||"undefined"!=typeof jQuery&&t instanceof jQuery||"undefined"!=typeof Elements&&t instanceof Elements,i=0,r=t.length;if(s)for(;i<r;i++)e(t[i]);else e(t)}function i(t){if(!t.getBoundingClientRect)return{width:t.offsetWidth,height:t.offsetHeight};var e=t.getBoundingClientRect();return{width:Math.round(e.width),height:Math.round(e.height)}}function r(t,e){Object.keys(e).forEach((function(n){t.style[n]=e[n]}))}var o=function(t,a){var l=0;function c(){var t,e,n=[];this.add=function(t){n.push(t)},this.call=function(s){for(t=0,e=n.length;t<e;t++)n[t].call(this,s)},this.remove=function(s){var i=[];for(t=0,e=n.length;t<e;t++)n[t]!==s&&i.push(n[t]);n=i},this.length=function(){return n.length}}s(t,(function(t){!function(t,n){if(t)if(t.resizedAttached)t.resizedAttached.add(n);else{t.resizedAttached=new c,t.resizedAttached.add(n),t.resizeSensor=document.createElement("div"),t.resizeSensor.dir="ltr",t.resizeSensor.className="resize-sensor";var s={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},o={position:"absolute",left:"0px",top:"0px",transition:"0s"};r(t.resizeSensor,s);var a=document.createElement("div");a.className="resize-sensor-expand",r(a,s);var h=document.createElement("div");r(h,o),a.appendChild(h);var u=document.createElement("div");u.className="resize-sensor-shrink",r(u,s);var d=document.createElement("div");r(d,o),r(d,{width:"200%",height:"200%"}),u.appendChild(d),t.resizeSensor.appendChild(a),t.resizeSensor.appendChild(u),t.appendChild(t.resizeSensor);var p=window.getComputedStyle(t),f=p?p.getPropertyValue("position"):null;"absolute"!==f&&"relative"!==f&&"fixed"!==f&&"sticky"!==f&&(t.style.position="relative");var m=!1,g=0,_=i(t),y=0,b=0,v=!0;l=0;var w=function(){if(v){if(0===t.offsetWidth&&0===t.offsetHeight)return void(l||(l=e((function(){l=0,w()}))));v=!1}var n,s;s=t.offsetHeight,h.style.width=(n=t.offsetWidth)+10+"px",h.style.height=s+10+"px",a.scrollLeft=n+10,a.scrollTop=s+10,u.scrollLeft=n+10,u.scrollTop=s+10};t.resizeSensor.resetSensor=w;var C=function(){g=0,m&&(y=_.width,b=_.height,t.resizedAttached&&t.resizedAttached.call(_))},E=function(){_=i(t),(m=_.width!==y||_.height!==b)&&!g&&(g=e(C)),w()},S=function(t,e,n){t.attachEvent?t.attachEvent("on"+e,n):t.addEventListener(e,n)};S(a,"scroll",E),S(u,"scroll",E),l=e((function(){l=0,w()}))}}(t,a)})),this.detach=function(e){l||(n(l),l=0),o.detach(t,e)},this.reset=function(){t.resizeSensor.resetSensor()}};if(o.reset=function(t){s(t,(function(t){t.resizeSensor.resetSensor()}))},o.detach=function(t,e){s(t,(function(t){t&&(t.resizedAttached&&"function"==typeof e&&(t.resizedAttached.remove(e),t.resizedAttached.length())||t.resizeSensor&&(t.contains(t.resizeSensor)&&t.removeChild(t.resizeSensor),delete t.resizeSensor,delete t.resizedAttached))}))},"undefined"!=typeof MutationObserver){var a=new MutationObserver((function(t){for(var e in t)if(t.hasOwnProperty(e))for(var n=t[e].addedNodes,s=0;s<n.length;s++)n[s].resizeSensor&&o.reset(n[s])}));document.addEventListener("DOMContentLoaded",(function(t){a.observe(document.body,{childList:!0,subtree:!0})}))}return o})?s.call(e,n,e,t):s)||(t.exports=i)},zUnb:function(t,e,n){"use strict";function s(t){return"function"==typeof t}n.r(e);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}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const h=(()=>{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})();let u=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(s(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(a){e=a instanceof h?d(a.errors):[a]}}if(l(o)){let t=-1,n=o.length;for(;++t<n;){const n=o[t];if(c(n))try{n.unsubscribe()}catch(a){e=e||[],a instanceof h?e=e.concat(d(a.errors)):e.push(a)}}}if(e)throw new h(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:s}=n;if(null===s)n._parentOrParents=this;else if(s instanceof t){if(s===this)return n;n._parentOrParents=[s,this]}else{if(-1!==s.indexOf(this))return n;s.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function d(t){return t.reduce((t,e)=>t.concat(e instanceof h?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends u{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,t,e,n)}}[p](){return this}static create(t,e,n){const s=new f(t,e,n);return s.syncErrorThrowable=!1,s}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 m extends f{constructor(t,e,n,i){let r;super(),this._parentSubscriber=t;let o=this;s(e)?r=e:e&&(r=e.next,n=e.error,i=e.complete,e!==a&&(o=Object.create(e),s(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.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}=r;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):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.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(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(s){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(o(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(t){return t}let y=(()=>{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:s}=this,i=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(i.add(s?s.call(i,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),r.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=b(e))((e,n)=>{let s;s=this.subscribe(e=>{try{t(e)}catch(i){n(i),s&&s.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?_:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=b(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const v=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends u{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)}}class C extends f{constructor(t){super(t),this.destination=t}}let E=(()=>{class t extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(t){const e=new S(this,this);return e.operator=t,e}next(t){if(this.closed)throw new v;if(!this.isStopped){const{observers:e}=this,n=e.length,s=e.slice();for(let i=0;i<n;i++)s[i].next(t)}}error(t){if(this.closed)throw new v;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,s=e.slice();for(let i=0;i<n;i++)s[i].error(t);this.observers.length=0}complete(){if(this.closed)throw new v;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let s=0;s<e;s++)n[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new v;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new v;return this.hasError?(t.error(this.thrownError),u.EMPTY):this.isStopped?(t.complete(),u.EMPTY):(this.observers.push(t),new w(this,t))}asObservable(){const t=new y;return t.source=this,t}}return t.create=(t,e)=>new S(t,e),t})();class S extends E{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):u.EMPTY}}function x(t){return t&&"function"==typeof t.schedule}function T(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 k(t,e))}}class k{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 f{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)}}const I=t=>e=>{for(let n=0,s=t.length;n<s&&!e.closed;n++)e.next(t[n]);e.complete()};function R(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const A=R(),D=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function P(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const N=t=>{if(t&&"function"==typeof t[g])return s=t,t=>{const e=s[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(D(t))return I(t);if(P(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[A])return e=t,t=>{const n=e[A]();for(;;){let e;try{e=n.next()}catch(s){return t.error(s),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=c(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,s};function F(t,e){return new y(n=>{const s=new u;let i=0;return s.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||s.add(this.schedule())):n.complete()}))),s})}function L(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new y(n=>{const s=new u;return s.add(e.schedule(()=>{const i=t[g]();s.add(i.subscribe({next(t){s.add(e.schedule(()=>n.next(t)))},error(t){s.add(e.schedule(()=>n.error(t)))},complete(){s.add(e.schedule(()=>n.complete()))}}))})),s})}(t,e);if(P(t))return function(t,e){return new y(n=>{const s=new u;return s.add(e.schedule(()=>t.then(t=>{s.add(e.schedule(()=>{n.next(t),s.add(e.schedule(()=>n.complete()))}))},t=>{s.add(e.schedule(()=>n.error(t)))}))),s})}(t,e);if(D(t))return F(t,e);if(function(t){return t&&"function"==typeof t[A]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new y(n=>{const s=new u;let i;return s.add(()=>{i&&"function"==typeof i.return&&i.return()}),s.add(e.schedule(()=>{i=t[A](),s.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=i.next();t=n.value,e=n.done}catch(s){return void n.error(s)}e?n.complete():(n.next(t),this.schedule())})))})),s})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof y?t:new y(N(t))}class M extends f{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 j extends f{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function H(t,e){if(!e.closed)return t instanceof y?t.subscribe(e):N(t)(e)}function V(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?s=>s.pipe(V((n,s)=>L(t(n,s)).pipe(T((t,i)=>e(n,t,s,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new B(t,n)))}class B{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new z(t,this.project,this.concurrent))}}class z extends j{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(s){return void this.destination.error(s)}this.active++,this._innerSub(e)}_innerSub(t){const e=new M(this),n=this.destination;n.add(e);const s=H(t,e);s!==e&&n.add(s)}_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()}}function $(t=Number.POSITIVE_INFINITY){return V(_,t)}function W(t,e){return e?F(t,e):new y(I(t))}function q(...t){let e=Number.POSITIVE_INFINITY,n=null,s=t[t.length-1];return x(s)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof s&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof y?t[0]:$(e)(W(t,n))}function U(){return function(t){return t.lift(new Q(t))}}class Q{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const s=new Z(t,n),i=e.subscribe(s);return s.closed||(s.connection=n.connect()),i}}class Z extends f{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,s=t._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}class K extends 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 u,t.add(this.source.subscribe(new Y(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.EMPTY)),t}refCount(){return U()(this)}}const G=(()=>{const t=K.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 Y extends C{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()}}}function X(){return new E}function J(){return t=>{return U()((e=X,function(t){let n;n="function"==typeof e?e:function(){return e};const s=Object.create(t,G);return s.source=t,s.subjectFactory=n,s})(t));var e}}function tt(t){return{toString:t}.toString()}const et="__parameters__";function nt(t,e,n){return tt(()=>{const s=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function i(...t){if(this instanceof i)return s.apply(this,t),this;const e=new i(...t);return n.annotation=e,n;function n(t,n,s){const i=t.hasOwnProperty(et)?t[et]:Object.defineProperty(t,et,{value:[]})[et];for(;i.length<=s;)i.push(null);return(i[s]=i[s]||[]).push(e),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}const st=nt("Inject",t=>({token:t})),it=nt("Optional"),rt=nt("Self"),ot=nt("SkipSelf");var at=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function lt(t){for(let e in t)if(t[e]===lt)return e;throw Error("Could not find renamed property on target object.")}function ct(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ht(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ut(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function dt(t){return pt(t,t[mt])||pt(t,t[yt])}function pt(t,e){return e&&e.token===t?e:null}function ft(t){return t&&(t.hasOwnProperty(gt)||t.hasOwnProperty(bt))?t[gt]:null}const mt=lt({"\u0275prov":lt}),gt=lt({"\u0275inj":lt}),_t=lt({"\u0275provFallback":lt}),yt=lt({ngInjectableDef:lt}),bt=lt({ngInjectorDef:lt});function vt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(vt).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 wt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Ct=lt({__forward_ref__:lt});function Et(t){return t.__forward_ref__=Et,t.toString=function(){return vt(this())},t}function St(t){return xt(t)?t():t}function xt(t){return"function"==typeof t&&t.hasOwnProperty(Ct)&&t.__forward_ref__===Et}const Tt="undefined"!=typeof globalThis&&globalThis,kt="undefined"!=typeof window&&window,Ot="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,It="undefined"!=typeof global&&global,Rt=Tt||It||kt||Ot,At=lt({"\u0275cmp":lt}),Dt=lt({"\u0275dir":lt}),Pt=lt({"\u0275pipe":lt}),Nt=lt({"\u0275mod":lt}),Ft=lt({"\u0275loc":lt}),Lt=lt({"\u0275fac":lt}),Mt=lt({__NG_ELEMENT_ID__:lt});class jt{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=ht({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Ht=new jt("INJECTOR",-1),Vt={},Bt=/\n/gm,zt="__source",$t=lt({provide:String,useValue:lt});let Wt,qt=void 0;function Ut(t){const e=qt;return qt=t,e}function Qt(t){const e=Wt;return Wt=t,e}function Zt(t,e=at.Default){if(void 0===qt)throw new Error("inject() must be called from an injection context");return null===qt?Yt(t,void 0,e):qt.get(t,e&at.Optional?null:void 0,e)}function Kt(t,e=at.Default){return(Wt||Zt)(St(t),e)}const Gt=Kt;function Yt(t,e,n){const s=dt(t);if(s&&"root"==s.providedIn)return void 0===s.value?s.value=s.factory():s.value;if(n&at.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${vt(t)}]`)}function Xt(t){const e=[];for(let n=0;n<t.length;n++){const s=St(t[n]);if(Array.isArray(s)){if(0===s.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=at.Default;for(let e=0;e<s.length;e++){const i=s[e];i instanceof it||"Optional"===i.ngMetadataName||i===it?n|=at.Optional:i instanceof ot||"SkipSelf"===i.ngMetadataName||i===ot?n|=at.SkipSelf:i instanceof rt||"Self"===i.ngMetadataName||i===rt?n|=at.Self:t=i instanceof st||i===st?i.token:i}e.push(Kt(t,n))}else e.push(Kt(s))}return e}class Jt{get(t,e=Vt){if(e===Vt){const e=new Error(`NullInjectorError: No provider for ${vt(t)}!`);throw e.name="NullInjectorError",e}return e}}class te{}function ee(t,e){t.forEach(t=>Array.isArray(t)?ee(t,e):e(t))}function ne(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function se(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ie(t,e){const n=[];for(let s=0;s<t;s++)n.push(e);return n}function re(t,e,n){let s=ae(t,e);return s>=0?t[1|s]=n:(s=~s,function(t,e,n,s){let i=t.length;if(i==e)t.push(n,s);else if(1===i)t.push(s,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=s}}(t,s,e,n)),s}function oe(t,e){const n=ae(t,e);if(n>=0)return t[1|n]}function ae(t,e){return function(t,e,n){let s=0,i=t.length>>1;for(;i!==s;){const n=s+(i-s>>1),r=t[n<<1];if(e===r)return n<<1;r>e?i=n:s=n+1}return~(i<<1)}(t,e)}var le=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),ce=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const he={},ue=[];let de=0;function pe(t){return tt(()=>{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===le.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ue,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ce.Emulated,id:"c",styles:t.styles||ue,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,i=t.features,r=t.pipes;return n.id+=de++,n.inputs=ye(t.inputs,e),n.outputs=ye(t.outputs),i&&i.forEach(t=>t(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map(fe):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(me):null,n})}function fe(t){return we(t)||function(t){return t[Dt]||null}(t)}function me(t){return function(t){return t[Pt]||null}(t)}const ge={};function _e(t){const e={type:t.type,bootstrap:t.bootstrap||ue,declarations:t.declarations||ue,imports:t.imports||ue,exports:t.exports||ue,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&tt(()=>{ge[t.id]=t.type}),e}function ye(t,e){if(null==t)return he;const n={};for(const s in t)if(t.hasOwnProperty(s)){let i=t[s],r=i;Array.isArray(i)&&(r=i[1],i=i[0]),n[i]=s,e&&(e[i]=r)}return n}const be=pe;function ve(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function we(t){return t[At]||null}function Ce(t,e){return t.hasOwnProperty(Lt)?t[Lt]:null}function Ee(t,e){const n=t[Nt]||null;if(!n&&!0===e)throw new Error(`Type ${vt(t)} does not have '\u0275mod' property.`);return n}const Se=20,xe=10;function Te(t){return Array.isArray(t)&&"object"==typeof t[1]}function ke(t){return Array.isArray(t)&&!0===t[1]}function Oe(t){return 0!=(8&t.flags)}function Ie(t){return 2==(2&t.flags)}function Re(t){return 1==(1&t.flags)}function Ae(t){return null!==t.template}function De(t){return 0!=(512&t[2])}class Pe{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ne(){return Fe}function Fe(t){return t.type.prototype.ngOnChanges&&(t.setInput=Me),Le}function Le(){const t=je(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===he)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Me(t,e,n,s){const i=je(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:he,current:null}),r=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[n],l=o[a];r[a]=new Pe(l&&l.currentValue,e,o===he),t[s]=e}function je(t){return t.__ngSimpleChanges__||null}Ne.ngInherit=!0;let He=void 0;function Ve(){return void 0!==He?He:"undefined"!=typeof document?document:void 0}function Be(t){return!!t.listen}const ze={createRenderer:(t,e)=>Ve()};function $e(t){for(;Array.isArray(t);)t=t[0];return t}function We(t,e){return $e(e[t+Se])}function qe(t,e){return $e(e[t.index])}function Ue(t,e){return t.data[e+Se]}function Qe(t,e){return t[e+Se]}function Ze(t,e){const n=e[t];return Te(n)?n:n[0]}function Ke(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ge(t){return 4==(4&t[2])}function Ye(t){return 128==(128&t[2])}function Xe(t,e){return null===t||null==e?null:t[e]}function Je(t){t[18]=0}function tn(t,e){t[5]+=e;let n=t,s=t[3];for(;null!==s&&(1===e&&1===n[5]||-1===e&&0===n[5]);)s[5]+=e,n=s,s=s[3]}const en={lFrame:Cn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function nn(){return en.bindingsEnabled}function sn(){return en.lFrame.lView}function rn(){return en.lFrame.tView}function on(t){en.lFrame.contextLView=t}function an(){return en.lFrame.previousOrParentTNode}function ln(t,e){en.lFrame.previousOrParentTNode=t,en.lFrame.isParent=e}function cn(){return en.lFrame.isParent}function hn(){en.lFrame.isParent=!1}function un(){return en.checkNoChangesMode}function dn(t){en.checkNoChangesMode=t}function pn(){return en.lFrame.bindingIndex++}function fn(t){const e=en.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function mn(t,e){const n=en.lFrame;n.bindingIndex=n.bindingRootIndex=t,gn(e)}function gn(t){en.lFrame.currentDirectiveIndex=t}function _n(){return en.lFrame.currentQueryIndex}function yn(t){en.lFrame.currentQueryIndex=t}function bn(t,e){const n=wn();en.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function vn(t,e){const n=wn(),s=t[1];en.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=s,n.contextLView=t,n.bindingIndex=s.bindingStartIndex}function wn(){const t=en.lFrame,e=null===t?null:t.child;return null===e?Cn(t):e}function Cn(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function En(){const t=en.lFrame;return en.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const Sn=En;function xn(){const t=En();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Tn(){return en.lFrame.selectedIndex}function kn(t){en.lFrame.selectedIndex=t}function On(){const t=en.lFrame;return Ue(t.tView,t.selectedIndex)}function In(t,e){for(let n=e.directiveStart,s=e.directiveEnd;n<s;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:i,ngAfterViewInit:r,ngAfterViewChecked:o,ngOnDestroy:a}=e;s&&(t.contentHooks||(t.contentHooks=[])).push(-n,s),i&&((t.contentHooks||(t.contentHooks=[])).push(n,i),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,i)),r&&(t.viewHooks||(t.viewHooks=[])).push(-n,r),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function Rn(t,e,n){Pn(t,e,3,n)}function An(t,e,n,s){(3&t[2])===n&&Pn(t,e,n,s)}function Dn(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Pn(t,e,n,s){const i=null!=s?s:-1;let r=0;for(let o=void 0!==s?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(r=e[o],null!=s&&r>=s)break}else e[o]<0&&(t[18]+=65536),(r<i||-1==i)&&(Nn(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Nn(t,e,n,s){const i=n[s]<0,r=n[s+1],o=t[i?-n[s]:n[s]];i?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}class Fn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ln(t,e,n){const s=Be(t);let i=0;for(;i<n.length;){const r=n[i];if("number"==typeof r){if(0!==r)break;i++;const o=n[i++],a=n[i++],l=n[i++];s?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=r,a=n[++i];jn(o)?s&&t.setProperty(e,o,a):s?t.setAttribute(e,o,a):e.setAttribute(o,a),i++}}return i}function Mn(t){return 3===t||4===t||6===t}function jn(t){return 64===t.charCodeAt(0)}function Hn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let s=0;s<e.length;s++){const i=e[s];"number"==typeof i?n=i:0===n||Vn(t,n,i,null,-1===n||2===n?e[++s]:null)}}return t}function Vn(t,e,n,s,i){let r=0,o=t.length;if(-1===e)o=-1;else for(;r<t.length;){const n=t[r++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=r-1;break}}}for(;r<t.length;){const e=t[r];if("number"==typeof e)break;if(e===n){if(null===s)return void(null!==i&&(t[r+1]=i));if(s===t[r+1])return void(t[r+2]=i)}r++,null!==s&&r++,null!==i&&r++}-1!==o&&(t.splice(o,0,e),r=o+1),t.splice(r++,0,n),null!==s&&t.splice(r++,0,s),null!==i&&t.splice(r++,0,i)}function Bn(t){return-1!==t}function zn(t){return 32767&t}function $n(t){return t>>16}function Wn(t,e){let n=$n(t),s=e;for(;n>0;)s=s[15],n--;return s}function qn(t){return"string"==typeof t?t:null==t?"":""+t}function Un(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():qn(t)}const Qn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Rt))();function Zn(t){return{name:"body",target:t.ownerDocument.body}}function Kn(t){return t instanceof Function?t():t}let Gn=!0;function Yn(t){const e=Gn;return Gn=t,e}let Xn=0;function Jn(t,e){const n=es(t,e);if(-1!==n)return n;const s=e[1];s.firstCreatePass&&(t.injectorIndex=e.length,ts(s.data,t),ts(e,null),ts(s.blueprint,null));const i=ns(t,e),r=t.injectorIndex;if(Bn(i)){const t=zn(i),n=Wn(i,e),s=n[1].data;for(let i=0;i<8;i++)e[r+i]=n[t+i]|s[t+i]}return e[r+8]=i,r}function ts(t,e){t.push(0,0,0,0,0,0,0,0,e)}function es(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function ns(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],s=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,s++;return n?n.injectorIndex|s<<16:-1}function ss(t,e,n){!function(t,e,n){let s;"string"==typeof n?s=n.charCodeAt(0)||0:n.hasOwnProperty(Mt)&&(s=n[Mt]),null==s&&(s=n[Mt]=Xn++);const i=255&s,r=1<<i,o=64&i,a=32&i,l=e.data;128&i?o?a?l[t+7]|=r:l[t+6]|=r:a?l[t+5]|=r:l[t+4]|=r:o?a?l[t+3]|=r:l[t+2]|=r:a?l[t+1]|=r:l[t]|=r}(t,e,n)}function is(t,e,n,s=at.Default,i){if(null!==t){const i=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Mt)?t[Mt]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof i){bn(e,t);try{const t=i();if(null!=t||s&at.Optional)return t;throw new Error(`No provider for ${Un(n)}!`)}finally{Sn()}}else if("number"==typeof i){if(-1===i)return new us(t,e);let r=null,o=es(t,e),a=-1,l=s&at.Host?e[16][6]:null;for((-1===o||s&at.SkipSelf)&&(a=-1===o?ns(t,e):e[o+8],hs(s,!1)?(r=e[1],o=zn(a),e=Wn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(cs(i,o,t.data)){const t=os(o,e,n,r,s,l);if(t!==rs)return t}hs(s,e[1].data[o+8]===l)&&cs(i,o,e)?(r=t,o=zn(a),e=Wn(a,e)):o=-1}}}if(s&at.Optional&&void 0===i&&(i=null),0==(s&(at.Self|at.Host))){const t=e[9],r=Qt(void 0);try{return t?t.get(n,i,s&at.Optional):Yt(n,i,s&at.Optional)}finally{Qt(r)}}if(s&at.Optional)return i;throw new Error(`NodeInjector: NOT_FOUND [${Un(n)}]`)}const rs={};function os(t,e,n,s,i,r){const o=e[1],a=o.data[t+8],l=as(a,o,n,null==s?Ie(a)&&Gn:s!=o&&3===a.type,i&at.Host&&r===a);return null!==l?ls(e,o,l,a):rs}function as(t,e,n,s,i){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,h=i?a+c:t.directiveEnd;for(let u=s?a:a+c;u<h;u++){const t=o[u];if(u<l&&n===t||u>=l&&t.type===n)return u}if(i){const t=o[l];if(t&&Ae(t)&&t.type===n)return l}return null}function ls(t,e,n,s){let i=t[n];const r=e.data;if(i instanceof Fn){const o=i;if(o.resolving)throw new Error("Circular dep for "+Un(r[n]));const a=Yn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=Qt(o.injectImpl)),bn(t,s);try{i=t[n]=o.factory(void 0,r,t,s),e.firstCreatePass&&n>=s.directiveStart&&function(t,e,n){const{ngOnChanges:s,ngOnInit:i,ngDoCheck:r}=e.type.prototype;if(s){const s=Fe(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{o.injectImpl&&Qt(l),Yn(a),o.resolving=!1,Sn()}}return i}function cs(t,e,n){const s=64&t,i=32&t;let r;return r=128&t?s?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:s?i?n[e+3]:n[e+2]:i?n[e+1]:n[e],!!(r&1<<t)}function hs(t,e){return!(t&at.Self||t&at.Host&&e)}class us{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return is(this._tNode,this._lView,t,void 0,e)}}function ds(t){const e=t;if(xt(t))return()=>{const t=ds(St(e));return t?t():null};let n=Ce(e);if(null===n){const t=ft(e);n=t&&t.factory}return n||null}function ps(t){return tt(()=>{const e=t.prototype.constructor,n=e[Lt]||ds(e),s=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==s;){const t=i[Lt]||ds(i);if(t&&t!==n)return t;i=Object.getPrototypeOf(i)}return t=>new t})}function fs(t){return t.ngDebugContext}function ms(t){return t.ngOriginalError}function gs(t,...e){t.error(...e)}class _s{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),s=function(t){return t.ngErrorLogger||gs}(t);s(this._console,"ERROR",t),e&&s(this._console,"ORIGINAL ERROR",e),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?fs(t)?fs(t):this._findContext(ms(t)):null}_findOriginalError(t){let e=ms(t);for(;e&&ms(e);)e=ms(e);return e}}class ys{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class bs extends ys{getTypeName(){return"HTML"}}class vs extends ys{getTypeName(){return"Style"}}class ws extends ys{getTypeName(){return"Script"}}class Cs extends ys{getTypeName(){return"URL"}}class Es extends ys{getTypeName(){return"ResourceURL"}}function Ss(t){return t instanceof ys?t.changingThisBreaksApplicationSecurity:t}function xs(t,e){const n=Ts(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Ts(t){return t instanceof ys&&t.getTypeName()||null}let ks=!0,Os=!1;function Is(){return Os=!0,ks}class Rs{getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class As{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=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let s=e.length-1;0<s;s--){const n=e.item(s).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 Ds=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Ps=/^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 Ns(t){return(t=String(t)).match(Ds)||t.match(Ps)?t:(Is()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function Fs(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Ls(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Ms=Fs("area,br,col,hr,img,wbr"),js=Fs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Hs=Fs("rp,rt"),Vs=Ls(Hs,js),Bs=Ls(Ms,Ls(js,Fs("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")),Ls(Hs,Fs("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")),Vs),zs=Fs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),$s=Fs("srcset"),Ws=Ls(zs,$s,Fs("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"),Fs("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")),qs=Fs("script,style,template");class Us{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(!Bs.hasOwnProperty(e))return this.sanitizedSomething=!0,!qs.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let i=0;i<n.length;i++){const t=n.item(i),e=t.name,r=e.toLowerCase();if(!Ws.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=t.value;zs[r]&&(o=Ns(o)),$s[r]&&(s=o,o=(s=String(s)).split(",").map(t=>Ns(t.trim())).join(", ")),this.buf.push(" ",e,'="',Ks(o),'"')}var s;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Bs.hasOwnProperty(e)&&!Ms.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Ks(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 Qs=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zs=/([^\#-~ |!])/g;function Ks(t){return t.replace(/&/g,"&amp;").replace(Qs,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Zs,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Gs;function Ys(t,e){let n=null;try{Gs=Gs||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Rs:new As(t)}(t);let s=e?String(e):"";n=Gs.getInertBodyElement(s);let i=5,r=s;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,s=r,r=n.innerHTML,n=Gs.getInertBodyElement(s)}while(s!==r);const o=new Us,a=o.sanitizeChildren(Xs(n)||n);return Is()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Xs(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Xs(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Js=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function ti(t){const e=function(){const t=sn();return t&&t[12]}();return e?e.sanitize(Js.HTML,t)||"":xs(t,"HTML")?Ss(t):Ys(Ve(),qn(t))}function ei(t,e){t.__ngContext__=e}function ni(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function si(){throw new Error("Cannot mix multi providers and regular providers")}function ii(t,e,n){let s=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const n=e.length;if(i+n===s||t.charCodeAt(i+n)<=32)return i}n=i+1}}const ri="ng-template";function oi(t,e,n){let s=0;for(;s<t.length;){let i=t[s++];if(n&&"class"===i){if(i=t[s],-1!==ii(i.toLowerCase(),e,0))return!0}else if(1===i){for(;s<t.length&&"string"==typeof(i=t[s++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function ai(t){return 0===t.type&&t.tagName!==ri}function li(t,e,n){return e===(0!==t.type||n?t.tagName:ri)}function ci(t,e,n){let s=4;const i=t.attrs||[],r=function(t){for(let e=0;e<t.length;e++)if(Mn(t[e]))return e;return t.length}(i);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&s){if(s=2|1&s,""!==l&&!li(t,l,n)||""===l&&1===e.length){if(hi(s))return!1;o=!0}}else{const c=8&s?l:e[++a];if(8&s&&null!==t.attrs){if(!oi(t.attrs,c,n)){if(hi(s))return!1;o=!0}continue}const h=ui(8&s?"class":l,i,ai(t),n);if(-1===h){if(hi(s))return!1;o=!0;continue}if(""!==c){let t;t=h>r?"":i[h+1].toLowerCase();const e=8&s?t:null;if(e&&-1!==ii(e,c,0)||2&s&&c!==t){if(hi(s))return!1;o=!0}}}}else{if(!o&&!hi(s)&&!hi(l))return!1;if(o&&hi(l))continue;o=!1,s=l|1&s}}return hi(s)||o}function hi(t){return 0==(1&t)}function ui(t,e,n,s){if(null===e)return-1;let i=0;if(s||!n){let n=!1;for(;i<e.length;){const s=e[i];if(s===t)return i;if(3===s||6===s)n=!0;else{if(1===s||2===s){let t=e[++i];for(;"string"==typeof t;)t=e[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const s=t[n];if("number"==typeof s)return-1;if(s===e)return n;n++}return-1}(e,t)}function di(t,e,n=!1){for(let s=0;s<e.length;s++)if(ci(t,e[s],n))return!0;return!1}function pi(t,e){t:for(let n=0;n<e.length;n++){const s=e[n];if(t.length===s.length){for(let e=0;e<t.length;e++)if(t[e]!==s[e])continue t;return!0}}return!1}function fi(t,e){return t?":not("+e.trim()+")":e}function mi(t){let e=t[0],n=1,s=2,i="",r=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&s){const e=t[++n];i+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&s?i+="."+o:4&s&&(i+=" "+o);else""===i||hi(o)||(e+=fi(r,i),i=""),s=o,r=r||!hi(s);n++}return""!==i&&(e+=fi(r,i)),e}const gi={};function _i(t){const e=t[3];return ke(e)?e[3]:e}function yi(t){return vi(t[13])}function bi(t){return vi(t[4])}function vi(t){for(;null!==t&&!ke(t);)t=t[4];return t}function wi(t){Ci(rn(),sn(),Tn()+t,un())}function Ci(t,e,n,s){if(!s)if(3==(3&e[2])){const s=t.preOrderCheckHooks;null!==s&&Rn(e,s,n)}else{const s=t.preOrderHooks;null!==s&&An(e,s,0,n)}kn(n)}function Ei(t,e){return t<<17|e<<2}function Si(t){return t>>17&32767}function xi(t){return 2|t}function Ti(t){return(131068&t)>>2}function ki(t,e){return-131069&t|e<<2}function Oi(t){return 1|t}function Ii(t,e){const n=t.contentQueries;if(null!==n)for(let s=0;s<n.length;s+=2){const i=n[s],r=n[s+1];if(-1!==r){const n=t.data[r];yn(i),n.contentQueries(2,e[r],r)}}}function Ri(t,e,n){return Be(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Ai(t,e,n,s,i,r,o,a,l,c){const h=e.blueprint.slice();return h[0]=i,h[2]=140|s,Je(h),h[3]=h[15]=t,h[8]=n,h[10]=o||t&&t[10],h[11]=a||t&&t[11],h[12]=l||t&&t[12]||null,h[9]=c||t&&t[9]||null,h[6]=r,h[16]=2==e.type?t[16]:h,h}function Di(t,e,n,s,i,r){const o=n+Se,a=t.data[o]||function(t,e,n,s,i,r){const o=an(),a=cn(),l=a?o:o&&o.parent,c=t.data[n]=$i(0,l&&l!==e?l:null,s,n,i,r);return null===t.firstChild&&(t.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(t,e,o,s,i,r);return ln(a,!0),a}function Pi(t,e,n){vn(e,e[6]);try{const s=t.viewQuery;null!==s&&hr(1,s,n);const i=t.template;null!==i&&Li(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Ii(t,e),t.staticViewQueries&&hr(2,t.viewQuery,n);const r=t.components;null!==r&&function(t,e){for(let n=0;n<e.length;n++)rr(t,e[n])}(e,r)}catch(s){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),s}finally{e[2]&=-5,xn()}}function Ni(t,e,n,s){const i=e[2];if(256==(256&i))return;vn(e,e[6]);const r=un();try{Je(e),en.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Li(t,e,n,2,s);const o=3==(3&i);if(!r)if(o){const n=t.preOrderCheckHooks;null!==n&&Rn(e,n,null)}else{const n=t.preOrderHooks;null!==n&&An(e,n,0,null),Dn(e,0)}if(function(t){for(let e=yi(t);null!==e;e=bi(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],s=n[3];0==(1024&n[2])&&tn(s,1),n[2]|=1024}}}(e),function(t){for(let e=yi(t);null!==e;e=bi(e))for(let t=xe;t<e.length;t++){const n=e[t],s=n[1];Ye(n)&&Ni(s,n,s.template,n[8])}}(e),null!==t.contentQueries&&Ii(t,e),!r)if(o){const n=t.contentCheckHooks;null!==n&&Rn(e,n)}else{const n=t.contentHooks;null!==n&&An(e,n,1),Dn(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let s=t.expandoStartIndex,i=-1,r=-1;for(let t=0;t<n.length;t++){const o=n[t];"number"==typeof o?o<=0?(r=0-o,kn(r),s+=9+n[++t],i=s):s+=o:(null!==o&&(mn(s,i),o(2,e[i])),i++)}}}finally{kn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)ir(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&hr(2,l,s),!r)if(o){const n=t.viewCheckHooks;null!==n&&Rn(e,n)}else{const n=t.viewHooks;null!==n&&An(e,n,2),Dn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,tn(e[3],-1))}finally{xn()}}function Fi(t,e,n,s){const i=e[10],r=!un(),o=Ge(e);try{r&&!o&&i.begin&&i.begin(),o&&Pi(t,e,s),Ni(t,e,n,s)}finally{r&&!o&&i.end&&i.end()}}function Li(t,e,n,s,i){const r=Tn();try{kn(-1),2&s&&e.length>Se&&Ci(t,e,0,un()),n(s,i)}finally{kn(r)}}function Mi(t,e,n){if(Oe(e)){const s=e.directiveEnd;for(let i=e.directiveStart;i<s;i++){const e=t.data[i];e.contentQueries&&e.contentQueries(1,n[i],i)}}}function ji(t,e,n){nn()&&(function(t,e,n,s){const i=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||Jn(n,e),ei(s,e);const o=n.initialInputs;for(let a=i;a<r;a++){const s=t.data[a],r=Ae(s);r&&tr(e,n,s);const l=ls(e,t,a,n);ei(l,e),null!==o&&er(0,a-i,l,s,0,o),r&&(Ze(n.index,e)[8]=l)}}(t,e,n,qe(n,e)),128==(128&n.flags)&&function(t,e,n){const s=n.directiveStart,i=n.directiveEnd,r=t.expandoInstructions,o=t.firstCreatePass,a=n.index-Se,l=en.lFrame.currentDirectiveIndex;try{kn(a);for(let n=s;n<i;n++){const s=t.data[n],i=e[n];gn(n),null!==s.hostBindings||0!==s.hostVars||null!==s.hostAttrs?Zi(s,i):o&&r.push(null)}}finally{kn(-1),gn(l)}}(t,e,n))}function Hi(t,e,n=qe){const s=e.localNames;if(null!==s){let i=e.index+1;for(let r=0;r<s.length;r+=2){const o=s[r+1],a=-1===o?n(e,t):t[o];t[i++]=a}}}function Vi(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Bi(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Bi(t,e,n,s,i,r,o,a,l,c){const h=Se+s,u=h+i,d=function(t,e){const n=[];for(let s=0;s<e;s++)n.push(s<t?null:gi);return n}(h,u),p="function"==typeof c?c():c;return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:u,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function zi(t,e,n,s){const i=dr(e);i.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(s,i.length-1)}function $i(t,e,n,s,i,r){return{type:n,index:s,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Wi(t,e,n){for(let s in t)if(t.hasOwnProperty(s)){const i=t[s];(n=null===n?{}:n).hasOwnProperty(s)?n[s].push(e,i):n[s]=[e,i]}return n}function qi(t,e,n,s){let i=!1;if(nn()){const r=function(t,e,n){const s=t.directiveRegistry;let i=null;if(s)for(let r=0;r<s.length;r++){const o=s[r];di(n,o.selectors,!1)&&(i||(i=[]),ss(Jn(n,e),t,o.type),Ae(o)?(2&n.flags&&ni(n),Gi(t,n),i.unshift(o)):i.push(o))}return i}(t,e,n),o=null===s?null:{"":-1};if(null!==r){let s=0;i=!0,Xi(n,t.data.length,r.length);for(let t=0;t<r.length;t++){const e=r[t];e.providersResolver&&e.providersResolver(e)}Ki(t,n,r.length);let a=!1,l=!1;for(let i=0;i<r.length;i++){const c=r[i];n.mergedAttrs=Hn(n.mergedAttrs,c.hostAttrs),Ji(t,e,c),Yi(t.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const h=c.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-Se),a=!0),l||!h.ngOnChanges&&!h.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-Se),l=!0),Ui(t,c),s+=c.hostVars}!function(t,e){const n=e.directiveEnd,s=t.data,i=e.attrs,r=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=s[l],n=t.inputs,c=null===i||ai(e)?null:nr(n,i);r.push(c),o=Wi(n,l,o),a=Wi(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=r,e.inputs=o,e.outputs=a}(t,n),Qi(t,e,s)}o&&function(t,e,n){if(e){const s=t.localNames=[];for(let t=0;t<e.length;t+=2){const i=n[e[t+1]];if(null==i)throw new Error(`Export of name '${e[t+1]}' not found!`);s.push(e[t],i)}}}(n,s,o)}return n.mergedAttrs=Hn(n.mergedAttrs,n.attrs),i}function Ui(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function Qi(t,e,n){for(let s=0;s<n;s++)e.push(gi),t.blueprint.push(gi),t.data.push(null)}function Zi(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ki(t,e,n){const s=Se-e.index,i=t.data.length-(1048575&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(s,i,n)}function Gi(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Yi(t,e,n){if(n){if(e.exportAs)for(let s=0;s<e.exportAs.length;s++)n[e.exportAs[s]]=t;Ae(e)&&(n[""]=t)}}function Xi(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Ji(t,e,n){t.data.push(n);const s=n.factory||(n.factory=Ce(n.type)),i=new Fn(s,Ae(n),null);t.blueprint.push(i),e.push(i)}function tr(t,e,n){const s=qe(e,t),i=Vi(n),r=t[10],o=or(t,Ai(t,i,null,n.onPush?64:16,s,e,r,r.createRenderer(s,n)));t[e.index]=o}function er(t,e,n,s,i,r){const o=r[e];if(null!==o){const t=s.setInput;for(let e=0;e<o.length;){const i=o[e++],r=o[e++],a=o[e++];null!==t?s.setInput(n,a,i,r):n[r]=a}}}function nr(t,e){let n=null,s=0;for(;s<e.length;){const i=e[s];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[s+1])),s+=2}else s+=2;else s+=4}return n}function sr(t,e,n,s){return new Array(t,!0,!1,e,null,0,s,n,null,null)}function ir(t,e){const n=Ze(e,t);if(Ye(n)){const t=n[1];80&n[2]?Ni(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let s=yi(e);null!==s;s=bi(s))for(let e=xe;e<s.length;e++){const n=s[e];if(1024&n[2]){const t=n[1];Ni(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let s=0;s<n.length;s++){const i=Ze(n[s],e);Ye(i)&&i[5]>0&&t(i)}}(n)}}function rr(t,e){const n=Ze(e,t),s=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(s,n),Pi(s,n,n[8])}function or(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function ar(t){for(;t;){t[2]|=64;const e=_i(t);if(De(t)&&!e)return t;t=e}return null}function lr(t,e,n){const s=e[10];s.begin&&s.begin();try{Ni(t,e,t.template,n)}catch(i){throw pr(e,i),i}finally{s.end&&s.end()}}function cr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],s=Ke(n),i=s[1];Fi(i,s,i.template,n)}}(t[8])}function hr(t,e,n){yn(0),e(t,n)}const ur=(()=>Promise.resolve(null))();function dr(t){return t[7]||(t[7]=[])}function pr(t,e){const n=t[9],s=n?n.get(_s,null):null;s&&s.handleError(e)}function fr(t,e,n,s,i){for(let r=0;r<n.length;){const o=n[r++],a=n[r++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,i,s,a):l[a]=i}}function mr(t,e){const n=e[3];return-1===t.index?ke(n)?n:null:n}function gr(t,e){const n=mr(t,e);return n?Or(e[11],n[7]):null}function _r(t,e,n,s,i){if(null!=s){let r,o=!1;ke(s)?r=s:Te(s)&&(o=!0,s=s[0]);const a=$e(s);0===t&&null!==n?null==i?Tr(e,n,a):xr(e,n,a,i||null):1===t&&null!==n?xr(e,n,a,i||null):2===t?function(t,e,n){const s=Or(t,e);s&&function(t,e,n,s){Be(t)?t.removeChild(e,n,s):e.removeChild(n)}(t,s,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,s,i){const r=n[7];r!==$e(n)&&_r(e,t,s,r,i);for(let o=xe;o<n.length;o++){const i=n[o];Pr(i[1],i,t,e,s,r)}}(e,t,r,n,i)}}function yr(t,e,n,s){const i=gr(t.node,e);i&&Pr(t,e,e[11],n?1:2,i,s)}function br(t,e){const n=t[9],s=n.indexOf(e);1024&e[2]&&tn(e[3],-1),n.splice(s,1)}function vr(t,e){if(t.length<=xe)return;const n=xe+e,s=t[n];if(s){const i=s[17];null!==i&&i!==t&&br(i,s),e>0&&(t[n-1][4]=s[4]);const r=se(t,xe+e);yr(s[1],s,!1,null);const o=r[19];null!==o&&o.detachView(r[1]),s[3]=null,s[4]=null,s[2]&=-129}return s}function wr(t,e){if(!(256&e[2])){const n=e[11];Be(n)&&n.destroyNode&&Pr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Er(t[1],t);for(;e;){let n=null;if(Te(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Te(e)&&Er(e[1],e),e=Cr(e,t);null===e&&(e=t),Te(e)&&Er(e[1],e),n=e&&e[4]}e=n}}(e)}}function Cr(t,e){let n;return Te(t)&&(n=t[6])&&2===n.type?mr(n,t):t[3]===e?null:t[3]}function Er(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 s=0;s<n.length;s+=2){const t=e[n[s]];if(!(t instanceof Fn)){const e=n[s+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const i=n[s+1],r="function"==typeof i?i(e):$e(e[i]),o=t[n[s+2]],a=n[s+3];"boolean"==typeof a?r.removeEventListener(n[s],o,a):a>=0?t[a]():t[-a].unsubscribe(),s+=2}else n[s].call(t[n[s+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Be(e[11])&&e[11].destroy();const s=e[17];if(null!==s&&ke(e[3])){s!==e[3]&&br(s,e);const n=e[19];null!==n&&n.detachView(t)}}}function Sr(t,e,n){let s=e.parent;for(;null!=s&&(4===s.type||5===s.type);)s=(e=s).parent;if(null==s){const t=n[6];return 2===t.type?gr(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return qe(e,n).parentNode;if(2&s.flags){const e=t.data,n=e[e[s.index].directiveStart].encapsulation;if(n!==ce.ShadowDom&&n!==ce.Native)return null}return qe(s,n)}function xr(t,e,n,s){Be(t)?t.insertBefore(e,n,s):e.insertBefore(n,s,!0)}function Tr(t,e,n){Be(t)?t.appendChild(e,n):e.appendChild(n)}function kr(t,e,n,s){null!==s?xr(t,e,n,s):Tr(t,e,n)}function Or(t,e){return Be(t)?t.parentNode(e):e.parentNode}function Ir(t,e){if(2===t.type){const n=mr(t,e);return null===n?null:Ar(n.indexOf(e,xe)-xe,n)}return 4===t.type||5===t.type?qe(t,e):null}function Rr(t,e,n,s){const i=Sr(t,s,e);if(null!=i){const t=e[11],r=Ir(s.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)kr(t,i,n[e],r);else kr(t,i,n,r)}}function Ar(t,e){const n=xe+t+1;if(n<e.length){const t=e[n],s=t[1].firstChild;if(null!==s)return function t(e,n){if(null!==n){const s=n.type;if(3===s)return qe(n,e);if(0===s)return Ar(-1,e[n.index]);if(4===s||5===s){const s=n.child;if(null!==s)return t(e,s);{const t=e[n.index];return ke(t)?Ar(-1,t):$e(t)}}{const s=e[16],i=s[6],r=_i(s),o=i.projection[n.projection];return null!=o?t(r,o):t(e,n.next)}}return null}(t,s)}return e[7]}function Dr(t,e,n,s,i,r,o){for(;null!=n;){const a=s[n.index],l=n.type;o&&0===e&&(a&&ei($e(a),s),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(Dr(t,e,n.child,s,i,r,!1),_r(e,t,i,a,r)):1===l?Nr(t,e,s,n,i,r):_r(e,t,i,a,r)),n=o?n.projectionNext:n.next}}function Pr(t,e,n,s,i,r){Dr(n,s,t.node.child,e,i,r,!1)}function Nr(t,e,n,s,i,r){const o=n[16],a=o[6].projection[s.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)_r(e,t,i,a[l],r);else Dr(t,e,a,o[3],i,r,!0)}function Fr(t,e,n){Be(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Lr(t,e,n){Be(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Mr{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,s,i,r=!1){for(;null!==s;){const o=n[s.index];if(null!==o&&i.push($e(o)),ke(o))for(let e=xe;e<o.length;e++){const n=o[e],s=n[1].firstChild;null!==s&&t(n[1],n,s,i)}const a=s.type;if(4===a||5===a)t(e,n,s.child,i);else if(1===a){const e=n[16],r=e[6].projection[s.projection];if(Array.isArray(r))i.push(...r);else{const n=_i(e);t(n[1],n,r,i,!0)}}s=r?s.projectionNext:s.next}return i}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}wr(this._lView[1],this._lView)}onDestroy(t){zi(this._lView[1],this._lView,null,t)}markForCheck(){ar(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){lr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){dn(!0);try{lr(t,e,n)}finally{dn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Pr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class jr extends Mr{constructor(t){super(t),this._view=t}detectChanges(){cr(this._view)}checkNoChanges(){!function(t){dn(!0);try{cr(t)}finally{dn(!1)}}(this._view)}get context(){return null}}let Hr,Vr,Br;function zr(t,e,n){return Hr||(Hr=class extends t{}),new Hr(qe(e,n))}function $r(t,e,n,s){return Vr||(Vr=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ai(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const s=this._declarationView[19];return null!==s&&(n[19]=s.createEmbeddedView(e)),Pi(e,n,t),new Mr(n)}}),0===n.type?new Vr(s,n,zr(e,n,s)):null}function Wr(t,e,n,s){let i;Br||(Br=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return zr(e,this._hostTNode,this._hostView)}get injector(){return new us(this._hostTNode,this._hostView)}get parentInjector(){const t=ns(this._hostTNode,this._hostView),e=Wn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let s=$n(t),i=e,r=e[6];for(;s>1;)i=i[15],r=i[6],s--;return r}(t,this._hostView,this._hostTNode);return Bn(t)&&null!=n?new us(n,e):new us(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-xe}createEmbeddedView(t,e,n){const s=t.createEmbeddedView(e||{});return this.insert(s,n),s}createComponent(t,e,n,s,i){const r=n||this.parentInjector;if(!i&&null==t.ngModule&&r){const t=r.get(te,null);t&&(i=t)}const o=t.create(r,s,void 0,i);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,s=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),ke(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],s=new Br(e,e[6],e[3]);s.detach(s.indexOf(t))}}const i=this._adjustIndex(e);return function(t,e,n,s){const i=xe+s,r=n.length;s>0&&(n[i-1][4]=e),s<r-xe?(e[4]=n[i],ne(n,xe+s,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}(s,n,this._lContainer,i),yr(s,n,!0,Ar(i,this._lContainer)),t.attachToViewContainerRef(this),ne(this._lContainer[8],i,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=vr(this._lContainer,e);n&&(se(this._lContainer[8],e),wr(n[1],n))}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=vr(this._lContainer,e);return n&&null!=se(this._lContainer[8],e)?new Mr(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const r=s[n.index];if(ke(r))i=r;else{let t;if(4===n.type)t=$e(r);else if(t=s[11].createComment(""),De(s)){const e=s[11],i=qe(n,s);xr(e,Or(e,i),t,function(t,e){return Be(t)?t.nextSibling(e):e.nextSibling}(e,i))}else Rr(s[1],s,t,n);s[n.index]=i=sr(r,s,t,n),or(s,i)}return new Br(i,n,s)}function qr(t=!1){return function(t,e,n){if(!n&&Ie(t)){const n=Ze(t.index,e);return new Mr(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Mr(e[16],e):null}(an(),sn(),t)}let Ur=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Qr(),t})();const Qr=qr,Zr=new jt("Set Injector scope."),Kr={},Gr={},Yr=[];let Xr=void 0;function Jr(){return void 0===Xr&&(Xr=new Jt),Xr}function to(t,e=null,n=null,s){return new eo(t,n,e||Jr(),s)}class eo{constructor(t,e,n,s=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];e&&ee(e,n=>this.processProvider(n,t,e)),ee([t],t=>this.processInjectorType(t,[],i)),this.records.set(Ht,so(void 0,this));const r=this.records.get(Zr);this.scope=null!=r?r.value:null,this.source=s||("object"==typeof t?null:vt(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=Vt,n=at.Default){this.assertNotDestroyed();const s=Ut(this);try{if(!(n&at.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(i=t)||"object"==typeof i&&i instanceof jt)&&dt(t);e=n&&this.injectableDefInScope(n)?so(no(t),Kr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&at.Self?Jr():this.parent).get(t,e=n&at.Optional&&e===Vt?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(vt(t)),s)throw r;return function(t,e,n,s){const i=t.ngTempTokenPath;throw e[zt]&&i.unshift(e[zt]),t.message=function(t,e,n,s=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=vt(e);if(Array.isArray(e))i=e.map(vt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let s=e[n];t.push(n+":"+("string"==typeof s?JSON.stringify(s):vt(s)))}i=`{${t.join(", ")}}`}return`${n}${s?"("+s+")":""}[${i}]: ${t.replace(Bt,"\n ")}`}("\n"+t.message,i,n,s),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{Ut(s)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(vt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=St(t)))return!1;let s=ft(t);const i=null==s&&t.ngModule||void 0,r=void 0===i?t:i,o=-1!==n.indexOf(r);if(void 0!==i&&(s=ft(i)),null==s)return!1;if(null!=s.imports&&!o){let t;n.push(r);try{ee(s.imports,s=>{this.processInjectorType(s,e,n)&&(void 0===t&&(t=[]),t.push(s))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:s}=t[e];ee(s,t=>this.processProvider(t,n,s||Yr))}}this.injectorDefTypes.add(r),this.records.set(r,so(s.factory,Kr));const a=s.providers;if(null!=a&&!o){const e=t;ee(a,t=>this.processProvider(t,e,a))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let s=ro(t=St(t))?t:St(t&&t.provide);const i=function(t,e,n){return io(t)?so(void 0,t.useValue):so(function(t,e,n){let s=void 0;if(ro(t)){const e=St(t);return Ce(e)||no(e)}if(io(t))s=()=>St(t.useValue);else if((i=t)&&i.useFactory)s=()=>t.useFactory(...Xt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))s=()=>Kt(St(t.useExisting));else{const i=St(t&&(t.useClass||t.provide));if(i||function(t,e,n){let s="";throw t&&e&&(s=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${vt(t)}'`+s)}(e,n,t),!function(t){return!!t.deps}(t))return Ce(i)||no(i);s=()=>new i(...Xt(t.deps))}var i;return s}(t,e,n),Kr)}(t,e,n);if(ro(t)||!0!==t.multi){const t=this.records.get(s);t&&void 0!==t.multi&&si()}else{let e=this.records.get(s);e?void 0===e.multi&&si():(e=so(void 0,Kr,!0),e.factory=()=>Xt(e.multi),this.records.set(s,e)),s=t,e.multi.push(t)}this.records.set(s,i)}hydrate(t,e){var n;return e.value===Gr?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(vt(t)):e.value===Kr&&(e.value=Gr,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){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function no(t){const e=dt(t),n=null!==e?e.factory:Ce(t);if(null!==n)return n;const s=ft(t);if(null!==s)return s.factory;if(t instanceof jt)throw new Error(`Token ${vt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=ie(e,"?");throw new Error(`Can't resolve all parameters for ${vt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[mt]||t[yt]||t[_t]&&t[_t]());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 so(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function io(t){return null!==t&&"object"==typeof t&&$t in t}function ro(t){return"function"==typeof t}const oo=function(t,e,n){return function(t,e=null,n=null,s){const i=to(t,e,n,s);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};let ao=(()=>{class t{static create(t,e){return Array.isArray(t)?oo(t,e,""):oo(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Vt,t.NULL=new Jt,t.\u0275prov=ht({token:t,providedIn:"any",factory:()=>Kt(Ht)}),t.__NG_ELEMENT_ID__=-1,t})();function lo(t,e,n){let s=n?t.styles:null,i=n?t.classes:null,r=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?r=t:1==r?i=wt(i,t):2==r&&(s=wt(s,t+": "+e[++o]+";"))}n?t.styles=s:t.stylesWithoutHost=s,n?t.classes=i:t.classesWithoutHost=i}let co=null;function ho(){if(!co){const t=Rt.Symbol;if(t&&t.iterator)co=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&&(co=n)}}}return co}class uo{constructor(t){this.wrapped=t}static wrap(t){return new uo(t)}static unwrap(t){return uo.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof uo}}function po(t){return!!fo(t)&&(Array.isArray(t)||!(t instanceof Map)&&ho()in t)}function fo(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function mo(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function go(t,e,n,s){const i=sn();return mo(i,pn(),e)&&(rn(),function(t,e,n,s,i,r){const o=qe(t,e),a=e[11];if(null==s)Be(a)?a.removeAttribute(o,n,r):o.removeAttribute(n);else{const e=null==i?qn(s):i(s,t.tagName||"",n);Be(a)?a.setAttribute(o,n,e,r):r?o.setAttributeNS(r,n,e):o.setAttribute(n,e)}}(On(),i,t,e,n,s)),go}function _o(t,e,n,s,i,r,o,a){const l=sn(),c=rn(),h=t+Se,u=c.firstCreatePass?function(t,e,n,s,i,r,o,a,l){const c=e.consts,h=Di(e,n[6],t,0,o||null,Xe(c,a));qi(e,n,h,Xe(c,l)),In(e,h);const u=h.tViews=Bi(2,-1,s,i,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),d=$i(0,null,2,-1,null,null);return d.injectorIndex=h.injectorIndex,u.node=d,null!==e.queries&&(e.queries.template(e,h),u.queries=e.queries.embeddedTView(h)),h}(t,c,l,e,n,s,i,r,o):c.data[h];ln(u,!1);const d=l[11].createComment("");Rr(c,l,d,u),ei(d,l),or(l,l[h]=sr(d,l,d,u)),Re(u)&&ji(c,l,u),null!=o&&Hi(l,u,a)}function yo(t){return Qe(en.lFrame.contextLView,t)}function bo(t,e=at.Default){const n=sn();return null==n?Kt(t,e):is(an(),n,St(t),e)}function vo(t,e,n){const s=sn();return mo(s,pn(),e)&&function(t,e,n,s,i,r,o,a){const l=qe(e,n);let c,h=e.inputs;var u;null!=h&&(c=h[s])?(fr(t,n,c,s,i),Ie(e)&&function(t,e){const n=Ze(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(s="class"===(u=s)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,i=null!=o?o(i,e.tagName||"",s):i,Be(r)?r.setProperty(l,s,i):jn(s)||(l.setProperty?l.setProperty(s,i):l[s]=i))}(rn(),On(),s,t,e,s[11],n),vo}function wo(t,e,n,s,i){const r=i?"class":"style";fr(t,n,e.inputs[r],r,s)}function Co(t,e,n,s){const i=sn(),r=rn(),o=Se+t,a=i[11],l=i[o]=Ri(e,a,en.lFrame.currentNamespace),c=r.firstCreatePass?function(t,e,n,s,i,r,o){const a=e.consts,l=Xe(a,r),c=Di(e,n[6],t,3,i,l);return qi(e,n,c,Xe(a,o)),null!==c.attrs&&lo(c,c.attrs,!1),null!==c.mergedAttrs&&lo(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(t,r,i,0,e,n,s):r.data[o];ln(c,!0);const h=c.mergedAttrs;null!==h&&Ln(a,l,h);const u=c.classes;null!==u&&Lr(a,l,u);const d=c.styles;null!==d&&Fr(a,l,d),Rr(r,i,l,c),0===en.lFrame.elementDepthCount&&ei(l,i),en.lFrame.elementDepthCount++,Re(c)&&(ji(r,i,c),Mi(r,c,i)),null!==s&&Hi(i,c)}function Eo(){let t=an();cn()?hn():(t=t.parent,ln(t,!1));const e=t;en.lFrame.elementDepthCount--;const n=rn();n.firstCreatePass&&(In(n,t),Oe(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&wo(n,e,sn(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&wo(n,e,sn(),e.stylesWithoutHost,!1)}function So(t,e,n,s){Co(t,e,n,s),Eo()}function xo(t,e,n){const s=sn(),i=rn(),r=t+Se,o=i.firstCreatePass?function(t,e,n,s,i){const r=e.consts,o=Xe(r,s),a=Di(e,n[6],t,4,"ng-container",o);return null!==o&&lo(a,o,!0),qi(e,n,a,Xe(r,i)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,i,s,e,n):i.data[r];ln(o,!0);const a=s[r]=s[11].createComment("");Rr(i,s,a,o),ei(a,s),Re(o)&&(ji(i,s,o),Mi(i,o,s)),null!=n&&Hi(s,o)}function To(){let t=an();const e=rn();cn()?hn():(t=t.parent,ln(t,!1)),e.firstCreatePass&&(In(e,t),Oe(t)&&e.queries.elementEnd(t))}function ko(t,e,n){xo(t,e,n),To()}function Oo(){return sn()}function Io(t){return!!t&&"function"==typeof t.then}function Ro(t,e,n=!1,s){const i=sn(),r=rn(),o=an();return function(t,e,n,s,i,r,o=!1,a){const l=Re(s),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),h=dr(e);let u=!0;if(3===s.type){const d=qe(s,e),p=a?a(d):he,f=p.target||d,m=h.length,g=a?t=>a($e(t[s.index])).target:s.index;if(Be(n)){let o=null;if(!a&&l&&(o=function(t,e,n,s){const i=t.cleanup;if(null!=i)for(let r=0;r<i.length-1;r+=2){const t=i[r];if(t===n&&i[r+1]===s){const t=e[7],n=i[r+2];return t.length>n?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,i,s.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=Do(s,e,r,!1);const t=n.listen(p.name||f,i,r);h.push(r,t),c&&c.push(i,g,m,m+1)}}else r=Do(s,e,r,!0),f.addEventListener(i,r,o),h.push(r),c&&c.push(i,g,m,o)}const d=s.outputs;let p;if(u&&null!==d&&(p=d[i])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(r),o=h.length;h.push(r,t),c&&c.push(i,s.index,o,-(o+1))}}}(r,i,i[11],o,t,e,n,s),Ro}function Ao(t,e,n){try{return!1!==e(n)}catch(s){return pr(t,s),!1}}function Do(t,e,n,s){return function i(r){if(r===Function)return n;const o=2&t.flags?Ze(t.index,e):e;0==(32&e[2])&&ar(o);let a=Ao(e,n,r),l=i.__ngNextListenerFn__;for(;l;)a=Ao(e,l,r)&&a,l=l.__ngNextListenerFn__;return s&&!1===a&&(r.preventDefault(),r.returnValue=!1),a}}function Po(t=1){return function(t){return(en.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,en.lFrame.contextLView))[8]}(t)}function No(t,e){let n=null;const s=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 i=0;i<e.length;i++){const r=e[i];if("*"!==r){if(null===s?di(t,r,!0):pi(s,r))return i}else n=i}return n}function Fo(t){const e=sn()[16][6];if(!e.projection){const n=e.projection=ie(t?t.length:1,null),s=n.slice();let i=e.child;for(;null!==i;){const e=t?No(i,t):0;null!==e&&(s[e]?s[e].projectionNext=i:n[e]=i,s[e]=i),i=i.next}}}function Lo(t,e=0,n){const s=sn(),i=rn(),r=Di(i,s[6],t,1,null,n||null);null===r.projection&&(r.projection=e),hn(),function(t,e,n){Nr(e[11],0,e,n,Sr(t,n,e),Ir(n.parent||e[6],e))}(i,s,r)}const Mo=[];function jo(t,e,n,s,i){const r=t[n+1],o=null===e;let a=s?Si(r):Ti(r),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];Ho(t[a],e)&&(l=!0,t[a+1]=s?Oi(n):xi(n)),a=s?Si(n):Ti(n)}l&&(t[n+1]=s?xi(r):Oi(r))}function Ho(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ae(t,e)>=0}const Vo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bo(t){return t.substring(Vo.key,Vo.keyEnd)}function zo(t){return t.substring(Vo.value,Vo.valueEnd)}function $o(t,e){const n=Vo.textEnd;let s=Vo.key=Wo(t,e,n);return n===s?-1:(s=Vo.keyEnd=function(t,e,n){let s;for(;e<n&&(45===(s=t.charCodeAt(e))||95===s||(-33&s)>=65&&(-33&s)<=90||s>=48&&s<=57);)e++;return e}(t,s,n),s=qo(t,s,n),s=Vo.value=Wo(t,s,n),s=Vo.valueEnd=function(t,e,n){let s=-1,i=-1,r=-1,o=e,a=o;for(;o<n;){const l=t.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=Uo(t,l,o,n):e===o-4&&85===r&&82===i&&76===s&&40===l?a=o=Uo(t,41,o,n):l>32&&(a=o),r=i,i=s,s=-33&l}return a}(t,s,n),qo(t,s,n))}function Wo(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function qo(t,e,n,s){return(e=Wo(t,e,n))<n&&e++,e}function Uo(t,e,n,s){let i=-1,r=n;for(;r<s;){const n=t.charCodeAt(r++);if(n==e&&92!==i)return r;i=92==n&&92===i?0:n}throw new Error}function Qo(t,e,n){return Yo(t,e,n,!1),Qo}function Zo(t,e){return Yo(t,e,null,!0),Zo}function Ko(t){!function(t,e,n,s){const i=rn(),r=fn(2);i.firstUpdatePass&&Jo(i,null,r,s);const o=sn();if(n!==gi&&mo(o,r,n)){const a=i.data[Tn()+Se];if(oa(a,s)&&!Xo(i,r)){let t=a.stylesWithoutHost;null!==t&&(n=wt(t,n||"")),wo(i,a,o,n,s)}else!function(t,e,n,s,i,r,o,a){i===gi&&(i=Mo);let l=0,c=0,h=0<i.length?i[0]:null,u=0<r.length?r[0]:null;for(;null!==h||null!==u;){const o=l<i.length?i[l+1]:void 0,d=c<r.length?r[c+1]:void 0;let p=null,f=void 0;h===u?(l+=2,c+=2,o!==d&&(p=u,f=d)):null===u||null!==h&&h<u?(l+=2,p=h):(c+=2,p=u,f=d),null!==p&&sa(t,e,n,s,p,f,false,a),h=l<i.length?i[l]:null,u=c<r.length?r[c]:null}}(i,a,o,o[11],o[r+1],o[r+1]=function(t,e,n){if(null==n||""===n)return Mo;const s=[],i=Ss(n);if(Array.isArray(i))for(let r=0;r<i.length;r++)t(s,i[r],!0);else if("object"==typeof i)for(const r in i)i.hasOwnProperty(r)&&t(s,r,i[r]);else"string"==typeof i&&e(s,i);return s}(t,e,n),0,r)}}(na,Go,t,!1)}function Go(t,e){for(let n=function(t){return function(t){Vo.key=0,Vo.keyEnd=0,Vo.value=0,Vo.valueEnd=0,Vo.textEnd=t.length}(t),$o(t,Wo(t,0,Vo.textEnd))}(e);n>=0;n=$o(e,n))na(t,Bo(e),zo(e))}function Yo(t,e,n,s){const i=sn(),r=rn(),o=fn(2);r.firstUpdatePass&&Jo(r,t,o,s),e!==gi&&mo(i,o,e)&&sa(r,r.data[Tn()+Se],i,i[11],t,i[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=vt(Ss(t)))),t}(e,n),s,o)}function Xo(t,e){return e>=t.expandoStartIndex}function Jo(t,e,n,s){const i=t.data;if(null===i[n+1]){const r=i[Tn()+Se],o=Xo(t,n);oa(r,s)&&null===e&&!o&&(e=!1),e=function(t,e,n,s){const i=function(t){const e=en.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let r=s?e.residualClasses:e.residualStyles;if(null===i)0===(s?e.classBindings:e.styleBindings)&&(n=ea(n=ta(null,t,e,n,s),e.attrs,s),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==i)if(n=ta(i,t,e,n,s),null===r){let n=function(t,e,n){const s=n?e.classBindings:e.styleBindings;if(0!==Ti(s))return t[Si(s)]}(t,e,s);void 0!==n&&Array.isArray(n)&&(n=ta(null,t,e,n[1],s),n=ea(n,e.attrs,s),function(t,e,n,s){t[Si(n?e.classBindings:e.styleBindings)]=s}(t,e,s,n))}else r=function(t,e,n){let s=void 0;const i=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<i;r++)s=ea(s,t[r].hostAttrs,n);return ea(s,e.attrs,n)}(t,e,s)}return void 0!==r&&(s?e.residualClasses=r:e.residualStyles=r),n}(i,r,e,s),function(t,e,n,s,i,r){let o=r?e.classBindings:e.styleBindings,a=Si(o),l=Ti(o);t[s]=n;let c,h=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||ae(t,c)>0)&&(h=!0)}else c=n;if(i)if(0!==l){const e=Si(t[a+1]);t[s+1]=Ei(e,a),0!==e&&(t[e+1]=ki(t[e+1],s)),t[a+1]=131071&t[a+1]|s<<17}else t[s+1]=Ei(a,0),0!==a&&(t[a+1]=ki(t[a+1],s)),a=s;else t[s+1]=Ei(l,0),0===a?a=s:t[l+1]=ki(t[l+1],s),l=s;h&&(t[s+1]=xi(t[s+1])),jo(t,c,s,!0),jo(t,c,s,!1),function(t,e,n,s,i){const r=i?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&ae(r,e)>=0&&(n[s+1]=Oi(n[s+1]))}(e,c,t,s,r),o=Ei(a,l),r?e.classBindings=o:e.styleBindings=o}(i,r,e,n,o,s)}}function ta(t,e,n,s,i){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(r=e[a],s=ea(s,r.hostAttrs,i),r!==t);)a++;return null!==t&&(n.directiveStylingLast=a),s}function ea(t,e,n){const s=n?1:2;let i=-1;if(null!==e)for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?i=o:i===s&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),re(t,o,!!n||e[++r]))}return void 0===t?null:t}function na(t,e,n){re(t,e,Ss(n))}function sa(t,e,n,s,i,r,o,a){if(3!==e.type)return;const l=t.data,c=l[a+1];ra(1==(1&c)?ia(l,e,n,i,Ti(c),o):void 0)||(ra(r)||2==(2&c)&&(r=ia(l,null,n,i,a,o)),function(t,e,n,s,i){const r=Be(t);if(e)i?r?t.addClass(n,s):n.classList.add(s):r?t.removeClass(n,s):n.classList.remove(s);else{const e=-1==s.indexOf("-")?void 0:2;null==i?r?t.removeStyle(n,s,e):n.style.removeProperty(s):r?t.setStyle(n,s,i,e):n.style.setProperty(s,i)}}(s,o,We(Tn(),n),i,r))}function ia(t,e,n,s,i,r){const o=null===e;let a=void 0;for(;i>0;){const e=t[i],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=n[i+1];h===gi&&(h=c?Mo:void 0);let u=c?oe(h,s):l===s?h:void 0;if(r&&!ra(u)&&(u=oe(e,s)),ra(u)&&(a=u,o))return a;const d=t[i+1];i=o?Si(d):Ti(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=oe(t,s))}return a}function ra(t){return void 0!==t}function oa(t,e){return 0!=(t.flags&(e?16:32))}function aa(t,e=""){const n=sn(),s=rn(),i=t+Se,r=s.firstCreatePass?Di(s,n[6],t,3,null,null):s.data[i],o=n[i]=function(t,e){return Be(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Rr(s,n,o,r),ln(r,!1)}function la(t){return ca("",t,""),la}function ca(t,e,n){const s=sn(),i=function(t,e,n,s){return mo(t,pn(),n)?e+qn(n)+s:gi}(s,t,e,n);return i!==gi&&function(t,e,n){const s=We(e,t),i=t[11];Be(i)?i.setValue(s,n):s.textContent=n}(s,Tn(),i),ca}function ha(t,e){const n=Ke(t)[1],s=n.data.length-1;In(n,{directiveStart:s,directiveEnd:s+1})}function ua(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const s=[t];for(;e;){let i=void 0;if(Ae(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){s.push(i);const e=t;e.inputs=da(t.inputs),e.declaredInputs=da(t.declaredInputs),e.outputs=da(t.outputs);const n=i.hostBindings;n&&ma(t,n);const r=i.viewQuery,o=i.contentQueries;if(r&&pa(t,r),o&&fa(t,o),ct(t.inputs,i.inputs),ct(t.declaredInputs,i.declaredInputs),ct(t.outputs,i.outputs),Ae(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}}const e=i.features;if(e)for(let s=0;s<e.length;s++){const i=e[s];i&&i.ngInherit&&i(t),i===ua&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let s=t.length-1;s>=0;s--){const i=t[s];i.hostVars=e+=i.hostVars,i.hostAttrs=Hn(i.hostAttrs,n=Hn(n,i.hostAttrs))}}(s)}function da(t){return t===he?{}:t===ue?[]:t}function pa(t,e){const n=t.viewQuery;t.viewQuery=n?(t,s)=>{e(t,s),n(t,s)}:e}function fa(t,e){const n=t.contentQueries;t.contentQueries=n?(t,s,i)=>{e(t,s,i),n(t,s,i)}:e}function ma(t,e){const n=t.hostBindings;t.hostBindings=n?(t,s)=>{e(t,s),n(t,s)}:e}class ga{}class _a{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${vt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ya=(()=>{class t{}return t.NULL=new _a,t})(),ba=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>va(t),t})();const va=function(t){return zr(t,an(),sn())};class wa{}var Ca=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Ea=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Sa(),t})();const Sa=function(){const t=sn(),e=Ze(an().index,t);return function(t){const e=t[11];if(Be(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Te(e)?e:t)};let xa=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>null}),t})();class Ta{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const ka=new Ta("10.1.0");class Oa{constructor(){}supports(t){return po(t)}create(t){return new Ra(t)}}const Ia=(t,e)=>e;class Ra{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||Ia}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,s=0,i=null;for(;e||n;){const r=!n||e&&e.currentIndex<Na(n,s,i)?e:n,o=Na(r,s,i),a=r.currentIndex;if(r===n)s--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)s++;else{i||(i=[]);const t=o-s,e=a-s;if(t!=e){for(let n=0;n<t;n++){const s=n<i.length?i[n]:i[n]=0,r=s+n;e<=r&&r<t&&(i[n]=s+1)}i[r.previousIndex]=e-t}}o!==a&&t(r,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!po(t))throw new Error(`Error trying to diff '${vt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,s,i=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],s=this._trackByFn(e,n),null!==i&&Object.is(i.trackById,s)?(r&&(i=this._verifyReinsertion(i,n,s,e)),Object.is(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,s,e),r=!0),i=i._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[ho()]();let s;for(;!(s=n.next()).done;)e(s.value)}}(t,t=>{s=this._trackByFn(e,t),null!==i&&Object.is(i.trackById,s)?(r&&(i=this._verifyReinsertion(i,t,s,e)),Object.is(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,s,e),r=!0),i=i._next,e++}),this.length=e;return this._truncate(i),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,e;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=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,s){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,s)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,s)):t=this._addAfter(new Aa(e,n),i,s),t}_verifyReinsertion(t,e,n,s){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),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 s=t._prevRemoved,i=t._nextRemoved;return null===s?this._removalsHead=i:s._nextRemoved=i,null===i?this._removalsTail=s:i._prevRemoved=s,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 s=null===e?this._itHead:e._next;return t._next=s,t._prev=e,null===s?this._itTail=t:s._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Pa),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 Pa),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 Aa{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 Da{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 Pa{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Da,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 Na(t,e,n){const s=t.previousIndex;if(null===s)return s;let i=0;return n&&s<n.length&&(i=n[s]),s+e+i}class Fa{constructor(){}supports(t){return t instanceof Map||fo(t)}create(){return new La}}class La{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||fo(t)))throw new Error(`Error trying to diff '${vt(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 s=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,s)}}),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 s=n._prev,i=n._next;return s&&(s._next=i),i&&(i._prev=s),n._next=null,n._prev=null,n}const n=new Ma(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 Ma{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}}let ja=(()=>{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=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new it]]}}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=ht({token:t,providedIn:"root",factory:()=>new t([new Oa])}),t})(),Ha=(()=>{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=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new it]]}}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=ht({token:t,providedIn:"root",factory:()=>new t([new Fa])}),t})();const Va=[new Fa],Ba=new ja([new Oa]),za=new Ha(Va);let $a=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Wa(t,ba),t})();const Wa=function(t,e){return $r(t,e,an(),sn())};let qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ua(t,ba),t})();const Ua=function(t,e){return Wr(t,e,an(),sn())},Qa={};class Za extends ya{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=we(t);return new Ya(e,this.ngModule)}}function Ka(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Ga=new jt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Qn});class Ya extends ga{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(mi).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Ka(this.componentDef.inputs)}get outputs(){return Ka(this.componentDef.outputs)}create(t,e,n,s){const i=(s=s||this.ngModule)?function(t,e){return{get:(n,s,i)=>{const r=t.get(n,Qa,i);return r!==Qa||s===Qa?r:e.get(n,s,i)}}}(t,s.injector):t,r=i.get(wa,ze),o=i.get(xa,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Be(t))return t.selectRootElement(e,n===ce.ShadowDom);let s="string"==typeof e?t.querySelector(e):e;return s.textContent="",s}(a,n,this.componentDef.encapsulation):Ri(l,r.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:Qn,clean:ur,playerHandler:null,flags:0},d=Bi(0,-1,null,1,0,null,null,null,null,null),p=Ai(null,d,u,h,null,null,r,a,o,i);let f,m;vn(p,null);try{const t=function(t,e,n,s,i,r){const o=n[1];n[20]=t;const a=Di(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(lo(a,l,!0),null!==t&&(Ln(i,t,l),null!==a.classes&&Lr(i,t,a.classes),null!==a.styles&&Fr(i,t,a.styles)));const c=s.createRenderer(t,e),h=Ai(n,Vi(e),null,e.onPush?64:16,n[20],a,s,c,void 0);return o.firstCreatePass&&(ss(Jn(a,n),o,e.type),Gi(o,a),Xi(a,n.length,1)),or(n,h),n[20]=h}(c,this.componentDef,p,r,a);if(c)if(n)Ln(a,c,["ng-version",ka.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let s=1,i=2;for(;s<t.length;){let r=t[s];if("string"==typeof r)2===i?""!==r&&e.push(r,t[++s]):8===i&&n.push(r);else{if(!hi(i))break;i=r}s++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Ln(a,c,t),e&&e.length>0&&Lr(a,c,e.join(" "))}if(m=Ue(d,0),void 0!==e){const t=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const s=e[n];t.push(null!=s?Array.from(s):null)}}f=function(t,e,n,s,i){const r=n[1],o=function(t,e,n){const s=an();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Ki(t,s,1),Ji(t,e,n));const i=ls(e,t,e.length-1,s);ei(i,e);const r=qe(s,e);return r&&ei(r,e),i}(r,n,e);s.components.push(o),t[8]=o,i&&i.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=an();if(r.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){kn(a.index-Se);const t=n[1];Ui(t,e),Qi(t,n,e.hostVars),Zi(e,o)}return o}(t,this.componentDef,p,u,[ha]),Pi(d,p,null)}finally{xn()}const g=new Xa(this.componentType,f,zr(ba,m,p),p,m);return d.node.child=m,g}}class Xa extends class{}{constructor(t,e,n,s,i){super(),this.location=n,this._rootLView=s,this._tNode=i,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new jr(s),function(t,e,n,s){let i=t.node;null==i&&(t.node=i=$i(0,null,2,-1,null,null)),s[6]=i}(s[1],0,0,s),this.componentType=t}get injector(){return new us(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const Ja=void 0;var tl=["en",[["a","p"],["AM","PM"],Ja],[["AM","PM"],Ja,Ja],[["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"]],Ja,[["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"]],Ja,[["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}",Ja,"{1} 'at' {0}",Ja],[".",",",";","%","+","-","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 el={};function nl(t){return t in el||(el[t]=Rt.ng&&Rt.ng.common&&Rt.ng.common.locales&&Rt.ng.common.locales[t]),el[t]}var sl=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const il="en-US";let rl=il;function ol(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,s){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(rl=t.toLowerCase().replace(/_/g,"-"))}const al=new Map;class ll extends te{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Za(this);const n=Ee(t),s=t[Ft]||null;s&&ol(s),this._bootstrapComponents=Kn(n.bootstrap),this._r3Injector=to(t,e,[{provide:te,useValue:this},{provide:ya,useValue:this.componentFactoryResolver}],vt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ao.THROW_IF_NOT_FOUND,n=at.Default){return t===ao||t===te||t===Ht?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class cl extends class{}{constructor(t){super(),this.moduleType=t,null!==Ee(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${vt(e)} vs ${vt(e.name)}`)})(t,al.get(t),e),al.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new ll(this.moduleType,t)}}function hl(t,e,n){const s=sn(),i=Qe(s,t);return function(t,e){return uo.isWrapped(e)&&(e=uo.unwrap(e),t[en.lFrame.bindingIndex]=gi),e}(s,function(t,e){return t[1].data[e+Se].pure}(s,t)?function(t,e,n,s,i,r){const o=e+n;return mo(t,o,i)?function(t,e,n){return t[e]=n}(t,o+1,r?s.call(r,i):s(i)):function(t,e){const n=t[e];return n===gi?void 0:n}(t,o+1)}(s,function(){const t=en.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}(),e,i.transform,n,i):i.transform(n))}const ul=class extends E{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let s,i=t=>null,r=()=>null;t&&"object"==typeof t?(s=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(s,i,r);return t instanceof u&&t.add(o),o}};function dl(){return this._results[ho()]()}class pl{constructor(){this.dirty=!0,this._results=[],this.changes=new ul,this.length=0;const t=ho(),e=pl.prototype;e[t]||(e[t]=dl)}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){this._results=function t(e,n){void 0===n&&(n=e);for(let s=0;s<e.length;s++){let i=e[s];Array.isArray(i)?(n===e&&(n=e.slice(0,s)),t(i,n)):n!==e&&n.push(i)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class fl{constructor(t){this.queryList=t,this.matches=null}clone(){return new fl(this.queryList)}setDirty(){this.queryList.setDirty()}}class ml{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,s=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);s.push(this.queries[n.indexInDeclarationView].clone())}return new ml(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==xl(t,e).matches&&this.queries[e].setDirty()}}class gl{constructor(t,e,n,s=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=s}}class _l{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 s=null!==e?e.length:0,i=this.getByIndex(n).embeddedTView(t,s);i&&(i.indexInDeclarationView=n,null!==e?e.push(i):e=[i])}return null!==e?new _l(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 yl{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 yl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===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 s=0;s<n.length;s++){const i=n[s];this.matchTNodeWithReadOption(t,e,bl(e,i)),this.matchTNodeWithReadOption(t,e,as(e,t,i,!1,!1))}else n===$a?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,as(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const s=this.metadata.read;if(null!==s)if(s===ba||s===qa||s===$a&&0===e.type)this.addMatch(e.index,-2);else{const n=as(e,t,s,!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 bl(t,e){const n=t.localNames;if(null!==n)for(let s=0;s<n.length;s+=2)if(n[s]===e)return n[s+1];return null}function vl(t,e,n,s){return-1===n?function(t,e){return 3===t.type||4===t.type?zr(ba,t,e):0===t.type?$r($a,ba,t,e):null}(e,t):-2===n?function(t,e,n){return n===ba?zr(ba,e,t):n===$a?$r($a,ba,e,t):n===qa?Wr(qa,ba,e,t):void 0}(t,e,s):ls(t,t[1],n,e)}function wl(t,e,n,s){const i=e[19].queries[s];if(null===i.matches){const s=t.data,r=n.matches,o=[];for(let t=0;t<r.length;t+=2){const i=r[t];o.push(i<0?null:vl(e,s[i],r[t+1],n.metadata.read))}i.matches=o}return i.matches}function Cl(t){const e=sn(),n=rn(),s=_n();yn(s+1);const i=xl(n,s);if(t.dirty&&Ge(e)===i.metadata.isStatic){if(null===i.matches)t.reset([]);else{const r=i.crossesNgTemplate?function t(e,n,s,i){const r=e.queries.getByIndex(s),o=r.matches;if(null!==o){const a=wl(e,n,r,s);for(let e=0;e<o.length;e+=2){const s=o[e];if(s>0)i.push(a[e/2]);else{const r=o[e+1],a=n[-s];for(let e=xe;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,r,i)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const s=e[n];t(s[1],s,r,i)}}}}}return i}(n,e,s,[]):wl(n,e,i,s);t.reset(r),t.notifyOnChanges()}return!0}return!1}function El(t,e,n){!function(t,e,n,s,i,r){t.firstCreatePass&&function(t,e,n){null===t.queries&&(t.queries=new _l),t.queries.track(new yl(e,-1))}(t,new gl(n,s,false,i)),function(t,e){const n=new pl;zi(t,e,n,n.destroy),null===e[19]&&(e[19]=new ml),e[19].queries.push(new fl(n))}(t,e)}(rn(),sn(),t,e,n)}function Sl(){return t=sn(),e=_n(),t[19].queries[e].queryList;var t,e}function xl(t,e){return t.queries.getByIndex(e)}function Tl(t,e){return $r($a,ba,t,e)}const kl=new jt("Application Initializer");let Ol=(()=>{class t{constructor(t){this.appInits=t,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]();Io(e)&&t.push(e)}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)(Kt(kl,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Il=new jt("AppId"),Rl={provide:Il,useFactory:function(){return`${Al()}${Al()}${Al()}`},deps:[]};function Al(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Dl=new jt("Platform Initializer"),Pl=new jt("Platform ID"),Nl=new jt("appBootstrapListener");let Fl=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Ll=new jt("LocaleId"),Ml=new jt("DefaultCurrencyCode");class jl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Hl=function(t){return new cl(t)},Vl=Hl,Bl=function(t){return Promise.resolve(Hl(t))},zl=function(t){const e=Hl(t),n=Kn(Ee(t).declarations).reduce((t,e)=>{const n=we(e);return n&&t.push(new Ya(n)),t},[]);return new jl(e,n)},$l=zl,Wl=function(t){return Promise.resolve(zl(t))};let ql=(()=>{class t{constructor(){this.compileModuleSync=Vl,this.compileModuleAsync=Bl,this.compileModuleAndAllComponentsSync=$l,this.compileModuleAndAllComponentsAsync=Wl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Ul=(()=>Promise.resolve(0))();function Ql(t){"undefined"==typeof Zone?Ul.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Zl{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ul(!1),this.onMicrotaskEmpty=new ul(!1),this.onStable=new ul(!1),this.onError=new ul(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=Rt.requestAnimationFrame,e=Rt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const s=e[Zone.__symbol__("OriginalDelegate")];s&&(e=s)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Rt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Xl(t),Yl(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Xl(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,s,i,r,o,a)=>{try{return Jl(t),n.invokeTask(i,r,o,a)}finally{e&&"eventTask"===r.type&&e(),tc(t)}},onInvoke:(e,n,s,i,r,o,a)=>{try{return Jl(t),e.invoke(s,i,r,o,a)}finally{tc(t)}},onHasTask:(e,n,s,i)=>{e.hasTask(s,i),n===s&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Xl(t),Yl(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,s,i)=>(e.handleError(s,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Zl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Zl.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,s){const i=this._inner,r=i.scheduleEventTask("NgZoneEvent: "+s,t,Gl,Kl,Kl);try{return i.runTask(r,e,n)}finally{i.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Kl(){}const Gl={};function Yl(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 Xl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Jl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function tc(t){t._nesting--,Yl(t)}class ec{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ul,this.onMicrotaskEmpty=new ul,this.onStable=new ul,this.onError=new ul}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,s){return t.apply(e,n)}}let nc=(()=>{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:()=>{Zl.assertNotInAngularZone(),Ql(()=>{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())Ql(()=>{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 s=-1;e&&e>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==s),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:s,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/dist/task-tracking.js" 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)(Kt(Zl))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),sc=(()=>{class t{constructor(){this._applications=new Map,oc.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 oc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class ic{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let rc,oc=new ic;const ac=new jt("AllowMultipleToken");function lc(t,e,n=[]){const s="Platform: "+e,i=new jt(s);return(e=[])=>{let r=cc();if(!r||r.injector.get(ac,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:Zr,useValue:"platform"});!function(t){if(rc&&!rc.destroyed&&!rc.injector.get(ac,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");rc=t.get(hc);const e=t.get(Dl,null);e&&e.forEach(t=>t())}(ao.create({providers:t,name:s}))}return function(t){const e=cc();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}(i)}}function cc(){return rc&&!rc.destroyed?rc:null}let hc=(()=>{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 ec:("zone.js"===t?void 0:t)||new Zl({enableLongStackTrace:Is(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),s=[{provide:Zl,useValue:n}];return n.run(()=>{const e=ao.create({providers:s,parent:this.injector,name:t.moduleType.name}),i=t.create(e),r=i.injector.get(_s,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>pc(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const s=n();return Io(s)?s.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):s}catch(s){throw e.runOutsideAngular(()=>t.handleError(s)),s}}(r,n,()=>{const t=i.injector.get(Ol);return t.runInitializers(),t.donePromise.then(()=>(ol(i.injector.get(Ll,il)||il),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const n=uc({},e);return function(t,e,n){const s=new cl(n);return Promise.resolve(s)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(dc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${vt(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)(Kt(ao))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function uc(t,e){return Array.isArray(e)?e.reduce(uc,t):Object.assign(Object.assign({},t),e)}let dc=(()=>{class t{constructor(t,e,n,s,i,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=s,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Is(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Zl.assertNotInAngularZone(),Ql(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Zl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=q(o,a.pipe(J()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof ga?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(te),i=n.create(ao.NULL,[],e||n.selector,s);i.onDestroy(()=>{this._unloadComponent(i)});const r=i.injector.get(nc,null);return r&&i.injector.get(sc).registerApplication(i.location.nativeElement,r),this._loadComponent(i),Is()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}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;pc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Nl,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),pc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Kt(Zl),Kt(Fl),Kt(ao),Kt(_s),Kt(ya),Kt(Ol))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function pc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const fc=lc(null,"core",[{provide:Pl,useValue:"unknown"},{provide:hc,deps:[ao]},{provide:sc,deps:[]},{provide:Fl,deps:[]}]),mc=[{provide:dc,useClass:dc,deps:[Zl,Fl,ao,_s,ya,Ol]},{provide:Ga,deps:[Zl],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Ol,useClass:Ol,deps:[[new it,kl]]},{provide:ql,useClass:ql,deps:[]},Rl,{provide:ja,useFactory:function(){return Ba},deps:[]},{provide:Ha,useFactory:function(){return za},deps:[]},{provide:Ll,useFactory:function(t){return ol(t=t||"undefined"!=typeof $localize&&$localize.locale||il),t},deps:[[new st(Ll),new it,new ot]]},{provide:Ml,useValue:"USD"}];let gc=(()=>{class t{constructor(t){}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(dc))},providers:mc}),t})();function _c(t){return null!=t&&""+t!="false"}function yc(t){return Array.isArray(t)?t:[t]}function bc(t){return null==t?"":"string"==typeof t?t:t+"px"}function vc(t){return t instanceof ba?t.nativeElement:t}function wc(...t){let e=t[t.length-1];return x(e)?(t.pop(),F(t,e)):W(t)}function Cc(t,e,n,i){return s(n)&&(i=n,n=void 0),i?Cc(t,e,n).pipe(T(t=>l(t)?i(...t):i(t))):new y(s=>{!function t(e,n,s,i,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,s,r),o=()=>t.removeEventListener(n,s,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,s),o=()=>t.off(n,s)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,s),o=()=>t.removeListener(n,s)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o<a;o++)t(e[o],n,s,i,r)}i.add(o)}(t,e,(function(t){s.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),s,n)})}class Ec extends u{constructor(t,e){super()}schedule(t,e=0){return this}}class Sc extends Ec{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,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(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=!1,s=void 0;try{this.work(t)}catch(i){n=!0,s=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),s}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let xc=(()=>{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 Tc extends xc{constructor(t,e=xc.now){super(t,()=>Tc.delegate&&Tc.delegate!==this?Tc.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Tc.delegate&&Tc.delegate!==this?Tc.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}}}const kc=new Tc(Sc);class Oc{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Ic(t,this.durationSelector))}}class Ic extends j{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 s=H(n,new M(this));!s||s.closed?this.clearThrottle():this.add(this.throttled=s)}}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()}}function Rc(t){return!l(t)&&t-parseFloat(t)+1>=0}function Ac(t){const{index:e,period:n,subscriber:s}=t;if(s.next(e),!s.closed){if(-1===n)return s.complete();t.index=e+1,this.schedule(t,n)}}function Dc(t,e=kc){return n=()=>function(t=0,e,n){let s=-1;return Rc(e)?s=Number(e)<1?1:Number(e):x(e)&&(n=e),x(n)||(n=kc),new y(e=>{const i=Rc(t)?t:+t-n.now();return n.schedule(Ac,i,{index:0,period:s,subscriber:e})})}(t,e),function(t){return t.lift(new Oc(n))};var n}function Pc(t,e){return function(n){return n.lift(new Nc(t,e))}}class Nc{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Fc(t,this.predicate,this.thisArg))}}class Fc extends f{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)}}function Lc(t){return e=>e.lift(new Mc(t))}class Mc{constructor(t){this.notifier=t}call(t,e){const n=new jc(t),s=H(this.notifier,new M(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class jc extends j{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Hc(...t){return $(1)(wc(...t))}function Vc(...t){const e=t[t.length-1];return x(e)?(t.pop(),n=>Hc(t,n,e)):e=>Hc(t,e)}function Bc(t,e){return"function"==typeof e?n=>n.pipe(Bc((n,s)=>L(t(n,s)).pipe(T((t,i)=>e(n,t,s,i))))):e=>e.lift(new zc(t))}class zc{constructor(t){this.project=t}call(t,e){return e.subscribe(new $c(t,this.project))}}class $c extends j{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(s){return void this.destination.error(s)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new M(this),s=this.destination;s.add(n),this.innerSubscription=H(t,n),this.innerSubscription!==n&&s.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)}}class Wc extends Sc{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)}}class qc extends Tc{}const Uc=new qc(Wc),Qc=new y(t=>t.complete());function Zc(t){return t?function(t){return new y(e=>t.schedule(()=>e.complete()))}(t):Qc}function Kc(t,e){return new y(e?n=>e.schedule(Gc,0,{error:t,subscriber:n}):e=>e.error(t))}function Gc({error:t,subscriber:e}){e.error(t)}let Yc=(()=>{class t{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 wc(this.value);case"E":return Kc(this.error);case"C":return Zc()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class Xc extends f{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(Xc.dispatch,this.delay,new Jc(t,this.destination)))}_next(t){this.scheduleMessage(Yc.createNext(t))}_error(t){this.scheduleMessage(Yc.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Yc.createComplete()),this.unsubscribe()}}class Jc{constructor(t,e){this.notification=t,this.destination=e}}class th extends E{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){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new eh(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,i=n.length;let r;if(this.closed)throw new v;if(this.isStopped||this.hasError?r=u.EMPTY:(this.observers.push(t),r=new w(this,t)),s&&t.add(t=new Xc(t,s)),e)for(let o=0;o<i&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<i&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),r}_getNow(){return(this.scheduler||Uc).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,s=this._events,i=s.length;let r=0;for(;r<i&&!(t-s[r].time<n);)r++;return i>e&&(r=Math.max(r,i-e)),r>0&&s.splice(0,r),s}}class eh{constructor(t,e){this.time=t,this.value=e}}let nh=null;function sh(){return nh}const ih=new jt("DocumentToken");let rh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:oh,token:t,providedIn:"platform"}),t})();function oh(){return Kt(ah)}let ah=(()=>{class t extends rh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=sh().getLocation(),this._history=sh().getHistory()}getBaseHrefFromDOM(){return sh().getBaseHref(this._doc)}onPopState(t){sh().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){sh().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}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){lh()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){lh()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Kt(ih))},t.\u0275prov=ht({factory:ch,token:t,providedIn:"platform"}),t})();function lh(){return!!window.history.pushState}function ch(){return new ah(Kt(ih))}function hh(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 uh(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 dh(t){return t&&"?"!==t[0]?"?"+t:t}let ph=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:fh,token:t,providedIn:"root"}),t})();function fh(t){const e=Kt(ih).location;return new gh(Kt(rh),e&&e.origin||"")}const mh=new jt("appBaseHref");let gh=(()=>{class t extends ph{constructor(t,e){if(super(),this._platformLocation=t,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}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return hh(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+dh(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,s){const i=this.prepareExternalUrl(n+dh(s));this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,s){const i=this.prepareExternalUrl(n+dh(s));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Kt(rh),Kt(mh,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),_h=(()=>{class t{constructor(t,e){this._subject=new ul,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=uh(bh(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+dh(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,bh(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+dh(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+dh(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}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)(Kt(ph),Kt(rh))},t.normalizeQueryParams=dh,t.joinWithSlash=hh,t.stripTrailingSlash=uh,t.\u0275prov=ht({factory:yh,token:t,providedIn:"root"}),t})();function yh(){return new _h(Kt(ph),Kt(rh))}function bh(t){return t.replace(/\/index.html$/,"")}var vh=function(t){return 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}({});class wh{}let Ch=(()=>{class t extends wh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=nl(e);if(n)return n;const s=e.split("-")[0];if(n=nl(s),n)return n;if("en"===s)return tl;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[sl.PluralCase]}(e||this.locale)(t)){case vh.Zero:return"zero";case vh.One:return"one";case vh.Two:return"two";case vh.Few:return"few";case vh.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Ll))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Eh=(()=>{class t{constructor(t,e,n,s){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=s,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&&(po(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 "+vt(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)(bo(ja),bo(Ha),bo(ba),bo(Ea))},t.\u0275dir=be({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Sh{constructor(t,e,n,s){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let xh=(()=>{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){Is()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),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,s)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Sh(null,this._ngForOf,-1,-1),null===s?void 0:s),i=new Th(t,n);e.push(i)}else if(null==s)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,s);const r=new Th(t,i);e.push(r)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,s=this._viewContainer.length;n<s;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=s,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)(bo(qa),bo($a),bo(ja))},t.\u0275dir=be({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Th{constructor(t,e){this.record=t,this.view=e}}let kh=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Oh,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){Ih("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Ih("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)(bo(qa),bo($a))},t.\u0275dir=be({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Oh{constructor(){this.$implicit=null,this.ngIf=null}}function Ih(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${vt(e)}'.`)}class Rh{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 Ah=(()=>{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=be({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),Dh=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Rh(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(bo(qa),bo($a),bo(Ah,1))},t.\u0275dir=be({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Ph=(()=>{class t{constructor(t,e,n){n._addDefault(new Rh(t,e))}}return t.\u0275fac=function(e){return new(e||t)(bo(qa),bo($a),bo(Ah,1))},t.\u0275dir=be({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Nh=(()=>{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,s]=t.split(".");null!=(e=null!=e&&s?`${e}${s}`: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)(bo(ba),bo(Ha),bo(Ea))},t.\u0275dir=be({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Fh=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){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&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(bo(qa))},t.\u0275dir=be({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Ne]}),t})();class Lh{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Mh{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const jh=new Mh,Hh=new Lh;let Vh,Bh=(()=>{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(Io(e))return jh;if(function(t){return!!t&&"function"==typeof t.subscribe}(e))return Hh;throw Error(`InvalidPipeArgument: '${e}' for pipe '${vt(t)}'`)}_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)(function(t=at.Default){const e=qr(!0);if(null!=e||t&at.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=ve({name:"async",type:t,pure:!1}),t})(),zh=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[{provide:wh,useClass:Ch}]}),t})();try{Vh="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Tb){Vh=!1}let $h,Wh,qh,Uh,Qh=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?"browser"===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&&!Vh)&&"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)(Kt(Pl))},t.\u0275prov=ht({factory:function(){return new t(Kt(Pl))},token:t,providedIn:"root"}),t})(),Zh=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();function Kh(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 Gh(){if("object"!=typeof document||!document)return 0;if(null==Wh){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"),s=n.style;s.width="2px",s.height="1px",t.appendChild(n),document.body.appendChild(t),Wh=0,0===t.scrollLeft&&(t.scrollLeft=1,Wh=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return Wh}const Yh=new jt("cdk-dir-doc",{providedIn:"root",factory:function(){return Gt(ih)}});let Xh=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new ul,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)(Kt(Yh,8))},t.\u0275prov=ht({factory:function(){return new t(Kt(Yh,8))},token:t,providedIn:"root"}),t})(),Jh=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),tu=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new E,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 y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Dc(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):wc()}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(Pc(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,s)=>{this._scrollableContainsElement(s,t)&&e.push(s)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Cc(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Zl),Kt(Qh),Kt(ih,8))},t.\u0275prov=ht({factory:function(){return new t(Kt(Zl),Kt(Qh),Kt(ih,8))},token:t,providedIn:"root"}),t})(),eu=(()=>{class t{constructor(t,e,n,s){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=s,this._destroyed=new E,this._elementScrolled=new y(t=>this.ngZone.runOutsideAngular(()=>Cc(this.elementRef.nativeElement,"scroll").pipe(Lc(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!=Gh()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Gh()?t.left=t.right:1==Gh()&&(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;!function(){if(null==qh)if("object"==typeof document&&document||(qh=!1),"scrollBehavior"in document.documentElement.style)qh=!0;else{const t=Element.prototype.scrollTo;qh=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}return qh}()?(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left)):e.scrollTo(t)}measureScrollOffset(t){const e="left",n="right",s=this.elementRef.nativeElement;if("top"==t)return s.scrollTop;if("bottom"==t)return s.scrollHeight-s.clientHeight-s.scrollTop;const i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?n:e:"end"==t&&(t=i?e:n),i&&2==Gh()?t==e?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:i&&1==Gh()?t==e?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:t==e?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(bo(ba),bo(tu),bo(Zl),bo(Xh,8))},t.\u0275dir=be({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),nu=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new E,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._getDocument(),e=this._getWindow(),n=t.documentElement,s=n.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-s.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Dc(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().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)(Kt(Qh),Kt(Zl),Kt(ih,8))},t.\u0275prov=ht({factory:function(){return new t(Kt(Qh),Kt(Zl),Kt(ih,8))},token:t,providedIn:"root"}),t})(),su=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),iu=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Jh,Zh,su],Jh,su]}),t})();class ru{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 ou extends ru{constructor(t,e,n,s){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=s}}class au extends ru{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 lu extends ru{constructor(t){super(),this.element=t instanceof ba?t.nativeElement:t}}class cu extends class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof ou?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof au?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof lu?(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)}}{constructor(t,e,n,s,i){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=s,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=i}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)),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)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let hu=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();const uu=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function du(t){return e=>0===t?Zc():e.lift(new pu(t))}class pu{constructor(t){if(this.total=t,this.total<0)throw new uu}call(t,e){return e.subscribe(new fu(t,this.total))}}class fu extends f{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()))}}class mu{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=bc(-this._previousScrollPosition.left),t.style.top=bc(-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,s=e.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=s,n.scrollBehavior=i}}_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 gu{constructor(t,e,n,s){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=s,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 _u{enable(){}disable(){}attach(){}}function yu(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function bu(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class vu{constructor(t,e,n,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=s,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();yu(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 wu=(()=>{class t{constructor(t,e,n,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new _u,this.close=t=>new gu(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new mu(this._viewportRuler,this._document),this.reposition=t=>new vu(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=s}}return t.\u0275fac=function(e){return new(e||t)(Kt(tu),Kt(nu),Kt(Zl),Kt(ih))},t.\u0275prov=ht({factory:function(){return new t(Kt(tu),Kt(nu),Kt(Zl),Kt(ih))},token:t,providedIn:"root"}),t})();class Cu{constructor(t){if(this.scrollStrategy=new _u,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 Eu{constructor(t,e,n,s,i){this.offsetX=n,this.offsetY=s,this.panelClass=i,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class Su{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let xu=(()=>{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)(Kt(ih))},t.\u0275prov=ht({factory:function(){return new t(Kt(ih))},token:t,providedIn:"root"}),t})(),Tu=(()=>{class t extends xu{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)(Kt(ih))},t.\u0275prov=ht({factory:function(){return new t(Kt(ih))},token:t,providedIn:"root"}),t})(),ku=(()=>{class t extends xu{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 s=n.length-1;s>-1;s--){const i=n[s];if(!(i._outsidePointerEvents.observers.length<1)&&i.hasAttached()){if(i.overlayElement.contains(e))break;i._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Kt(ih),Kt(Qh))},t.\u0275prov=ht({factory:function(){return new t(Kt(ih),Kt(Qh))},token:t,providedIn:"root"}),t})();const Ou=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let Iu=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window,e="cdk-overlay-container";if(t||Ou){const t=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e])}const n=this._document.createElement("div");n.classList.add(e),Ou?n.setAttribute("platform","test"):t||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}return t.\u0275fac=function(e){return new(e||t)(Kt(ih),Kt(Qh))},t.\u0275prov=ht({factory:function(){return new t(Kt(ih),Kt(Qh))},token:t,providedIn:"root"}),t})();class Ru{constructor(t,e,n,s,i,r,o,a,l){this._portalOutlet=t,this._host=e,this._pane=n,this._config=s,this._ngZone=i,this._keyboardDispatcher=r,this._document=o,this._location=a,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new E,this._attachments=new E,this._detachments=new E,this._locationChanges=u.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new E,this._outsidePointerEvents=new E,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.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(du(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._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher&&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&&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&&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=bc(this._config.width),t.height=bc(this._config.height),t.minWidth=bc(this._config.minWidth),t.minHeight=bc(this._config.minHeight),t.maxWidth=bc(this._config.maxWidth),t.maxHeight=bc(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const s=t.classList;yc(e).forEach(t=>{t&&(n?s.add(t):s.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Lc(q(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 Au="cdk-overlay-connected-position-bounding-box",Du=/([A-Za-z%]+)$/;class Pu{constructor(t,e,n,s,i){this._viewportRuler=e,this._document=n,this._platform=s,this._overlayContainer=i,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 E,this._resizeSubscription=u.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(Au),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,s=[];let i;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?s.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!i||i.overlayFit.visibleArea<l.visibleArea)&&(i={overlayFit:l,overlayPoint:a,originPoint:o,position:r,overlayRect:e})}if(s.length){let t=null,e=-1;for(const n of s){const s=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);s>e&&(e=s,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(i.position,i.originPoint);this._applyPosition(i.position,i.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Nu(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Au),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,s;if("center"==e.originX)n=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,i=this._isRtl()?t.left:t.right;n="start"==e.originX?s:i}return s="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:s}}_getOverlayPoint(t,e,n){let s,i;return s="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,i="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+s,y:t.y+i}}_getOverlayFit(t,e,n,s){let{x:i,y:r}=t,o=this._getOffset(s,"x"),a=this._getOffset(s,"y");o&&(i+=o),a&&(r+=a);let l=0-r,c=r+e.height-n.height,h=this._subtractOverflows(e.width,0-i,i+e.width-n.width),u=this._subtractOverflows(e.height,l,c),d=h*u;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:u===e.height,fitsInViewportHorizontally:h==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const s=n.bottom-e.y,i=n.right-e.x,r=Fu(this._overlayRef.getConfig().minHeight),o=Fu(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=i;return(t.fitsInViewportVertically||null!=r&&r<=s)&&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 s=this._viewportRect,i=Math.max(t.x+e.width-s.width,0),r=Math.max(t.y+e.height-s.height,0),o=Math.max(s.top-n.top-t.y,0),a=Math.max(s.left-n.left-t.x,0);let l=0,c=0;return l=e.width<=s.width?a||-i:t.x<this._viewportMargin?s.left-n.left-t.x:0,c=e.height<=s.height?o||-r:t.y<this._viewportMargin?s.top-n.top-t.y:0,this._previousPushAmount={x:l,y:c},{x:t.x+l,y:t.y+c}}_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 Su(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,s=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let i=0;i<e.length;i++)e[i].style.transformOrigin=`${n} ${s}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,s=this._isRtl();let i,r,o,a,l,c;if("top"===e.overlayY)r=t.y,i=n.height-r+this._viewportMargin;else if("bottom"===e.overlayY)o=n.height-t.y+2*this._viewportMargin,i=n.height-o+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),s=this._lastBoundingBoxSize.height;i=2*e,r=t.y-e,i>s&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-s/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),s=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>s&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-s/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:i}}_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 s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,i=this._overlayRef.getConfig().maxWidth;s.height=bc(n.height),s.top=bc(n.top),s.bottom=bc(n.bottom),s.width=bc(n.width),s.left=bc(n.left),s.right=bc(n.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(s.maxHeight=bc(t)),i&&(s.maxWidth=bc(i))}this._lastBoundingBoxSize=n,Nu(this._boundingBox.style,s)}_resetBoundingBoxStyles(){Nu(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Nu(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},s=this._hasExactPosition(),i=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(s){const s=this._viewportRuler.getViewportScrollPosition();Nu(n,this._getExactOverlayY(e,t,s)),Nu(n,this._getExactOverlayX(e,t,s))}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(),r.maxHeight&&(s?n.maxHeight=bc(r.maxHeight):i&&(n.maxHeight="")),r.maxWidth&&(s?n.maxWidth=bc(r.maxWidth):i&&(n.maxWidth="")),Nu(this._pane.style,n)}_getExactOverlayY(t,e,n){let s={top:"",bottom:""},i=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return i.y-=r,"bottom"===t.overlayY?s.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":s.top=bc(i.y),s}_getExactOverlayX(t,e,n){let s,i={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=bc(r.x),i}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:bu(t,n),isOriginOutsideView:yu(t,n),isOverlayClipped:bu(e,n),isOverlayOutsideView:yu(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&&yc(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 ba)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 Nu(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Fu(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(Du);return n&&"px"!==n?null:parseFloat(e)}return t||null}class Lu{constructor(t,e,n,s,i,r,o){this._preferredPositions=[],this._positionStrategy=new Pu(n,s,i,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,s){const i=new Eu(t,e,n,s);return this._preferredPositions.push(i),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const Mu="cdk-global-overlay-wrapper";class ju{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(Mu),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:s,height:i,maxWidth:r,maxHeight:o}=n,a=!("100%"!==s&&"100vw"!==s||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==i&&"100vh"!==i||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(Mu),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Hu=(()=>{class t{constructor(t,e,n,s){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=s}global(){return new ju}connectedTo(t,e,n){return new Lu(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Pu(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(Kt(nu),Kt(ih),Kt(Qh),Kt(Iu))},t.\u0275prov=ht({factory:function(){return new t(Kt(nu),Kt(ih),Kt(Qh),Kt(Iu))},token:t,providedIn:"root"}),t})(),Vu=0,Bu=(()=>{class t{constructor(t,e,n,s,i,r,o,a,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=s,this._keyboardDispatcher=i,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),s=this._createPortalOutlet(n),i=new Cu(t);return i.direction=i.direction||this._directionality.value,new Ru(s,e,n,i,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-"+Vu++,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(dc)),new cu(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(Kt(wu),Kt(Iu),Kt(ya),Kt(Hu),Kt(Tu),Kt(ao),Kt(Zl),Kt(ih),Kt(Xh),Kt(_h),Kt(ku))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const zu={provide:new jt("cdk-connected-overlay-scroll-strategy"),deps:[Bu],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let $u=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Bu,zu],imports:[[Jh,hu,iu],iu]}),t})();const Wu=(()=>{const t=Element.prototype;return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector})(),qu={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return qu.schedule(t,0);if(void 0===window.requestAnimationFrame)return qu.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};function Uu(t,e,n){let s=n;return function(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((e,n)=>!("*"===e||!function(t,e){return Wu.call(t,e)}(t,e)||(s=n,0))),s}class Qu{constructor(t,e){this.componentFactory=e.get(ya).resolveComponentFactory(t)}create(t){return new Zu(this.componentFactory,t)}}class Zu{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new th(1),this.events=this.eventEmitters.pipe(Bc(t=>q(...t))),this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set,this.ngZone=this.injector.get(Zl),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=qu.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{var n,s;null!==this.componentRef?((n=e)!==(s=this.getInputValue(t))&&(n==n||s==s)||void 0===e&&this.unchangedInputs.has(t))&&(this.recordInputChange(t,e),this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=ao.create({providers:[],parent:this.injector}),n=function(t,e){const n=t.childNodes,s=e.map(()=>[]);let i=-1;e.some((t,e)=>"*"===t&&(i=e,!0));for(let r=0,o=n.length;r<o;++r){const t=n[r],o=Uu(t,e,i);-1!==o&&s[o].push(t)}return s}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(dc).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.implementsOnChanges&&this.unchangedInputs.add(t),this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:e,templateName:n})=>t.instance[e].pipe(T(t=>({name:n,value:t}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=qu.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[t];if(n)return void(n.currentValue=e);const s=this.unchangedInputs.has(t);this.unchangedInputs.delete(t);const i=s?void 0:this.getInputValue(t);this.inputChanges[t]=new Pe(i,e,s)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class Ku extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Gu(t,e){const n=function(t,e){return e.get(ya).resolveComponentFactory(t).inputs}(t,e.injector),s=e.strategyFactory||new Qu(t,e.injector),i=function(t){const e={};return t.forEach(({propName:t,templateName:n})=>{var s;e[(s=n,s.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))]=t}),e}(n);class r extends Ku{constructor(t){super(),this.injector=t}get ngElementStrategy(){if(!this._ngElementStrategy){const t=this._ngElementStrategy=s.create(this.injector||e.injector),i=n.filter(({propName:t})=>this.hasOwnProperty(t)).map(({propName:t})=>[t,this[t]]);this instanceof r?i.forEach(([t])=>delete this[t]):Yu(n,this),i.forEach(([e,n])=>t.setInputValue(e,n))}return this._ngElementStrategy}attributeChangedCallback(t,e,n,s){this.ngElementStrategy.setInputValue(i[t],n)}connectedCallback(){let t=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),t=!0),this.ngElementStrategy.connect(this),t||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(t=>{const e=function(t,e,n){if("function"!=typeof CustomEvent){const s=t.createEvent("CustomEvent");return s.initCustomEvent(e,!1,!1,n),s}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,t.name,t.value);this.dispatchEvent(e)})}}return r.observedAttributes=Object.keys(i),Object.defineProperty(r.prototype,"ngElementStrategy",{enumerable:!0}),Yu(n,r.prototype),r}function Yu(t,e){t.forEach(({propName:t})=>{Object.defineProperty(e,t,{get(){return this.ngElementStrategy.getInputValue(t)},set(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})})}class Xu extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Xu,nh||(nh=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}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}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=td||(td=document.querySelector("base"),td)?td.getAttribute("href"):null;return null==e?null:(n=e,Ju||(Ju=document.createElement("a")),Ju.setAttribute("href",n),"/"===Ju.pathname.charAt(0)?Ju.pathname:"/"+Ju.pathname);var n}resetBaseElement(){td=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return function(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[s,i]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(s.trim()===e)return decodeURIComponent(i)}return null}(document.cookie,t)}}let Ju,td=null;const ed=new jt("TRANSITION_ID"),nd=[{provide:kl,useFactory:function(t,e,n){return()=>{n.get(Ol).donePromise.then(()=>{const n=sh();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[ed,ih,ao],multi:!0}];class sd{static init(){var t;t=new sd,oc=t}addToWindow(t){Rt.getAngularTestability=(e,n=!0)=>{const s=t.findTestabilityInTree(e,n);if(null==s)throw new Error("Could not find testability for element.");return s},Rt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Rt.getAllAngularRootElements=()=>t.getAllRootElements(),Rt.frameworkStabilizers||(Rt.frameworkStabilizers=[]),Rt.frameworkStabilizers.push(t=>{const e=Rt.getAllAngularTestabilities();let n=e.length,s=!1;const i=function(e){s=s||e,n--,0==n&&t(s)};e.forEach((function(t){t.whenStable(i)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?sh().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const id=new jt("EventManagerPlugins");let rd=(()=>{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 s=0;s<n.length;s++){const e=n[s];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)(Kt(id),Kt(Zl))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class od{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const s=sh().getGlobalEventTarget(this._doc,t);if(!s)throw new Error(`Unsupported event target ${s} for event ${e}`);return this.addEventListener(s,e,n)}}let ad=(()=>{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=ht({token:t,factory:t.\u0275fac}),t})(),ld=(()=>{class t extends ad{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>sh().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Kt(ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const cd={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/"},hd=/%COMP%/g;function ud(t,e,n){for(let s=0;s<e.length;s++){let i=e[s];Array.isArray(i)?ud(t,i,n):(i=i.replace(hd,t),n.push(i))}return n}function dd(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let pd=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new fd(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ce.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new md(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case ce.Native:case ce.ShadowDom:return new gd(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=ud(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)(Kt(rd),Kt(ld),Kt(Il))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class fd{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(cd[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,s){if(s){e=s+":"+e;const i=cd[s];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const s=cd[n];s?t.removeAttributeNS(s,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,s){s&Ca.DashCase?t.style.setProperty(e,n,s&Ca.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Ca.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,dd(n)):this.eventManager.addEventListener(t,e,dd(n))}}class md extends fd{constructor(t,e,n,s){super(t),this.component=n;const i=ud(s+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(hd,s+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(hd,s+"-"+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 gd extends fd{constructor(t,e,n,s){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=s,this.shadowRoot=s.encapsulation===ce.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=ud(s.id,s.styles,[]);for(let r=0;r<i.length;r++){const t=document.createElement("style");t.textContent=i[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let _d=(()=>{class t extends od{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)(Kt(ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const yd=["alt","control","meta","shift"],bd={"\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"},vd={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"},wd={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Cd=(()=>{class t extends od{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const i=t.parseEventName(n),r=t.eventCallback(i.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>sh().onAndCancel(e,i.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const i=t._normalizeKey(n.pop());let r="";if(yd.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=i,0!=n.length||0===i.length)return null;const o={};return o.domEventName=s,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&vd.hasOwnProperty(e)&&(e=vd[e]))}return bd[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),yd.forEach(s=>{s!=n&&(0,wd[s])(t)&&(e+=s+".")}),e+=n,e}static eventCallback(e,n,s){return i=>{t.getEventFullKey(i)===e&&s.runGuarded(()=>n(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Kt(ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Ed=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return Kt(Sd)},token:t,providedIn:"root"}),t})(),Sd=(()=>{class t extends Ed{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Js.NONE:return e;case Js.HTML:return xs(e,"HTML")?Ss(e):Ys(this._doc,String(e));case Js.STYLE:return xs(e,"Style")?Ss(e):e;case Js.SCRIPT:if(xs(e,"Script"))return Ss(e);throw new Error("unsafe value used in a script context");case Js.URL:return Ts(e),xs(e,"URL")?Ss(e):Ns(String(e));case Js.RESOURCE_URL:if(xs(e,"ResourceURL"))return Ss(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new bs(t)}bypassSecurityTrustStyle(t){return new vs(t)}bypassSecurityTrustScript(t){return new ws(t)}bypassSecurityTrustUrl(t){return new Cs(t)}bypassSecurityTrustResourceUrl(t){return new Es(t)}}return t.\u0275fac=function(e){return new(e||t)(Kt(ih))},t.\u0275prov=ht({factory:function(){return t=Kt(Ht),new Sd(t.get(ih));var t},token:t,providedIn:"root"}),t})();const xd=lc(fc,"browser",[{provide:Pl,useValue:"browser"},{provide:Dl,useValue:function(){Xu.makeCurrent(),sd.init()},multi:!0},{provide:ih,useFactory:function(){return function(t){He=t}(document),document},deps:[]}]),Td=[[],{provide:Zr,useValue:"root"},{provide:_s,useFactory:function(){return new _s},deps:[]},{provide:id,useClass:_d,multi:!0,deps:[ih,Zl,Pl]},{provide:id,useClass:Cd,multi:!0,deps:[ih]},[],{provide:pd,useClass:pd,deps:[rd,ld,Il]},{provide:wa,useExisting:pd},{provide:ad,useExisting:ld},{provide:ld,useClass:ld,deps:[ih]},{provide:nc,useClass:nc,deps:[Zl]},{provide:rd,useClass:rd,deps:[id,Zl]},[]];let kd=(()=>{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:Il,useValue:e.appId},{provide:ed,useExisting:Il},nd]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(t,12))},providers:Td,imports:[zh,gc]}),t})();"undefined"!=typeof window&&window;class Od{}const Id="*";function Rd(t,e){return{type:7,name:t,definitions:e,options:{}}}function Ad(t,e=null){return{type:4,styles:e,timings:t}}function Dd(t,e=null){return{type:2,steps:t,options:e}}function Pd(t){return{type:6,styles:t,offset:null}}function Nd(t,e,n){return{type:0,name:t,styles:e,options:n}}function Fd(t){return{type:5,steps:t}}function Ld(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function Md(t){Promise.resolve(null).then(t)}class jd{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,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(){Md(()=>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(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Hd{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,s=0;const i=this.players.length;0==i?Md(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==i&&this._onFinish()}),t.onDestroy(()=>{++n==i&&this._onDestroy()}),t.onStart(()=>{++s==i&&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(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}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}}function Vd(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Bd(t){switch(t.length){case 0:return new jd;case 1:return t[0];default:return new Hd(t)}}function zd(t,e,n,s,i={},r={}){const o=[],a=[];let l=-1,c=null;if(s.forEach(t=>{const n=t.offset,s=n==l,h=s&&c||{};Object.keys(t).forEach(n=>{let s=n,a=t[n];if("offset"!==n)switch(s=e.normalizePropertyName(s,o),a){case"!":a=i[n];break;case Id:a=r[n];break;default:a=e.normalizeStyleValue(n,s,a,o)}h[s]=a}),s||a.push(h),c=h,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function $d(t,e,n,s){switch(e){case"start":t.onStart(()=>s(n&&Wd(n,"start",t)));break;case"done":t.onDone(()=>s(n&&Wd(n,"done",t)));break;case"destroy":t.onDestroy(()=>s(n&&Wd(n,"destroy",t)))}}function Wd(t,e,n){const s=n.totalTime,i=qd(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==s?t.totalTime:s,!!n.disabled),r=t._data;return null!=r&&(i._data=r),i}function qd(t,e,n,s,i="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:s,phaseName:i,totalTime:r,disabled:!!o}}function Ud(t,e,n){let s;return t instanceof Map?(s=t.get(e),s||t.set(e,s=n)):(s=t[e],s||(s=t[e]=n)),s}function Qd(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Zd=(t,e)=>!1,Kd=(t,e)=>!1,Gd=(t,e,n)=>[];const Yd=Vd();(Yd||"undefined"!=typeof Element)&&(Zd=(t,e)=>t.contains(e),Kd=(()=>{if(Yd||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]):Kd}})(),Gd=(t,e,n)=>{let s=[];if(n)s.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&s.push(n)}return s});let Xd=null,Jd=!1;function tp(t){Xd||(Xd=("undefined"!=typeof document?document.body:null)||{},Jd=!!Xd.style&&"WebkitAppearance"in Xd.style);let e=!0;return Xd.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in Xd.style,!e&&Jd)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Xd.style),e}const ep=Kd,np=Zd,sp=Gd;function ip(t){const e={};return Object.keys(t).forEach(n=>{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[s]=t[n]}),e}let rp=(()=>{class t{validateStyleProperty(t){return tp(t)}matchesElement(t,e){return ep(t,e)}containsElement(t,e){return np(t,e)}query(t,e,n){return sp(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,s,i,r=[],o){return new jd(n,s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),op=(()=>{class t{}return t.NOOP=new rp,t})();const ap="ng-enter",lp="ng-leave",cp="ng-trigger",hp=".ng-trigger",up="ng-animating",dp=".ng-animating";function pp(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:fp(parseFloat(e[1]),e[2])}function fp(t,e){switch(e){case"s":return 1e3*t;default:return t}}function mp(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let s,i=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};s=fp(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(i=fp(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else s=t;if(!n){let n=!1,r=e.length;s<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:s,delay:i,easing:r}}(t,e,n)}function gp(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function _p(t,e,n={}){if(e)for(let s in t)n[s]=t[s];else gp(t,n);return n}function yp(t,e,n){return n?e+":"+n+";":""}function bp(t){let e="";for(let n=0;n<t.style.length;n++){const s=t.style.item(n);e+=yp(0,s,t.style.getPropertyValue(s))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=yp(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function vp(t,e,n){t.style&&(Object.keys(e).forEach(s=>{const i=Op(s);n&&!n.hasOwnProperty(s)&&(n[s]=t.style[i]),t.style[i]=e[s]}),Vd()&&bp(t))}function wp(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Op(e);t.style[n]=""}),Vd()&&bp(t))}function Cp(t){return Array.isArray(t)?1==t.length?t[0]:Dd(t):t}const Ep=new RegExp("{{\\s*(.+?)\\s*}}","g");function Sp(t){let e=[];if("string"==typeof t){let n;for(;n=Ep.exec(t);)e.push(n[1]);Ep.lastIndex=0}return e}function xp(t,e,n){const s=t.toString(),i=s.replace(Ep,(t,s)=>{let i=e[s];return e.hasOwnProperty(s)||(n.push("Please provide a value for the animation param "+s),i=""),i.toString()});return i==s?t:i}function Tp(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const kp=/-+([a-z0-9])/g;function Op(t){return t.replace(kp,(...t)=>t[1].toUpperCase())}function Ip(t,e){return 0===t||0===e}function Rp(t,e,n){const s=Object.keys(n);if(s.length&&e.length){let r=e[0],o=[];if(s.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var i=1;i<e.length;i++){let n=e[i];o.forEach((function(e){n[e]=Dp(t,e)}))}}return e}function Ap(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 Dp(t,e){return window.getComputedStyle(t)[e]}const Pp="*";function Np(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const s=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 s)return void e.push(s);t=s}const s=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const i=s[1],r=s[2],o=s[3];e.push(Mp(i,o)),"<"!=r[0]||i==Pp&&o==Pp||e.push(Mp(o,i))}(t,n,e)):n.push(t),n}const Fp=new Set(["true","1"]),Lp=new Set(["false","0"]);function Mp(t,e){const n=Fp.has(t)||Lp.has(t),s=Fp.has(e)||Lp.has(e);return(i,r)=>{let o=t==Pp||t==i,a=e==Pp||e==r;return!o&&n&&"boolean"==typeof i&&(o=i?Fp.has(t):Lp.has(t)),!a&&s&&"boolean"==typeof r&&(a=r?Fp.has(e):Lp.has(e)),o&&a}}const jp=new RegExp("s*:selfs*,?","g");function Hp(t,e,n){return new Vp(t).build(e,n)}class Vp{constructor(t){this._driver=t}build(t,e){const n=new Bp(e);return this._resetContextStyleTimingState(n),Ap(this,Cp(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,s=e.depCount=0;const i=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,s=n.name;s.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,i.push(this.visitState(n,e))}),n.name=s}else if(1==t.type){const i=this.visitTransition(t,e);n+=i.queryCount,s+=i.depCount,r.push(i)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:i,transitions:r,queryCount:n,depCount:s,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),s=t.options&&t.options.params||null;if(n.containsDynamicStyles){const i=new Set,r=s||{};if(n.styles.forEach(t=>{if(zp(t)){const e=t;Object.keys(e).forEach(t=>{Sp(e[t]).forEach(t=>{r.hasOwnProperty(t)||i.add(t)})})}}),i.size){const n=Tp(i.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:s?{params:s}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Ap(this,Cp(t.animation),e);return{type:1,matchers:Np(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:$p(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Ap(this,t,e)),options:$p(t.options)}}visitGroup(t,e){const n=e.currentTime;let s=0;const i=t.steps.map(t=>{e.currentTime=n;const i=Ap(this,t,e);return s=Math.max(s,e.currentTime),i});return e.currentTime=s,{type:3,steps:i,options:$p(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 Wp(mp(t,e).duration,0,"");const s=t;if(s.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Wp(0,0,"");return t.dynamic=!0,t.strValue=s,t}return n=n||mp(s,e),Wp(n.duration,n.delay,n.easing)}(t.timings,e.errors);let s;e.currentAnimateTimings=n;let i=t.styles?t.styles:Pd({});if(5==i.type)s=this.visitKeyframes(i,e);else{let i=t.styles,r=!1;if(!i){r=!0;const t={};n.easing&&(t.easing=n.easing),i=Pd(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(i,e);o.isEmptyStep=r,s=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:s,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==Id?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let s=!1,i=null;return n.forEach(t=>{if(zp(t)){const e=t,n=e.easing;if(n&&(i=n,delete e.easing),!s)for(let t in e)if(e[t].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let s=e.currentTime,i=e.currentTime;n&&i>0&&(i-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(i!=s&&i>=o.startTime&&s<=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 "${i}ms" and "${s}ms"`),a=!1),i=o.startTime),a&&(r[n]={startTime:i,endTime:s}),e.options&&function(t,e,n){const s=e.params||{},i=Sp(t);i.length&&i.forEach(t=>{s.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 s=0;const i=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(zp(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(zp(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(s++,c=n.offset=l),o=o||c<0||c>1,r=r||c<a,a=c,i.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let h=0;s>0&&s<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(h=1/(c-1));const u=c-1,d=e.currentTime,p=e.currentAnimateTimings,f=p.duration;return l.forEach((t,s)=>{const r=h>0?s==u?1:h*s:i[s],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Ap(this,Cp(t.animation),e),options:$p(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:$p(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:$p(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,s=t.options||{};e.queryCount++,e.currentQuery=t;const[i,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(jp,"")),[t=t.replace(/@\*/g,hp).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,dp),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+i:i,Ud(e.collectedStyles,e.currentQuerySelector,{});const o=Ap(this,Cp(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:s.limit||0,optional:!!s.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:$p(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"}:mp(t.timings,e.errors,!0);return{type:12,animation:Ap(this,Cp(t.animation),e),timings:n,options:null}}}class Bp{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 zp(t){return!Array.isArray(t)&&"object"==typeof t}function $p(t){var e;return t?(t=gp(t)).params&&(t.params=(e=t.params)?gp(e):null):t={},t}function Wp(t,e,n){return{duration:t,delay:e,easing:n}}function qp(t,e,n,s,i,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}class Up{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 Qp=new RegExp(":enter","g"),Zp=new RegExp(":leave","g");function Kp(t,e,n,s,i,r={},o={},a,l,c=[]){return(new Gp).buildKeyframes(t,e,n,s,i,r,o,a,l,c)}class Gp{buildKeyframes(t,e,n,s,i,r,o,a,l,c=[]){l=l||new Up;const h=new Xp(t,e,l,s,i,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),Ap(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[qp(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 s=e.createSubContext(t.options),i=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,s,s.options);i!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let s=e.currentTimeline.currentTime;const i=null!=n.duration?pp(n.duration):null,r=null!=n.delay?pp(n.delay):null;return 0!==i&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,i,r);s=Math.max(s,n.duration+n.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),Ap(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let s=e;const i=t.options;if(i&&(i.params||i.delay)&&(s=e.createSubContext(i),s.transformIntoNewTimeline(),null!=i.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Yp);const t=pp(i.delay);s.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Ap(this,t,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let s=e.currentTimeline.currentTime;const i=t.options&&t.options.delay?pp(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);i&&o.delayNextStep(i),Ap(this,r,o),s=Math.max(s,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(s),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return mp(e.params?xp(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),s=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),s.snapshotCurrentStyles());const i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,s=e.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const i=s&&s.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,s=e.currentTimeline.duration,i=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*i),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(s+i),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,s=t.options||{},i=s.delay?pp(s.delay):0;i&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Yp);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,s)=>{e.currentQueryIndex=s;const o=e.createSubContext(t.options,n);i&&o.delayNextStep(i),n===e.element&&(a=o.currentTimeline),Ap(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,s=e.currentTimeline,i=t.timings,r=Math.abs(i.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Ap(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const Yp={};class Xp{constructor(t,e,n,s,i,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=i,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Yp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Jp(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let s=this.options;null!=n.duration&&(s.duration=pp(n.duration)),null!=n.delay&&(s.delay=pp(n.delay));const i=n.params;if(i){let t=s.params;t||(t=this.options.params={}),Object.keys(i).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=xp(i[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 s=e||this.element,i=new Xp(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=Yp,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const s={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new tf(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,s,t.stretchStartingKeyframe);return this.timelines.push(i),s}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,s,i,r){let o=[];if(s&&o.push(this.element),t.length>0){t=(t=t.replace(Qp,"."+this._enterClassName)).replace(Zp,"."+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 i||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class Jp{constructor(t,e,n,s){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=s,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 Jp(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]||Id,this._currentKeyframe[t]=Id}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,s){e&&(this._previousKeyframe.easing=e);const i=s&&s.params||{},r=function(t,e){const n={};let s;return t.forEach(t=>{"*"===t?(s=s||Object.keys(e),s.forEach(t=>{n[t]=Id})):_p(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=xp(r[t],i,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:Id),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],s=t._styleSummary[e];(!n||s.time>n.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((i,r)=>{const o=_p(i,!0);Object.keys(o).forEach(n=>{const s=o[n];"!"==s?t.add(n):s==Id&&e.add(n)}),n||(o.offset=r/this.duration),s.push(o)});const i=t.size?Tp(t.values()):[],r=e.size?Tp(e.values()):[];if(n){const t=s[0],e=gp(t);t.offset=0,e.offset=1,s=[t,e]}return qp(this.element,s,i,r,this.duration,this.startTime,this.easing,!1)}}class tf extends Jp{constructor(t,e,n,s,i,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=s,this.postStyleProps=i,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const i=[],r=n+e,o=e/r,a=_p(t[0],!1);a.offset=0,i.push(a);const l=_p(t[0],!1);l.offset=ef(o),i.push(l);const c=t.length-1;for(let s=1;s<=c;s++){let o=_p(t[s],!1);o.offset=ef((e+o.offset*n)/r),i.push(o)}n=r,e=0,s="",t=i}return qp(this.element,t,this.preStyleProps,this.postStyleProps,n,e,s,!0)}}function ef(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class nf{}class sf extends nf{normalizePropertyName(t,e){return Op(t)}normalizeStyleValue(t,e,n,s){let i="";const r=n.toString().trim();if(rf[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&s.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+i}}const rf=(()=>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 of(t,e,n,s,i,r,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const af={};class lf{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,s){return function(t,e,n,s,i){return t.some(t=>t(e,n,s,i))}(this.ast.matchers,t,e,n,s)}buildStyles(t,e,n){const s=this._stateStyles["*"],i=this._stateStyles[t],r=s?s.buildStyles(e,n):{};return i?i.buildStyles(e,n):r}build(t,e,n,s,i,r,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||af,d=this.buildStyles(n,o&&o.params||af,h),p=a&&a.params||af,f=this.buildStyles(s,p,h),m=new Set,g=new Map,_=new Map,y="void"===s,b={params:Object.assign(Object.assign({},u),p)},v=c?[]:Kp(t,e,this.ast.animation,i,r,d,f,b,l,h);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return of(e,this._triggerName,n,s,y,d,f,[],[],g,_,w,h);v.forEach(t=>{const n=t.element,s=Ud(g,n,{});t.preStyleProps.forEach(t=>s[t]=!0);const i=Ud(_,n,{});t.postStyleProps.forEach(t=>i[t]=!0),n!==e&&m.add(n)});const C=Tp(m.values());return of(e,this._triggerName,n,s,y,d,f,v,C,g,_,w)}}class cf{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},s=gp(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(s[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const i=t;Object.keys(i).forEach(t=>{let r=i[t];r.length>1&&(r=xp(r,s,e)),n[t]=r})}}),n}}class hf{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new cf(t.style,t.options&&t.options.params||{})}),uf(this.states,"true","1"),uf(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new lf(t,e,this.states))}),this.fallbackTransition=new lf(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,s){return this.transitionFactories.find(i=>i.match(t,e,n,s))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function uf(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const df=new Up;class pf{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],s=Hp(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]=s}_buildPlayer(t,e,n){const s=t.element,i=zd(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(s,i,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const s=[],i=this._animations[t];let r;const o=new Map;if(i?(r=Kp(this._driver,e,i,ap,lp,{},{},n,df,s),r.forEach(t=>{const e=Ud(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),r=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,Id)})});const a=Bd(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}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,s){const i=qd(e,"","","");return $d(this._getPlayer(t),n,i,s),()=>{}}command(t,e,n,s){if("register"==n)return void this.register(t,s[0]);if("create"==n)return void this.create(t,e,s[0]||{});const i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(t)}}}const ff="ng-animate-queued",mf="ng-animate-disabled",gf=".ng-animate-disabled",_f=[],yf={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},bf={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class vf{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(s=n?t.value:t)?s:null,n){const e=gp(t);delete e.value,this.options=e}else this.options={};var s;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 wf="void",Cf=new vf(wf);class Ef{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,Rf(e,this._hostClassName)}listen(t,e,n,s){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"!=(i=n)&&"done"!=i)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var i;const r=Ud(this._elementListeners,t,[]),o={name:e,phase:n,callback:s};r.push(o);const a=Ud(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Rf(t,cp),Rf(t,"ng-trigger-"+e),a[e]=Cf),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,s=!0){const i=this._getTrigger(e),r=new xf(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Rf(t,cp),Rf(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new vf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Cf),l.value!==wf&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),s=Object.keys(e);if(n.length!=s.length)return!1;for(let i=0;i<n.length;i++){const s=n[i];if(!e.hasOwnProperty(s)||t[s]!==e[s])return!1}return!0}(a.params,l.params)){const e=[],n=i.matchStyles(a.value,a.params,e),s=i.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{wp(t,n),vp(t,s)})}return}const c=Ud(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=i.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!s)return;h=i.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(Rf(t,ff),r.onStart(()=>{Af(t,ff)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,hp,!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,s){const i=this._engine.statesByElement.get(t);if(i){const r=[];if(Object.keys(i).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,wf,s);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Bd(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const i=this._triggers[s].fallbackTransition,r=this._engine.statesByElement.get(t)[s]||Cf,o=new vf(wf),a=new xf(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:i,fromState:r,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let s=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)s=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(t),s)n.markElementAsRemoved(this.id,t,!1,e);else{const s=t.__ng_removed;s&&s!==yf||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Rf(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const i=n.element,r=this._elementListeners.get(i);r&&r.forEach(e=>{if(e.name==n.triggerName){const s=qd(i,n.triggerName,n.fromState.value,n.toState.value);s._data=t,$d(n.player,e.phase,s,e.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,s=e.transition.ast.depCount;return 0==n||0==s?n-s: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 Sf{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 Ef(t,e,this);return e.parentNode?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 s=!1;for(let i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),s=!0;break}s||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 s=this._namespaceLookup[t];s&&s.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 s=0;s<t.length;s++){const i=n[t[s]].namespaceId;if(i){const t=this._fetchNamespace(i);t&&e.add(t)}}}return e}trigger(t,e,n,s){if(Tf(e)){const i=this._fetchNamespace(t);if(i)return i.trigger(e,n,s),!0}return!1}insertNode(t,e,n,s){if(!Tf(e))return;const i=e.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,n)}s&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Rf(t,mf)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Af(t,mf))}removeNode(t,e,n,s){if(Tf(e)){const i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,s):this.markElementAsRemoved(t,e,!1,s),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(t,e,n,s){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,s,i){return Tf(e)?this._fetchNamespace(t).listen(e,n,s,i):()=>{}}_buildInstruction(t,e,n,s,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,s,t.fromState.options,t.toState.options,e,i)}destroyInnerAnimations(t){let e=this.driver.query(t,hp,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,dp,!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 Bd(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=yf,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,gf)&&this.markElementAsDisabled(t,!1),this.driver.query(t,gf,!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++)Rf(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?Bd(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 Up,s=[],i=new Map,r=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const h=this.bodyNode,u=Array.from(this.statesByElement.keys()),d=If(u,this.collectedEnterElements),p=new Map;let f=0;d.forEach((t,e)=>{const n=ap+f++;p.set(e,n),t.forEach(t=>Rf(t,n))});const m=[],g=new Set,_=new Set;for(let R=0;R<this.collectedLeaveElements.length;R++){const t=this.collectedLeaveElements[R],e=t.__ng_removed;e&&e.setForRemoval&&(m.push(t),g.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>g.add(t)):_.add(t))}const y=new Map,b=If(u,Array.from(g));b.forEach((t,e)=>{const n=lp+f++;y.set(e,n),t.forEach(t=>Rf(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>Af(t,n))}),b.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>Af(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let R=this._namespaceList.length-1;R>=0;R--)this._namespaceList[R].drainQueuedTransitions(e).forEach(t=>{const e=t.player,i=t.element;if(v.push(e),this.collectedEnterElements.length){const t=i.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!h||!this.driver.containsElement(h,i),u=y.get(i),d=p.get(i),f=this._buildInstruction(t,n,d,u,c);if(f.errors&&f.errors.length)w.push(f);else{if(c)return e.onStart(()=>wp(i,f.fromStyles)),e.onDestroy(()=>vp(i,f.toStyles)),void s.push(e);if(t.isFallbackTransition)return e.onStart(()=>wp(i,f.fromStyles)),e.onDestroy(()=>vp(i,f.toStyles)),void s.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(i,f.timelines),r.push({instruction:f,player:e,element:i}),f.queriedElements.forEach(t=>Ud(o,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let s=l.get(e);s||l.set(e,s=new Set),n.forEach(t=>s.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),v.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,E=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),s.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Ud(C,e,[]).push(t),t.destroy()})});const S=m.filter(t=>Pf(t,a,l)),x=new Map;Of(x,this.driver,_,l,Id).forEach(t=>{Pf(t,a,l)&&S.push(t)});const T=new Map;d.forEach((t,e)=>{Of(T,this.driver,new Set(t),a,"!")}),S.forEach(t=>{const e=x.get(t),n=T.get(t);x.set(t,Object.assign(Object.assign({},e),n))});const k=[],O=[],I={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>vp(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void s.push(r);let t=I;if(E.size>1){let n=e;const s=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}s.push(n)}s.forEach(e=>E.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,C,i,T,x);if(r.setRealPlayer(n),t===I)k.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=Bd(e)),s.push(r)}}else wp(e,o.fromStyles),r.onDestroy(()=>vp(e,o.toStyles)),O.push(r),c.has(e)&&s.push(r)}),O.forEach(t=>{const e=i.get(t.element);if(e&&e.length){const n=Bd(e);t.setRealPlayer(n)}}),s.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let R=0;R<m.length;R++){const t=m[R],e=t.__ng_removed;if(Af(t,lp),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let s=this.driver.query(t,dp,!0);for(let t=0;t<s.length;t++){let e=o.get(s[t]);e&&e.length&&n.push(...e)}}const s=n.filter(t=>!t.destroyed);s.length?Df(this,t,s):this.processLeaveNode(t)}return m.length=0,k.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),k}elementContainsData(t,e){let n=!1;const s=e.__ng_removed;return s&&s.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,s,i){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!i||i==wf;e.forEach(e=>{e.queued||(t||e.triggerName==s)&&r.push(e)})}}return(n||s)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||s&&s!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const s=e.element,i=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==s,l=Ud(n,t,[]);this._getPreviousPlayers(t,a,i,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}wp(s,e.fromStyles)}_buildAnimation(t,e,n,s,i,r){const o=e.triggerName,a=e.element,l=[],c=new Set,h=new Set,u=e.timelines.map(e=>{const u=e.element;c.add(u);const d=u.__ng_removed;if(d&&d.removedBeforeQueried)return new jd(e.duration,e.delay);const p=u!==a,f=function(t){const e=[];return function t(e,n){for(let s=0;s<e.length;s++){const i=e[s];i instanceof Hd?t(i.players,n):n.push(i)}}(t,e),e}((n.get(u)||_f).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),m=i.get(u),g=r.get(u),_=zd(0,this._normalizer,0,e.keyframes,m,g),y=this._buildPlayer(e,_,f);if(e.subTimeline&&s&&h.add(u),p){const e=new xf(t,o,u);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{Ud(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let s;if(t instanceof Map){if(s=t.get(e),s){if(s.length){const t=s.indexOf(n);s.splice(t,1)}0==s.length&&t.delete(e)}}else if(s=t[e],s){if(s.length){const t=s.indexOf(n);s.splice(t,1)}0==s.length&&delete t[e]}return s}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Rf(t,up));const d=Bd(u);return d.onDestroy(()=>{c.forEach(t=>Af(t,up)),vp(a,e.toStyles)}),h.forEach(t=>{Ud(s,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new jd(t.duration,t.delay)}}class xf{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new jd,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=>$d(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){Ud(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 Tf(t){return t&&1===t.nodeType}function kf(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Of(t,e,n,s,i){const r=[];n.forEach(t=>r.push(kf(t)));const o=[];s.forEach((n,s)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(s,t,i);n&&0!=n.length||(s.__ng_removed=bf,o.push(s))}),t.set(s,r)});let a=0;return n.forEach(t=>kf(t,r[a++])),o}function If(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const s=new Set(e),i=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let r=i.get(e);if(r)return r;const o=e.parentNode;return r=n.has(o)?o:s.has(o)?1:t(o),i.set(e,r),r}(t);1!==e&&n.get(e).push(t)}),n}function Rf(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Af(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Df(t,e,n){Bd(n).onDone(()=>t.processLeaveNode(e))}function Pf(t,e,n){const s=n.get(t);if(!s)return!1;let i=e.get(t);return i?s.forEach(t=>i.add(t)):e.set(t,s),n.delete(t),!0}class Nf{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Sf(t,e,n),this._timelineEngine=new pf(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,s,i){const r=t+"-"+s;let o=this._triggerCache[r];if(!o){const t=[],e=Hp(this._driver,i,t);if(t.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new hf(t,e)}(s,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,s,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,s){this._transitionEngine.insertNode(t,e,n,s)}onRemove(t,e,n,s){this._transitionEngine.removeNode(t,e,s||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,s){if("@"==n.charAt(0)){const[t,i]=Qd(n);this._timelineEngine.command(t,e,i,s)}else this._transitionEngine.trigger(t,e,n,s)}listen(t,e,n,s,i){if("@"==n.charAt(0)){const[t,s]=Qd(n);return this._timelineEngine.listen(t,e,s,i)}return this._transitionEngine.listen(t,e,n,s,i)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Ff(t,e){let n=null,s=null;return Array.isArray(e)&&e.length?(n=Mf(e[0]),e.length>1&&(s=Mf(e[e.length-1]))):e&&(n=Mf(e)),n||s?new Lf(t,n,s):null}let Lf=(()=>{class t{constructor(e,n,s){this._element=e,this._startStyles=n,this._endStyles=s,this._state=0;let i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&vp(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(vp(this._element,this._initialStyles),this._endStyles&&(vp(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(wp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wp(this._element,this._endStyles),this._endStyles=null),vp(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Mf(t){let e=null;const n=Object.keys(t);for(let s=0;s<n.length;s++){const i=n[s];jf(i)&&(e=e||{},e[i]=t[i])}return e}function jf(t){return"display"===t||"position"===t}const Hf="animation",Vf="animationend";class Bf{constructor(t,e,n,s,i,r,o){this._element=t,this._name=e,this._duration=n,this._delay=s,this._easing=i,this._fillMode=r,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Qf(t,"").trim();n.length&&(function(t,e){let n=0;for(let s=0;s<t.length;s++)","===t.charAt(s)&&n++}(n),e=`${n}, ${e}`),Uf(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),qf(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){zf(this._element,this._name,"paused")}resume(){zf(this._element,this._name,"running")}setPosition(t){const e=$f(this._element,this._name);this._position=t*this._duration,Uf(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(),qf(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Qf(t,"").split(","),s=Wf(n,e);s>=0&&(n.splice(s,1),Uf(t,"",n.join(",")))}(this._element,this._name))}}function zf(t,e,n){Uf(t,"PlayState",n,$f(t,e))}function $f(t,e){const n=Qf(t,"");return n.indexOf(",")>0?Wf(n.split(","),e):Wf([n],e)}function Wf(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function qf(t,e,n){n?t.removeEventListener(Vf,e):t.addEventListener(Vf,e)}function Uf(t,e,n,s){const i=Hf+e;if(null!=s){const e=t.style[i];if(e.length){const t=e.split(",");t[s]=n,n=t.join(",")}}t.style[i]=n}function Qf(t,e){return t.style[Hf+e]}class Zf{constructor(t,e,n,s,i,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=s,this._delay=i,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=s+i,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._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Bf(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]:Dp(this.element,n))})}this.currentSnapshot=t}}class Kf extends jd{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=ip(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 Gf{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return tp(t)}matchesElement(t,e){return ep(t,e)}containsElement(t,e){return np(t,e)}query(t,e,n){return sp(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>ip(t));let s=`@keyframes ${e} {\n`,i="";n.forEach(t=>{i=" ";const e=parseFloat(t.offset);s+=`${i}${100*e}% {\n`,i+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(s+=`${i}animation-timing-function: ${n};\n`));default:return void(s+=`${i}${e}: ${n};\n`)}}),s+=i+"}\n"}),s+="}\n";const r=document.createElement("style");return r.innerHTML=s,r}animate(t,e,n,s,i,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof Zf),l={};Ip(n,s)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Rp(t,e,l));if(0==n)return new Kf(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=Ff(t,e),p=new Zf(t,e,h,n,s,i,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class Yf{constructor(t,e,n,s){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(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){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]:Dp(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Xf{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Jf().toString()),this._cssKeyframesDriver=new Gf}validateStyleProperty(t){return tp(t)}matchesElement(t,e){return ep(t,e)}containsElement(t,e){return np(t,e)}query(t,e,n){return sp(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,s,i,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,s,i,r);const a={duration:n,delay:s,fill:0==s?"both":"forwards"};i&&(a.easing=i);const l={},c=r.filter(t=>t instanceof Yf);Ip(n,s)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=Ff(t,e=Rp(t,e=e.map(t=>_p(t,!1)),l));return new Yf(t,e,a,h)}}function Jf(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let tm=(()=>{class t extends Od{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:ce.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Dd(t):t;return sm(this._renderer,null,e,"register",[n]),new em(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Kt(wa),Kt(ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class em extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new nm(this._id,t,e||{},this._renderer)}}class nm{constructor(t,e,n,s){this.id=t,this.element=e,this._renderer=s,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 sm(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")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function sm(t,e,n,s,i){return t.setProperty(e,`@@${n}:${s}`,i)}const im="@",rm="@.disabled";let om=(()=>{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 am("",n,this.engine),this._rendererCache.set(n,t)),t}const s=e.id,i=e.id+"-"+this._currentId;this._currentId++,this.engine.register(i,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(s,i,t,e.name,e)};return e.data.animation.forEach(r),new lm(this,i,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)(Kt(wa),Kt(Nf),Kt(Zl))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class am{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){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}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,s){this.delegate.setAttribute(t,e,n,s)}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,s){this.delegate.setStyle(t,e,n,s)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==im&&e==rm?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 lm extends am{constructor(t,e,n,s){super(e,n,s),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==im?"."==e.charAt(1)&&e==rm?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)==im){const s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let i=e.substr(1),r="";return i.charAt(0)!=im&&([i,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(i)),this.engine.listen(this.namespaceId,s,i,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let cm=(()=>{class t extends Nf{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(Kt(ih),Kt(op),Kt(nf))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const hm=new jt("AnimationModuleType"),um=[{provide:op,useFactory:function(){return"function"==typeof Jf()?new Xf:new Gf}},{provide:hm,useValue:"BrowserAnimations"},{provide:Od,useClass:tm},{provide:nf,useFactory:function(){return new sf}},{provide:Nf,useClass:cm},{provide:wa,useFactory:function(t,e,n){return new om(t,e,n)},deps:[pd,Nf,Zl]}];let dm=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:um,imports:[kd]}),t})();var pm=n("5vqC");class fm{constructor(t,e,n,s,i){this.element=t,this.newWidth=e,this.newHeight=n,this.oldWidth=s,this.oldHeight=i}}let mm=(()=>{class t{constructor(t){this.element=t,this.resized=new ul}ngOnInit(){pm.ResizeSensor&&(this.resizeSensor=new pm.ResizeSensor(this.element.nativeElement,()=>this.onResized()))}ngOnDestroy(){this.resizeSensor&&this.resizeSensor.detach()}onResized(){const t=this.element.nativeElement.clientWidth,e=this.element.nativeElement.clientHeight;if(t===this.oldWidth&&e===this.oldHeight)return;const n=new fm(this.element,t,e,this.oldWidth,this.oldHeight);this.oldWidth=this.element.nativeElement.clientWidth,this.oldHeight=this.element.nativeElement.clientHeight,this.resized.emit(n)}}return t.\u0275fac=function(e){return new(e||t)(bo(ba))},t.\u0275dir=be({type:t,selectors:[["","resized",""]],outputs:{resized:"resized"}}),t})(),gm=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[]]}),t})(),_m=(()=>{class t{constructor(t){this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container",e=this._document.querySelectorAll("."+t);if(null==e?void 0:e.length)this._containerElement=e[0];else{const e=this._document.createElement("div");e.classList.add(t),this._document.body.appendChild(e),this._containerElement=e}}}return t.\u0275fac=function(e){return new(e||t)(Kt(ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function ym(){}function bm(t,e,n){return function(s){return s.lift(new vm(t,e,n))}}class vm{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new wm(t,this.nextOrObserver,this.error,this.complete))}}class wm extends f{constructor(t,e,n,i){super(t),this._tapNext=ym,this._tapError=ym,this._tapComplete=ym,this._tapError=n||ym,this._tapComplete=i||ym,s(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||ym,this._tapError=e.error||ym,this._tapComplete=e.complete||ym)}_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()}}function Cm(t,e=kc){return n=>n.lift(new Em(t,e))}class Em{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Sm(t,this.dueTime,this.scheduler))}}class Sm extends f{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(xm,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 xm(t){t.debouncedNext()}let Tm=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),km=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Tm]}),t})();function Om(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const Im="cdk-describedby-message-container",Rm="cdk-describedby-host";let Am=0;const Dm=new Map;let Pm=null,Nm=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Dm.set(e,{messageElement:e,referenceCount:0})):Dm.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=Dm.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}Pm&&0===Pm.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(Rm);Pm&&this._deleteMessagesContainer(),Dm.clear()}_createMessageElement(t){const e=this._document.createElement("div");this._setMessageId(e),e.textContent=t,this._createMessagesContainer(),Pm.appendChild(e),Dm.set(t,{messageElement:e,referenceCount:0})}_setMessageId(t){t.id||(t.id="cdk-describedby-message-"+Am++)}_deleteMessageElement(t){const e=Dm.get(t),n=e&&e.messageElement;Pm&&n&&Pm.removeChild(n),Dm.delete(t)}_createMessagesContainer(){if(!Pm){const t=!this._platform||!this._platform.EDGE&&!this._platform.TRIDENT,e=this._document.getElementById(Im);e&&e.parentNode&&e.parentNode.removeChild(e),Pm=this._document.createElement("div"),Pm.id=Im,Pm.classList.add("cdk-visually-hidden"),Pm.setAttribute("aria-hidden",t+""),this._document.body.appendChild(Pm)}}_deleteMessagesContainer(){Pm&&Pm.parentNode&&(Pm.parentNode.removeChild(Pm),Pm=null)}_removeCdkDescribedByReferenceIds(t){const e=Om(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=Dm.get(e);!function(t,e,n){const s=Om(t,e);s.some(t=>t.trim()==n.trim())||(s.push(n.trim()),t.setAttribute(e,s.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute(Rm,""),n.referenceCount++}_removeMessageReference(t,e){const n=Dm.get(e);n.referenceCount--,function(t,e,n){const s=Om(t,e).filter(t=>t!=n.trim());s.length?t.setAttribute(e,s.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(Rm)}_isElementDescribedByMessage(t,e){const n=Om(t,"aria-describedby"),s=Dm.get(e),i=s&&s.messageElement.id;return!!i&&-1!=n.indexOf(i)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":(""+e).trim(),s=t.getAttribute("aria-label");return!(!n||s&&s.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Kt(ih),Kt(Qh))},t.\u0275prov=ht({factory:function(){return new t(Kt(ih),Kt(Qh))},token:t,providedIn:"root"}),t})();function Fm(t){return 0===t.buttons}"undefined"!=typeof Element&&Element;const Lm=new jt("cdk-focus-monitor-default-options"),Mm=Kh({passive:!0,capture:!0});let jm=(()=>{class t{constructor(t,e,n,s){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=Fm(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=Hm(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=Hm(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let s=e;s;s=s.parentElement)n.call(this,t,s)},this._document=n,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return wc(null);const n=vc(t),s=function(t){if(function(){if(null==Uh){const t="undefined"!=typeof document?document.head:null;Uh=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Uh}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(n)||this._getDocument(),i=this._elementInfo.get(n);if(i)return e&&(i.checkChildren=!0),i.subject;const r={checkChildren:e,subject:new E,rootNode:s};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=vc(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 s=vc(t);this._setOriginForCurrentEventQueue(e),"function"==typeof s.focus&&s.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=Hm(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);if(!n||!n.checkChildren&&e!==Hm(t))return;const s=this._getFocusOrigin(t);this._setClasses(e,s),this._emitOrigin(n.subject,s),this._lastFocusOrigin=s}_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,Mm),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Mm)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Mm),t.addEventListener("mousedown",this._documentMousedownListener,Mm),t.addEventListener("touchstart",this._documentTouchstartListener,Mm),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,Mm),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Mm),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Mm),t.removeEventListener("mousedown",this._documentMousedownListener,Mm),t.removeEventListener("touchstart",this._documentTouchstartListener,Mm),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Zl),Kt(Qh),Kt(ih,8),Kt(Lm,8))},t.\u0275prov=ht({factory:function(){return new t(Kt(Zl),Kt(Qh),Kt(ih,8),Kt(Lm,8))},token:t,providedIn:"root"}),t})();function Hm(t){return t.composedPath?t.composedPath()[0]:t.target}const Vm="cdk-high-contrast-black-on-white",Bm="cdk-high-contrast-white-on-black",zm="cdk-high-contrast-active";let $m=(()=>{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,s=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),s){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(zm),t.remove(Vm),t.remove(Bm);const e=this.getHighContrastMode();1===e?(t.add(zm),t.add(Vm)):2===e&&(t.add(zm),t.add(Bm))}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Qh),Kt(ih))},t.\u0275prov=ht({factory:function(){return new t(Kt(Qh),Kt(ih))},token:t,providedIn:"root"}),t})(),Wm=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt($m))},imports:[[Zh,km]]}),t})();const qm=new Ta("10.2.0"),Um=new Ta("10.2.0"),Qm=new jt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Zm,Km=(()=>{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)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Is()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);const s=getComputedStyle(n);s&&"none"!==s.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"),e.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Um.full!==qm.full&&console.warn("The Angular Material version ("+Um.full+") does not match the Angular CDK version ("+qm.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt($m),Kt(Qm,8),Kt(ih,8))},imports:[[Jh],Jh]}),t})();function Gm(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=_c(t)}}}function Ym(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 Xm(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=_c(t)}}}try{Zm="undefined"!=typeof Intl}catch(Tb){Zm=!1}class Jm{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const tg={enterDuration:450,exitDuration:400},eg=Kh({passive:!0}),ng=["mousedown","touchstart"],sg=["mouseup","mouseleave","touchend","touchcancel"];class ig{constructor(t,e,n,s){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=vc(n))}fadeInRipple(t,e,n={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),i=Object.assign(Object.assign({},tg),n.animation);n.centered&&(t=s.left+s.width/2,e=s.top+s.height/2);const r=n.radius||function(t,e,n){const s=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),i=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(s*s+i*i)}(t,e,s),o=t-s.left,a=e-s.top,l=i.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new Jm(this,c,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,n.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}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,s=Object.assign(Object.assign({},tg),t.config.animation);n.style.transitionDuration=s.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=vc(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(ng))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(sg),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Fm(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){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,eg)})})}_removeTriggerEvents(){this._triggerElement&&(ng.forEach(t=>{this._triggerElement.removeEventListener(t,this,eg)}),this._pointerUpEventsRegistered&&sg.forEach(t=>{this._triggerElement.removeEventListener(t,this,eg)}))}}const rg=new jt("mat-ripple-global-options");let og=(()=>{class t{constructor(t,e,n,s,i){this._elementRef=t,this._animationMode=i,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new ig(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){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()}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)(bo(ba),bo(Zl),bo(Qh),bo(rg,8),bo(hm,8))},t.\u0275dir=be({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Zo("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})(),ag=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Km,Zh],Km]}),t})();const lg=["mat-button",""],cg=["*"],hg=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class ug{constructor(t){this._elementRef=t}}const dg=Ym(Gm(Xm(ug)));let pg=(()=>{class t extends dg{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 s of hg)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);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="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,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)(bo(ba),bo(jm),bo(hm,8))},t.\u0275cmp=pe({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){var n;1&t&&El(og,!0),2&t&&Cl(n=Sl())&&(e.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(go("disabled",e.disabled||null),Zo("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ua],attrs:lg,ngContentSelectors:cg,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&&(Fo(),Co(0,"span",0),Lo(1),Eo(),So(2,"span",1),So(3,"span",2)),2&t&&(wi(2),Zo("mat-button-ripple-round",e.isRoundButton||e.isIconButton),vo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[og],styles:[".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}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.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:block;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}\n"],encapsulation:2,changeDetection:0}),t})(),fg=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[ag,Km],Km]}),t})();function mg(t,e){return new y(n=>{const s=t.length;if(0===s)return void n.complete();const i=new Array(s);let r=0,o=0;for(let a=0;a<s;a++){const l=L(t[a]);let c=!1;n.add(l.subscribe({next:t=>{c||(c=!0,o++),i[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==s&&c||(o===s&&n.next(e?e.reduce((t,e,n)=>(t[e]=i[n],t),{}):i),n.complete())}}))}})}function gg(t){return function(e){const n=new _g(t),s=e.lift(n);return n.caught=s}}class _g{constructor(t){this.selector=t}call(t,e){return e.subscribe(new yg(t,this.selector,this.caught))}}class yg extends j{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const s=new M(this);this.add(s);const i=H(n,s);i!==s&&this.add(i)}}}class bg{constructor(t){this.callback=t}call(t,e){return e.subscribe(new vg(t,this.callback))}}class vg extends f{constructor(t,e){super(t),this.add(new u(e))}}class wg{}class Cg{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),s=n.toLowerCase(),i=t.slice(e+1).trim();this.maybeSetNormalizedName(n,s),this.headers.has(s)?this.headers.get(s).push(i):this.headers.set(s,[i])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const s=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(e,s))})}:this.headers=new Map}has(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 Cg?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 Cg;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Cg?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 s=("a"===t.op?this.headers.get(e):void 0)||[];s.push(...n),this.headers.set(e,s);break;case"d":const i=t.value;if(i){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===i.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 Eg{encodeKey(t){return Sg(t)}encodeValue(t){return Sg(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Sg(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,"/")}class xg{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Eg,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.split("&").forEach(t=>{const s=t.indexOf("="),[i,r]=-1==s?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,s)),e.decodeValue(t.slice(s+1))],o=n.get(i)||[];o.push(r),n.set(i,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"})}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 xg({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function Tg(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function kg(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Og(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Ig{constructor(t,e,n,s){let i;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)||s?(this.body=void 0!==n?n:null,i=s):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new Cg),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 xg,this.urlWithParams=e}serializeBody(){return null===this.body?null:Tg(this.body)||kg(this.body)||Og(this.body)||"string"==typeof this.body?this.body:this.body instanceof xg?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||Og(this.body)?null:kg(this.body)?this.body.type||null:Tg(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof xg?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,s=t.responseType||this.responseType,i=void 0!==t.body?t.body:this.body,r=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new Ig(e,n,i,{params:l,headers:a,reportProgress:o,responseType:s,withCredentials:r})}}var Rg=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class Ag extends class{constructor(t,e=200,n="OK"){this.headers=t.headers||new Cg,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}}{constructor(t={}){super(t),this.type=Rg.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ag({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})}}function Dg(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Pg=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let s;if(t instanceof Ig)s=t;else{let i=void 0;i=n.headers instanceof Cg?n.headers:new Cg(n.headers);let r=void 0;n.params&&(r=n.params instanceof xg?n.params:new xg({fromObject:n.params})),s=new Ig(t,e,void 0!==n.body?n.body:null,{headers:i,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=wc(s).pipe(V(t=>this.handler.handle(t),void 0,1));if(t instanceof Ig||"events"===n.observe)return i;const r=i.pipe(Pc(t=>t instanceof Ag));switch(n.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return r.pipe(T(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(T(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(T(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(T(t=>t.body))}case"response":return r;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 xg).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,Dg(n,e))}post(t,e,n={}){return this.request("POST",t,Dg(n,e))}put(t,e,n={}){return this.request("PUT",t,Dg(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Kt(wg))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Ng=["*"];function Fg(t){return Error(`Unable to find icon with the name "${t}"`)}function Lg(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Mg(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class jg{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let Hg=(()=>{class t{constructor(t,e,n,s){this._httpClient=t,this._sanitizer=e,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,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,s){return this._addSvgIconConfig(t,e,new jg(n,null,s))}addSvgIconLiteralInNamespace(t,e,n,s){const i=this._sanitizer.sanitize(Js.HTML,n);if(!i)throw Mg(n);return this._addSvgIconConfig(t,e,new jg("",i,s))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new jg(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const s=this._sanitizer.sanitize(Js.HTML,e);if(!s)throw Mg(e);return this._addSvgIconSetConfig(t,new jg("",s,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(Js.RESOURCE_URL,t);if(!e)throw Lg(t);const n=this._cachedIconsByUrl.get(e);return n?wc(Vg(n)):this._loadSvgIconFromConfig(new jg(t,null)).pipe(bm(t=>this._cachedIconsByUrl.set(e,t)),T(t=>Vg(t)))}getNamedSvgIcon(t,e=""){const n=Bg(e,t),s=this._svgIconConfigs.get(n);if(s)return this._getSvgFromConfig(s);const i=this._iconSetConfigs.get(e);return i?this._getSvgFromIconSetConfigs(t,i):Kc(Fg(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?wc(Vg(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(T(t=>Vg(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?wc(n):function(...t){if(1===t.length){const e=t[0];if(l(e))return mg(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return mg(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return mg(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(T(t=>e(...t)))}return mg(t,null)}(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(gg(e=>{const n=this._sanitizer.sanitize(Js.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),wc(null)})))).pipe(T(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw Fg(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const s=e[n];if(s.svgText&&s.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(s),n=this._extractSvgIconFromSet(e,t,s.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(bm(e=>t.svgText=e),T(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?wc(null):this._fetchIcon(t).pipe(bm(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const s=t.querySelector(`[id="${e}"]`);if(!s)return null;const i=s.cloneNode(!0);if(i.removeAttribute("id"),"svg"===i.nodeName.toLowerCase())return this._setSvgAttributes(i,n);if("symbol"===i.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(i),n);const r=this._svgElementFromString("<svg></svg>");return r.appendChild(i),this._setSvgAttributes(r,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString("<svg></svg>"),n=t.attributes;for(let s=0;s<n.length;s++){const{name:t,value:i}=n[s];"id"!==t&&e.setAttribute(t,i)}for(let s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[s].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){var e;const{url:n,options:s}=t,i=null!==(e=null==s?void 0:s.withCredentials)&&void 0!==e&&e;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==n)throw Error(`Cannot fetch icon from URL "${n}".`);const r=this._sanitizer.sanitize(Js.RESOURCE_URL,n);if(!r)throw Lg(n);const o=this._inProgressUrlFetches.get(r);if(o)return o;const a=this._httpClient.get(r,{responseType:"text",withCredentials:i}).pipe((l=()=>this._inProgressUrlFetches.delete(r),t=>t.lift(new bg(l))),J());var l;return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(Bg(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}}return t.\u0275fac=function(e){return new(e||t)(Kt(Pg,8),Kt(Ed),Kt(ih,8),Kt(_s))},t.\u0275prov=ht({factory:function(){return new t(Kt(Pg,8),Kt(Ed),Kt(ih,8),Kt(_s))},token:t,providedIn:"root"}),t})();function Vg(t){return t.cloneNode(!0)}function Bg(t,e){return t+":"+e}class zg{constructor(t){this._elementRef=t}}const $g=Ym(zg),Wg=new jt("mat-icon-location",{providedIn:"root",factory:function(){const t=Gt(ih),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),qg=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Ug=qg.map(t=>`[${t}]`).join(", "),Qg=/^url\(['"]?#(.*?)['"]?\)$/;let Zg=(()=>{class t extends $g{constructor(t,e,n,s,i){super(t),this._iconRegistry=e,this._location=s,this._errorHandler=i,this._inline=!1,this._currentIconFetch=u.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=_c(t)}get fontSet(){return this._fontSet}set fontSet(t){this._fontSet=this._cleanupFontValue(t)}get fontIcon(){return this._fontIcon}set fontIcon(t){this._fontIcon=this._cleanupFontValue(t)}_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}"`)}}ngOnChanges(t){const e=t.svgIcon;if(this._svgNamespace=null,this._svgName=null,e)if(this._currentIconFetch.unsubscribe(),this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);t&&(this._svgNamespace=t),e&&(this._svgName=e),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(e,t).pipe(du(1)).subscribe(t=>this._setSvgElement(t),n=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${e}! ${n.message}`))})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&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 s=0;s<e.length;s++)e[s].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(Ug),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<e.length;s++)qg.forEach(t=>{const i=e[s],r=i.getAttribute(t),o=r?r.match(Qg):null;if(o){let e=n.get(i);e||(e=[],n.set(i,e)),e.push({name:t,value:o[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(bo(ba),bo(Hg),("aria-hidden",function(t,e){const n=t.attrs;if(n){const t=n.length;let s=0;for(;s<t;){const i=n[s];if(Mn(i))break;if(0===i)s+=2;else if("number"==typeof i)for(s++;s<t&&"string"==typeof n[s];)s++;else{if(i===e)return n[s+1];s+=2}}}return null}(an(),"aria-hidden")),bo(Wg),bo(_s))},t.\u0275cmp=pe({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(go("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),Zo("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[ua,Ne],ngContentSelectors:Ng,decls:1,vars:0,template:function(t,e){1&t&&(Fo(),Lo(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})(),Kg=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Km],Km]}),t})();class Gg extends f{notifyNext(t,e,n,s,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Yg extends f{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()}}function Xg(t,e,n,s,i=new Yg(t,n,s)){if(!i.closed)return e instanceof y?e.subscribe(i):N(e)(i)}const Jg={};class t_{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new e_(t,this.resultSelector))}}class e_ extends Gg{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Jg),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(Xg(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const s=this.values,i=this.toRespond?s[n]===Jg?--this.toRespond:this.toRespond:0;s[n]=e,0===i&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}class n_{constructor(t){this.total=t}call(t,e){return e.subscribe(new s_(t,this.total))}}class s_ extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const i_=new Set;let r_,o_=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):a_}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!i_.has(t))try{r_||(r_=document.createElement("style"),r_.setAttribute("type","text/css"),document.head.appendChild(r_)),r_.sheet&&(r_.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),i_.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Qh))},t.\u0275prov=ht({factory:function(){return new t(Kt(Qh))},token:t,providedIn:"root"}),t})();function a_(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let l_=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new E}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return c_(yc(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=function(...t){let e=void 0,n=void 0;return x(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),W(t,n).lift(new t_(e))}(c_(yc(t)).map(t=>this._registerQuery(t).observable));return e=Hc(e.pipe(du(1)),e.pipe(t=>t.lift(new n_(1)),Cm(0))),e.pipe(T(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 y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Vc(e),T(({matches:e})=>({query:t,matches:e})),Lc(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(Kt(o_),Kt(Zl))},t.\u0275prov=ht({factory:function(){return new t(Kt(o_),Kt(Zl))},token:t,providedIn:"root"}),t})();function c_(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const h_={tooltipState:Rd("state",[Nd("initial, void, hidden",Pd({opacity:0,transform:"scale(0)"})),Nd("visible",Pd({transform:"scale(1)"})),Ld("* => visible",Ad("200ms cubic-bezier(0, 0, 0.2, 1)",Fd([Pd({opacity:0,transform:"scale(0)",offset:0}),Pd({opacity:.5,transform:"scale(0.99)",offset:.5}),Pd({opacity:1,transform:"scale(1)",offset:1})]))),Ld("* => hidden",Ad("100ms cubic-bezier(0, 0, 0.2, 1)",Pd({opacity:0})))])},u_=Kh({passive:!0}),d_=new jt("mat-tooltip-scroll-strategy"),p_={provide:d_,deps:[Bu],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},f_=new jt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let m_=(()=>{class t{constructor(t,e,n,s,i,r,o,a,l,c,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=s,this._ngZone=i,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new E,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!function(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),i.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=_c(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+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)})}))}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(Lc(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,u_)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),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 ou(g_,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Lc(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(Lc(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(Lc(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:s,y:i}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:s,originY:i}}}_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:s,y:i}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:s,overlayY:i}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(du(1),Lc(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()]);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,u_)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_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)(bo(Bu),bo(ba),bo(tu),bo(qa),bo(Zl),bo(Qh),bo(Nm),bo(jm),bo(d_),bo(Xh,8),bo(f_,8))},t.\u0275dir=be({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})(),g_=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new E,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}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)(bo(Ur),bo(l_))},t.\u0275cmp=pe({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&Ro("click",(function(){return e._handleBodyInteraction()}),!1,Zn),2&t&&Qo("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(Co(0,"div",0),Ro("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),function(t,e){const n=rn();let s;n.firstCreatePass?(s=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const s=e[n];if(t===s.name)return s}throw new Error("The pipe 'async' could not be found!")}("async",n.pipeRegistry),n.data[21]=s,s.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(21,s.onDestroy)):s=n.data[21];const i=s.factory||(s.factory=Ce(s.type)),r=Qt(bo),o=Yn(!1),a=i();Yn(o),Qt(r),function(t,e,n,s){21>=t.data.length&&(t.data[21]=null,t.blueprint[21]=null),e[21]=s}(n,sn(),0,a)}(),aa(2),Eo()),2&t&&(Zo("mat-tooltip-handset",null==(n=hl(1,5,e._isHandset))?null:n.matches),vo("ngClass",e.tooltipClass)("@state",e._visibility),wi(2),la(e.message))},directives:[Eh],pipes:[Bh],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:[h_.tooltipState]},changeDetection:0}),t})(),__=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[p_],imports:[[Wm,zh,$u,Km],Km,su]}),t})();const y_=new y(ym);function b_(t){return Boolean(t.parentElement&&"picture"===t.parentElement.nodeName.toLowerCase())}function v_(t){return"img"===t.nodeName.toLowerCase()}function w_(t,e,n){return v_(t)?n&&"srcset"in t?t.srcset=e:t.src=e:t.style.backgroundImage=`url('${e}')`,t}function C_(t){return e=>{const n=e.parentElement.getElementsByTagName("source");for(let s=0;s<n.length;s++){const e=n[s].getAttribute(t);e&&("srcset"in n[s]?n[s].srcset=e:n[s].src=e)}}}const E_=C_("defaultImage"),S_=C_("lazyLoad"),x_=C_("errorImage");function T_(t){return(e,n,s)=>{v_(e)&&b_(e)&&t(e),n&&w_(e,n,s)}}const k_=T_(E_),O_=T_(S_),I_=T_(x_),R_="ng-lazyloaded",A_="ng-lazyloading";function D_(t,e){t.className=t.className.replace(e,"")}function P_(t,e){t.className.includes(e)||(t.className+=" "+e)}let N_=(()=>{class t extends class extends class{constructor(){this.navigator="undefined"!=typeof window?window.navigator:void 0}setPlatformId(t){this.platformId=t}onDestroy(t){}onAttributeChange(t){}}{setup(t){var e;k_(t.element,t.defaultImagePath,t.useSrcset),P_(t.element,A_),(e=t.element).className&&e.className.includes("ng-lazyloaded")&&D_(t.element,R_)}finally(t){P_(t.element,R_),D_(t.element,A_)}loadImage(t){if(this.skipLazyLoading(t))return[t.imagePath];const{element:e,useSrcset:n,imagePath:s,decode:i}=t;let r;if(v_(e)&&b_(e)){const t=e.parentNode.cloneNode(!0);r=t.getElementsByTagName("img")[0],S_(r),w_(r,s,n)}else r=new Image,v_(e)&&e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),v_(e)&&e.sizes&&(r.sizes=e.sizes),n&&"srcset"in r?r.srcset=s:r.src=s;return i&&r.decode?r.decode().then(()=>s):new Promise((t,e)=>{r.onload=()=>t(s),r.onerror=()=>e(null)})}setErrorImage(t,e){const{element:n,useSrcset:s,errorImagePath:i}=e;I_(n,i,s),P_(n,"ng-failed-lazyloaded")}setLoadedImage(t,e){const{element:n,useSrcset:s}=e;O_(n,t,s)}isDisabled(){return"server"===this.platformId&&!this.isBot()}skipLazyLoading(t){return this.isBot(t)}isBot(t){var e;return!!(null===(e=this.navigator)||void 0===e?void 0:e.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(this.navigator.userAgent)}}{constructor(){super(...arguments),this.observers=new WeakMap,this.intersectionSubject=new E,this.uniqKey={}}getObservable(t){if(this.skipLazyLoading(t))return wc({isIntersecting:!0});if(t.customObservable)return t.customObservable;const e=t.scrollContainer||this.uniqKey,n={root:t.scrollContainer||null};t.offset&&(n.rootMargin=t.offset+"px");let s=this.observers.get(e);return s||(s=new IntersectionObserver(t=>this.loadingCallback(t),n),this.observers.set(e,s)),s.observe(t.element),y.create(e=>{const n=this.intersectionSubject.pipe(Pc(e=>e.target===t.element)).subscribe(e);return()=>{n.unsubscribe(),s.unobserve(t.element)}})}isVisible(t){return t.isIntersecting}loadingCallback(t){t.forEach(t=>this.intersectionSubject.next(t))}}return t.\u0275fac=function(e){return F_(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const F_=ps(N_),L_=new jt("LazyLoadImageHooks");let M_=(()=>{class t{constructor(t,e,n,s){this.onStateChange=new ul,this.elementRef=t,this.ngZone=e,this.propertyChanges$=new th,this.hooks=s,this.hooks.setPlatformId(n),this.uid=Math.random().toString(36).substr(2,9)}ngOnChanges(){!0!==this.debug||this.debugSubscription||(this.debugSubscription=this.onStateChange.subscribe(t=>console.log(t))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange,id:this.uid})}ngAfterContentInit(){if(this.hooks.isDisabled())return null;this.ngZone.runOutsideAngular(()=>{this.loadSubscription=this.propertyChanges$.pipe(bm(t=>this.hooks.onAttributeChange(t)),bm(t=>t.onStateChange.emit({reason:"setup"})),bm(t=>this.hooks.setup(t)),Bc(t=>t.imagePath?this.hooks.getObservable(t).pipe(function(t,e){return n=>n.pipe(bm(t=>e.onStateChange.emit({reason:"observer-emit",data:t})),Pc(n=>t.isVisible(n,e)),du(1),bm(()=>e.onStateChange.emit({reason:"start-loading"})),V(()=>t.loadImage(e)),bm(()=>e.onStateChange.emit({reason:"mount-image"})),bm(n=>t.setLoadedImage(n,e)),bm(()=>e.onStateChange.emit({reason:"loading-succeeded"})),T(()=>!0),gg(n=>(e.onStateChange.emit({reason:"loading-failed",data:n}),t.setErrorImage(n,e),wc(!1))),bm(()=>{e.onStateChange.emit({reason:"finally"}),t.finally(e)}))}(this.hooks,t)):y_)).subscribe({next:()=>null})})}ngOnDestroy(){var t,e;this.propertyChanges$.pipe(du(1)).subscribe({next:t=>this.hooks.onDestroy(t)}).unsubscribe(),null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(e=this.debugSubscription)||void 0===e||e.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(bo(ba),bo(Zl),bo(Pl),bo(L_))},t.\u0275dir=be({type:t,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange"},features:[Ne]}),t})(),j_=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[{provide:L_,useClass:N_}]}),t})();var H_="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,V_=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(H_&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}(),B_=H_&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),V_))}};function z_(t){return t&&"[object Function]"==={}.toString.call(t)}function $_(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function W_(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function q_(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=$_(t);return/(auto|scroll|overlay)/.test(e.overflow+e.overflowY+e.overflowX)?t:q_(W_(t))}function U_(t){return t&&t.referenceNode?t.referenceNode:t}var Q_=H_&&!(!window.MSInputMethodContext||!document.documentMode),Z_=H_&&/MSIE 10/.test(navigator.userAgent);function K_(t){return 11===t?Q_:10===t?Z_:Q_||Z_}function G_(t){if(!t)return document.documentElement;for(var e=K_(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var s=n&&n.nodeName;return s&&"BODY"!==s&&"HTML"!==s?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===$_(n,"position")?G_(n):n:t?t.ownerDocument.documentElement:document.documentElement}function Y_(t){return null!==t.parentNode?Y_(t.parentNode):t}function X_(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,s=n?t:e,i=n?e:t,r=document.createRange();r.setStart(s,0),r.setEnd(i,0);var o,a,l=r.commonAncestorContainer;if(t!==l&&e!==l||s.contains(i))return"BODY"===(a=(o=l).nodeName)||"HTML"!==a&&G_(o.firstElementChild)!==o?G_(l):l;var c=Y_(t);return c.host?X_(c.host,e):X_(t,Y_(e).host)}function J_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",s=t.nodeName;if("BODY"===s||"HTML"===s){var i=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||i;return r[n]}return t[n]}function ty(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=J_(e,"top"),i=J_(e,"left"),r=n?-1:1;return t.top+=s*r,t.bottom+=s*r,t.left+=i*r,t.right+=i*r,t}function ey(t,e){var n="x"===e?"Left":"Top",s="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+s+"Width"])}function ny(t,e,n,s){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],K_(10)?parseInt(n["offset"+t])+parseInt(s["margin"+("Height"===t?"Top":"Left")])+parseInt(s["margin"+("Height"===t?"Bottom":"Right")]):0)}function sy(t){var e=t.body,n=t.documentElement,s=K_(10)&&getComputedStyle(n);return{height:ny("Height",e,n,s),width:ny("Width",e,n,s)}}var iy=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},ry=function(){function t(t,e){for(var n=0;n<e.length;n++){var s=e[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,n,s){return n&&t(e.prototype,n),s&&t(e,s),e}}(),oy=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},ay=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t};function ly(t){return ay({},t,{right:t.left+t.width,bottom:t.top+t.height})}function cy(t){var e={};try{if(K_(10)){e=t.getBoundingClientRect();var n=J_(t,"top"),s=J_(t,"left");e.top+=n,e.left+=s,e.bottom+=n,e.right+=s}else e=t.getBoundingClientRect()}catch(c){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?sy(t.ownerDocument):{},o=t.offsetWidth-(r.width||t.clientWidth||i.width),a=t.offsetHeight-(r.height||t.clientHeight||i.height);if(o||a){var l=$_(t);o-=ey(l,"x"),a-=ey(l,"y"),i.width-=o,i.height-=a}return ly(i)}function hy(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=K_(10),i="HTML"===e.nodeName,r=cy(t),o=cy(e),a=q_(t),l=$_(e),c=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var u=ly({top:r.top-o.top-c,left:r.left-o.left-h,width:r.width,height:r.height});if(u.marginTop=0,u.marginLeft=0,!s&&i){var d=parseFloat(l.marginTop),p=parseFloat(l.marginLeft);u.top-=c-d,u.bottom-=c-d,u.left-=h-p,u.right-=h-p,u.marginTop=d,u.marginLeft=p}return(s&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(u=ty(u,e)),u}function uy(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,s=hy(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),o=e?0:J_(n),a=e?0:J_(n,"left"),l={top:o-s.top+s.marginTop,left:a-s.left+s.marginLeft,width:i,height:r};return ly(l)}function dy(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===$_(t,"position"))return!0;var n=W_(t);return!!n&&dy(n)}function py(t){if(!t||!t.parentElement||K_())return document.documentElement;for(var e=t.parentElement;e&&"none"===$_(e,"transform");)e=e.parentElement;return e||document.documentElement}function fy(t,e,n,s){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},o=i?py(t):X_(t,U_(e));if("viewport"===s)r=uy(o,i);else{var a=void 0;"scrollParent"===s?"BODY"===(a=q_(W_(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===s?t.ownerDocument.documentElement:s;var l=hy(a,o,i);if("HTML"!==a.nodeName||dy(o))r=l;else{var c=sy(t.ownerDocument),h=c.height,u=c.width;r.top+=l.top-l.marginTop,r.bottom=h+l.top,r.left+=l.left-l.marginLeft,r.right=u+l.left}}var d="number"==typeof(n=n||0);return r.left+=d?n:n.left||0,r.top+=d?n:n.top||0,r.right-=d?n:n.right||0,r.bottom-=d?n:n.bottom||0,r}function my(t){return t.width*t.height}function gy(t,e,n,s,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var o=fy(n,s,r,i),a={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},l=Object.keys(a).map((function(t){return ay({key:t},a[t],{area:my(a[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){return t.width>=n.clientWidth&&t.height>=n.clientHeight})),h=c.length>0?c[0].key:l[0].key,u=t.split("-")[1];return h+(u?"-"+u:"")}function _y(t,e,n){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=s?py(e):X_(e,U_(n));return hy(n,i,s)}function yy(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),s=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+s,height:t.offsetHeight+n}}function by(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function vy(t,e,n){n=n.split("-")[0];var s=yy(t),i={width:s.width,height:s.height},r=-1!==["right","left"].indexOf(n),o=r?"top":"left",a=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return i[o]=e[o]+e[l]/2-s[l]/2,i[a]=n===a?e[a]-s[c]:e[by(a)],i}function wy(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Cy(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t.name===n}));var s=wy(t,(function(t){return t.name===n}));return t.indexOf(s)}(t,0,n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&z_(n)&&(e.offsets.popper=ly(e.offsets.popper),e.offsets.reference=ly(e.offsets.reference),e=n(e,t))})),e}function Ey(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=_y(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=gy(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=vy(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Cy(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function Sy(t,e){return t.some((function(t){return t.enabled&&t.name===e}))}function xy(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),s=0;s<e.length;s++){var i=e[s],r=i?""+i+n:t;if(void 0!==document.body.style[r])return r}return null}function Ty(){return this.state.isDestroyed=!0,Sy(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[xy("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function ky(t){var e=t.ownerDocument;return e?e.defaultView:window}function Oy(){this.state.eventsEnabled||(this.state=function(t,e,n,s){n.updateBound=s,ky(t).addEventListener("resize",n.updateBound,{passive:!0});var i=q_(t);return function t(e,n,s,i){var r="BODY"===e.nodeName,o=r?e.ownerDocument.defaultView:e;o.addEventListener(n,s,{passive:!0}),r||t(q_(o.parentNode),n,s,i),i.push(o)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}(this.reference,0,this.state,this.scheduleUpdate))}function Iy(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(t,e){return ky(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}(this.reference,this.state))}function Ry(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function Ay(t,e){Object.keys(e).forEach((function(n){var s="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Ry(e[n])&&(s="px"),t.style[n]=e[n]+s}))}var Dy=H_&&/Firefox/i.test(navigator.userAgent);function Py(t,e,n){var s=wy(t,(function(t){return t.name===e})),i=!!s&&t.some((function(t){return t.name===n&&t.enabled&&t.order<s.order}));if(!i){var r="`"+e+"`";console.warn("`"+n+"` modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return i}var Ny=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Fy=Ny.slice(3);function Ly(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Fy.indexOf(t),s=Fy.slice(n+1).concat(Fy.slice(0,n));return e?s.reverse():s}var My={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],s=e.split("-")[1];if(s){var i=t.offsets,r=i.reference,o=i.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",h={start:oy({},l,r[l]),end:oy({},l,r[l]+r[c]-o[c])};t.offsets.popper=ay({},o,h[s])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n,s=e.offset,i=t.offsets,r=i.popper,o=i.reference,a=t.placement.split("-")[0];return n=Ry(+s)?[+s,0]:function(t,e,n,s){var i=[0,0],r=-1!==["right","left"].indexOf(s),o=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=o.indexOf(wy(o,(function(t){return-1!==t.search(/,|\s/)})));o[a]&&-1===o[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[o.slice(0,a).concat([o[a].split(l)[0]]),[o[a].split(l)[1]].concat(o.slice(a+1))]:[o];return(c=c.map((function(t,s){var i=(1===s?!r:r)?"height":"width",o=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,o=!0,t):o?(t[t.length-1]+=e,o=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,s){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],o=i[2];if(!r)return t;if(0===o.indexOf("%")){var a=void 0;switch(o){case"%p":a=n;break;case"%":case"%r":default:a=s}return ly(a)[e]/100*r}return"vh"===o||"vw"===o?("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r:r}(t,i,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,s){Ry(n)&&(i[e]+=n*("-"===t[s-1]?-1:1))}))})),i}(s,r,o,a),"left"===a?(r.top+=n[0],r.left-=n[1]):"right"===a?(r.top+=n[0],r.left+=n[1]):"top"===a?(r.left+=n[0],r.top-=n[1]):"bottom"===a&&(r.left+=n[0],r.top+=n[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||G_(t.instance.popper);t.instance.reference===n&&(n=G_(n));var s=xy("transform"),i=t.instance.popper.style,r=i.top,o=i.left,a=i[s];i.top="",i.left="",i[s]="";var l=fy(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=r,i.left=o,i[s]=a,e.boundaries=l;var c=t.offsets.popper,h={primary:function(t){var n=c[t];return c[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(c[t],l[t])),oy({},t,n)},secondary:function(t){var n="right"===t?"left":"top",s=c[n];return c[t]>l[t]&&!e.escapeWithReference&&(s=Math.min(c[n],l[t]-("right"===t?c.width:c.height))),oy({},n,s)}};return e.priority.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=ay({},c,h[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,s=e.reference,i=t.placement.split("-")[0],r=Math.floor,o=-1!==["top","bottom"].indexOf(i),a=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return n[a]<r(s[l])&&(t.offsets.popper[l]=r(s[l])-n[c]),n[l]>r(s[a])&&(t.offsets.popper[l]=r(s[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Py(t.instance.modifiers,"arrow","keepTogether"))return t;var s=e.element;if("string"==typeof s){if(!(s=t.instance.popper.querySelector(s)))return t}else if(!t.instance.popper.contains(s))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],r=t.offsets,o=r.popper,a=r.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",h=l?"Top":"Left",u=h.toLowerCase(),d=l?"left":"top",p=l?"bottom":"right",f=yy(s)[c];a[p]-f<o[u]&&(t.offsets.popper[u]-=o[u]-(a[p]-f)),a[u]+f>o[p]&&(t.offsets.popper[u]+=a[u]+f-o[p]),t.offsets.popper=ly(t.offsets.popper);var m=a[u]+a[c]/2-f/2,g=$_(t.instance.popper),_=parseFloat(g["margin"+h]),y=parseFloat(g["border"+h+"Width"]),b=m-t.offsets.popper[u]-_-y;return b=Math.max(Math.min(o[c]-f,b),0),t.arrowElement=s,t.offsets.arrow=(oy(n={},u,Math.round(b)),oy(n,d,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(Sy(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=fy(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),s=t.placement.split("-")[0],i=by(s),r=t.placement.split("-")[1]||"",o=[];switch(e.behavior){case"flip":o=[s,i];break;case"clockwise":o=Ly(s);break;case"counterclockwise":o=Ly(s,!0);break;default:o=e.behavior}return o.forEach((function(a,l){if(s!==a||o.length===l+1)return t;s=t.placement.split("-")[0],i=by(s);var c=t.offsets.popper,h=t.offsets.reference,u=Math.floor,d="left"===s&&u(c.right)>u(h.left)||"right"===s&&u(c.left)<u(h.right)||"top"===s&&u(c.bottom)>u(h.top)||"bottom"===s&&u(c.top)<u(h.bottom),p=u(c.left)<u(n.left),f=u(c.right)>u(n.right),m=u(c.top)<u(n.top),g=u(c.bottom)>u(n.bottom),_="left"===s&&p||"right"===s&&f||"top"===s&&m||"bottom"===s&&g,y=-1!==["top","bottom"].indexOf(s),b=!!e.flipVariations&&(y&&"start"===r&&p||y&&"end"===r&&f||!y&&"start"===r&&m||!y&&"end"===r&&g)||!!e.flipVariationsByContent&&(y&&"start"===r&&f||y&&"end"===r&&p||!y&&"start"===r&&g||!y&&"end"===r&&m);(d||_||b)&&(t.flipped=!0,(d||_)&&(s=o[l+1]),b&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=s+(r?"-"+r:""),t.offsets.popper=ay({},t.offsets.popper,vy(t.instance.popper,t.offsets.reference,t.placement)),t=Cy(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],s=t.offsets,i=s.popper,r=s.reference,o=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[o?"left":"top"]=r[n]-(a?i[o?"width":"height"]:0),t.placement=by(e),t.offsets.popper=ly(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Py(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=wy(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,s=e.y,i=t.offsets.popper,r=wy(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o,a,l=void 0!==r?r:e.gpuAcceleration,c=G_(t.instance.popper),h=cy(c),u={position:i.position},d=function(t,e){var n=t.offsets,s=n.popper,i=Math.round,r=Math.floor,o=function(t){return t},a=i(n.reference.width),l=i(s.width),c=-1!==["left","right"].indexOf(t.placement),h=-1!==t.placement.indexOf("-"),u=e?c||h||a%2==l%2?i:r:o,d=e?i:o;return{left:u(a%2==1&&l%2==1&&!h&&e?s.left-1:s.left),top:d(s.top),bottom:d(s.bottom),right:u(s.right)}}(t,window.devicePixelRatio<2||!Dy),p="bottom"===n?"top":"bottom",f="right"===s?"left":"right",m=xy("transform");if(a="bottom"===p?"HTML"===c.nodeName?-c.clientHeight+d.bottom:-h.height+d.bottom:d.top,o="right"===f?"HTML"===c.nodeName?-c.clientWidth+d.right:-h.width+d.right:d.left,l&&m)u[m]="translate3d("+o+"px, "+a+"px, 0)",u[p]=0,u[f]=0,u.willChange="transform";else{var g="right"===f?-1:1;u[p]=a*("bottom"===p?-1:1),u[f]=o*g,u.willChange=p+", "+f}return t.attributes=ay({},{"x-placement":t.placement},t.attributes),t.styles=ay({},u,t.styles),t.arrowStyles=ay({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return Ay(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&Ay(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,s,i){var r=_y(i,e,t,n.positionFixed),o=gy(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",o),Ay(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},jy=function(){function t(e,n){var s=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};iy(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(s.update)},this.update=B_(this.update.bind(this)),this.options=ay({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(ay({},t.Defaults.modifiers,i.modifiers)).forEach((function(e){s.options.modifiers[e]=ay({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return ay({name:t},s.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&z_(t.onLoad)&&t.onLoad(s.reference,s.popper,s.options,t,s.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return ry(t,[{key:"update",value:function(){return Ey.call(this)}},{key:"destroy",value:function(){return Ty.call(this)}},{key:"enableEventListeners",value:function(){return Oy.call(this)}},{key:"disableEventListeners",value:function(){return Iy.call(this)}}]),t}();jy.Utils=("undefined"!=typeof window?window:global).PopperUtils,jy.placements=Ny,jy.Defaults=My;var Hy=jy;const Vy=["popperViewRef"];function By(t,e){1&t&&(Co(0,"div",5),Lo(1),Eo()),2&t&&vo("innerHTML",Po().text,ti)}function zy(t,e){1&t&&(Co(0,"div",6),Lo(1,1),Eo())}const $y=["*","*"];let Wy=(()=>{class t{}return t.CLICK="click",t.HOVER="hover",t.MOUSEDOWN="mousedown",t.NONE="none",t})(),qy=(()=>{class t{}return t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.TopStart="top-start",t.BottomStart="bottom-start",t.LeftStart="left-start",t.RightStart="right-start",t.TopEnd="top-end",t.BottomEnd="bottom-end",t.LeftEnd="left-end",t.RightEnd="right-end",t.Auto="auto",t.AutoStart="auto-start",t.AutoEnd="auto-end",t})(),Uy=(()=>{class t{constructor(t,e,n,s){this.elemRef=t,this.renderer=e,this.viewRef=n,this.CDR=s,this.popperOptions={disableAnimation:!1,disableDefaultStyling:!1,placement:qy.Auto,boundariesElement:"",trigger:Wy.HOVER,positionFixed:!1,appendToBody:!1,popperModifiers:{}},this.isMouseOver=!1,this.onHidden=new ul,this.displayType="none",this.opacity=0,this.ariaHidden="true",this.arrowColor=null,this.state=!0}onMouseOver(){this.isMouseOver=!0}showOnLeave(){this.isMouseOver=!1,(this.popperOptions.trigger===Wy.HOVER||this.popperOptions.hideOnMouseLeave)&&this.hide()}onDocumentResize(){this.update()}ngOnDestroy(){this.clean(),this.popperOptions.appendTo&&this.elemRef&&this.elemRef.nativeElement&&this.elemRef.nativeElement.parentNode&&(this.viewRef.detach(),this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement))}clean(){this.toggleVisibility(!1),this.popperInstance&&(this.popperInstance.disableEventListeners(),this.popperInstance.destroy())}show(){if(!this.referenceObject)return;const t=this.popperOptions.appendTo&&document.querySelector(this.popperOptions.appendTo);t&&this.elemRef.nativeElement.parentNode!==t&&(this.elemRef.nativeElement.parentNode&&this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement),t.appendChild(this.elemRef.nativeElement));let e={placement:this.popperOptions.placement,positionFixed:this.popperOptions.positionFixed,modifiers:{arrow:{element:this.popperViewRef.nativeElement.querySelector(".ngxp__arrow")}}};this.onUpdate&&(e.onUpdate=this.onUpdate);let n=this.popperOptions.boundariesElement&&document.querySelector(this.popperOptions.boundariesElement);e.modifiers&&n&&(e.modifiers.preventOverflow={boundariesElement:n}),e.modifiers&&void 0!==this.popperOptions.preventOverflow&&(e.modifiers.preventOverflow=e.modifiers.preventOverflow||{},e.modifiers.preventOverflow.enabled=this.popperOptions.preventOverflow,e.modifiers.preventOverflow.enabled||(e.modifiers.hide={enabled:!1})),this.determineArrowColor(),e.modifiers=Object.assign(e.modifiers,this.popperOptions.popperModifiers),this.popperInstance=new Hy(this.referenceObject,this.popperViewRef.nativeElement,e),this.popperInstance.enableEventListeners(),this.scheduleUpdate(),this.toggleVisibility(!0),this.globalResize=this.renderer.listen("document","resize",this.onDocumentResize.bind(this))}determineArrowColor(){["background-color","backgroundColor"].some(t=>!!this.popperOptions.styles&&!!this.popperOptions.styles.hasOwnProperty(t)&&(this.arrowColor=this.popperOptions.styles[t],!0))}update(){this.popperInstance&&this.popperInstance.update()}scheduleUpdate(){this.popperInstance&&this.popperInstance.scheduleUpdate()}hide(){this.popperInstance&&this.popperInstance.destroy(),this.toggleVisibility(!1),this.onHidden.emit()}toggleVisibility(t){t?(this.opacity=1,this.displayType="block",this.ariaHidden="false",this.state=!0):(this.opacity=0,this.displayType="none",this.ariaHidden="true",this.state=!1),this.CDR.destroyed||this.CDR.detectChanges()}extractAppliedClassListExpr(t){if(!t||"string"!=typeof t)return null;try{return t.replace(/ /,"").split(",").reduce((t,e)=>(t[e]=!0,t),{})}catch(e){return null}}clearGlobalResize(){this.globalResize&&"function"==typeof this.globalResize&&this.globalResize()}}return t.\u0275fac=function(e){return new(e||t)(bo(ba),bo(Ea),bo(qa),bo(Ur))},t.\u0275cmp=pe({type:t,selectors:[["popper-content"]],viewQuery:function(t,e){var n;1&t&&El(Vy,!0),2&t&&Cl(n=Sl())&&(e.popperViewRef=n.first)},hostBindings:function(t,e){1&t&&Ro("mouseover",(function(){return e.onMouseOver()}))("mouseleave",(function(){return e.showOnLeave()}))},ngContentSelectors:$y,decls:5,vars:20,consts:[[3,"ngStyle","ngClass"],["popperViewRef",""],["class","ngxp__inner",3,"innerHTML",4,"ngIf"],["class","ngxp__inner",4,"ngIf"],[1,"ngxp__arrow",3,"ngClass"],[1,"ngxp__inner",3,"innerHTML"],[1,"ngxp__inner"]],template:function(t,e){1&t&&(Fo($y),Co(0,"div",0,1),_o(2,By,2,1,"div",2),_o(3,zy,2,0,"div",3),So(4,"div",4),Eo()),2&t&&(Qo("display",e.displayType)("opacity",e.opacity),Zo("ngxp__container",!e.popperOptions.disableDefaultStyling)("ngxp__animation",!e.popperOptions.disableAnimation),vo("ngStyle",e.popperOptions.styles)("ngClass",e.extractAppliedClassListExpr(e.popperOptions.applyClass)),go("aria-hidden",e.ariaHidden)("aria-describedby",e.popperOptions.ariaDescribe||null)("role",e.popperOptions.ariaRole),wi(2),vo("ngIf",e.text),wi(1),vo("ngIf",!e.text),wi(1),Qo("border-color",e.arrowColor),Zo("__force-arrow",e.arrowColor),vo("ngClass",e.extractAppliedClassListExpr(e.popperOptions.applyArrowClass)))},directives:[Nh,Eh,kh],styles:[".ngxp__container{display:none;position:absolute;border-radius:3px;border:1px solid grey;box-shadow:0 0 2px rgba(0,0,0,.5);padding:10px}.ngxp__container.ngxp__animation{-webkit-animation:150ms ease-out ngxp-fadeIn;animation:150ms ease-out ngxp-fadeIn}.ngxp__container>.ngxp__arrow{border-color:grey;width:0;height:0;border-style:solid;position:absolute;margin:5px}.ngxp__container[x-placement^=bottom],.ngxp__container[x-placement^=left],.ngxp__container[x-placement^=right],.ngxp__container[x-placement^=top]{display:block}.ngxp__container[x-placement^=top]{margin-bottom:5px}.ngxp__container[x-placement^=top]>.ngxp__arrow{border-width:5px 5px 0;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=top]>.ngxp__arrow.__force-arrow{border-right-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=bottom]{margin-top:5px}.ngxp__container[x-placement^=bottom]>.ngxp__arrow{border-width:0 5px 5px;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=bottom]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-right-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=right]{margin-left:5px}.ngxp__container[x-placement^=right]>.ngxp__arrow{border-width:5px 5px 5px 0;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=right]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=left]{margin-right:5px}.ngxp__container[x-placement^=left]>.ngxp__arrow{border-width:5px 0 5px 5px;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=left]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-right-color:transparent!important}@-webkit-keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}@keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}"],encapsulation:2,changeDetection:0}),t})(),Qy=(()=>{class t{constructor(e,n,s,i,r,o={}){this.viewContainerRef=e,this.changeDetectorRef=n,this.resolver=s,this.elementRef=i,this.renderer=r,this.popperDefaults=o,this.popperContentClass=Uy,this.shown=!1,this.subscriptions=[],this.eventListeners=[],this.globalEventListeners=[],this.hideTimeout=0,this.timeoutAfterShow=0,this.popperOnShown=new ul,this.popperOnHidden=new ul,this.popperOnUpdate=new ul,t.baseOptions=Object.assign({},t.baseOptions,this.popperDefaults)}hideOnClickOutsideHandler(t){this.disabled||!this.hideOnClickOutside||t.srcElement&&t.srcElement===this.popperContent.elemRef.nativeElement||this.popperContent.elemRef.nativeElement.contains(t.srcElement)||this.scheduledHide(t,this.hideTimeout)}hideOnScrollHandler(t){!this.disabled&&this.hideOnScroll&&this.scheduledHide(t,this.hideTimeout)}applyTriggerListeners(){switch(this.showTrigger){case Wy.CLICK:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"click",this.toggle.bind(this)));break;case Wy.MOUSEDOWN:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mousedown",this.toggle.bind(this)));break;case Wy.HOVER:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseenter",this.scheduledShow.bind(this,this.showDelay))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout)))}this.showTrigger!==Wy.HOVER&&this.hideOnMouseLeave&&(this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout))))}static assignDefined(t,...e){for(const n of e)for(const e of Object.keys(n)){const s=n[e];void 0!==s&&(t[e]=s)}return t}ngOnInit(){if(this.hideOnClickOutside=void 0===this.hideOnClickOutside?this.closeOnClickOutside:this.hideOnClickOutside,"string"==typeof this.content){const t=this.content;this.popperContent=this.constructContent(),this.popperContent.text=t}else this.popperContent=this.content;const t=this.popperContent;t.referenceObject=this.getRefElement(),this.setContentProperties(t),this.setDefaults(),this.applyTriggerListeners(),this.showOnStart&&this.scheduledShow()}ngOnChanges(t){t.popperDisabled&&t.popperDisabled.currentValue&&this.hide(),t.content&&!t.content.firstChange&&"string"==typeof t.content.currentValue&&(this.popperContent.text=t.content.currentValue),t.applyClass&&!t.applyClass.firstChange&&"string"==typeof t.applyClass.currentValue&&(this.popperContent.popperOptions.applyClass=t.applyClass.currentValue),t.applyArrowClass&&!t.applyArrowClass.firstChange&&"string"==typeof t.applyArrowClass.currentValue&&(this.popperContent.popperOptions.applyArrowClass=t.applyArrowClass.currentValue)}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe&&t.unsubscribe()),this.subscriptions.length=0,this.clearEventListeners(),this.clearGlobalEventListeners(),clearTimeout(this.scheduledShowTimeout),clearTimeout(this.scheduledHideTimeout),this.popperContent&&this.popperContent.clean()}toggle(){this.disabled||(this.shown?this.scheduledHide(null,this.hideTimeout):this.scheduledShow())}show(){if(this.shown)return void this.overrideHideTimeout();this.shown=!0;const t=this.popperContent,e=this.getRefElement();t.referenceObject!==e&&(t.referenceObject=e),this.setContentProperties(t),t.show(),this.popperOnShown.emit(this),this.timeoutAfterShow>0&&this.scheduledHide(null,this.timeoutAfterShow),this.globalEventListeners.push(this.renderer.listen("document","touchend",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen("document","click",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen(this.getScrollParent(this.getRefElement()),"scroll",this.hideOnScrollHandler.bind(this)))}hide(){this.disabled||(this.shown?(this.shown=!1,this.popperContentRef?this.popperContentRef.instance.hide():this.popperContent.hide(),this.popperOnHidden.emit(this),this.clearGlobalEventListeners()):this.overrideShowTimeout())}scheduledShow(t=this.showDelay){this.disabled||(this.overrideHideTimeout(),this.scheduledShowTimeout=setTimeout(()=>{this.show(),this.applyChanges()},t))}scheduledHide(t=null,e=this.hideTimeout){this.disabled||(this.overrideShowTimeout(),this.scheduledHideTimeout=setTimeout(()=>{const e=t?t.toElement:null,n=!!this.popperContent.popperViewRef&&this.popperContent.popperViewRef.nativeElement;!n||n===e||n.contains(e)||this.content.isMouseOver||(this.hide(),this.applyChanges())},e))}getRefElement(){return this.targetElement||this.viewContainerRef.element.nativeElement}applyChanges(){this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()}setDefaults(){this.showDelay=void 0===this.showDelay?t.baseOptions.showDelay:this.showDelay,this.showTrigger=void 0===this.showTrigger?t.baseOptions.trigger:this.showTrigger,this.hideOnClickOutside=void 0===this.hideOnClickOutside?t.baseOptions.hideOnClickOutside:this.hideOnClickOutside,this.hideOnScroll=void 0===this.hideOnScroll?t.baseOptions.hideOnScroll:this.hideOnScroll,this.hideOnMouseLeave=void 0===this.hideOnMouseLeave?t.baseOptions.hideOnMouseLeave:this.hideOnMouseLeave,this.ariaRole=void 0===this.ariaRole?t.baseOptions.ariaRole:this.ariaRole,this.ariaDescribe=void 0===this.ariaDescribe?t.baseOptions.ariaDescribe:this.ariaDescribe,this.styles=void 0===this.styles?Object.assign({},t.baseOptions.styles):this.styles}clearEventListeners(){this.eventListeners.forEach(t=>{t&&"function"==typeof t&&t()}),this.eventListeners.length=0}clearGlobalEventListeners(){this.globalEventListeners.forEach(t=>{t&&"function"==typeof t&&t()}),this.globalEventListeners.length=0}overrideShowTimeout(){this.scheduledShowTimeout&&(clearTimeout(this.scheduledShowTimeout),this.scheduledHideTimeout=0)}overrideHideTimeout(){this.scheduledHideTimeout&&(clearTimeout(this.scheduledHideTimeout),this.scheduledHideTimeout=0)}constructContent(){const t=this.resolver.resolveComponentFactory(this.popperContentClass);return this.popperContentRef=this.viewContainerRef.createComponent(t),this.popperContentRef.instance}setContentProperties(e){e.popperOptions=t.assignDefined(e.popperOptions,t.baseOptions,{showDelay:this.showDelay,disableAnimation:this.disableAnimation,disableDefaultStyling:this.disableStyle,placement:this.placement,boundariesElement:this.boundariesElement,trigger:this.showTrigger,positionFixed:this.positionFixed,popperModifiers:this.popperModifiers,ariaDescribe:this.ariaDescribe,ariaRole:this.ariaRole,applyClass:this.applyClass,applyArrowClass:this.applyArrowClass,hideOnMouseLeave:this.hideOnMouseLeave,styles:this.styles,appendTo:this.appendTo,preventOverflow:this.preventOverflow}),e.onUpdate=this.onPopperUpdate.bind(this),this.subscriptions.push(e.onHidden.subscribe(this.hide.bind(this)))}getScrollParent(t){const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return t?"visible"!==e&&"hidden"!==e&&t.scrollHeight>=t.clientHeight?t:this.getScrollParent(t.parentNode)||document:null}onPopperUpdate(t){this.popperOnUpdate.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(bo(qa),bo(Ur),bo(ya),bo(ba),bo(Ea),bo("popperDefaults"))},t.\u0275dir=be({type:t,selectors:[["","popper",""]],inputs:{hideTimeout:["popperTimeout","hideTimeout"],timeoutAfterShow:["popperTimeoutAfterShow","timeoutAfterShow"],hideOnClickOutside:["popperHideOnClickOutside","hideOnClickOutside"],showDelay:["popperDelay","showDelay"],showTrigger:["popperTrigger","showTrigger"],hideOnScroll:["popperHideOnScroll","hideOnScroll"],hideOnMouseLeave:["popperHideOnMouseLeave","hideOnMouseLeave"],ariaRole:["popperAriaRole","ariaRole"],ariaDescribe:["popperAriaDescribeBy","ariaDescribe"],styles:["popperStyles","styles"],content:["popper","content"],disabled:["popperDisabled","disabled"],placement:["popperPlacement","placement"],targetElement:["popperTarget","targetElement"],boundariesElement:["popperBoundaries","boundariesElement"],showOnStart:["popperShowOnStart","showOnStart"],closeOnClickOutside:["popperCloseOnClickOutside","closeOnClickOutside"],positionFixed:["popperPositionFixed","positionFixed"],popperModifiers:"popperModifiers",disableStyle:["popperDisableStyle","disableStyle"],disableAnimation:["popperDisableAnimation","disableAnimation"],applyClass:["popperApplyClass","applyClass"],applyArrowClass:["popperApplyArrowClass","applyArrowClass"],appendTo:["popperAppendTo","appendTo"],preventOverflow:["popperPreventOverflow","preventOverflow"]},outputs:{popperOnShown:"popperOnShown",popperOnHidden:"popperOnHidden",popperOnUpdate:"popperOnUpdate"},exportAs:["popper"],features:[Ne]}),t.baseOptions={showDelay:0,placement:qy.Auto,hideOnClickOutside:!0,hideOnMouseLeave:!1,hideOnScroll:!1,showTrigger:Wy.HOVER,appendTo:void 0,ariaRole:"popper",ariaDescribe:"",styles:{}},t})(),Zy=(()=>{class t{ngDoBootstrap(){}static forRoot(e={}){return{ngModule:t,providers:[{provide:"popperDefaults",useValue:e}]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[zh]]}),t})();function Ky(t,e){1&t&&ko(0)}function Gy(t,e){if(1&t){const t=Oo();xo(0),Co(1,"button",7),Ro("click",(function(e){return on(t),Po().emitClick(e)})),_o(2,Ky,1,0,"ng-container",8),Eo(),To()}if(2&t){const t=Po(),e=yo(12),n=yo(10);wi(1),vo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),go("aria-label",t.label+" raised button"),wi(1),vo("ngTemplateOutlet",n)}}function Yy(t,e){1&t&&ko(0)}function Xy(t,e){if(1&t){const t=Oo();xo(0),Co(1,"button",9),Ro("click",(function(e){return on(t),Po().emitClick(e)})),_o(2,Yy,1,0,"ng-container",8),Eo(),To()}if(2&t){const t=Po(),e=yo(12),n=yo(10);wi(1),vo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),go("aria-label",t.label+" stroked button"),wi(1),vo("ngTemplateOutlet",n)}}function Jy(t,e){1&t&&ko(0)}function tb(t,e){if(1&t){const t=Oo();xo(0),Co(1,"button",10),Ro("click",(function(e){return on(t),Po().emitClick(e)})),_o(2,Jy,1,0,"ng-container",8),Eo(),To()}if(2&t){const t=Po(),e=yo(12),n=yo(10);wi(1),vo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),go("aria-label",t.label+" flat button"),wi(1),vo("ngTemplateOutlet",n)}}function eb(t,e){1&t&&ko(0)}function nb(t,e){if(1&t){const t=Oo();xo(0),Co(1,"button",11),Ro("click",(function(e){return on(t),Po().emitClick(e)})),_o(2,eb,1,0,"ng-container",8),Eo(),To()}if(2&t){const t=Po(),e=yo(12),n=yo(10);wi(1),vo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),go("aria-label",t.label+" icon button"),wi(1),vo("ngTemplateOutlet",n)}}function sb(t,e){1&t&&ko(0)}function ib(t,e){if(1&t){const t=Oo();xo(0),Co(1,"button",12),Ro("click",(function(e){return on(t),Po().emitClick(e)})),_o(2,sb,1,0,"ng-container",8),Eo(),To()}if(2&t){const t=Po(),e=yo(12),n=yo(10);wi(1),vo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),go("aria-label",t.label+" fab button"),wi(1),vo("ngTemplateOutlet",n)}}function rb(t,e){1&t&&ko(0)}function ob(t,e){if(1&t){const t=Oo();xo(0),Co(1,"button",13),Ro("click",(function(e){return on(t),Po().emitClick(e)})),_o(2,rb,1,0,"ng-container",8),Eo(),To()}if(2&t){const t=Po(),e=yo(12),n=yo(10);wi(1),vo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),go("aria-label",t.label+" mini fab button"),wi(1),vo("ngTemplateOutlet",n)}}function ab(t,e){1&t&&ko(0)}function lb(t,e){if(1&t){const t=Oo();xo(0),Co(1,"button",14),Ro("click",(function(e){return on(t),Po().emitClick(e)})),_o(2,ab,1,0,"ng-container",8),Eo(),To()}if(2&t){const t=Po(),e=yo(12),n=yo(10);wi(1),vo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),go("aria-label",t.label+" unstyled button"),wi(1),vo("ngTemplateOutlet",n)}}function cb(t,e){1&t&&ko(0)}function hb(t,e){if(1&t){const t=Oo();xo(0),Co(1,"button",15),Ro("click",(function(e){return on(t),Po().emitClick(e)})),_o(2,cb,1,0,"ng-container",8),Eo(),To()}if(2&t){const t=Po(),e=yo(12),n=yo(10);wi(1),vo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup))("popperAppendTo","body"),go("aria-label",t.label+" basic button"),wi(1),vo("ngTemplateOutlet",n)}}function ub(t,e){if(1&t&&(Co(0,"mat-icon",18),aa(1),Eo()),2&t){const t=Po(2);vo("ngStyle",t.buttonIconStyle),wi(1),la(t.icon)}}function db(t,e){if(1&t&&(Co(0,"div"),aa(1),Eo()),2&t){const t=Po(2);wi(1),la(t.label||"Button")}}function pb(t,e){if(1&t&&(_o(0,ub,2,2,"mat-icon",16),_o(1,db,2,1,"div",17)),2&t){const t=Po();vo("ngIf",t.icon),wi(1),vo("ngIf",!t.icon)}}function fb(t,e){1&t&&So(0,"img",19),2&t&&vo("lazyLoad",Po().imgUrl)}function mb(t,e){if(1&t&&(Co(0,"div"),aa(1),Eo()),2&t){const t=Po();Ko(t.popup.style),wi(1),la(t.popup.text)}}let gb=(()=>{class t{emitClick(t){t.stopPropagation(),this.onClick()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["drayman-button-internal"]],inputs:{onClick:"onClick",label:"label",view:"view",icon:"icon",tooltip:"tooltip",disabled:"disabled",imgUrl:"imgUrl",popup:"popup",buttonStyle:"buttonStyle",buttonIconStyle:"buttonIconStyle"},decls:15,vars:10,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["button",""],["thumbnailContent",""],["style","width: 150px; z-index: 1001;",3,"lazyLoad",4,"ngIf"],[3,"style",4,"ngIf"],["type","button","mat-raised-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],[4,"ngTemplateOutlet"],["type","button","mat-stroked-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-flat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-icon-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-mini-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","popperAppendTo","click"],[3,"ngStyle",4,"ngIf"],[4,"ngIf"],[3,"ngStyle"],[2,"width","150px","z-index","1001",3,"lazyLoad"]],template:function(t,e){1&t&&(xo(0,0),_o(1,Gy,3,7,"ng-container",1),_o(2,Xy,3,7,"ng-container",1),_o(3,tb,3,7,"ng-container",1),_o(4,nb,3,7,"ng-container",1),_o(5,ib,3,7,"ng-container",1),_o(6,ob,3,7,"ng-container",1),_o(7,lb,3,7,"ng-container",1),_o(8,hb,3,8,"ng-container",2),To(),_o(9,pb,2,2,"ng-template",null,3,Tl),Co(11,"popper-content",null,4),_o(13,fb,1,1,"img",5),_o(14,mb,2,3,"div",6),Eo()),2&t&&(vo("ngSwitch",e.view),wi(1),vo("ngSwitchCase","raised"),wi(1),vo("ngSwitchCase","stroked"),wi(1),vo("ngSwitchCase","flat"),wi(1),vo("ngSwitchCase","icon"),wi(1),vo("ngSwitchCase","fab"),wi(1),vo("ngSwitchCase","miniFab"),wi(1),vo("ngSwitchCase","unstyled"),wi(6),vo("ngIf",e.imgUrl),wi(1),vo("ngIf",e.popup))},directives:[Ah,Dh,Ph,Uy,kh,pg,m_,Nh,Qy,Fh,Zg,M_],styles:[""]}),t})();class _b extends N_{loadImage({imagePath:t}){return e=this,void 0,s=function*(){const e=yield fetch(t),n=yield e.blob();if(n.size)return URL.createObjectURL(n)},new((n=void 0)||(n=Promise))((function(t,i){function r(t){try{a(s.next(t))}catch(e){i(e)}}function o(t){try{a(s.throw(t))}catch(e){i(e)}}function a(e){var s;e.done?t(e.value):(s=e.value,s instanceof n?s:new n((function(t){t(s)}))).then(r,o)}a((s=s.apply(e,[])).next())}));var e,n,s}}let yb=(()=>{class t{constructor(t){this.injector=t}ngDoBootstrap(){const t=Gu(gb,{injector:this.injector});customElements.define("drayman-button",t)}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(ao))},providers:[{provide:L_,useClass:_b},{provide:Iu,useClass:_m}],imports:[[kd,dm,fg,__,Kg,j_,Zy.forRoot({disableDefaultStyling:!0,applyArrowClass:"hidden",showDelay:500,trigger:"hover",hideOnClickOutside:!1,styles:{position:"relative",background:"#fff",padding:"5px 5px 0 5px","z-index":"1001","border-radius":"2px","box-shadow":"0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)"},placement:"right"})]]}),t})();const bb=["container"];function vb(t,e){if(1&t&&(xo(0),So(1,"div",8),To()),2&t){const t=Po().$implicit,e=Po().$implicit,n=Po();wi(1),Ko(e.hovered&&t.hoverStyle?t.hoverStyle:t.style),vo("innerHTML",n.getSanitizedString(t.value),ti)}}function wb(t,e){if(1&t&&(xo(0),Co(1,"div"),So(2,"drayman-button-internal",9),Eo(),To()),2&t){const t=Po().$implicit,e=Po().$implicit,n=Po();wi(1),Ko(e.hovered&&t.hoverStyle?t.hoverStyle:t.style),wi(1),vo("label",t.value.label)("onClick",n.emitContentButtonClick.bind(n,e,t.value))("view",t.value.view)("icon",t.value.icon)("tooltip",t.value.tooltip)("disabled",t.value.disabled)("imgUrl",t.value.imgUrl)("popup",t.value.popup)("buttonStyle",t.value.buttonStyle)("options",t.value)}}function Cb(t,e){if(1&t&&(xo(0),xo(1,6),_o(2,vb,2,3,"ng-container",7),_o(3,wb,3,12,"ng-container",7),To(),To()),2&t){const t=e.$implicit;wi(1),vo("ngSwitch",t.type),wi(1),vo("ngSwitchCase","text"),wi(1),vo("ngSwitchCase","button")}}function Eb(t,e){if(1&t){const t=Oo();Co(0,"div",4),Ro("mouseenter",(function(){return e.$implicit.hovered=!0}))("contextmenu",(function(n){on(t);const s=e.$implicit;return Po().oncontextmenu(n,s)}))("click",(function(n){on(t);const s=e.$implicit;return Po().emitCellClick(n,s)}))("mousedown",(function(n){on(t);const s=e.$implicit;return Po().onMouseDown(n,s)}))("mouseup",(function(n){on(t);const s=e.$implicit;return Po().onMouseUp(n,s)}))("mouseover",(function(n){on(t);const s=e.$implicit;return Po().onMouseOver(n,s)}))("mouseleave",(function(n){on(t);const s=e.$implicit;return Po().onMouseLeave(n,s),s.hovered=!1})),Co(1,"div"),_o(2,Cb,4,3,"ng-container",5),Eo(),Eo()}if(2&t){const t=e.$implicit;Ko(Po().getCellStyle(t)),go("ref",t.ref),wi(1),Ko(t.contentStyle),wi(1),vo("ngForOf",t.content)}}let Sb=(()=>{class t{constructor(t,e){this.elementRef=t,this.sanitizer=e,this.selectedCells=[],this.scrollTo=({row:t})=>{this.cellHeight&&this.scrollable.scrollTo({top:t*this.cellHeight})},this.grid=[],this.scrollDirection="vertical",this.scrollbarWidth="narrow",this.resized$=new E,this.selectedCellsChanged$=new E,this._selectedCells=[],this.pendingSelectedCells=[],this.hoveredRow=-1}onWheel(t){"horizontal"===this.scrollDirection&&(t.preventDefault(),this.containerRef.nativeElement.scrollLeft+=t.deltaY)}get scrollbarWidthClass(){return"narrow"===this.scrollbarWidth?null:"scrollbar-"+this.scrollbarWidth}getCellStyle(t){var e,n,s;const i=t.rowSpan?t.row+t.rowSpan:t.row+1,r=t.colSpan?t.col+t.colSpan:t.col+1;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.cellStyle),this.hoveredRow===t.row?this.rowHoverStyle:{}),[...this.pendingSelectedCells,...this._selectedCells].find(e=>e.selectionGroup===t.selectionGroup)?Object.assign({},null===(e=this.selectionMode)||void 0===e?void 0:e.similarGroupCellStyle):{}),[...this.pendingSelectedCells,...this._selectedCells].length&&![...this.pendingSelectedCells,...this._selectedCells].find(e=>e.selectionGroup===t.selectionGroup)?Object.assign({},null===(n=this.selectionMode)||void 0===n?void 0:n.otherGroupCellStyle):{}),[...this.pendingSelectedCells,...this._selectedCells].find(e=>e.row===t.row&&e.col===t.col)?Object.assign(Object.assign({},null===(s=this.selectionMode)||void 0===s?void 0:s.cellStyle),t.selectionCellStyle):{}),{gridArea:`${t.row+1}/${t.col+1}/${i+1}/${r+1}`})}ngOnDestroy(){}getSanitizedString(t){return this.sanitizer.bypassSecurityTrustHtml(t)}oncontextmenu(t,e){t.ctrlKey&&(t.preventDefault(),this.emitCellClick(t,e,!0))}emitCellClick(t,e,n=!1){var s,i,r;t.ctrlKey&&(t.preventDefault(),n=!0),(null===(s=this.selectionMode)||void 0===s?void 0:s.enabled)?this.pendingSelectedCells.length||(n?(this._selectedCells=[e],this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!0})):this._selectedCells.find(t=>t.row===e.row&&t.col===e.col)?(this._selectedCells=this._selectedCells.filter(t=>!(t.row===e.row&&t.col===e.col)),this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!1})):e.disableSelect||this._selectedCells.length&&(null===(i=this._selectedCells[0])||void 0===i?void 0:i.selectionGroup)!==e.selectionGroup||(this._selectedCells.push(e),this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!1}))):null===(r=this.onCellClick)||void 0===r||r.call(this,{cell:e})}onMouseLeave(t,e){this.hoveredRow=-1}onMouseDown(t,e){var n,s;((null===(n=this.selectionMode)||void 0===n?void 0:n.enabled)&&!this._selectedCells.length||(null===(s=this._selectedCells[0])||void 0===s?void 0:s.selectionGroup)===e.selectionGroup)&&(this.ctrl=t.ctrlKey,this.startSelectionCell=e)}onMouseUp(t,e){this.startSelectionCell=null,this.pendingSelectedCells.length&&(this._selectedCells=[...this.ctrl?[]:this._selectedCells,...this.pendingSelectedCells],this.pendingSelectedCells=[],this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!!this.ctrl}))}onMouseOver(t,e){if(this.hoveredRow=e.row,this.startSelectionCell){const t=Math.min(e.col,this.startSelectionCell.col),n=Math.max(e.col,this.startSelectionCell.col),s=Math.min(e.row,this.startSelectionCell.row),i=Math.max(e.row,this.startSelectionCell.row);this.pendingSelectedCells=this.grid.filter(e=>{var r;return!e.disableSelect&&e.col>=t&&e.col<=n&&e.row>=s&&e.row<=i&&e.selectionGroup===(null===(r=this.startSelectionCell)||void 0===r?void 0:r.selectionGroup)})}}onGridMouseLeave(t){this.startSelectionCell=null,this.pendingSelectedCells.length&&(this._selectedCells=[...this._selectedCells,...this.pendingSelectedCells],this.pendingSelectedCells=[],this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!1}))}emitContentButtonClick(t,e){var n;null===(n=this.onContentButtonClick)||void 0===n||n.call(this,{cell:t,button:e})}onResized(t){t.oldHeight&&t.oldWidth&&this.resized$.next()}ngAfterViewInit(){q(this.scrollable.elementScrolled(),this.resized$).pipe(Cm(50)).subscribe(t=>{var e;null===(e=this.onScroll)||void 0===e||e.call(this,{currentCol:this.cellWidth?Math.floor(this.scrollable.measureScrollOffset("left")/this.cellWidth):0,visibleColCount:this.cellWidth?Math.ceil(this.scrollable.getElementRef().nativeElement.clientWidth/this.cellWidth):this.columnCount,currentRow:this.cellHeight?Math.floor(this.scrollable.measureScrollOffset("top")/this.cellHeight):0,visibleRowCount:this.cellHeight?Math.ceil(this.scrollable.getElementRef().nativeElement.clientHeight/this.cellHeight):this.rowCount})}),this.selectedCellsChanged$.pipe(Cm(250)).subscribe(t=>{var e;null===(e=this.onSelectedCellsChange)||void 0===e||e.call(this,Object.assign(Object.assign({},t),{selectedCells:t.selectedCells.filter((e,n)=>t.selectedCells.findIndex(t=>t.row===e.row&&t.col===e.col)===n)}))})}ngOnInit(){}ngOnChanges(t){this.selectedCells&&(this._selectedCells=[...this.selectedCells])}get gridStyle(){const t=(this.cellHeight||0)*(this.rowCount||0);return{gridTemplateColumns:`repeat(${this.columnCount}, ${this.cellWidth?this.cellWidth+"px":"auto"})`,gridTemplateRows:`repeat(${this.rowCount}, ${this.cellHeight?this.cellHeight+"px":"autor"})`,width:this.cellWidth?this.columnCount*this.cellWidth+"px":"100%",height:t?t+"px":"100%",display:"grid",userSelect:"none"}}}return t.\u0275fac=function(e){return new(e||t)(bo(ba),bo(Ed))},t.\u0275cmp=pe({type:t,selectors:[["drayman-grid-internal"]],viewQuery:function(t,e){var n;1&t&&(El(bb,!0),El(eu,!0)),2&t&&(Cl(n=Sl())&&(e.containerRef=n.first),Cl(n=Sl())&&(e.scrollable=n.first))},hostBindings:function(t,e){1&t&&Ro("wheel",(function(t){return e.onWheel(t)}))},inputs:{selectionMode:"selectionMode",selectedCells:"selectedCells",rowHoverStyle:"rowHoverStyle",onSelectedCellsChange:"onSelectedCellsChange",scrollTo:"scrollTo",onLoad:"onLoad",onContentButtonClick:"onContentButtonClick",onCellClick:"onCellClick",grid:"grid",scrollDirection:"scrollDirection",gridRef:"gridRef",onScroll:"onScroll",cellHeight:"cellHeight",cellWidth:"cellWidth",columnCount:"columnCount",rowCount:"rowCount",scrollbarWidth:"scrollbarWidth"},features:[Ne],decls:4,vars:5,consts:[["cdkScrollable","",1,"wrapper",3,"ngClass","resized"],["container",""],[3,"mouseleave"],["tabindex","-1",3,"style","mouseenter","contextmenu","click","mousedown","mouseup","mouseover","mouseleave",4,"ngFor","ngForOf"],["tabindex","-1",3,"mouseenter","contextmenu","click","mousedown","mouseup","mouseover","mouseleave"],[4,"ngFor","ngForOf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"innerHTML"],[3,"label","onClick","view","icon","tooltip","disabled","imgUrl","popup","buttonStyle","options"]],template:function(t,e){1&t&&(Co(0,"div",0,1),Ro("resized",(function(t){return e.onResized(t)})),Co(2,"div",2),Ro("mouseleave",(function(t){return e.onGridMouseLeave(t)})),_o(3,Eb,3,6,"div",3),Eo(),Eo()),2&t&&(vo("ngClass",e.scrollbarWidthClass),wi(2),Ko(e.gridStyle),go("ref",e.gridRef),wi(1),vo("ngForOf",e.grid))},directives:[eu,Eh,mm,xh,Ah,Dh,gb],styles:[".wrapper[_ngcontent-%COMP%]{width:100%;height:100%;overflow:auto}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px;height:8px}.scrollbar-medium[_ngcontent-%COMP%]::-webkit-scrollbar{width:12px;height:12px}.scrollbar-wide[_ngcontent-%COMP%]::-webkit-scrollbar{width:16px;height:16px}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);border-radius:10px}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.5)}"]}),t})(),xb=(()=>{class t{constructor(t){this.injector=t}ngDoBootstrap(){const t=Gu(Sb,{injector:this.injector});customElements.define("drayman-grid",t)}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(ao))},providers:[{provide:Iu,useClass:_m}],imports:[[kd,dm,iu,gm,yb]]}),t})();(function(){if(Os)throw new Error("Cannot enable prod mode after platform setup.");ks=!1})(),xd().bootstrapModule(xb).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}});