@drayman/elements 1.26.0 → 1.26.1

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.
@@ -1 +1 @@
1
- (()=>{var dv={289:(We,Ot,me)=>{We.exports={ResizeSensor:me(294),ElementQueries:me(322)}},322:function(We,Ot,me){"use strict";var Gt,Me;"undefined"!=typeof window&&window,Gt=[me(294)],void 0!==(Me=function(ft){var je=function(){var O,Ae={},ct=[];function _r(v){v||(v=document.documentElement);var E=window.getComputedStyle(v,null).fontSize;return parseFloat(E)||16}function ye(v,E){var F=E.split(/\d/),R=F[F.length-1];switch(E=parseFloat(E),R){case"px":default:return E;case"em":return E*_r(v);case"rem":return E*_r();case"vw":return E*document.documentElement.clientWidth/100;case"vh":return E*document.documentElement.clientHeight/100;case"vmin":case"vmax":var te=document.documentElement.clientWidth/100,Ee=document.documentElement.clientHeight/100;return E*(0,Math["vmin"===R?"min":"max"])(te,Ee)}}function Y(v,E){this.element=v;var F,R,te,Ee,qe,de,He,$e,Nt=["min-width","min-height","max-width","max-height"];this.call=function(){for(F in te=function A(v){if(!v.getBoundingClientRect)return{width:v.offsetWidth,height:v.offsetHeight};var E=v.getBoundingClientRect();return{width:Math.round(E.width),height:Math.round(E.height)}}(this.element),de={},Ae[E])!Ae[E].hasOwnProperty(F)||(Ee=ye(this.element,(R=Ae[E][F]).value),qe="width"===R.property?te.width:te.height,He="","min"===R.mode&&qe>=Ee&&(He+=R.value),"max"===R.mode&&qe<=Ee&&(He+=R.value),de[$e=R.mode+"-"+R.property]||(de[$e]=""),He&&-1===(" "+de[$e]+" ").indexOf(" "+He+" ")&&(de[$e]+=" "+He));for(var yt in Nt)!Nt.hasOwnProperty(yt)||(de[Nt[yt]]?this.element.setAttribute(Nt[yt],de[Nt[yt]].substr(1)):this.element.removeAttribute(Nt[yt]))}}function pt(v,E){v.elementQueriesSetupInformation||(v.elementQueriesSetupInformation=new Y(v,E)),v.elementQueriesSensor||(v.elementQueriesSensor=new ft(v,function(){v.elementQueriesSetupInformation.call()}))}function gt(v,E,F,R){if(void 0===Ae[v]){Ae[v]=[];var te=ct.length;O.innerHTML+="\n"+v+" {animation: 0.1s element-queries;}",O.innerHTML+="\n"+v+" > .resize-sensor {min-width: "+te+"px;}",ct.push(v)}Ae[v].push({mode:E,property:F,value:R})}function L(v){var E;if(document.querySelectorAll&&(E=v?v.querySelectorAll.bind(v):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 mt(v){var E=[],F=[],R=[],te=0,Ee=-1,qe=[];for(var de in v.children)if(v.children.hasOwnProperty(de)&&v.children[de].tagName&&"img"===v.children[de].tagName.toLowerCase()){E.push(v.children[de]);var He=v.children[de].getAttribute("min-width")||v.children[de].getAttribute("data-min-width"),$e=v.children[de].getAttribute("data-src")||v.children[de].getAttribute("url");R.push($e),F.push({minWidth:He}),He?v.children[de].style.display="none":(te=E.length-1,v.children[de].style.display="block")}function yt(){var tt,oe=!1;for(tt in E)!E.hasOwnProperty(tt)||F[tt].minWidth&&v.offsetWidth>F[tt].minWidth&&(oe=tt);if(oe||(oe=te),Ee!==oe)if(qe[oe])E[Ee].style.display="none",E[oe].style.display="block",Ee=oe;else{var Fn=new Image;Fn.onload=function(){E[oe].src=R[oe],E[Ee].style.display="none",E[oe].style.display="block",qe[oe]=!0,Ee=oe},Fn.src=R[oe]}else E[oe].src=R[oe]}Ee=te,v.resizeSensorInstance=new ft(v,yt),yt()}var et=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,ii=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function Fe(v){var E,F,R,te;for(v=v.replace(/'/g,'"');null!==(E=et.exec(v));)for(F=E[1]+E[3],R=E[2];null!==(te=ii.exec(R));)gt(F,te[1],te[2],te[3])}function cn(v){var E="";if(v)if("string"==typeof v)(-1!==(v=v.toLowerCase()).indexOf("min-width")||-1!==v.indexOf("max-width"))&&Fe(v);else for(var F=0,R=v.length;F<R;F++)1===v[F].type?(-1!==(E=v[F].selectorText||v[F].cssText).indexOf("min-height")||-1!==E.indexOf("max-height")||-1!==E.indexOf("min-width")||-1!==E.indexOf("max-width"))&&Fe(E):4===v[F].type?cn(v[F].cssRules||v[F].rules):3===v[F].type&&v[F].styleSheet.hasOwnProperty("cssRules")&&cn(v[F].styleSheet.cssRules)}var Nn=!1;this.init=function(){var v="animationstart";void 0!==document.documentElement.style.webkitAnimationName?v="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?v="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(v="oanimationstart"),document.body.addEventListener(v,function(R){var te=R.target,Ee=te&&window.getComputedStyle(te,null),qe=Ee&&Ee.getPropertyValue("animation-name");if(qe&&-1!==qe.indexOf("element-queries")){te.elementQueriesSensor=new ft(te,function(){te.elementQueriesSetupInformation&&te.elementQueriesSetupInformation.call()});var $e=window.getComputedStyle(te.resizeSensor,null).getPropertyValue("min-width");$e=parseInt($e.replace("px","")),pt(R.target,ct[$e])}}),Nn||((O=document.createElement("style")).type="text/css",O.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",O.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(O),Nn=!0);for(var E=0,F=document.styleSheets.length;E<F;E++)try{document.styleSheets[E].href&&0===document.styleSheets[E].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[E].href),cn(document.styleSheets[E].cssRules||document.styleSheets[E].rules||document.styleSheets[E].cssText)}catch(R){}!function X(){for(var E=L()("[data-responsive-image],[responsive-image]"),F=0,R=E.length;F<R;F++)mt(E[F])}()},this.findElementQueriesElements=function(v){!function Ge(v){var E=L(v);for(var F in Ae)if(Ae.hasOwnProperty(F))for(var R=E(F,v),te=0,Ee=R.length;te<Ee;te++)pt(R[te],F)}(v)},this.update=function(){this.init()}};je.update=function(){je.instance.update()},je.detach=function(O){O.elementQueriesSetupInformation?(O.elementQueriesSensor.detach(),delete O.elementQueriesSetupInformation,delete O.elementQueriesSensor):O.resizeSensorInstance&&(O.resizeSensorInstance.detach(),delete O.resizeSensorInstance)},je.init=function(){je.instance||(je.instance=new je),je.instance.init()};return je.findElementQueriesElements=function(O){je.instance.findElementQueriesElements(O)},je.listen=function(){!function(O){if(document.addEventListener)document.addEventListener("DOMContentLoaded",O,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var Ae=setInterval(function(){/loaded|complete/i.test(document.readyState)&&(O(),clearInterval(Ae))},10);else window.onload=O}(je.init)},je}.apply(Ot,Gt))&&(We.exports=Me)},294:function(We,Ot,me){"use strict";var Gt;"undefined"!=typeof window&&window,void 0!==(Gt=function(){if("undefined"==typeof window)return null;var Me="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),ft=Me.requestAnimationFrame||Me.mozRequestAnimationFrame||Me.webkitRequestAnimationFrame||function(A){return Me.setTimeout(A,20)},je=Me.cancelAnimationFrame||Me.mozCancelAnimationFrame||Me.webkitCancelAnimationFrame||function(A){Me.clearTimeout(A)};function ln(A,ye){var Y=Object.prototype.toString.call(A),pt="[object Array]"===Y||"[object NodeList]"===Y||"[object HTMLCollection]"===Y||"[object Object]"===Y||"undefined"!=typeof jQuery&&A instanceof jQuery||"undefined"!=typeof Elements&&A instanceof Elements,gt=0,L=A.length;if(pt)for(;gt<L;gt++)ye(A[gt]);else ye(A)}function O(A){if(!A.getBoundingClientRect)return{width:A.offsetWidth,height:A.offsetHeight};var ye=A.getBoundingClientRect();return{width:Math.round(ye.width),height:Math.round(ye.height)}}function Ae(A,ye){Object.keys(ye).forEach(function(Y){A.style[Y]=ye[Y]})}var ct=function(A,ye){var Y=0;function pt(){var Ge,mt,L=[];this.add=function(X){L.push(X)},this.call=function(X){for(Ge=0,mt=L.length;Ge<mt;Ge++)L[Ge].call(this,X)},this.remove=function(X){var et=[];for(Ge=0,mt=L.length;Ge<mt;Ge++)L[Ge]!==X&&et.push(L[Ge]);L=et},this.length=function(){return L.length}}function gt(L,Ge){if(L){if(L.resizedAttached)return void L.resizedAttached.add(Ge);L.resizedAttached=new pt,L.resizedAttached.add(Ge),L.resizeSensor=document.createElement("div"),L.resizeSensor.dir="ltr",L.resizeSensor.className="resize-sensor";var mt={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},X={position:"absolute",left:"0px",top:"0px",transition:"0s"};Ae(L.resizeSensor,mt);var et=document.createElement("div");et.className="resize-sensor-expand",Ae(et,mt);var ii=document.createElement("div");Ae(ii,X),et.appendChild(ii);var Fe=document.createElement("div");Fe.className="resize-sensor-shrink",Ae(Fe,mt);var cn=document.createElement("div");Ae(cn,X),Ae(cn,{width:"200%",height:"200%"}),Fe.appendChild(cn),L.resizeSensor.appendChild(et),L.resizeSensor.appendChild(Fe),L.appendChild(L.resizeSensor);var Nn=window.getComputedStyle(L),v=Nn?Nn.getPropertyValue("position"):null;"absolute"!==v&&"relative"!==v&&"fixed"!==v&&"sticky"!==v&&(L.style.position="relative");var E=!1,F=0,R=O(L),te=0,Ee=0,qe=!0;Y=0;var He=function(){if(qe){if(0===L.offsetWidth&&0===L.offsetHeight)return void(Y||(Y=ft(function(){Y=0,He()})));qe=!1}var oe,tt;tt=L.offsetHeight,ii.style.width=(oe=L.offsetWidth)+10+"px",ii.style.height=tt+10+"px",et.scrollLeft=oe+10,et.scrollTop=tt+10,Fe.scrollLeft=oe+10,Fe.scrollTop=tt+10};L.resizeSensor.resetSensor=He;var $e=function(){F=0,E&&(te=R.width,Ee=R.height,L.resizedAttached&&L.resizedAttached.call(R))},Nt=function(){R=O(L),(E=R.width!==te||R.height!==Ee)&&!F&&(F=ft($e)),He()},yt=function(oe,tt,Fn){oe.attachEvent?oe.attachEvent("on"+tt,Fn):oe.addEventListener(tt,Fn)};yt(et,"scroll",Nt),yt(Fe,"scroll",Nt),Y=ft(function(){Y=0,He()})}}ln(A,function(L){gt(L,ye)}),this.detach=function(L){Y||(je(Y),Y=0),ct.detach(A,L)},this.reset=function(){A.resizeSensor.resetSensor()}};if(ct.reset=function(A){ln(A,function(ye){ye.resizeSensor.resetSensor()})},ct.detach=function(A,ye){ln(A,function(Y){!Y||Y.resizedAttached&&"function"==typeof ye&&(Y.resizedAttached.remove(ye),Y.resizedAttached.length())||Y.resizeSensor&&(Y.contains(Y.resizeSensor)&&Y.removeChild(Y.resizeSensor),delete Y.resizeSensor,delete Y.resizedAttached)})},"undefined"!=typeof MutationObserver){var _r=new MutationObserver(function(A){for(var ye in A)if(A.hasOwnProperty(ye))for(var Y=A[ye].addedNodes,pt=0;pt<Y.length;pt++)Y[pt].resizeSensor&&ct.reset(Y[pt])});document.addEventListener("DOMContentLoaded",function(A){_r.observe(document.body,{childList:!0,subtree:!0})})}return ct}.call(Ot,me,Ot,We))&&(We.exports=Gt)}},dd={};function hd(We){var Ot=dd[We];if(void 0!==Ot)return Ot.exports;var me=dd[We]={exports:{}};return dv[We].call(me.exports,me,me.exports,hd),me.exports}(()=>{"use strict";function We(n){return"function"==typeof n}let Ot=!1;const me={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Ot&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Ot=n},get useDeprecatedSynchronousErrorHandling(){return Ot}};function Ke(n){setTimeout(()=>{throw n},0)}const Gt={closed:!0,next(n){},error(n){if(me.useDeprecatedSynchronousErrorHandling)throw n;Ke(n)},complete(){}},Me=Array.isArray||(n=>n&&"number"==typeof n.length);function ft(n){return null!==n&&"object"==typeof n}const ln=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class O{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof O)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(We(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof ln?Ae(o.errors):[o]}}if(Me(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(ft(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof ln?e=e.concat(Ae(c.errors)):e.push(c)}}}if(e)throw new ln(e)}add(e){let t=e;if(!e)return O.EMPTY;switch(typeof e){case"function":t=new O(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof O)){const s=t;t=new O,t._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=t;if(null===i)t._parentOrParents=this;else if(i instanceof O){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}}var n;function Ae(n){return n.reduce((e,t)=>e.concat(t instanceof ln?t.errors:t),[])}O.EMPTY=((n=new O).closed=!0,n);const ct="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class A extends O{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Gt;break;case 1:if(!e){this.destination=Gt;break}if("object"==typeof e){e instanceof A?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new ye(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new ye(this,e,t,i)}}[ct](){return this}static create(e,t,i){const r=new A(e,t,i);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class ye extends A{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;We(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==Gt&&(o=Object.create(t),We(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;me.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:i}=me;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):Ke(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;Ke(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);me.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(i){if(this.unsubscribe(),me.useDeprecatedSynchronousErrorHandling)throw i;Ke(i)}}__tryOrSetError(e,t,i){if(!me.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return me.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Ke(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const gt="function"==typeof Symbol&&Symbol.observable||"@@observable";function L(n){return n}function Ge(...n){return mt(n)}function mt(n){return 0===n.length?L:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}let X=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const{operator:s}=this,o=function pt(n,e,t){if(n){if(n instanceof A)return n;if(n[ct])return n[ct]()}return n||e||t?new A(n,e,t):new A(Gt)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||me.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),me.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){me.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function Y(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof A?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=et(i))((r,s)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[gt](){return this}pipe(...t){return 0===t.length?this:mt(t)(this)}toPromise(t){return new(t=et(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function et(n){if(n||(n=me.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Fe=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class cn extends O{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class Nn extends A{constructor(e){super(e),this.destination=e}}let v=(()=>{class n extends X{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ct](){return new Nn(this)}lift(t){const i=new E(this,this);return i.operator=t,i}next(t){if(this.closed)throw new Fe;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(t)}}error(t){if(this.closed)throw new Fe;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new Fe;this.isStopped=!0;const{observers:t}=this,i=t.length,r=t.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new Fe;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new Fe;return this.hasError?(t.error(this.thrownError),O.EMPTY):this.isStopped?(t.complete(),O.EMPTY):(this.observers.push(t),new cn(this,t))}asObservable(){const t=new X;return t.source=this,t}}return n.create=(e,t)=>new E(e,t),n})();class E extends v{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):O.EMPTY}}function F(n){return n&&"function"==typeof n.schedule}function R(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new te(n,e))}}class te{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new Ee(e,this.project,this.thisArg))}}class Ee extends A{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const qe=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},$e=function He(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),tt=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Fn(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Da=n=>{if(n&&"function"==typeof n[gt])return(n=>e=>{const t=n[gt]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(tt(n))return qe(n);if(Fn(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Ke),e))(n);if(n&&"function"==typeof n[$e])return(n=>e=>{const t=n[$e]();for(;;){let i;try{i=t.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${ft(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function wa(n,e){return new X(t=>{const i=new O;let r=0;return i.add(e.schedule(function(){r!==n.length?(t.next(n[r++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function Ea(n,e){return e?function yv(n,e){if(null!=n){if(function gv(n){return n&&"function"==typeof n[gt]}(n))return function hv(n,e){return new X(t=>{const i=new O;return i.add(e.schedule(()=>{const r=n[gt]();i.add(r.subscribe({next(s){i.add(e.schedule(()=>t.next(s)))},error(s){i.add(e.schedule(()=>t.error(s)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(Fn(n))return function fv(n,e){return new X(t=>{const i=new O;return i.add(e.schedule(()=>n.then(r=>{i.add(e.schedule(()=>{t.next(r),i.add(e.schedule(()=>t.complete()))}))},r=>{i.add(e.schedule(()=>t.error(r)))}))),i})}(n,e);if(tt(n))return wa(n,e);if(function mv(n){return n&&"function"==typeof n[$e]}(n)||"string"==typeof n)return function pv(n,e){if(!n)throw new Error("Iterable cannot be null");return new X(t=>{const i=new O;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[$e](),i.add(e.schedule(function(){if(t.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void t.error(a)}o?t.complete():(t.next(s),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof X?n:new X(Da(n))}class ms extends A{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class ys extends A{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function _s(n,e){if(!e.closed)return n instanceof X?n.subscribe(e):Da(n)(e)}function ba(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(ba((r,s)=>Ea(n(r,s)).pipe(R((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new _v(n,t)))}class _v{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new vv(e,this.project,this.concurrent))}}class vv extends ys{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new ms(this),i=this.destination;i.add(t);const r=_s(e,t);r!==t&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const Dv=ba;function fd(n=Number.POSITIVE_INFINITY){return ba(L,n)}function Ca(n,e){return e?wa(n,e):new X(qe(n))}function vs(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return F(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof X?n[0]:fd(e)(Ca(n,t))}function pd(){return function(e){return e.lift(new wv(e))}}class wv{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new Ev(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class Ev extends A{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class bv extends X{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new O,e.add(this.source.subscribe(new Sv(this.getSubject(),this))),e.closed&&(this._connection=null,e=O.EMPTY)),e}refCount(){return pd()(this)}}const Cv=(()=>{const n=bv.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class Sv extends Nn{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function Sa(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new Tv(r,e));const s=Object.create(i,Cv);return s.source=i,s.subjectFactory=r,s}}class Tv{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(e);return s.add(t.subscribe(r)),s}}function Mv(){return new v}function ae(n){for(let e in n)if(n[e]===ae)return e;throw Error("Could not find renamed property on target object.")}function ie(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ie).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function Ta(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const Pv=ae({__forward_ref__:ae});function Ma(n){return n.__forward_ref__=Ma,n.toString=function(){return ie(this())},n}function U(n){return function gd(n){return"function"==typeof n&&n.hasOwnProperty(Pv)&&n.__forward_ref__===Ma}(n)?n():n}class I extends Error{constructor(e,t){super(function Aa(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function Qe(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():function V(n){return"string"==typeof n?n:null==n?"":String(n)}(n)}function Ds(n,e){const t=e?` in ${e}`:"";throw new I(-201,`No provider for ${Qe(n)} found${t}`)}function vt(n,e){null==n&&function re(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function B(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Cn(n){return{providers:n.providers||[],imports:n.imports||[]}}function Pa(n){return md(n,ws)||md(n,_d)}function md(n,e){return n.hasOwnProperty(e)?n[e]:null}function yd(n){return n&&(n.hasOwnProperty(Ra)||n.hasOwnProperty(Lv))?n[Ra]:null}const ws=ae({\u0275prov:ae}),Ra=ae({\u0275inj:ae}),_d=ae({ngInjectableDef:ae}),Lv=ae({ngInjectorDef:ae});var $=(()=>(($=$||{})[$.Default=0]="Default",$[$.Host=1]="Host",$[$.Self=2]="Self",$[$.SkipSelf=4]="SkipSelf",$[$.Optional=8]="Optional",$))();let xa;function kn(n){const e=xa;return xa=n,e}function vd(n,e,t){const i=Pa(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&$.Optional?null:void 0!==e?e:void Ds(ie(n),"Injector")}function Ln(n){return{toString:n}.toString()}var qt=(()=>((qt=qt||{})[qt.OnPush=0]="OnPush",qt[qt.Default=1]="Default",qt))(),Qt=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Qt||(Qt={})),Qt))();const Bv="undefined"!=typeof globalThis&&globalThis,jv="undefined"!=typeof window&&window,Hv="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,se=Bv||"undefined"!=typeof global&&global||jv||Hv,Si={},le=[],Es=ae({\u0275cmp:ae}),Oa=ae({\u0275dir:ae}),Na=ae({\u0275pipe:ae}),Dd=ae({\u0275mod:ae}),Sn=ae({\u0275fac:ae}),vr=ae({__NG_ELEMENT_ID__:ae});let $v=0;function bs(n){return Ln(()=>{const t={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===qt.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||le,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Qt.Emulated,id:"c",styles:n.styles||le,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=$v++,i.inputs=Cd(n.inputs,t),i.outputs=Cd(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(wd):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Ed):null,i})}function wd(n){return Ye(n)||function Bn(n){return n[Oa]||null}(n)}function Ed(n){return function ri(n){return n[Na]||null}(n)}const bd={};function Vn(n){return Ln(()=>{const e={type:n.type,bootstrap:n.bootstrap||le,declarations:n.declarations||le,imports:n.imports||le,exports:n.exports||le,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(bd[n.id]=n.type),e})}function Cd(n,e){if(null==n)return Si;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),t[r]=i,e&&(e[r]=s)}return t}const Dt=bs;function Ye(n){return n[Es]||null}function Ft(n,e){const t=n[Dd]||null;if(!t&&!0===e)throw new Error(`Type ${ie(n)} does not have '\u0275mod' property.`);return t}const z=11;function un(n){return Array.isArray(n)&&"object"==typeof n[1]}function Kt(n){return Array.isArray(n)&&!0===n[1]}function La(n){return 0!=(8&n.flags)}function Ts(n){return 2==(2&n.flags)}function Ms(n){return 1==(1&n.flags)}function Zt(n){return null!==n.template}function Qv(n){return 0!=(512&n[2])}function li(n,e){return n.hasOwnProperty(Sn)?n[Sn]:null}class Id{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Td(n){return n.type.prototype.ngOnChanges&&(n.setInput=Xv),Zv}function Zv(){const n=Ad(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===Si)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function Xv(n,e,t,i){const r=Ad(n)||function Jv(n,e){return n[Md]=e}(n,{previous:Si,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new Id(l&&l.currentValue,e,o===Si),n[i]=e}const Md="__ngSimpleChanges__";function Ad(n){return n[Md]||null}let $a;function Ce(n){return!!n.listen}const Pd={createRenderer:(n,e)=>function za(){return void 0!==$a?$a:"undefined"!=typeof document?document:void 0}()};function Pe(n){for(;Array.isArray(n);)n=n[0];return n}function Et(n,e){return Pe(e[n.index])}function Ua(n,e){return n.data[e]}function bt(n,e){const t=e[n];return un(t)?t:t[0]}function Rd(n){return 4==(4&n[2])}function Wa(n){return 128==(128&n[2])}function jn(n,e){return null==e?null:n[e]}function xd(n){n[18]=0}function Ga(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const j={lFrame:Hd(null),bindingsEnabled:!0};function Nd(){return j.bindingsEnabled}function _(){return j.lFrame.lView}function ee(){return j.lFrame.tView}function ke(){let n=Fd();for(;null!==n&&64===n.type;)n=n.parent;return n}function Fd(){return j.lFrame.currentTNode}function dn(n,e){const t=j.lFrame;t.currentTNode=n,t.isParent=e}function qa(){return j.lFrame.isParent}function yD(n,e){const t=j.lFrame;t.bindingIndex=t.bindingRootIndex=n,Ya(e)}function Ya(n){j.lFrame.currentDirectiveIndex=n}function Vd(){return j.lFrame.currentQueryIndex}function Za(n){j.lFrame.currentQueryIndex=n}function vD(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function Bd(n,e,t){if(t&$.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&$.Host||(r=vD(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=j.lFrame=jd();return i.currentTNode=e,i.lView=n,!0}function xs(n){const e=jd(),t=n[1];j.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function jd(){const n=j.lFrame,e=null===n?null:n.child;return null===e?Hd(n):e}function Hd(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function $d(){const n=j.lFrame;return j.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const zd=$d;function Os(){const n=$d();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function rt(){return j.lFrame.selectedIndex}function Hn(n){j.lFrame.selectedIndex=n}function Ns(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t<i;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-t,o),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),c&&((n.viewHooks||(n.viewHooks=[])).push(t,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(t,u)}}function Fs(n,e,t){Ud(n,e,3,t)}function ks(n,e,t,i){(3&n[2])===t&&Ud(n,e,t,i)}function Xa(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function Ud(n,e,t,i){const s=null!=i?i:-1,o=e.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(MD(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function MD(n,e,t,i){const r=t[i]<0,s=t[i+1],a=n[r?-t[i]:t[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Cr{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function Ls(n,e,t){const i=Ce(n);let r=0;for(;r<t.length;){const s=t[r];if("number"==typeof s){if(0!==s)break;r++;const o=t[r++],a=t[r++],l=t[r++];i?n.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=t[++r];el(o)?i&&n.setProperty(e,o,a):i?n.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Wd(n){return 3===n||4===n||6===n}function el(n){return 64===n.charCodeAt(0)}function Vs(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?t=r:0===t||Gd(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function Gd(n,e,t,i,r){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,e),s=o+1),n.splice(s++,0,t),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function qd(n){return-1!==n}function xi(n){return 32767&n}function Oi(n,e){let t=function OD(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let tl=!0;function Bs(n){const e=tl;return tl=n,e}let ND=0;function Ir(n,e){const t=il(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,nl(i.data,n),nl(e,null),nl(i.blueprint,null));const r=js(n,e),s=n.injectorIndex;if(qd(r)){const o=xi(r),a=Oi(r,e),l=a[1].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=r,s}function nl(n,e){n.push(0,0,0,0,0,0,0,0,e)}function il(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function js(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function Hs(n,e,t){!function FD(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(vr)&&(i=t[vr]),null==i&&(i=t[vr]=ND++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function Kd(n,e,t){if(t&$.Optional)return n;Ds(e,"NodeInjector")}function Zd(n,e,t,i){if(t&$.Optional&&void 0===i&&(i=null),0==(t&($.Self|$.Host))){const r=n[9],s=kn(void 0);try{return r?r.get(e,i,t&$.Optional):vd(e,i,t&$.Optional)}finally{kn(s)}}return Kd(i,e,t)}function Xd(n,e,t,i=$.Default,r){if(null!==n){const s=function BD(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(vr)?n[vr]:void 0;return"number"==typeof e?e>=0?255&e:LD:e}(t);if("function"==typeof s){if(!Bd(e,n,i))return i&$.Host?Kd(r,t,i):Zd(e,t,i,r);try{const o=s(i);if(null!=o||i&$.Optional)return o;Ds(t)}finally{zd()}}else if("number"==typeof s){let o=null,a=il(n,e),l=-1,c=i&$.Host?e[16][6]:null;for((-1===a||i&$.SkipSelf)&&(l=-1===a?js(n,e):e[a+8],-1!==l&&th(i,!1)?(o=e[1],a=xi(l),e=Oi(l,e)):a=-1);-1!==a;){const u=e[1];if(eh(s,a,u.data)){const d=VD(a,e,t,o,i,c);if(d!==Jd)return d}l=e[a+8],-1!==l&&th(i,e[1].data[a+8]===c)&&eh(s,a,e)?(o=u,a=xi(l),e=Oi(l,e)):a=-1}}}return Zd(e,t,i,r)}const Jd={};function LD(){return new Ni(ke(),_())}function VD(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=$s(a,o,t,null==i?Ts(a)&&tl:i!=o&&0!=(3&a.type),r&$.Host&&s===a);return null!==u?Tr(e,o,u,a):Jd}function $s(n,e,t,i,r){const s=n.providerIndexes,o=e.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&t===p||f>=l&&p.type===t)return f}if(r){const f=o[l];if(f&&Zt(f)&&f.type===t)return l}return null}function Tr(n,e,t,i){let r=n[t];const s=e.data;if(function AD(n){return n instanceof Cr}(r)){const o=r;o.resolving&&function Rv(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new I(-200,`Circular dependency in DI detected for ${n}${t}`)}(Qe(s[t]));const a=Bs(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?kn(o.injectImpl):null;Bd(n,i,$.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function TD(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=Td(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&kn(l),Bs(a),o.resolving=!1,zd()}}return r}function eh(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function th(n,e){return!(n&$.Self||n&$.Host&&e)}class Ni{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return Xd(this._tNode,this._lView,e,i,t)}}class K{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=B({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Vt(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let i=n[t];Array.isArray(i)?(e===n&&(e=n.slice(0,t)),Vt(i,e)):e!==n&&e.push(i)}return e}function hn(n,e){n.forEach(t=>Array.isArray(t)?hn(t,e):e(t))}function ih(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function zs(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}const Rr={},Ws="ngTempTokenPath",ZD=/\n/gm,lh="__source",JD=ae({provide:String,useValue:ae});let xr;function ch(n){const e=xr;return xr=n,e}function ew(n,e=$.Default){if(void 0===xr)throw new I(203,"");return null===xr?vd(n,void 0,e):xr.get(n,e&$.Optional?null:void 0,e)}function w(n,e=$.Default){return(function Vv(){return xa}()||ew)(U(n),e)}const dh=w;function dl(n){const e=[];for(let t=0;t<n.length;t++){const i=U(n[t]);if(Array.isArray(i)){if(0===i.length)throw new I(900,"");let r,s=$.Default;for(let o=0;o<i.length;o++){const a=i[o],l=tw(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(w(r,s))}else e.push(w(i))}return e}function tw(n){return n.__NG_DI_FLAG__}var St=(()=>((St=St||{})[St.Important=1]="Important",St[St.DashCase=2]="DashCase",St))();const _h="__ngContext__";function Xe(n,e){n[_h]=e}function gl(n){const e=function Fr(n){return n[_h]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function yl(n,e){return undefined(n,e)}function kr(n){const e=n[3];return Kt(e)?e[3]:e}function _l(n){return Sh(n[13])}function vl(n){return Sh(n[4])}function Sh(n){for(;null!==n&&!Kt(n);)n=n[4];return n}function Hi(n,e,t,i,r){if(null!=i){let s,o=!1;Kt(i)?s=i:un(i)&&(o=!0,i=i[0]);const a=Pe(i);0===n&&null!==t?null==r?Rh(e,t,a):ci(e,t,a,r||null,!0):1===n&&null!==t?ci(e,t,a,r||null,!0):2===n?function Il(n,e,t){const i=Ys(n,e);i&&function xw(n,e,t,i){Ce(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function Fw(n,e,t,i,r){const s=t[7];s!==Pe(t)&&Hi(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];Lr(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function wl(n,e,t){if(Ce(n))return n.createElement(e,t);{const i=null!==t?function iD(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(t):null;return null===i?n.createElement(e):n.createElementNS(i,e)}}function Th(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Ga(r,-1)),t.splice(i,1)}function El(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&Th(r,i),e>0&&(n[t-1][4]=i[4]);const s=zs(n,10+e);!function Cw(n,e){Lr(n,e,e[z],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Mh(n,e){if(!(256&e[2])){const t=e[z];Ce(t)&&t.destroyNode&&Lr(n,e,t,3,null,null),function Tw(n){let e=n[13];if(!e)return bl(n[1],n);for(;e;){let t=null;if(un(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)un(e)&&bl(e[1],e),e=e[3];null===e&&(e=n),un(e)&&bl(e[1],e),t=e&&e[4]}e=t}}(e)}}function bl(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function Rw(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i<t.length;i+=2){const r=e[t[i]];if(!(r instanceof Cr)){const s=t[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,e),function Pw(n,e){const t=n.cleanup,i=e[7];let r=-1;if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+1],a="function"==typeof o?o(e):Pe(e[o]),l=i[r=t[s+2]],c=t[s+3];"boolean"==typeof c?a.removeEventListener(t[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=t[s+1]];t[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();e[7]=null}}(n,e),1===e[1].type&&Ce(e[z])&&e[z].destroy();const t=e[17];if(null!==t&&Kt(e[3])){t!==e[3]&&Th(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function Ah(n,e,t){return function Ph(n,e,t){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return t[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===Qt.None||r===Qt.Emulated)return null}return Et(i,t)}(n,e.parent,t)}function ci(n,e,t,i,r){Ce(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function Rh(n,e,t){Ce(n)?n.appendChild(e,t):e.appendChild(t)}function xh(n,e,t,i,r){null!==i?ci(n,e,t,i,r):Rh(n,e,t)}function Ys(n,e){return Ce(n)?n.parentNode(e):e.parentNode}let Fh=function Nh(n,e,t){return 40&n.type?Et(n,t):null};function Ks(n,e,t,i){const r=Ah(n,i,e),s=e[z],a=function Oh(n,e,t){return Fh(n,e,t)}(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)xh(s,r,t[l],a,!1);else xh(s,r,t,a,!1)}function Zs(n,e){if(null!==e){const t=e.type;if(3&t)return Et(e,n);if(4&t)return Sl(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return Zs(n,i);{const r=n[e.index];return Kt(r)?Sl(-1,r):Pe(r)}}if(32&t)return yl(e,n)()||Pe(n[e.index]);{const i=Lh(n,e);return null!==i?Array.isArray(i)?i[0]:Zs(kr(n[16]),i):Zs(n,e.next)}}return null}function Lh(n,e){return null!==e?n[16][6].projection[e.projection]:null}function Sl(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return Zs(i,r)}return e[7]}function Tl(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&&Xe(Pe(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)Tl(n,e,t.child,i,r,s,!1),Hi(e,n,r,a,s);else if(32&l){const c=yl(t,i);let u;for(;u=c();)Hi(e,n,r,u,s);Hi(e,n,r,a,s)}else 16&l?Vh(n,e,i,t,r,s):Hi(e,n,r,a,s);t=o?t.projectionNext:t.next}}function Lr(n,e,t,i,r,s){Tl(t,i,n.firstChild,e,r,s,!1)}function Vh(n,e,t,i,r,s){const o=t[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Hi(e,n,r,l[c],s);else Tl(n,e,l,o[3],r,s,!0)}function Bh(n,e,t){Ce(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function Ml(n,e,t){Ce(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function kl(n){return n.ngOriginalError}function fE(n,...e){n.error(...e)}class Hr{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=function hE(n){return n&&n.ngErrorLogger||fE}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&kl(e);for(;t&&kl(t);)t=kl(t);return t||null}}const DE=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(se))();function pn(n){return n instanceof Function?n():n}function ef(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=e.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}t=r+1}}const tf="ng-template";function CE(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==ef(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function nf(n){return 4===n.type&&n.value!==tf}function SE(n,e,t){return e===(4!==n.type||t?n.value:tf)}function IE(n,e,t){let i=4;const r=n.attrs||[],s=function AE(n){for(let e=0;e<n.length;e++)if(Wd(n[e]))return e;return n.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!SE(n,l,t)||""===l&&1===e.length){if(Xt(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!CE(n.attrs,c,t)){if(Xt(i))return!1;o=!0}continue}const d=TE(8&i?"class":l,r,nf(n),t);if(-1===d){if(Xt(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==ef(f,c,0)||2&i&&c!==h){if(Xt(i))return!1;o=!0}}}}else{if(!o&&!Xt(i)&&!Xt(l))return!1;if(o&&Xt(l))continue;o=!1,i=l|1&i}}return Xt(i)||o}function Xt(n){return 0==(1&n)}function TE(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let s=!1;for(;r<e.length;){const o=e[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function PE(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const i=n[t];if("number"==typeof i)return-1;if(i===e)return t;t++}return-1}(e,n)}function rf(n,e,t=!1){for(let i=0;i<e.length;i++)if(IE(n,e[i],t))return!0;return!1}function sf(n,e){return n?":not("+e.trim()+")":e}function xE(n){let e=n[0],t=1,i=2,r="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&i){const a=n[++t];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Xt(o)&&(e+=sf(s,r),r=""),i=o,s=s||!Xt(i);t++}return""!==r&&(e+=sf(s,r)),e}const H={};function lf(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&Fs(e,s,t)}else{const s=n.preOrderHooks;null!==s&&ks(e,s,0,t)}Hn(t)}function vf(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],s=t[i+1];if(-1!==s){const o=n.data[s];Za(r),o.contentQueries(2,e[s],s)}}}function $r(n,e,t,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,xd(u),u[3]=u[15]=n,u[8]=t,u[10]=o||n&&n[10],u[z]=a||n&&n[z],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==e.type?n[16]:u,u}function zi(n,e,t,i,r){let s=n.data[e];if(null===s)s=function Ql(n,e,t,i,r){const s=Fd(),o=qa(),l=n.data[e]=function KE(n,e,t,i,r,s){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,e,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,e,t,i,r),function mD(){return j.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function br(){const n=j.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return dn(s,!0),s}function Ui(n,e,t,i){if(0===t)return-1;const r=e.length;for(let s=0;s<t;s++)e.push(i),n.blueprint.push(i),n.data.push(null);return r}function zr(n,e,t){xs(e);try{const i=n.viewQuery;null!==i&&ic(1,i,t);const r=n.template;null!==r&&Df(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&vf(n,e),n.staticViewQueries&&ic(2,n.viewQuery,t);const s=n.components;null!==s&&function qE(n,e){for(let t=0;t<e.length;t++)pb(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,Os()}}function Wi(n,e,t,i){const r=e[2];if(256!=(256&r)){xs(e);try{xd(e),function kd(n){return j.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&Df(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&Fs(e,c,null)}else{const c=n.preOrderHooks;null!==c&&ks(e,c,0,null),Xa(e,0)}if(function hb(n){for(let e=_l(n);null!==e;e=vl(e)){if(!e[2])continue;const t=e[9];for(let i=0;i<t.length;i++){const r=t[i],s=r[3];0==(1024&r[2])&&Ga(s,1),r[2]|=1024}}}(e),function db(n){for(let e=_l(n);null!==e;e=vl(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];Wa(i)&&Wi(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&vf(n,e),o){const c=n.contentCheckHooks;null!==c&&Fs(e,c)}else{const c=n.contentHooks;null!==c&&ks(e,c,1),Xa(e,1)}!function WE(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)Hn(~r);else{const s=r,o=t[++i],a=t[++i];yD(o,s),a(2,e[s])}}}finally{Hn(-1)}}(n,e);const a=n.components;null!==a&&function GE(n,e){for(let t=0;t<e.length;t++)fb(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&ic(2,l,i),o){const c=n.viewCheckHooks;null!==c&&Fs(e,c)}else{const c=n.viewHooks;null!==c&&ks(e,c,2),Xa(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,Ga(e[3],-1))}finally{Os()}}}function QE(n,e,t,i){const r=e[10],o=Rd(e);try{!o&&r.begin&&r.begin(),o&&zr(n,e,i),Wi(n,e,t,i)}finally{!o&&r.end&&r.end()}}function Df(n,e,t,i,r){const s=rt(),o=2&i;try{Hn(-1),o&&e.length>20&&lf(n,e,20,!1),t(i,r)}finally{Hn(s)}}function Ef(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=so(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function so(n,e,t,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function YE(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:H);return t}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Sf(n,e,t,i){const r=Ff(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&kf(n).push(i,r.length-1))}function If(n,e,t){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(e,r):t[i]=[e,r]}return t}function Mf(n,e,t,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function nb(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function Af(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function Pf(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function ab(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;Zt(e)&&(t[""]=n)}}function Rf(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function xf(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=li(r.type)),o=new Cr(s,Zt(r),null);n.blueprint[i]=o,t[i]=o,Mf(n,e,0,i,Ui(n,t,r.hostVars,H),r)}function lb(n,e,t){const i=Et(e,n),r=Ef(t),s=n[10],o=oo(n,$r(n,r,null,t.onPush?64:16,i,e,s,s.createRenderer(i,t),null,null));n[e.index]=o}function cb(n,e,t,i,r,s){const o=s[e];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(t,d,c,u):t[u]=d}}}function ub(n,e){let t=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,n[r],e[i+1])),i+=2}else i+=2;else i+=4}return t}function fb(n,e){const t=bt(e,n);if(Wa(t)){const i=t[1];80&t[2]?Wi(i,t,i.template,t[8]):t[5]>0&&Jl(t)}}function Jl(n){for(let i=_l(n);null!==i;i=vl(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];Wi(o,s,o.template,s[8])}else s[5]>0&&Jl(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=bt(t[i],n);Wa(r)&&r[5]>0&&Jl(r)}}function pb(n,e){const t=bt(e,n),i=t[1];(function gb(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),zr(i,t,t[8])}function oo(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function ec(n){for(;n;){n[2]|=64;const e=kr(n);if(Qv(n)&&!e)return n;n=e}return null}function Nf(n){!function tc(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=gl(t),r=i[1];QE(r,i,r.template,t)}}(n[8])}function ic(n,e,t){Za(0),e(n,t)}const yb=(()=>Promise.resolve(null))();function Ff(n){return n[7]||(n[7]=[])}function kf(n){return n.cleanup||(n.cleanup=[])}function Vf(n,e){const t=n[9],i=t?t.get(Hr,null):null;i&&i.handleError(e)}function Bf(n,e,t,i,r){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=e[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function ao(n,e,t){let i=t?n.styles:null,r=t?n.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?r=Ta(r,a):2==s&&(i=Ta(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const rc=new K("INJECTOR",-1);class jf{get(e,t=Rr){if(t===Rr){const i=new Error(`NullInjectorError: No provider for ${ie(e)}!`);throw i.name="NullInjectorError",i}return t}}const sc=new K("Set Injector scope."),Ur={},Db={};let oc;function Hf(){return void 0===oc&&(oc=new jf),oc}function $f(n,e=null,t=null,i){const r=zf(n,e,t,i);return r._resolveInjectorDefTypes(),r}function zf(n,e=null,t=null,i){return new wb(n,t,e||Hf(),i)}class wb{constructor(e,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&hn(t,a=>this.processProvider(a,e,t)),hn([e],a=>this.processInjectorType(a,[],s)),this.records.set(rc,Gi(void 0,this));const o=this.records.get(sc);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:ie(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Rr,i=$.Default){this.assertNotDestroyed();const r=ch(this),s=kn(void 0);try{if(!(i&$.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function Ab(n){return"function"==typeof n||"object"==typeof n&&n instanceof K}(e)&&Pa(e);a=l&&this.injectableDefInScope(l)?Gi(ac(e),Ur):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&$.Self?Hf():this.parent).get(e,t=i&$.Optional&&t===Rr?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[Ws]=o[Ws]||[]).unshift(ie(e)),r)throw o;return function nw(n,e,t,i){const r=n[Ws];throw e[lh]&&r.unshift(e[lh]),n.message=function iw(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=ie(e);if(Array.isArray(e))r=e.map(ie).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):ie(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(ZD,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[Ws]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{kn(s),ch(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(ie(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processInjectorType(e,t,i){if(!(e=U(e)))return!1;let r=yd(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=yd(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{hn(r.imports,d=>{this.processInjectorType(d,t,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];hn(f,p=>this.processProvider(p,h,f||le))}}this.injectorDefTypes.add(o);const l=li(o)||(()=>new o);this.records.set(o,Gi(l,Ur));const c=r.providers;if(null!=c&&!a){const u=e;hn(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,i){let r=qi(e=U(e))?e:U(e&&e.provide);const s=function bb(n,e,t){return Wf(n)?Gi(void 0,n.useValue):Gi(function Uf(n,e,t){let i;if(qi(n)){const r=U(n);return li(r)||ac(r)}if(Wf(n))i=()=>U(n.useValue);else if(function Sb(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...dl(n.deps||[]));else if(function Cb(n){return!(!n||!n.useExisting)}(n))i=()=>w(U(n.useExisting));else{const r=U(n&&(n.useClass||n.provide));if(!function Tb(n){return!!n.deps}(n))return li(r)||ac(r);i=()=>new r(...dl(n.deps))}return i}(n),Ur)}(e);if(qi(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Gi(void 0,Ur,!0),o.factory=()=>dl(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===Ur&&(t.value=Db,t.value=t.factory()),"object"==typeof t.value&&t.value&&function Mb(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=U(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function ac(n){const e=Pa(n),t=null!==e?e.factory:li(n);if(null!==t)return t;if(n instanceof K)throw new I(204,!1);if(n instanceof Function)return function Eb(n){const e=n.length;if(e>0)throw function Pr(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}(e,"?"),new I(204,!1);const t=function Fv(n){const e=n&&(n[ws]||n[_d]);if(e){const t=function kv(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" 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 "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new I(204,!1)}function Gi(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function Wf(n){return null!==n&&"object"==typeof n&&JD in n}function qi(n){return"function"==typeof n}let dt=(()=>{class n{static create(t,i){var r;if(Array.isArray(t))return $f({name:""},i,t,"");{const s=null!==(r=t.name)&&void 0!==r?r:"";return $f({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=Rr,n.NULL=new jf,n.\u0275prov=B({token:n,providedIn:"any",factory:()=>w(rc)}),n.__NG_ELEMENT_ID__=-1,n})();function Lb(n,e){Ns(gl(n)[1],ke())}let lo=null;function Qi(){if(!lo){const n=se.Symbol;if(n&&n.iterator)lo=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const i=e[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(lo=i)}}}return lo}function G(n,e=$.Default){const t=_();return null===t?w(n,e):Xd(ke(),t,U(n),e)}function mc(n,e,t){const i=_();return function Je(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}(i,function Ri(){return j.lFrame.bindingIndex++}(),e)&&function It(n,e,t,i,r,s,o,a){const l=Et(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(Bf(n,t,u,i,r),Ts(e)&&function JE(n,e){const t=bt(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function XE(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,e.value||"",i):r,Ce(s)?s.setProperty(l,i,r):el(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(ee(),function _e(){const n=j.lFrame;return Ua(n.tView,n.selectedIndex)}(),i,n,e,i[z],t,!1),mc}function yc(n,e,t,i,r){const o=r?"class":"style";Bf(n,t,e.inputs[o],o,i)}function ho(n,e,t,i){const r=_(),s=ee(),o=20+n,a=r[z],l=r[o]=wl(a,e,function ID(){return j.lFrame.currentNamespace}()),c=s.firstCreatePass?function _C(n,e,t,i,r,s,o){const a=e.consts,c=zi(e,n,2,r,jn(a,s));return function Zl(n,e,t,i){let r=!1;if(Nd()){const s=function sb(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];rf(t,o.selectors,!1)&&(r||(r=[]),Hs(Ir(t,e),n,o.type),Zt(o)?(Pf(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,Rf(t,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=Ui(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=Vs(t.mergedAttrs,d.hostAttrs),xf(n,t,e,c,d),ab(c,d,o),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),c++}!function ZE(n,e){const i=e.directiveEnd,r=n.data,s=e.attrs,o=[];let a=null,l=null;for(let c=e.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||nf(e)?null:ub(d,s);o.push(h),a=If(d,c,a),l=If(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(n,t)}o&&function ob(n,e,t){if(e){const i=n.localNames=[];for(let r=0;r<e.length;r+=2){const s=t[e[r+1]];if(null==s)throw new I(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=Vs(t.mergedAttrs,t.attrs),r}(e,t,c,jn(a,o)),null!==c.attrs&&ao(c,c.attrs,!1),null!==c.mergedAttrs&&ao(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];dn(c,!0);const u=c.mergedAttrs;null!==u&&Ls(a,l,u);const d=c.classes;null!==d&&Ml(a,l,d);const h=c.styles;return null!==h&&Bh(a,l,h),64!=(64&c.flags)&&Ks(s,r,l,c),0===function cD(){return j.lFrame.elementDepthCount}()&&Xe(l,r),function uD(){j.lFrame.elementDepthCount++}(),Ms(c)&&(function Yl(n,e,t){!Nd()||(function ib(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||Ir(t,e),Xe(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Zt(l);c&&lb(e,t,l);const u=Tr(e,n,a,t);Xe(u,e),null!==o&&cb(0,a-r,u,l,0,o),c&&(bt(t.index,e)[8]=u)}}(n,e,t,Et(t,e)),128==(128&t.flags)&&function rb(n,e,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function _D(){return j.lFrame.currentDirectiveIndex}();try{Hn(o);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];Ya(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&Af(c,u)}}finally{Hn(-1),Ya(a)}}(n,e,t))}(s,r,c),function wf(n,e,t){if(La(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,t[s],s)}}}(s,c,r)),null!==i&&function Kl(n,e,t=Et){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?t(e,n):n[o];n[r++]=a}}}(r,c),ho}function fo(){let n=ke();qa()?function Qa(){j.lFrame.isParent=!1}():(n=n.parent,dn(n,!1));const e=n;!function dD(){j.lFrame.elementDepthCount--}();const t=ee();return t.firstCreatePass&&(Ns(t,n),La(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function RD(n){return 0!=(16&n.flags)}(e)&&yc(t,e,_(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function xD(n){return 0!=(32&n.flags)}(e)&&yc(t,e,_(),e.stylesWithoutHost,!1),fo}function po(n,e,t,i){return ho(n,e,t,i),fo(),po}function Dc(n){return!!n&&"function"==typeof n.then}const wC=function Ip(n){return!!n&&"function"==typeof n.subscribe};function wc(n,e,t,i){const r=_(),s=ee(),o=ke();return function Mp(n,e,t,i,r,s,o,a){const l=Ms(i),u=n.firstCreatePass&&kf(n),d=e[8],h=Ff(e);let f=!0;if(3&i.type||a){const y=Et(i,e),D=a?a(y):y,m=h.length,b=a?M=>a(Pe(M[i.index])):i.index;if(Ce(t)){let M=null;if(!a&&l&&(M=function EC(n,e,t,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===t&&r[s+1]===i){const a=e[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,r,i.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=s,M.__ngLastListenerFn__=s,f=!1;else{s=Ec(i,e,d,s,!1);const q=t.listen(D,r,s);h.push(s,q),u&&u.push(r,b,m,m+1)}}else s=Ec(i,e,d,s,!0),D.addEventListener(r,s,o),h.push(s),u&&u.push(r,b,m,o)}else s=Ec(i,e,d,s,!1);const p=i.outputs;let g;if(f&&null!==p&&(g=p[r])){const y=g.length;if(y)for(let D=0;D<y;D+=2){const ge=e[g[D]][g[D+1]].subscribe(s),De=h.length;h.push(s,ge),u&&u.push(r,i.index,De,-(De+1))}}}(s,r,r[z],o,n,e,!!t,i),wc}function Ap(n,e,t,i){try{return!1!==t(i)}catch(r){return Vf(n,r),!1}}function Ec(n,e,t,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?bt(n.index,e):e;0==(32&e[2])&&ec(a);let l=Ap(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=Ap(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}const mo="en-US";let Eg=mo;class qg{}class g0{resolveComponentFactory(e){throw function p0(n){const e=Error(`No component factory found for ${ie(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let fi=(()=>{class n{}return n.NULL=new g0,n})();function m0(){return lr(ke(),_())}function lr(n,e){return new vn(Et(n,e))}let vn=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=m0,n})();function y0(n){return n instanceof vn?n.nativeElement:n}class Xr{}let D0=(()=>{class n{}return n.\u0275prov=B({token:n,providedIn:"root",factory:()=>null}),n})();class wo{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const w0=new wo("13.4.0"),xc={};function Eo(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(Pe(s)),Kt(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&Eo(l[1],l,c,i)}const o=t.type;if(8&o)Eo(n,e,t.child,i);else if(32&o){const a=yl(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Lh(e,t);if(Array.isArray(a))i.push(...a);else{const l=kr(e[16]);Eo(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class Jr{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return Eo(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(Kt(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(El(e,i),zs(t,i))}this._attachedToViewContainer=!1}Mh(this._lView[1],this._lView)}onDestroy(e){Sf(this._lView[1],this._lView,null,e)}markForCheck(){ec(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function nc(n,e,t){const i=e[10];i.begin&&i.begin();try{Wi(n,e,n.template,t)}catch(r){throw Vf(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Iw(n,e){Lr(n,e,e[z],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new I(902,"");this._appRef=e}}class E0 extends Jr{constructor(e){super(e),this._view=e}detectChanges(){Nf(this._view)}checkNoChanges(){}get context(){return null}}class Kg extends fi{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=Ye(e);return new Oc(t,this.ngModule)}}function Zg(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class Oc extends qg{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function OE(n){return n.map(xE).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Zg(this.componentDef.inputs)}get outputs(){return Zg(this.componentDef.outputs)}create(e,t,i,r){const s=(r=r||this.ngModule)?function C0(n,e){return{get:(t,i,r)=>{const s=n.get(t,xc,r);return s!==xc||i===xc?s:e.get(t,i,r)}}}(e,r.injector):e,o=s.get(Xr,Pd),a=s.get(D0,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function Cf(n,e,t){if(Ce(n))return n.selectRootElement(e,t===Qt.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):wl(o.createRenderer(null,this.componentDef),c,function b0(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function np(n,e){return{components:[],scheduler:n||DE,clean:yb,playerHandler:e||null,flags:0}}(),f=so(0,null,null,1,0,null,null,null,null,null),p=$r(null,f,h,d,null,null,o,l,a,s);let g,y;xs(p);try{const D=function ep(n,e,t,i,r,s){const o=t[1];t[20]=n;const l=zi(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(ao(l,c,!0),null!==n&&(Ls(r,n,c),null!==l.classes&&Ml(r,n,l.classes),null!==l.styles&&Bh(r,n,l.styles)));const u=i.createRenderer(n,e),d=$r(t,Ef(e),null,e.onPush?64:16,t[20],l,i,u,s||null,null);return o.firstCreatePass&&(Hs(Ir(l,t),o,e.type),Pf(o,l),Rf(l,t.length,1)),oo(t,d),t[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)Ls(l,u,["ng-version",w0.full]);else{const{attrs:m,classes:b}=function NE(n){const e=[],t=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&e.push(s,n[++i]):8===r&&t.push(s);else{if(!Xt(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);m&&Ls(l,u,m),b&&b.length>0&&Ml(l,u,b.join(" "))}if(y=Ua(f,20),void 0!==t){const m=y.projection=[];for(let b=0;b<this.ngContentSelectors.length;b++){const M=t[b];m.push(null!=M?Array.from(M):null)}}g=function tp(n,e,t,i,r){const s=t[1],o=function tb(n,e,t){const i=ke();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),xf(n,i,e,Ui(n,e,1,null),t));const r=Tr(e,n,i.directiveStart,i);Xe(r,e);const s=Et(i,e);return s&&Xe(s,e),r}(s,t,e);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,e)),e.contentQueries){const l=ke();e.contentQueries(1,o,l.directiveStart)}const a=ke();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Hn(a.index),Mf(t[1],a,0,a.directiveStart,a.directiveEnd,e),Af(e,o)),o}(D,this.componentDef,p,h,[Lb]),zr(f,p,null)}finally{Os()}return new I0(this.componentType,g,lr(y,p),p,y)}}class I0 extends class f0{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new E0(r),this.componentType=e}get injector(){return new Ni(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class cr{}const ur=new Map;class em extends cr{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Kg(this);const i=Ft(e);this._bootstrapComponents=pn(i.bootstrap),this._r3Injector=zf(e,t,[{provide:cr,useValue:this},{provide:fi,useValue:this.componentFactoryResolver}],ie(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=dt.THROW_IF_NOT_FOUND,i=$.Default){return e===dt||e===cr||e===rc?this:this._r3Injector.get(e,t,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Nc extends class M0{}{constructor(e){super(),this.moduleType=e,null!==Ft(e)&&function A0(n){const e=new Set;!function t(i){const r=Ft(i,!0),s=r.id;null!==s&&(function Xg(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${ie(e)} vs ${ie(e.name)}`)}(s,ur.get(s),i),ur.set(s,i));const o=pn(r.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new em(this.moduleType,e)}}function Fc(n){return e=>{setTimeout(n,void 0,e)}}const jt=class q0 extends v{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){var r,s,o;let a=e,l=t||(()=>null),c=i;if(e&&"object"==typeof e){const d=e;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=Fc(l),a&&(a=Fc(a)),c&&(c=Fc(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof O&&e.add(u),u}};function Q0(){return this._results[Qi()]()}class kc{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Qi(),i=kc.prototype;i[t]||(i[t]=Q0)}get changes(){return this._changes||(this._changes=new jt)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const i=this;i.dirty=!1;const r=Vt(e);(this._changesDetected=!function $D(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=e[i];if(t&&(r=t(r),s=t(s)),s!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Pn=(()=>{class n{}return n.__NG_ELEMENT_ID__=Z0,n})();const Y0=Pn,K0=class extends Y0{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=$r(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(t)),zr(t,i,e),new Jr(i)}};function Z0(){return bo(ke(),_())}function bo(n,e){return 4&n.type?new K0(e,n,lr(n,e)):null}let Dn=(()=>{class n{}return n.__NG_ELEMENT_ID__=X0,n})();function X0(){return lm(ke(),_())}const J0=Dn,om=class extends J0{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return lr(this._hostTNode,this._hostLView)}get injector(){return new Ni(this._hostTNode,this._hostLView)}get parentInjector(){const e=js(this._hostTNode,this._hostLView);if(qd(e)){const t=Oi(e,this._hostLView),i=xi(e);return new Ni(t[1].data[i+8],t)}return new Ni(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=am(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){const r=e.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(e,t,i,r,s){const o=e&&!function Ar(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new Oc(Ye(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(cr,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function lD(n){return Kt(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new om(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function Mw(n,e,t,i){const r=10+i,s=t.length;i>0&&(t[r-1][4]=e),i<s-10?(e[4]=t[r],ih(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function Aw(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=128}(r,i,o,s);const a=Sl(s,o),l=i[z],c=Ys(l,o[7]);return null!==c&&function Sw(n,e,t,i,r,s){i[0]=r,i[6]=e,Lr(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),ih(Lc(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=am(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=El(this._lContainer,t);i&&(zs(Lc(this._lContainer),t),Mh(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=El(this._lContainer,t);return i&&null!=zs(Lc(this._lContainer),t)?new Jr(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function am(n){return n[8]}function Lc(n){return n[8]||(n[8]=[])}function lm(n,e){let t;const i=e[n.index];if(Kt(i))t=i;else{let r;if(8&n.type)r=Pe(i);else{const s=e[z];r=s.createComment("");const o=Et(n,e);ci(s,Ys(s,o),r,function Ow(n,e){return Ce(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=function Of(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}(i,e,r,n),oo(e,t)}return new om(t,n,e)}class Vc{constructor(e){this.queryList=e,this.matches=null}clone(){return new Vc(this.queryList)}setDirty(){this.queryList.setDirty()}}class Bc{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const i=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let s=0;s<i;s++){const o=t.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new Bc(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==mm(e,t).matches&&this.queries[t].setDirty()}}class cm{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class jc{constructor(e=[]){this.queries=e}elementStart(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let i=0;i<this.length;i++){const r=null!==t?t.length:0,s=this.getByIndex(i).embeddedTView(e,r);s&&(s.indexInDeclarationView=i,null!==t?t.push(s):t=[s])}return null!==t?new jc(t):null}template(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Hc{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new Hc(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(e,t,nI(t,s)),this.matchTNodeWithReadOption(e,t,$s(t,e,s,!1,!1))}else i===Pn?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,$s(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===vn||r===Dn||r===Pn&&4&t.type)this.addMatch(t.index,-2);else{const s=$s(t,e,r,!1,!1);null!==s&&this.addMatch(t.index,s)}else this.addMatch(t.index,i)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function nI(n,e){const t=n.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===e)return t[i+1];return null}function rI(n,e,t,i){return-1===t?function iI(n,e){return 11&n.type?lr(n,e):4&n.type?bo(n,e):null}(e,n):-2===t?function sI(n,e,t){return t===vn?lr(e,n):t===Pn?bo(e,n):t===Dn?lm(e,n):void 0}(n,e,i):Tr(n,n[1],t,e)}function um(n,e,t,i){const r=e[19].queries[i];if(null===r.matches){const s=n.data,o=t.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:rI(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function $c(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=um(n,e,r,t);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=e[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&$c(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];$c(f[1],f,c,i)}}}}}return i}function dm(n){const e=_(),t=ee(),i=Vd();Za(i+1);const r=mm(t,i);if(n.dirty&&Rd(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?$c(t,e,i,[]):um(t,e,r,i);n.reset(s,y0),n.notifyOnChanges()}return!0}return!1}function hm(n,e,t){const i=ee();i.firstCreatePass&&(function gm(n,e,t){null===n.queries&&(n.queries=new jc),n.queries.track(new Hc(e,t))}(i,new cm(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),function pm(n,e,t){const i=new kc(4==(4&t));Sf(n,e,i,i.destroy),null===e[19]&&(e[19]=new Bc),e[19].queries.push(new Vc(i))}(i,_(),e)}function mm(n,e){return n.queries.getByIndex(e)}function Io(...n){}const Om=new K("Application Initializer");let Qc=(()=>{class n{constructor(t){this.appInits=t,this.resolve=Io,this.reject=Io,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Dc(s))t.push(s);else if(wC(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(w(Om,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const is=new K("AppId",{providedIn:"root",factory:function Nm(){return`${Yc()}${Yc()}${Yc()}`}});function Yc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Fm=new K("Platform Initializer"),To=new K("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),II=new K("appBootstrapListener"),Gn=new K("LocaleId",{providedIn:"root",factory:()=>dh(Gn,$.Optional|$.SkipSelf)||function TI(){return"undefined"!=typeof $localize&&$localize.locale||mo}()}),RI=(()=>Promise.resolve(0))();function Kc(n){"undefined"==typeof Zone?RI.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class fe{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new jt(!1),this.onMicrotaskEmpty=new jt(!1),this.onStable=new jt(!1),this.onError=new jt(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function xI(){let n=se.requestAnimationFrame,e=se.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function FI(n){const e=()=>{!function NI(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(se,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Xc(n),n.isCheckStableRunning=!0,Zc(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Xc(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return km(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),Lm(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return km(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),Lm(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Xc(n),Zc(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,i,r,s)=>(t.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!fe.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(fe.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,OI,Io,Io);try{return s.runTask(o,t,i)}finally{s.cancelTask(o)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const OI={};function Zc(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Xc(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function km(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Lm(n){n._nesting--,Zc(n)}class kI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new jt,this.onMicrotaskEmpty=new jt,this.onStable=new jt,this.onError=new jt}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}let Jc=(()=>{class n{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:()=>{fe.assertNotInAngularZone(),Kc(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Kc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.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,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:r})}whenStable(t,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(w(fe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),LI=(()=>{class n{constructor(){this._applications=new Map,eu.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}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,i=!0){return eu.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class VI{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let eu=new VI,pi=null;const Vm=new K("AllowMultipleToken"),Bm=new K("PlatformOnDestroy");function jm(n,e,t=[]){const i=`Platform: ${e}`,r=new K(i);return(s=[])=>{let o=tu();if(!o||o.injector.get(Vm,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function $I(n){if(pi&&!pi.get(Vm,!1))throw new I(400,"");pi=n;const e=n.get(Hm),t=n.get(Fm,null);t&&t.forEach(i=>i())}(function UI(n=[],e){return dt.create({name:e,providers:[{provide:sc,useValue:"platform"},{provide:Bm,useValue:()=>pi=null},...n]})}(a,i))}return function zI(n){const e=tu();if(!e)throw new I(401,"");return e}()}}function tu(){var n;return null!==(n=null==pi?void 0:pi.get(Hm))&&void 0!==n?n:null}let Hm=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function WI(n,e){let t;return t="noop"===n?new kI:("zone.js"===n?void 0:n)||new fe({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:fe,useValue:a}];return a.run(()=>{const c=dt.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(Hr,null);if(!d)throw new I(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{nu(this._modules,u),h.unsubscribe()})}),function GI(n,e,t){try{const i=t();return Dc(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(Qc);return h.runInitializers(),h.donePromise.then(()=>(function mS(n){vt(n,"Expected localeId to be defined"),"string"==typeof n&&(Eg=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Gn,mo)||mo),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=$m({},i);return function jI(n,e,t){const i=new Nc(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(Mo);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new I(403,"");t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new I(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(Bm,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(w(dt))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function $m(n,e){return Array.isArray(e)?e.reduce($m,n):Object.assign(Object.assign({},n),e)}let Mo=(()=>{class n{constructor(t,i,r,s){this._zone=t,this._injector=i,this._exceptionHandler=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new X(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new X(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{fe.assertNotInAngularZone(),Kc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{fe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=vs(o,a.pipe(function Av(){return n=>pd()(Sa(Mv)(n))}()))}bootstrap(t,i){if(!this._initStatus.done)throw new I(405,"");let r;r=t instanceof qg?t:this._injector.get(fi).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const s=function HI(n){return n.isBoundToModule}(r)?void 0:this._injector.get(cr),a=r.create(dt.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Jc,null),u=c&&a.injector.get(LI);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),nu(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new I(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;nu(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(II,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(w(fe),w(dt),w(Hr),w(Qc))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function nu(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let Um=!0,qm=(()=>{class n{}return n.__NG_ELEMENT_ID__=YI,n})();function YI(n){return function KI(n,e,t){if(Ts(n)&&!t){const i=bt(n.index,e);return new Jr(i,i)}return 47&n.type?new Jr(e[16],e):null}(ke(),_(),16==(16&n))}const cT=jm(null,"core",[]);let uT=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(w(Mo))},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({}),n})(),xo=null;function qn(){return xo}const pe=new K("DocumentToken"),_y="browser";function vy(n){return n===_y}let dA=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({}),n})();class bu extends class gA extends class fT{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function hT(n){xo||(xo=n)}(new bu)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function mA(){return cs=cs||document.querySelector("base"),cs?cs.getAttribute("href"):null}();return null==t?null:function yA(n){Uo=Uo||document.createElement("a"),Uo.setAttribute("href",n);const e=Uo.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){cs=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function rM(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,s]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let Uo,cs=null;const Ty=new K("TRANSITION_ID"),vA=[{provide:Om,useFactory:function _A(n,e,t){return()=>{t.get(Qc).donePromise.then(()=>{const i=qn(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[Ty,pe,dt],multi:!0}];class Cu{static init(){!function BI(n){eu=n}(new Cu)}addToWindow(e){se.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},se.getAllAngularTestabilities=()=>e.getAllTestabilities(),se.getAllAngularRootElements=()=>e.getAllRootElements(),se.frameworkStabilizers||(se.frameworkStabilizers=[]),se.frameworkStabilizers.push(i=>{const r=se.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,i){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:i?qn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let DA=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const Wo=new K("EventManagerPlugins");let Go=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(w(Wo),w(fe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class My{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=qn().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let Ay=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),us=(()=>{class n extends Ay{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(Py),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Py))}}return n.\u0275fac=function(t){return new(t||n)(w(pe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();function Py(n){qn().remove(n)}const Su={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/",math:"http://www.w3.org/1998/MathML/"},Iu=/%COMP%/g;function qo(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?qo(n,r,t):(r=r.replace(Iu,n),t.push(r))}return t}function Oy(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Qo=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Tu(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case Qt.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new IA(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case Qt.ShadowDom:return new TA(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=qo(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(w(Go),w(us),w(is))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class Tu{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(Su[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,i){e&&e.insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const s=Su[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=Su[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(St.DashCase|St.Important)?e.style.setProperty(t,i,r&St.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&St.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Oy(i)):this.eventManager.addEventListener(e,t,Oy(i))}}class IA extends Tu{constructor(e,t,i,r){super(e),this.component=i;const s=qo(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function bA(n){return"_ngcontent-%COMP%".replace(Iu,n)}(r+"-"+i.id),this.hostAttr=function CA(n){return"_nghost-%COMP%".replace(Iu,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class TA extends Tu{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=qo(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let MA=(()=>{class n extends My{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(w(pe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const Fy=["alt","control","meta","shift"],PA={"\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"},ky={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"},RA={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let xA=(()=>{class n extends My{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>qn().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(Fy.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(t){let i="",r=function OA(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&ky.hasOwnProperty(e)&&(e=ky[e]))}return PA[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Fy.forEach(s=>{s!=r&&RA[s](t)&&(i+=s+".")}),i+=r,i}static eventCallback(t,i,r){return s=>{n.getEventFullKey(s)===t&&r.runGuarded(()=>i(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(w(pe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const LA=jm(cT,"browser",[{provide:To,useValue:_y},{provide:Fm,useValue:function NA(){bu.makeCurrent(),Cu.init()},multi:!0},{provide:pe,useFactory:function kA(){return function rD(n){$a=n}(document),document},deps:[]}]),VA=[{provide:sc,useValue:"root"},{provide:Hr,useFactory:function FA(){return new Hr},deps:[]},{provide:Wo,useClass:MA,multi:!0,deps:[pe,fe,To]},{provide:Wo,useClass:xA,multi:!0,deps:[pe]},{provide:Qo,useClass:Qo,deps:[Go,us,is]},{provide:Xr,useExisting:Qo},{provide:Ay,useExisting:us},{provide:us,useClass:us,deps:[pe]},{provide:Jc,useClass:Jc,deps:[fe]},{provide:Go,useClass:Go,deps:[Wo,fe]},{provide:class fA{},useClass:DA,deps:[]}];let Ly=(()=>{class n{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(t){return{ngModule:n,providers:[{provide:is,useValue:t.appId},{provide:Ty,useExisting:is},vA]}}}return n.\u0275fac=function(t){return new(t||n)(w(n,12))},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({providers:VA,imports:[dA,uT]}),n})();function Yn(...n){let e=n[n.length-1];return F(e)?(n.pop(),wa(n,e)):Ca(n)}"undefined"!=typeof window&&window;class eP extends O{constructor(e,t){super()}schedule(e,t=0){return this}}class Yo extends eP{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let zy=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,r){return new this.SchedulerAction(this,t).schedule(r,i)}}return n.now=()=>Date.now(),n})();class on extends zy{constructor(e,t=zy.now){super(e,()=>on.delegate&&on.delegate!==this?on.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return on.delegate&&on.delegate!==this?on.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}new class nP extends on{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class tP extends Yo{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let rP=1;const sP=Promise.resolve(),Ko={};function Uy(n){return n in Ko&&(delete Ko[n],!0)}const Wy={setImmediate(n){const e=rP++;return Ko[e]=!0,sP.then(()=>Uy(e)&&n()),e},clearImmediate(n){Uy(n)}};new class aP extends on{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class oP extends Yo{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=Wy.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(Wy.clearImmediate(t),e.scheduled=void 0)}});new on(Yo);class pP{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new gP(e,this.predicate,this.thisArg))}}class gP extends A{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}let Au;try{Au="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Au=!1}let ds=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?vy(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&&!Au)&&"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 n.\u0275fac=function(t){return new(t||n)(w(To))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Xy(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const xP=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),OP=new X(n=>n.complete());function e_(n){return n?function NP(n){return new X(e=>n.schedule(()=>e.complete()))}(n):OP}function xu(n){return e=>0===n?e_():e.lift(new FP(n))}class FP{constructor(e){if(this.total=e,this.total<0)throw new xP}call(e,t){return t.subscribe(new kP(e,this.total))}}class kP extends A{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}function Xo(n){return e=>e.lift(new LP(n))}class LP{constructor(e){this.notifier=e}call(e,t){const i=new VP(e),r=_s(this.notifier,new ms(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class VP extends ys{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let Nu=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Xy()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(t),Xy()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(t){return new(t||n)(w(pe),w(ds))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const rR=new class iR extends on{}(class nR extends Yo{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}});function oR({error:n,subscriber:e}){e.error(n)}class zt{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return Yn(this.value);case"E":return function sR(n,e){return new X(e?t=>e.schedule(oR,0,{error:n,subscriber:t}):t=>t.error(n))}(this.error);case"C":return e_()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new zt("N",e):zt.undefinedValueNotification}static createError(e){return new zt("E",void 0,e)}static createComplete(){return zt.completeNotification}}zt.completeNotification=new zt("C"),zt.undefinedValueNotification=new zt("N",void 0);class Jo extends A{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Jo.dispatch,this.delay,new lR(e,this.destination)))}_next(e){this.scheduleMessage(zt.createNext(e))}_error(e){this.scheduleMessage(zt.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(zt.createComplete()),this.unsubscribe()}}class lR{constructor(e,t){this.notification=e,this.destination=t}}class cR extends v{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new uR(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new Fe;if(this.isStopped||this.hasError?o=O.EMPTY:(this.observers.push(e),o=new cn(this,e)),r&&e.add(e=new Jo(e,r)),t)for(let a=0;a<s&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<s&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||rR).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(e-r[o].time<i);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&r.splice(0,o),r}}class uR{constructor(e,t){this.time=e,this.value=t}}function Fu(n,e){return"function"==typeof e?t=>t.pipe(Fu((i,r)=>Ea(n(i,r)).pipe(R((s,o)=>e(i,s,r,o))))):t=>t.lift(new dR(n))}class dR{constructor(e){this.project=e}call(e,t){return t.subscribe(new hR(e,this.project))}}class hR extends ys{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new ms(this),r=this.destination;r.add(i),this.innerSubscription=_s(e,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const ea={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return ea.schedule(n,0);if(void 0===window.requestAnimationFrame)return ea.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let ku;function wR(n,e,t){let i=t;return function pR(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function mR(n,e){if(!ku){const t=Element.prototype;ku=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&ku.call(n,e)}(n,r)||(i=s,0))),i}class bR{constructor(e,t){this.componentFactory=t.get(fi).resolveComponentFactory(e)}create(e){return new CR(this.componentFactory,e)}}class CR{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new cR(1),this.events=this.eventEmitters.pipe(Fu(i=>vs(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(fe),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=ea.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function yR(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=dt.create({providers:[],parent:this.injector}),i=function DR(n,e){const t=n.childNodes,i=e.map(()=>[]);let r=-1;e.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],l=wR(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(qm),this.implementsOnChanges=function gR(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Mo).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:i,templateName:r})=>e.instance[i].pipe(R(o=>({name:r,value:o}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=ea.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const r=this.unchangedInputs.has(e),s=r?void 0:this.getInputValue(e);this.inputChanges[e]=new Id(s,t,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class SR extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class c_{}const xn="*";function u_(n,e=null){return{type:2,steps:n,options:e}}function d_(n){return{type:6,styles:n,offset:null}}function h_(n){Promise.resolve(null).then(n)}class fs{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){h_(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class f_{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,i=0,r=0;const s=this.players.length;0==s?h_(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}const J=!1;function p_(n){return new I(3e3,J)}function ax(){return"undefined"!=typeof window&&void 0!==window.document}function Vu(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Kn(n){switch(n.length){case 0:return new fs;case 1:return n[0];default:return new f_(n)}}function g_(n,e,t,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,f=h&&c||{};Object.keys(u).forEach(p=>{let g=p,y=u[p];if("offset"!==p)switch(g=e.normalizePropertyName(g,o),y){case"!":y=r[p];break;case xn:y=s[p];break;default:y=e.normalizeStyleValue(p,g,y,o)}f[g]=y}),h||a.push(f),c=f,l=d}),o.length)throw function KR(n){return new I(3502,J)}();return a}function Bu(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&ju(t,"start",n)));break;case"done":n.onDone(()=>i(t&&ju(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&ju(t,"destroy",n)))}}function ju(n,e,t){const i=t.totalTime,s=Hu(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==i?n.totalTime:i,!!t.disabled),o=n._data;return null!=o&&(s._data=o),s}function Hu(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Tt(n,e,t){let i;return n instanceof Map?(i=n.get(e),i||n.set(e,i=t)):(i=n[e],i||(i=n[e]=t)),i}function m_(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let $u=(n,e)=>!1,y_=(n,e,t)=>[],__=null;function zu(n){const e=n.parentNode||n.host;return e===__?null:e}(Vu()||"undefined"!=typeof Element)&&(ax()?(__=(()=>document.documentElement)(),$u=(n,e)=>{for(;e;){if(e===n)return!0;e=zu(e)}return!1}):$u=(n,e)=>n.contains(e),y_=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let vi=null,v_=!1;function D_(n){vi||(vi=function cx(){return"undefined"!=typeof document?document.body:null}()||{},v_=!!vi.style&&"WebkitAppearance"in vi.style);let e=!0;return vi.style&&!function lx(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in vi.style,!e&&v_&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in vi.style)),e}const w_=$u,E_=y_;let b_=(()=>{class n{validateStyleProperty(t){return D_(t)}matchesElement(t,i){return!1}containsElement(t,i){return w_(t,i)}getParentElement(t){return zu(t)}query(t,i,r){return E_(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new fs(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),Uu=(()=>{class n{}return n.NOOP=new b_,n})();const Wu="ng-enter",na="ng-leave",ia="ng-trigger",ra=".ng-trigger",S_="ng-animating",Gu=".ng-animating";function Di(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:qu(parseFloat(e[1]),e[2])}function qu(n,e){return"s"===e?1e3*n:n}function sa(n,e,t){return n.hasOwnProperty("duration")?n:function hx(n,e,t){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(p_()),{duration:0,delay:0,easing:""};r=qu(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=qu(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(function MR(){return new I(3100,J)}()),a=!0),s<0&&(e.push(function AR(){return new I(3101,J)}()),a=!0),a&&e.splice(l,0,p_())}return{duration:r,delay:s,easing:o}}(n,e,t)}function fr(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function Zn(n,e,t={}){if(e)for(let i in n)t[i]=n[i];else fr(n,t);return t}function T_(n,e,t){return t?e+":"+t+";":""}function M_(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=T_(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=T_(0,gx(t),n.style[t]));n.setAttribute("style",e)}function wn(n,e,t){n.style&&(Object.keys(e).forEach(i=>{const r=Yu(i);t&&!t.hasOwnProperty(i)&&(t[i]=n.style[r]),n.style[r]=e[i]}),Vu()&&M_(n))}function wi(n,e){n.style&&(Object.keys(e).forEach(t=>{const i=Yu(t);n.style[i]=""}),Vu()&&M_(n))}function ps(n){return Array.isArray(n)?1==n.length?n[0]:u_(n):n}const Qu=new RegExp("{{\\s*(.+?)\\s*}}","g");function A_(n){let e=[];if("string"==typeof n){let t;for(;t=Qu.exec(n);)e.push(t[1]);Qu.lastIndex=0}return e}function oa(n,e,t){const i=n.toString(),r=i.replace(Qu,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function RR(n){return new I(3003,J)}()),a=""),a.toString()});return r==i?n:r}function aa(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const px=/-+([a-z0-9])/g;function Yu(n){return n.replace(px,(...e)=>e[1].toUpperCase())}function gx(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Mt(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function xR(n){return new I(3004,J)}()}}function P_(n,e){return window.getComputedStyle(n)[e]}function wx(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function Ex(n,e,t){if(":"==n[0]){const l=function bx(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(function GR(n){return new I(3016,J)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function WR(n){return new I(3015,J)}()),e;const r=i[1],s=i[2],o=i[3];e.push(R_(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(R_(o,r))}(i,t,e)):t.push(n),t}const da=new Set(["true","1"]),ha=new Set(["false","0"]);function R_(n,e){const t=da.has(n)||ha.has(n),i=da.has(e)||ha.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?da.has(n):ha.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?da.has(e):ha.has(e)),o&&a}}const Cx=new RegExp("s*:selfs*,?","g");function Ku(n,e,t,i){return new Sx(n).build(e,t,i)}class Sx{constructor(e){this._driver=e}build(e,t,i){const r=new Mx(t);this._resetContextStyleTimingState(r);const s=Mt(this,ps(e),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function NR(){return new I(3006,J)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(function FR(){return new I(3007,J)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(fa(a)){const l=a;Object.keys(l).forEach(c=>{A_(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(aa(s.values()),t.errors.push(function kR(n,e){return new I(3008,J)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=Mt(this,ps(e.animation),t);return{type:1,matchers:wx(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Ei(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>Mt(this,i,t)),options:Ei(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=Mt(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:Ei(e.options)}}visitAnimate(e,t){const i=function Px(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Zu(sa(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Zu(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=sa(t,e);return Zu(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:d_({});if(5==s.type)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=d_(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==xn?i.push(o):t.errors.push(function LR(n){return new I(3002,J)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(fa(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void t.unsupportedCSSPropertiesFound.add(a);const l=t.collectedStyles[t.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(t.errors.push(function VR(n,e,t,i,r){return new I(3010,J)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),t.options&&function fx(n,e,t){const i=e.params||{},r=A_(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function PR(n){return new I(3001,J)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function BR(){return new I(3011,J)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(D=>{const m=this._makeStyleAst(D,t);let b=null!=m.offset?m.offset:function Ax(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(fa(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(fa(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(m.styles),M=0;return null!=b&&(s++,M=m.offset=b),l=l||M<0||M>1,a=a||M<c,c=M,o.push(M),m});l&&t.errors.push(function jR(){return new I(3012,J)}()),a&&t.errors.push(function HR(){return new I(3200,J)}());const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push(function $R(){return new I(3202,J)}()):0==s&&(h=1/(d-1));const f=d-1,p=t.currentTime,g=t.currentAnimateTimings,y=g.duration;return u.forEach((D,m)=>{const b=h>0?m==f?1:h*m:o[m],M=b*y;t.currentTime=p+g.delay+M,g.duration=M,this._validateStyleAst(D,t),D.offset=b,i.styles.push(D)}),i}visitReference(e,t){return{type:8,animation:Mt(this,ps(e.animation),t),options:Ei(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Ei(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Ei(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function Ix(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(Cx,"")),n=n.replace(/@\*/g,ra).replace(/@\w+/g,t=>ra+"-"+t.substr(1)).replace(/:animating/g,Gu),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,Tt(t.collectedStyles,t.currentQuerySelector,{});const a=Mt(this,ps(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Ei(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function zR(){return new I(3013,J)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:sa(e.timings,t.errors,!0);return{type:12,animation:Mt(this,ps(e.animation),t),timings:i,options:null}}}class Mx{constructor(e){this.errors=e,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,this.unsupportedCSSPropertiesFound=new Set}}function fa(n){return!Array.isArray(n)&&"object"==typeof n}function Ei(n){return n?(n=fr(n)).params&&(n.params=function Tx(n){return n?fr(n):null}(n.params)):n={},n}function Zu(n,e,t){return{duration:n,delay:e,easing:t}}function Xu(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class pa{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const Ox=new RegExp(":enter","g"),Fx=new RegExp(":leave","g");function Ju(n,e,t,i,r,s={},o={},a,l,c=[]){return(new kx).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class kx{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new pa;const d=new ed(e,t,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Mt(this,i,d);const h=d.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let p=h.length-1;p>=0;p--){const g=h[p];if(g.element===t){f=g;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[Xu(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime;const o=null!=i.duration?Di(i.duration):null,a=null!=i.delay?Di(i.delay):null;return 0!==o&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Mt(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ga);const o=Di(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Mt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?Di(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Mt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return sa(t.params?oa(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?Di(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ga);let o=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),Mt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Mt(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const ga={};class ed{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ga,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ma(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=Di(i.duration)),null!=i.delay&&(r.delay=Di(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=oa(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){const r=t||this.element,s=new ed(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=ga,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},s=new Lx(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(Ox,"."+this._enterClassName)).replace(Fx,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function UR(n){return new I(3014,J)}()),a}}class ma{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new ma(this._driver,e,t||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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||xn,this._currentKeyframe[t]=xn}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function Vx(n,e){const t={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{t[s]=xn})):Zn(r,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=oa(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:xn),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(i=>{this._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const i=this._styleSummary[t],r=e._styleSummary[t];(!i||r.time>i.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Zn(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==xn&&t.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?aa(e.values()):[],o=t.size?aa(t.values()):[];if(i){const a=r[0],l=fr(a);a.offset=0,l.offset=1,r=[a,l]}return Xu(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class Lx extends ma{constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=i+t,a=t/o,l=Zn(e[0],!1);l.offset=0,s.push(l);const c=Zn(e[0],!1);c.offset=N_(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=Zn(e[d],!1);h.offset=N_((t+h.offset*i)/o),s.push(h)}i=o,t=0,r="",e=s}return Xu(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function N_(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class td{}class Bx extends td{normalizePropertyName(e,t){return Yu(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if(jx[t]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function OR(n,e){return new I(3005,J)}())}return o+s}}const jx=(()=>function Hx(n){const e={};return n.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 F_(n,e,t,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const nd={};class k_{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function $x(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){const r=this._stateStyles["*"],s=this._stateStyles[e],o=r?r.buildStyles(t,i):{};return s?s.buildStyles(t,i):o}build(e,t,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||nd,p=this.buildStyles(i,a&&a.params||nd,d),g=l&&l.params||nd,y=this.buildStyles(r,g,d),D=new Set,m=new Map,b=new Map,M="void"===r,q={params:Object.assign(Object.assign({},h),g)},ge=u?[]:Ju(e,t,this.ast.animation,s,o,p,y,q,c,d);let De=0;if(ge.forEach(Pt=>{De=Math.max(Pt.duration+Pt.delay,De)}),d.length)return F_(t,this._triggerName,i,r,M,p,y,[],[],m,b,De,d);ge.forEach(Pt=>{const Rt=Pt.element,gr=Tt(m,Rt,{});Pt.preStyleProps.forEach(an=>gr[an]=!0);const On=Tt(b,Rt,{});Pt.postStyleProps.forEach(an=>On[an]=!0),Rt!==t&&D.add(Rt)});const At=aa(D.values());return F_(t,this._triggerName,i,r,M,p,y,ge,At,m,b,De)}}class zx{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i={},r=fr(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=oa(l,r,t));const c=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,c,l,t),i[c]=l})}}),i}}class Wx{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states={},t.states.forEach(r=>{this.states[r.name]=new zx(r.style,r.options&&r.options.params||{},i)}),L_(this.states,"true","1"),L_(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new k_(e,r,this.states))}),this.fallbackTransition=function Gx(n,e,t){return new k_(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function L_(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const qx=new pa;class Qx{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(e,t){const i=[],s=Ku(this._driver,t,i,[]);if(i.length)throw function ZR(n){return new I(3503,J)}();this._animations[e]=s}_buildPlayer(e,t,i){const r=e.element,s=g_(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const r=[],s=this._animations[e];let o;const a=new Map;if(s?(o=Ju(this._driver,t,s,Wu,na,{},{},i,qx,r),o.forEach(u=>{const d=Tt(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function XR(){return new I(3300,J)}()),o=[]),r.length)throw function JR(n){return new I(3504,J)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,xn)})});const c=Kn(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[e]=c,c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw function ex(n){return new I(3301,J)}();return t}listen(e,t,i,r){const s=Hu(t,"","","");return Bu(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const V_="ng-animate-queued",id="ng-animate-disabled",Jx=[],B_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},eO={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ut="__ng_removed";class rd{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function rO(n){return null!=n?n:null}(i?e.value:e),i){const s=fr(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const gs="void",sd=new rd(gs);class tO{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Wt(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.hasOwnProperty(t))throw function tx(n,e){return new I(3302,J)}();if(null==i||0==i.length)throw function nx(n){return new I(3303,J)}();if(!function sO(n){return"start"==n||"done"==n}(i))throw function ix(n,e){return new I(3400,J)}();const s=Tt(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=Tt(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Wt(e,ia),Wt(e,ia+"-"+t),a[t]=sd),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw function rx(n){return new I(3401,J)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new od(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Wt(e,ia),Wt(e,ia+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const c=new rd(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[t]=c,l||(l=sd),c.value!==gs&&l.value===c.value){if(!function lO(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){const s=t[r];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}(l.params,c.params)){const g=[],y=s.matchStyles(l.value,l.params,g),D=s.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{wi(e,y),wn(e,D)})}return}const h=Tt(this._engine.playersByElement,e,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let f=s.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(Wt(e,V_),o.onStart(()=>{pr(e,V_)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);const y=this._engine.playersByElement.get(e);if(y){let D=y.indexOf(o);D>=0&&y.splice(D,1)}}),this.players.push(o),h.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,i)=>{delete t[e]}),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,ra,!0);i.forEach(r=>{if(r[Ut])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){const s=this._engine.statesByElement.get(e),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(e,l,gs,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&Kn(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const r=new Set;t.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||sd,u=new rd(gs),d=new od(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{const s=e[Ut];(!s||s===B_)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){Wt(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=Hu(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Bu(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(i=>i.element===e)||t,t}}class nO{constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,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=(r,s)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new tO(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,t)){i.splice(a+1,0,e),o=!0;break}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&t.add(a)}}}return t}trigger(e,t,i,r){if(ya(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!ya(t))return;const s=t[Ut];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Wt(e,id)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),pr(e,id))}removeNode(e,t,i,r){if(ya(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),i){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[Ut]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return ya(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,ra,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Gu,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Kn(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[Ut];if(i&&i.setForRemoval){if(e[Ut]=B_,i.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains(id))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Wt(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{t=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?Kn(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function sx(n){return new I(3402,J)}()}_flushAnimations(e,t){const i=new pa,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(T=>{u.add(T);const P=this.driver.query(T,".ng-animate-queued",!0);for(let k=0;k<P.length;k++)u.add(P[k])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=$_(h,this.collectedEnterElements),p=new Map;let g=0;f.forEach((T,P)=>{const k=Wu+g++;p.set(P,k),T.forEach(ne=>Wt(ne,k))});const y=[],D=new Set,m=new Set;for(let T=0;T<this.collectedLeaveElements.length;T++){const P=this.collectedLeaveElements[T],k=P[Ut];k&&k.setForRemoval&&(y.push(P),D.add(P),k.hasAnimation?this.driver.query(P,".ng-star-inserted",!0).forEach(ne=>D.add(ne)):m.add(P))}const b=new Map,M=$_(h,Array.from(D));M.forEach((T,P)=>{const k=na+g++;b.set(P,k),T.forEach(ne=>Wt(ne,k))}),e.push(()=>{f.forEach((T,P)=>{const k=p.get(P);T.forEach(ne=>pr(ne,k))}),M.forEach((T,P)=>{const k=b.get(P);T.forEach(ne=>pr(ne,k))}),y.forEach(T=>{this.processLeaveNode(T)})});const q=[],ge=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(k=>{const ne=k.player,Ue=k.element;if(q.push(ne),this.collectedEnterElements.length){const lt=Ue[Ut];if(lt&&lt.setForMove){if(lt.previousTriggersValues&&lt.previousTriggersValues.has(k.triggerName)){const bi=lt.previousTriggersValues.get(k.triggerName),ni=this.statesByElement.get(k.element);ni&&ni[k.triggerName]&&(ni[k.triggerName].value=bi)}return void ne.destroy()}}const En=!d||!this.driver.containsElement(d,Ue),xt=b.get(Ue),ti=p.get(Ue),we=this._buildInstruction(k,i,ti,xt,En);if(we.errors&&we.errors.length)return void ge.push(we);if(En)return ne.onStart(()=>wi(Ue,we.fromStyles)),ne.onDestroy(()=>wn(Ue,we.toStyles)),void r.push(ne);if(k.isFallbackTransition)return ne.onStart(()=>wi(Ue,we.fromStyles)),ne.onDestroy(()=>wn(Ue,we.toStyles)),void r.push(ne);const uv=[];we.timelines.forEach(lt=>{lt.stretchStartingKeyframe=!0,this.disabledNodes.has(lt.element)||uv.push(lt)}),we.timelines=uv,i.append(Ue,we.timelines),o.push({instruction:we,player:ne,element:Ue}),we.queriedElements.forEach(lt=>Tt(a,lt,[]).push(ne)),we.preStyleProps.forEach((lt,bi)=>{const ni=Object.keys(lt);if(ni.length){let Ci=l.get(bi);Ci||l.set(bi,Ci=new Set),ni.forEach(ud=>Ci.add(ud))}}),we.postStyleProps.forEach((lt,bi)=>{const ni=Object.keys(lt);let Ci=c.get(bi);Ci||c.set(bi,Ci=new Set),ni.forEach(ud=>Ci.add(ud))})});if(ge.length){const T=[];ge.forEach(P=>{T.push(function ox(n,e){return new I(3505,J)}())}),q.forEach(P=>P.destroy()),this.reportError(T)}const De=new Map,At=new Map;o.forEach(T=>{const P=T.element;i.has(P)&&(At.set(P,P),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,De))}),r.forEach(T=>{const P=T.element;this._getPreviousPlayers(P,!1,T.namespaceId,T.triggerName,null).forEach(ne=>{Tt(De,P,[]).push(ne),ne.destroy()})});const Pt=y.filter(T=>U_(T,l,c)),Rt=new Map;H_(Rt,this.driver,m,c,xn).forEach(T=>{U_(T,l,c)&&Pt.push(T)});const On=new Map;f.forEach((T,P)=>{H_(On,this.driver,new Set(T),l,"!")}),Pt.forEach(T=>{const P=Rt.get(T),k=On.get(T);Rt.set(T,Object.assign(Object.assign({},P),k))});const an=[],mr=[],yr={};o.forEach(T=>{const{element:P,player:k,instruction:ne}=T;if(i.has(P)){if(u.has(P))return k.onDestroy(()=>wn(P,ne.toStyles)),k.disabled=!0,k.overrideTotalTime(ne.totalTime),void r.push(k);let Ue=yr;if(At.size>1){let xt=P;const ti=[];for(;xt=xt.parentNode;){const we=At.get(xt);if(we){Ue=we;break}ti.push(xt)}ti.forEach(we=>At.set(we,Ue))}const En=this._buildAnimation(k.namespaceId,ne,De,s,On,Rt);if(k.setRealPlayer(En),Ue===yr)an.push(k);else{const xt=this.playersByElement.get(Ue);xt&&xt.length&&(k.parentPlayer=Kn(xt)),r.push(k)}}else wi(P,ne.fromStyles),k.onDestroy(()=>wn(P,ne.toStyles)),mr.push(k),u.has(P)&&r.push(k)}),mr.forEach(T=>{const P=s.get(T.element);if(P&&P.length){const k=Kn(P);T.setRealPlayer(k)}}),r.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T<y.length;T++){const P=y[T],k=P[Ut];if(pr(P,na),k&&k.hasAnimation)continue;let ne=[];if(a.size){let En=a.get(P);En&&En.length&&ne.push(...En);let xt=this.driver.query(P,Gu,!0);for(let ti=0;ti<xt.length;ti++){let we=a.get(xt[ti]);we&&we.length&&ne.push(...we)}}const Ue=ne.filter(En=>!En.destroyed);Ue.length?oO(this,P,Ue):this.processLeaveNode(P)}return y.length=0,an.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();const P=this.players.indexOf(T);this.players.splice(P,1)}),T.play()}),an}elementContainsData(e,t){let i=!1;const r=t[Ut];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==gs;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){const s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==s,d=Tt(i,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}wi(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(p=>{const g=p.element;u.add(g);const y=g[Ut];if(y&&y.removedBeforeQueried)return new fs(p.duration,p.delay);const D=g!==l,m=function aO(n){const e=[];return z_(n,e),e}((i.get(g)||Jx).map(De=>De.getRealPlayer())).filter(De=>!!De.element&&De.element===g),b=s.get(g),M=o.get(g),q=g_(0,this._normalizer,0,p.keyframes,b,M),ge=this._buildPlayer(p,q,m);if(p.subTimeline&&r&&d.add(g),D){const De=new od(e,a,g);De.setRealPlayer(ge),c.push(De)}return ge});c.forEach(p=>{Tt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function iO(n,e,t){let i;if(n instanceof Map){if(i=n.get(e),i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&n.delete(e)}}else if(i=n[e],i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&delete n[e]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Wt(p,S_));const f=Kn(h);return f.onDestroy(()=>{u.forEach(p=>pr(p,S_)),wn(l,t.toStyles)}),d.forEach(p=>{Tt(r,p,[]).push(f)}),f}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new fs(e.duration,e.delay)}}class od{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new fs,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(i=>Bu(e,t,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Tt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function ya(n){return n&&1===n.nodeType}function j_(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function H_(n,e,t,i,r){const s=[];t.forEach(l=>s.push(j_(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=e.computeStyle(c,d,r);(!h||0==h.length)&&(c[Ut]=eO,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>j_(l,s[a++])),o}function $_(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const r=new Set(e),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function Wt(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function pr(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function oO(n,e,t){Kn(t).onDone(()=>n.processLeaveNode(e))}function z_(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof f_?z_(i.players,e):e.push(i)}}function U_(n,e,t){const i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}class _a{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new nO(e,t,i),this._timelineEngine=new Qx(e,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){const o=e+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=Ku(this._driver,s,l,[]);if(l.length)throw function YR(n,e){return new I(3404,J)}();a=function Ux(n,e,t){return new Wx(n,e,t)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i,r){this._transitionEngine.removeNode(e,t,r||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if("@"==i.charAt(0)){const[s,o]=m_(i);this._timelineEngine.command(s,t,o,r)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if("@"==i.charAt(0)){const[o,a]=m_(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let uO=(()=>{class n{constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&wn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(wn(this._element,this._initialStyles),this._endStyles&&(wn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(wi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wi(this._element,this._endStyles),this._endStyles=null),wn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ad(n){let e=null;const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];dO(r)&&(e=e||{},e[r]=n[r])}return e}function dO(n){return"display"===n||"position"===n}class W_{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,i){return e.animate(t,i)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(i=>{"offset"!=i&&(e[i]=this._finished?t[i]:P_(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class hO{validateStyleProperty(e){return D_(e)}matchesElement(e,t){return!1}containsElement(e,t){return w_(e,t)}getParentElement(e){return zu(e)}query(e,t,i){return E_(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(h=>h instanceof W_);(function mx(n,e){return 0===n||0===e})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),t=function yx(n,e,t){const i=Object.keys(t);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=t[a]}),o.length)for(var r=1;r<e.length;r++){let a=e[r];o.forEach(function(l){a[l]=P_(n,l)})}}return e}(e,t=t.map(h=>Zn(h,!1)),c);const d=function cO(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=ad(e[0]),e.length>1&&(i=ad(e[e.length-1]))):e&&(t=ad(e)),t||i?new uO(n,t,i):null}(e,t);return new W_(e,t,l,d)}}let fO=(()=>{class n extends c_{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Qt.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?u_(t):t;return G_(this._renderer,null,i,"register",[r]),new pO(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(w(Xr),w(pe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class pO extends class TR{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new gO(this._id,e,t||{},this._renderer)}}class gO{constructor(e,t,i,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return G_(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function G_(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const q_="@.disabled";let mO=(()=>{class n{constructor(t,i,r){this.delegate=t,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(t,i){const s=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new Q_("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,t,u.name,u)};return i.data.animation.forEach(l),new yO(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&t<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}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 n.\u0275fac=function(t){return new(t||n)(w(Xr),w(_a),w(fe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class Q_{constructor(e,t,i){this.namespaceId=e,this.delegate=t,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==q_?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class yO extends Q_{constructor(e,t,i,r){super(t,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==q_?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.substr(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const r=function _O(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let s=t.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function vO(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}let DO=(()=>{class n extends _a{constructor(t,i,r){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(w(pe),w(Uu),w(td))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const Y_=new K("AnimationModuleType"),K_=[{provide:c_,useClass:fO},{provide:td,useFactory:function wO(){return new Bx}},{provide:_a,useClass:DO},{provide:Xr,useFactory:function EO(n,e,t){return new mO(n,e,t)},deps:[Qo,_a,fe]}],Z_=[{provide:Uu,useFactory:()=>new hO},{provide:Y_,useValue:"BrowserAnimations"},...K_],bO=[{provide:Uu,useClass:b_},{provide:Y_,useValue:"NoopAnimations"},...K_];let CO=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?bO:Z_}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({providers:Z_,imports:[Ly]}),n})();class Xn extends v{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Fe;return this._value}next(e){super.next(this._value=e)}}function X_(n,e,t){return t?X_(n,e).pipe(R(i=>Me(i)?t(...i):t(i))):new X(i=>{const r=(...o)=>i.next(1===o.length?o[0]:o);let s;try{s=n(r)}catch(o){return void i.error(o)}if(We(e))return()=>e(r,s)})}class J_ extends A{notifyNext(e,t,i,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class SO extends A{constructor(e,t,i){super(),this.parent=e,this.outerValue=t,this.outerIndex=i,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function ev(n,e,t,i,r=new SO(n,t,i)){if(!r.closed)return e instanceof X?e.subscribe(r):Da(e)(r)}const tv={};function Jn(...n){let e,t;return F(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Me(n[0])&&(n=n[0]),Ca(n,t).lift(new nv(e))}class nv{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new IO(e,this.resultSelector))}}class IO extends J_{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(tv),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let i=0;i<t;i++)this.add(ev(this,e[i],void 0,i))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,i){const r=this.values,o=this.toRespond?r[i]===tv?--this.toRespond:this.toRespond:0;r[i]=t,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}function iv(...n){return function TO(){return fd(1)}()(Yn(...n))}function rv(...n){const e=n[n.length-1];return F(e)?(n.pop(),t=>iv(n,t,e)):t=>iv(n,t)}function ei(){}class AO{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new PO(e,this.nextOrObserver,this.error,this.complete))}}class PO extends A{constructor(e,t,i,r){super(e),this._tapNext=ei,this._tapError=ei,this._tapComplete=ei,this._tapError=i||ei,this._tapComplete=r||ei,We(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||ei,this._tapError=t.error||ei,this._tapComplete=t.complete||ei)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function ld(...n){return e=>{let t;return"function"==typeof n[n.length-1]&&(t=n.pop()),e.lift(new xO(n,t))}}class xO{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new OO(e,this.observables,this.project))}}class OO extends J_{constructor(e,t,i){super(e),this.observables=t,this.project=i,this.toRespond=[];const r=t.length;this.values=new Array(r);for(let s=0;s<r;s++)this.toRespond.push(s);for(let s=0;s<r;s++)this.add(ev(this,t[s],void 0,s))}notifyNext(e,t,i){this.values[i]=t;const r=this.toRespond;if(r.length>0){const s=r.indexOf(i);-1!==s&&r.splice(s,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}class FO{constructor(e,t,i=!1){this.accumulator=e,this.seed=t,this.hasSeed=i}call(e,t){return t.subscribe(new kO(e,this.accumulator,this.seed,this.hasSeed))}}class kO extends A{constructor(e,t,i,r){super(e),this.accumulator=t,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let i;try{i=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}class VO{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new BO(e,this.compare,this.keySelector))}}class BO extends A{constructor(e,t,i){super(e),this.keySelector=i,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:r}=this;t=r?r(e):e}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}class $O{constructor(e){this.predicate=e}call(e,t){return t.subscribe(new zO(e,this.predicate))}}class zO extends A{constructor(e,t){super(e),this.predicate=t,this.skipping=!0,this.index=0}_next(e){const t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)}tryCallPredicate(e){try{const t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(t){this.destination.error(t)}}}const UO=["youtubeContainer"];let av=(()=>{class n{constructor(t,i){this._ngZone=t,this._youtubeContainer=new v,this._destroyed=new v,this._playerChanges=new Xn(void 0),this._videoId=new Xn(void 0),this._height=new Xn(390),this._width=new Xn(640),this._startSeconds=new Xn(void 0),this._endSeconds=new Xn(void 0),this._suggestedQuality=new Xn(void 0),this._playerVars=new Xn(void 0),this.ready=this._getLazyEmitter("onReady"),this.stateChange=this._getLazyEmitter("onStateChange"),this.error=this._getLazyEmitter("onError"),this.apiChange=this._getLazyEmitter("onApiChange"),this.playbackQualityChange=this._getLazyEmitter("onPlaybackQualityChange"),this.playbackRateChange=this._getLazyEmitter("onPlaybackRateChange"),this._isBrowser=vy(i)}get videoId(){return this._videoId.value}set videoId(t){this._videoId.next(t)}get height(){return this._height.value}set height(t){this._height.next(t||390)}get width(){return this._width.value}set width(t){this._width.next(t||640)}set startSeconds(t){this._startSeconds.next(t)}set endSeconds(t){this._endSeconds.next(t)}set suggestedQuality(t){this._suggestedQuality.next(t)}get playerVars(){return this._playerVars.value}set playerVars(t){this._playerVars.next(t)}ngOnInit(){if(!this._isBrowser)return;let t=Yn(!0);if(!window.YT){if(this.showBeforeIframeApiLoads)throw new Error("Namespace YT not found, cannot construct embedded youtube player. Please install the YouTube Player API Reference for iframe Embeds: https://developers.google.com/youtube/iframe_api_reference");const r=new v;this._existingApiReadyCallback=window.onYouTubeIframeAPIReady,window.onYouTubeIframeAPIReady=()=>{this._existingApiReadyCallback&&this._existingApiReadyCallback(),this._ngZone.run(()=>r.next(!0))},t=r.pipe(xu(1),rv(!1))}const i=function QO(n,e,t,i,r,s,o){const a=Jn([e,s]).pipe(ld(Jn([i,r])),R(([l,c])=>{const[u,d]=l,[h,f]=c;return u?{videoId:u,playerVars:d,width:h,height:f}:void 0}));return Jn([n,a,Yn(o)]).pipe(function YO(n){return Ge(function jO(...n){let e=null;return"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Me(n[0])&&(n=n[0].slice()),t=>t.lift.call(Ea([t,...n]),new nv(e))}(n),function HO(n){return e=>e.lift(new $O(n))}(([e,t])=>!t),R(([e])=>e))}(t),function NO(n,e){let t=!1;return arguments.length>=2&&(t=!0),function(r){return r.lift(new FO(n,e,t))}}(KO,void 0),function LO(n,e){return t=>t.lift(new VO(n,e))}())}(this._youtubeContainer,this._videoId,t,this._width,this._height,this._playerVars,this._ngZone).pipe(function MO(n,e,t){return function(r){return r.lift(new AO(n,e,t))}}(r=>{this._playerChanges.next(r)}),function qO(n){return Dv(e=>e?lv(e)?Yn(e):new X(t=>{let i=!1,r=!1;const s=o=>{r=!0,i||(o.target.removeEventListener("onReady",s),t.next(o.target))};return e.addEventListener("onReady",s),()=>{i=!0,r||n(e)}}).pipe(xu(1),rv(void 0)):Yn(void 0))}(r=>{lv(r)||r.destroy()}),Xo(this._destroyed),function RO(n){return n?Sa(()=>new v,n):Sa(new v)}());i.subscribe(r=>{this._player=r,r&&this._pendingPlayerState&&this._initializePlayer(r,this._pendingPlayerState),this._pendingPlayerState=void 0}),function WO(n,e,t){Jn([n,e,t]).subscribe(([i,r,s])=>i&&i.setSize(r,s))}(i,this._width,this._height),function GO(n,e){Jn([n,e]).subscribe(([t,i])=>t&&i&&t.setPlaybackQuality(i))}(i,this._suggestedQuality),function ZO(n,e,t,i,r,s){const o=Jn([t,i]).pipe(R(([u,d])=>({startSeconds:u,endSeconds:d}))),a=o.pipe(cd(n,u=>!!u&&!function XO(n){const e=n.getPlayerState();return-1!==e&&5!==e}(u))),l=e.pipe(cd(n,(u,d)=>!!u&&u.videoId!==d));vs(n.pipe(cd(Jn([e,o]),([u,d],h)=>!(!h||u==h.videoId&&!d.startSeconds&&!d.endSeconds))),l,a).pipe(ld(Jn([n,e,o,r])),R(([u,d])=>d),Xo(s)).subscribe(([u,d,h,f])=>{!d||!u||(u.videoId=d,u.cueVideoById(Object.assign({videoId:d,suggestedQuality:f},h)))})}(i,this._videoId,this._startSeconds,this._endSeconds,this._suggestedQuality,this._destroyed),i.connect()}createEventsBoundInZone(){return{}}ngAfterViewInit(){this._youtubeContainer.next(this.youtubeContainer.nativeElement)}ngOnDestroy(){this._player&&(this._player.destroy(),window.onYouTubeIframeAPIReady=this._existingApiReadyCallback),this._playerChanges.complete(),this._videoId.complete(),this._height.complete(),this._width.complete(),this._startSeconds.complete(),this._endSeconds.complete(),this._suggestedQuality.complete(),this._youtubeContainer.complete(),this._playerVars.complete(),this._destroyed.next(),this._destroyed.complete()}playVideo(){this._player?this._player.playVideo():this._getPendingState().playbackState=1}pauseVideo(){this._player?this._player.pauseVideo():this._getPendingState().playbackState=2}stopVideo(){this._player?this._player.stopVideo():this._getPendingState().playbackState=5}seekTo(t,i){this._player?this._player.seekTo(t,i):this._getPendingState().seek={seconds:t,allowSeekAhead:i}}mute(){this._player?this._player.mute():this._getPendingState().muted=!0}unMute(){this._player?this._player.unMute():this._getPendingState().muted=!1}isMuted(){return this._player?this._player.isMuted():!!this._pendingPlayerState&&!!this._pendingPlayerState.muted}setVolume(t){this._player?this._player.setVolume(t):this._getPendingState().volume=t}getVolume(){return this._player?this._player.getVolume():this._pendingPlayerState&&null!=this._pendingPlayerState.volume?this._pendingPlayerState.volume:0}setPlaybackRate(t){if(this._player)return this._player.setPlaybackRate(t);this._getPendingState().playbackRate=t}getPlaybackRate(){return this._player?this._player.getPlaybackRate():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackRate?this._pendingPlayerState.playbackRate:0}getAvailablePlaybackRates(){return this._player?this._player.getAvailablePlaybackRates():[]}getVideoLoadedFraction(){return this._player?this._player.getVideoLoadedFraction():0}getPlayerState(){if(this._isBrowser&&window.YT)return this._player?this._player.getPlayerState():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackState?this._pendingPlayerState.playbackState:-1}getCurrentTime(){return this._player?this._player.getCurrentTime():this._pendingPlayerState&&this._pendingPlayerState.seek?this._pendingPlayerState.seek.seconds:0}getPlaybackQuality(){return this._player?this._player.getPlaybackQuality():"default"}getAvailableQualityLevels(){return this._player?this._player.getAvailableQualityLevels():[]}getDuration(){return this._player?this._player.getDuration():0}getVideoUrl(){return this._player?this._player.getVideoUrl():""}getVideoEmbedCode(){return this._player?this._player.getVideoEmbedCode():""}_getPendingState(){return this._pendingPlayerState||(this._pendingPlayerState={}),this._pendingPlayerState}_initializePlayer(t,i){const{playbackState:r,playbackRate:s,volume:o,muted:a,seek:l}=i;switch(r){case 1:t.playVideo();break;case 2:t.pauseVideo();break;case 5:t.stopVideo()}null!=s&&t.setPlaybackRate(s),null!=o&&t.setVolume(o),null!=a&&(a?t.mute():t.unMute()),null!=l&&t.seekTo(l.seconds,l.allowSeekAhead)}_getLazyEmitter(t){return this._playerChanges.pipe(Fu(i=>i?X_(r=>{i.addEventListener(t,r)},r=>{try{i.removeEventListener&&i.removeEventListener(t,r)}catch(s){}}):Yn()),i=>new X(r=>i.subscribe({next:s=>this._ngZone.run(()=>r.next(s)),error:s=>r.error(s),complete:()=>r.complete()})),Xo(this._destroyed))}}return n.\u0275fac=function(t){return new(t||n)(G(fe),G(To))},n.\u0275cmp=bs({type:n,selectors:[["youtube-player"]],viewQuery:function(t,i){if(1&t&&hm(UO,5),2&t){let r;dm(r=function fm(){return function aI(n,e){return n[19].queries[e].queryList}(_(),Vd())}())&&(i.youtubeContainer=r.first)}},inputs:{videoId:"videoId",height:"height",width:"width",startSeconds:"startSeconds",endSeconds:"endSeconds",suggestedQuality:"suggestedQuality",playerVars:"playerVars",showBeforeIframeApiLoads:"showBeforeIframeApiLoads"},outputs:{ready:"ready",stateChange:"stateChange",error:"error",apiChange:"apiChange",playbackQualityChange:"playbackQualityChange",playbackRateChange:"playbackRateChange"},decls:2,vars:0,consts:[["youtubeContainer",""]],template:function(t,i){1&t&&po(0,"div",null,0)},encapsulation:2,changeDetection:0}),n})();function KO(n,[e,t,i]){if(n&&t&&n.playerVars!==t.playerVars)n.destroy();else{if(!t)return void(n&&n.destroy());if(n)return n}const r=i.runOutsideAngular(()=>new YT.Player(e,t));return r.videoId=t.videoId,r.playerVars=t.playerVars,r}function lv(n){return"getPlayerStatus"in n}function cd(n,e){return Ge(ld(n),function Yy(n,e){return function(i){return i.lift(new pP(n,e))}}(([t,i])=>e(i,t)),R(([t])=>t))}let JO=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({}),n})();var cv=hd(289);class eN{constructor(e,t,i,r,s){this.element=e,this.newWidth=t,this.newHeight=i,this.oldWidth=r,this.oldHeight=s}}let tN=(()=>{class n{constructor(t){this.element=t,this.resized=new jt}ngOnInit(){cv.ResizeSensor&&(this.resizeSensor=new cv.ResizeSensor(this.element.nativeElement,()=>this.onResized()))}ngOnDestroy(){this.resizeSensor&&this.resizeSensor.detach()}onResized(){const t=this.element.nativeElement.clientWidth,i=this.element.nativeElement.clientHeight;if(t===this.oldWidth&&i===this.oldHeight)return;const r=new eN(this.element,t,i,this.oldWidth,this.oldHeight);this.oldWidth=this.element.nativeElement.clientWidth,this.oldHeight=this.element.nativeElement.clientHeight,this.resized.emit(r)}}return n.\u0275fac=function(t){return new(t||n)(G(vn))},n.\u0275dir=Dt({type:n,selectors:[["","resized",""]],outputs:{resized:"resized"}}),n})(),nN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({imports:[[]]}),n})(),iN=(()=>{class n{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",i=this._document.querySelectorAll(`.${t}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(t),this._document.body.appendChild(r),this._containerElement=r}}}return n.\u0275fac=function(t){return new(t||n)(w(pe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),rN=(()=>{class n{constructor(){}ngOnInit(){if(!window.youtubeApiLoaded){const t=document.createElement("script");t.src="https://www.youtube.com/iframe_api",document.body.appendChild(t),window.youtubeApiLoaded=!0}}onResized(t){this.width=t.newWidth-20,this.height=t.newHeight-20}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=bs({type:n,selectors:[["drayman-youtube-player-internal"]],inputs:{videoId:"videoId",startSeconds:"startSeconds",endSeconds:"endSeconds",playerVars:"playerVars"},decls:3,vars:6,consts:[[2,"width","100%","height","100%","margin","10px",3,"resized"],["chartContainer",""],[3,"videoId","startSeconds","endSeconds","playerVars","width","height"]],template:function(t,i){1&t&&(ho(0,"div",0,1),wc("resized",function(s){return i.onResized(s)}),po(2,"youtube-player",2),fo()),2&t&&(function af(n){lf(ee(),_(),rt()+n,!1)}(2),mc("videoId",i.videoId)("startSeconds",i.startSeconds)("endSeconds",i.endSeconds)("playerVars",i.playerVars)("width",i.width)("height",i.height))},directives:[tN,av],styles:[""]}),n})(),sN=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=function IR(n,e){const t=function vR(n,e){return e.get(fi).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new bR(n,e.injector),r=function _R(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function fR(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends SR{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);t.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),t.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(rN,{injector:this.injector});customElements.define("drayman-youtube-player",t)}}return n.\u0275fac=function(t){return new(t||n)(w(dt))},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({providers:[{provide:Nu,useClass:iN}],imports:[[Ly,CO,JO,nN]]}),n})();(function QI(){Um=!1})(),LA().bootstrapModule(sN).catch(n=>console.error(n))})()})();
1
+ (()=>{var dv={289:(We,Ot,ge)=>{We.exports={ResizeSensor:ge(294),ElementQueries:ge(322)}},322:function(We,Ot,ge){"use strict";var Gt,Me;"undefined"!=typeof window&&window,Gt=[ge(294)],void 0!==(Me=function(ht){var je=function(){var O,Ae={},ct=[];function _r(v){v||(v=document.documentElement);var E=window.getComputedStyle(v,null).fontSize;return parseFloat(E)||16}function me(v,E){var F=E.split(/\d/),R=F[F.length-1];switch(E=parseFloat(E),R){case"px":default:return E;case"em":return E*_r(v);case"rem":return E*_r();case"vw":return E*document.documentElement.clientWidth/100;case"vh":return E*document.documentElement.clientHeight/100;case"vmin":case"vmax":var te=document.documentElement.clientWidth/100,we=document.documentElement.clientHeight/100;return E*(0,Math["vmin"===R?"min":"max"])(te,we)}}function Y(v,E){this.element=v;var F,R,te,we,qe,de,He,$e,Nt=["min-width","min-height","max-width","max-height"];this.call=function(){for(F in te=function A(v){if(!v.getBoundingClientRect)return{width:v.offsetWidth,height:v.offsetHeight};var E=v.getBoundingClientRect();return{width:Math.round(E.width),height:Math.round(E.height)}}(this.element),de={},Ae[E])!Ae[E].hasOwnProperty(F)||(we=me(this.element,(R=Ae[E][F]).value),qe="width"===R.property?te.width:te.height,He="","min"===R.mode&&qe>=we&&(He+=R.value),"max"===R.mode&&qe<=we&&(He+=R.value),de[$e=R.mode+"-"+R.property]||(de[$e]=""),He&&-1===(" "+de[$e]+" ").indexOf(" "+He+" ")&&(de[$e]+=" "+He));for(var mt in Nt)!Nt.hasOwnProperty(mt)||(de[Nt[mt]]?this.element.setAttribute(Nt[mt],de[Nt[mt]].substr(1)):this.element.removeAttribute(Nt[mt]))}}function ft(v,E){v.elementQueriesSetupInformation||(v.elementQueriesSetupInformation=new Y(v,E)),v.elementQueriesSensor||(v.elementQueriesSensor=new ht(v,function(){v.elementQueriesSetupInformation.call()}))}function pt(v,E,F,R){if(void 0===Ae[v]){Ae[v]=[];var te=ct.length;O.innerHTML+="\n"+v+" {animation: 0.1s element-queries;}",O.innerHTML+="\n"+v+" > .resize-sensor {min-width: "+te+"px;}",ct.push(v)}Ae[v].push({mode:E,property:F,value:R})}function L(v){var E;if(document.querySelectorAll&&(E=v?v.querySelectorAll.bind(v):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 gt(v){var E=[],F=[],R=[],te=0,we=-1,qe=[];for(var de in v.children)if(v.children.hasOwnProperty(de)&&v.children[de].tagName&&"img"===v.children[de].tagName.toLowerCase()){E.push(v.children[de]);var He=v.children[de].getAttribute("min-width")||v.children[de].getAttribute("data-min-width"),$e=v.children[de].getAttribute("data-src")||v.children[de].getAttribute("url");R.push($e),F.push({minWidth:He}),He?v.children[de].style.display="none":(te=E.length-1,v.children[de].style.display="block")}function mt(){var tt,oe=!1;for(tt in E)!E.hasOwnProperty(tt)||F[tt].minWidth&&v.offsetWidth>F[tt].minWidth&&(oe=tt);if(oe||(oe=te),we!==oe)if(qe[oe])E[we].style.display="none",E[oe].style.display="block",we=oe;else{var Fn=new Image;Fn.onload=function(){E[oe].src=R[oe],E[we].style.display="none",E[oe].style.display="block",qe[oe]=!0,we=oe},Fn.src=R[oe]}else E[oe].src=R[oe]}we=te,v.resizeSensorInstance=new ht(v,mt),mt()}var et=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,ii=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function Fe(v){var E,F,R,te;for(v=v.replace(/'/g,'"');null!==(E=et.exec(v));)for(F=E[1]+E[3],R=E[2];null!==(te=ii.exec(R));)pt(F,te[1],te[2],te[3])}function cn(v){var E="";if(v)if("string"==typeof v)(-1!==(v=v.toLowerCase()).indexOf("min-width")||-1!==v.indexOf("max-width"))&&Fe(v);else for(var F=0,R=v.length;F<R;F++)1===v[F].type?(-1!==(E=v[F].selectorText||v[F].cssText).indexOf("min-height")||-1!==E.indexOf("max-height")||-1!==E.indexOf("min-width")||-1!==E.indexOf("max-width"))&&Fe(E):4===v[F].type?cn(v[F].cssRules||v[F].rules):3===v[F].type&&v[F].styleSheet.hasOwnProperty("cssRules")&&cn(v[F].styleSheet.cssRules)}var Nn=!1;this.init=function(){var v="animationstart";void 0!==document.documentElement.style.webkitAnimationName?v="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?v="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(v="oanimationstart"),document.body.addEventListener(v,function(R){var te=R.target,we=te&&window.getComputedStyle(te,null),qe=we&&we.getPropertyValue("animation-name");if(qe&&-1!==qe.indexOf("element-queries")){te.elementQueriesSensor=new ht(te,function(){te.elementQueriesSetupInformation&&te.elementQueriesSetupInformation.call()});var $e=window.getComputedStyle(te.resizeSensor,null).getPropertyValue("min-width");$e=parseInt($e.replace("px","")),ft(R.target,ct[$e])}}),Nn||((O=document.createElement("style")).type="text/css",O.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",O.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(O),Nn=!0);for(var E=0,F=document.styleSheets.length;E<F;E++)try{document.styleSheets[E].href&&0===document.styleSheets[E].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[E].href),cn(document.styleSheets[E].cssRules||document.styleSheets[E].rules||document.styleSheets[E].cssText)}catch(R){}!function X(){for(var E=L()("[data-responsive-image],[responsive-image]"),F=0,R=E.length;F<R;F++)gt(E[F])}()},this.findElementQueriesElements=function(v){!function Ge(v){var E=L(v);for(var F in Ae)if(Ae.hasOwnProperty(F))for(var R=E(F,v),te=0,we=R.length;te<we;te++)ft(R[te],F)}(v)},this.update=function(){this.init()}};je.update=function(){je.instance.update()},je.detach=function(O){O.elementQueriesSetupInformation?(O.elementQueriesSensor.detach(),delete O.elementQueriesSetupInformation,delete O.elementQueriesSensor):O.resizeSensorInstance&&(O.resizeSensorInstance.detach(),delete O.resizeSensorInstance)},je.init=function(){je.instance||(je.instance=new je),je.instance.init()};return je.findElementQueriesElements=function(O){je.instance.findElementQueriesElements(O)},je.listen=function(){!function(O){if(document.addEventListener)document.addEventListener("DOMContentLoaded",O,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var Ae=setInterval(function(){/loaded|complete/i.test(document.readyState)&&(O(),clearInterval(Ae))},10);else window.onload=O}(je.init)},je}.apply(Ot,Gt))&&(We.exports=Me)},294:function(We,Ot,ge){"use strict";var Gt;"undefined"!=typeof window&&window,void 0!==(Gt=function(){if("undefined"==typeof window)return null;var Me="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),ht=Me.requestAnimationFrame||Me.mozRequestAnimationFrame||Me.webkitRequestAnimationFrame||function(A){return Me.setTimeout(A,20)},je=Me.cancelAnimationFrame||Me.mozCancelAnimationFrame||Me.webkitCancelAnimationFrame||function(A){Me.clearTimeout(A)};function ln(A,me){var Y=Object.prototype.toString.call(A),ft="[object Array]"===Y||"[object NodeList]"===Y||"[object HTMLCollection]"===Y||"[object Object]"===Y||"undefined"!=typeof jQuery&&A instanceof jQuery||"undefined"!=typeof Elements&&A instanceof Elements,pt=0,L=A.length;if(ft)for(;pt<L;pt++)me(A[pt]);else me(A)}function O(A){if(!A.getBoundingClientRect)return{width:A.offsetWidth,height:A.offsetHeight};var me=A.getBoundingClientRect();return{width:Math.round(me.width),height:Math.round(me.height)}}function Ae(A,me){Object.keys(me).forEach(function(Y){A.style[Y]=me[Y]})}var ct=function(A,me){var Y=0;function ft(){var Ge,gt,L=[];this.add=function(X){L.push(X)},this.call=function(X){for(Ge=0,gt=L.length;Ge<gt;Ge++)L[Ge].call(this,X)},this.remove=function(X){var et=[];for(Ge=0,gt=L.length;Ge<gt;Ge++)L[Ge]!==X&&et.push(L[Ge]);L=et},this.length=function(){return L.length}}function pt(L,Ge){if(L){if(L.resizedAttached)return void L.resizedAttached.add(Ge);L.resizedAttached=new ft,L.resizedAttached.add(Ge),L.resizeSensor=document.createElement("div"),L.resizeSensor.dir="ltr",L.resizeSensor.className="resize-sensor";var gt={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},X={position:"absolute",left:"0px",top:"0px",transition:"0s"};Ae(L.resizeSensor,gt);var et=document.createElement("div");et.className="resize-sensor-expand",Ae(et,gt);var ii=document.createElement("div");Ae(ii,X),et.appendChild(ii);var Fe=document.createElement("div");Fe.className="resize-sensor-shrink",Ae(Fe,gt);var cn=document.createElement("div");Ae(cn,X),Ae(cn,{width:"200%",height:"200%"}),Fe.appendChild(cn),L.resizeSensor.appendChild(et),L.resizeSensor.appendChild(Fe),L.appendChild(L.resizeSensor);var Nn=window.getComputedStyle(L),v=Nn?Nn.getPropertyValue("position"):null;"absolute"!==v&&"relative"!==v&&"fixed"!==v&&"sticky"!==v&&(L.style.position="relative");var E=!1,F=0,R=O(L),te=0,we=0,qe=!0;Y=0;var He=function(){if(qe){if(0===L.offsetWidth&&0===L.offsetHeight)return void(Y||(Y=ht(function(){Y=0,He()})));qe=!1}var oe,tt;tt=L.offsetHeight,ii.style.width=(oe=L.offsetWidth)+10+"px",ii.style.height=tt+10+"px",et.scrollLeft=oe+10,et.scrollTop=tt+10,Fe.scrollLeft=oe+10,Fe.scrollTop=tt+10};L.resizeSensor.resetSensor=He;var $e=function(){F=0,E&&(te=R.width,we=R.height,L.resizedAttached&&L.resizedAttached.call(R))},Nt=function(){R=O(L),(E=R.width!==te||R.height!==we)&&!F&&(F=ht($e)),He()},mt=function(oe,tt,Fn){oe.attachEvent?oe.attachEvent("on"+tt,Fn):oe.addEventListener(tt,Fn)};mt(et,"scroll",Nt),mt(Fe,"scroll",Nt),Y=ht(function(){Y=0,He()})}}ln(A,function(L){pt(L,me)}),this.detach=function(L){Y||(je(Y),Y=0),ct.detach(A,L)},this.reset=function(){A.resizeSensor.resetSensor()}};if(ct.reset=function(A){ln(A,function(me){me.resizeSensor.resetSensor()})},ct.detach=function(A,me){ln(A,function(Y){!Y||Y.resizedAttached&&"function"==typeof me&&(Y.resizedAttached.remove(me),Y.resizedAttached.length())||Y.resizeSensor&&(Y.contains(Y.resizeSensor)&&Y.removeChild(Y.resizeSensor),delete Y.resizeSensor,delete Y.resizedAttached)})},"undefined"!=typeof MutationObserver){var _r=new MutationObserver(function(A){for(var me in A)if(A.hasOwnProperty(me))for(var Y=A[me].addedNodes,ft=0;ft<Y.length;ft++)Y[ft].resizeSensor&&ct.reset(Y[ft])});document.addEventListener("DOMContentLoaded",function(A){_r.observe(document.body,{childList:!0,subtree:!0})})}return ct}.call(Ot,ge,Ot,We))&&(We.exports=Gt)}},dd={};function hd(We){var Ot=dd[We];if(void 0!==Ot)return Ot.exports;var ge=dd[We]={exports:{}};return dv[We].call(ge.exports,ge,ge.exports,hd),ge.exports}(()=>{"use strict";function We(n){return"function"==typeof n}let Ot=!1;const ge={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Ot&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Ot=n},get useDeprecatedSynchronousErrorHandling(){return Ot}};function Ke(n){setTimeout(()=>{throw n},0)}const Gt={closed:!0,next(n){},error(n){if(ge.useDeprecatedSynchronousErrorHandling)throw n;Ke(n)},complete(){}},Me=Array.isArray||(n=>n&&"number"==typeof n.length);function ht(n){return null!==n&&"object"==typeof n}const ln=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class O{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof O)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(We(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof ln?Ae(o.errors):[o]}}if(Me(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(ht(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof ln?e=e.concat(Ae(c.errors)):e.push(c)}}}if(e)throw new ln(e)}add(e){let t=e;if(!e)return O.EMPTY;switch(typeof e){case"function":t=new O(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof O)){const s=t;t=new O,t._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=t;if(null===i)t._parentOrParents=this;else if(i instanceof O){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}}var n;function Ae(n){return n.reduce((e,t)=>e.concat(t instanceof ln?t.errors:t),[])}O.EMPTY=((n=new O).closed=!0,n);const ct="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class A extends O{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Gt;break;case 1:if(!e){this.destination=Gt;break}if("object"==typeof e){e instanceof A?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new me(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new me(this,e,t,i)}}[ct](){return this}static create(e,t,i){const r=new A(e,t,i);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class me extends A{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;We(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==Gt&&(o=Object.create(t),We(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;ge.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:i}=ge;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):Ke(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;Ke(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);ge.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(i){if(this.unsubscribe(),ge.useDeprecatedSynchronousErrorHandling)throw i;Ke(i)}}__tryOrSetError(e,t,i){if(!ge.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return ge.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Ke(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const pt="function"==typeof Symbol&&Symbol.observable||"@@observable";function L(n){return n}function Ge(...n){return gt(n)}function gt(n){return 0===n.length?L:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}let X=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const{operator:s}=this,o=function ft(n,e,t){if(n){if(n instanceof A)return n;if(n[ct])return n[ct]()}return n||e||t?new A(n,e,t):new A(Gt)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||ge.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),ge.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){ge.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function Y(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof A?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=et(i))((r,s)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[pt](){return this}pipe(...t){return 0===t.length?this:gt(t)(this)}toPromise(t){return new(t=et(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function et(n){if(n||(n=ge.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Fe=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class cn extends O{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class Nn extends A{constructor(e){super(e),this.destination=e}}let v=(()=>{class n extends X{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ct](){return new Nn(this)}lift(t){const i=new E(this,this);return i.operator=t,i}next(t){if(this.closed)throw new Fe;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(t)}}error(t){if(this.closed)throw new Fe;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new Fe;this.isStopped=!0;const{observers:t}=this,i=t.length,r=t.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new Fe;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new Fe;return this.hasError?(t.error(this.thrownError),O.EMPTY):this.isStopped?(t.complete(),O.EMPTY):(this.observers.push(t),new cn(this,t))}asObservable(){const t=new X;return t.source=this,t}}return n.create=(e,t)=>new E(e,t),n})();class E extends v{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):O.EMPTY}}function F(n){return n&&"function"==typeof n.schedule}function R(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new te(n,e))}}class te{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new we(e,this.project,this.thisArg))}}class we extends A{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const qe=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},$e=function He(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),tt=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Fn(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Da=n=>{if(n&&"function"==typeof n[pt])return(n=>e=>{const t=n[pt]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(tt(n))return qe(n);if(Fn(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Ke),e))(n);if(n&&"function"==typeof n[$e])return(n=>e=>{const t=n[$e]();for(;;){let i;try{i=t.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${ht(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function wa(n,e){return new X(t=>{const i=new O;let r=0;return i.add(e.schedule(function(){r!==n.length?(t.next(n[r++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function Ea(n,e){return e?function yv(n,e){if(null!=n){if(function gv(n){return n&&"function"==typeof n[pt]}(n))return function hv(n,e){return new X(t=>{const i=new O;return i.add(e.schedule(()=>{const r=n[pt]();i.add(r.subscribe({next(s){i.add(e.schedule(()=>t.next(s)))},error(s){i.add(e.schedule(()=>t.error(s)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(Fn(n))return function fv(n,e){return new X(t=>{const i=new O;return i.add(e.schedule(()=>n.then(r=>{i.add(e.schedule(()=>{t.next(r),i.add(e.schedule(()=>t.complete()))}))},r=>{i.add(e.schedule(()=>t.error(r)))}))),i})}(n,e);if(tt(n))return wa(n,e);if(function mv(n){return n&&"function"==typeof n[$e]}(n)||"string"==typeof n)return function pv(n,e){if(!n)throw new Error("Iterable cannot be null");return new X(t=>{const i=new O;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[$e](),i.add(e.schedule(function(){if(t.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void t.error(a)}o?t.complete():(t.next(s),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof X?n:new X(Da(n))}class ms extends A{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class ys extends A{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function _s(n,e){if(!e.closed)return n instanceof X?n.subscribe(e):Da(n)(e)}function ba(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(ba((r,s)=>Ea(n(r,s)).pipe(R((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new _v(n,t)))}class _v{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new vv(e,this.project,this.concurrent))}}class vv extends ys{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new ms(this),i=this.destination;i.add(t);const r=_s(e,t);r!==t&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const Dv=ba;function fd(n=Number.POSITIVE_INFINITY){return ba(L,n)}function Ca(n,e){return e?wa(n,e):new X(qe(n))}function vs(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return F(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof X?n[0]:fd(e)(Ca(n,t))}function pd(){return function(e){return e.lift(new wv(e))}}class wv{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new Ev(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class Ev extends A{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class bv extends X{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new O,e.add(this.source.subscribe(new Sv(this.getSubject(),this))),e.closed&&(this._connection=null,e=O.EMPTY)),e}refCount(){return pd()(this)}}const Cv=(()=>{const n=bv.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class Sv extends Nn{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function Sa(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new Tv(r,e));const s=Object.create(i,Cv);return s.source=i,s.subjectFactory=r,s}}class Tv{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(e);return s.add(t.subscribe(r)),s}}function Mv(){return new v}function ae(n){for(let e in n)if(n[e]===ae)return e;throw Error("Could not find renamed property on target object.")}function ie(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ie).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function Ta(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const Pv=ae({__forward_ref__:ae});function Ma(n){return n.__forward_ref__=Ma,n.toString=function(){return ie(this())},n}function U(n){return function gd(n){return"function"==typeof n&&n.hasOwnProperty(Pv)&&n.__forward_ref__===Ma}(n)?n():n}class I extends Error{constructor(e,t){super(function Aa(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function Qe(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():function V(n){return"string"==typeof n?n:null==n?"":String(n)}(n)}function Ds(n,e){const t=e?` in ${e}`:"";throw new I(-201,`No provider for ${Qe(n)} found${t}`)}function _t(n,e){null==n&&function re(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function B(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Cn(n){return{providers:n.providers||[],imports:n.imports||[]}}function Pa(n){return md(n,ws)||md(n,_d)}function md(n,e){return n.hasOwnProperty(e)?n[e]:null}function yd(n){return n&&(n.hasOwnProperty(Ra)||n.hasOwnProperty(Lv))?n[Ra]:null}const ws=ae({\u0275prov:ae}),Ra=ae({\u0275inj:ae}),_d=ae({ngInjectableDef:ae}),Lv=ae({ngInjectorDef:ae});var $=(()=>(($=$||{})[$.Default=0]="Default",$[$.Host=1]="Host",$[$.Self=2]="Self",$[$.SkipSelf=4]="SkipSelf",$[$.Optional=8]="Optional",$))();let xa;function kn(n){const e=xa;return xa=n,e}function vd(n,e,t){const i=Pa(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&$.Optional?null:void 0!==e?e:void Ds(ie(n),"Injector")}function Ln(n){return{toString:n}.toString()}var qt=(()=>((qt=qt||{})[qt.OnPush=0]="OnPush",qt[qt.Default=1]="Default",qt))(),Qt=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Qt||(Qt={})),Qt))();const Bv="undefined"!=typeof globalThis&&globalThis,jv="undefined"!=typeof window&&window,Hv="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,se=Bv||"undefined"!=typeof global&&global||jv||Hv,Si={},le=[],Es=ae({\u0275cmp:ae}),Oa=ae({\u0275dir:ae}),Na=ae({\u0275pipe:ae}),Dd=ae({\u0275mod:ae}),Sn=ae({\u0275fac:ae}),vr=ae({__NG_ELEMENT_ID__:ae});let $v=0;function bs(n){return Ln(()=>{const t={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===qt.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||le,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Qt.Emulated,id:"c",styles:n.styles||le,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=$v++,i.inputs=Cd(n.inputs,t),i.outputs=Cd(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(wd):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Ed):null,i})}function wd(n){return Ye(n)||function Bn(n){return n[Oa]||null}(n)}function Ed(n){return function ri(n){return n[Na]||null}(n)}const bd={};function Vn(n){return Ln(()=>{const e={type:n.type,bootstrap:n.bootstrap||le,declarations:n.declarations||le,imports:n.imports||le,exports:n.exports||le,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(bd[n.id]=n.type),e})}function Cd(n,e){if(null==n)return Si;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),t[r]=i,e&&(e[r]=s)}return t}const vt=bs;function Ye(n){return n[Es]||null}function Ft(n,e){const t=n[Dd]||null;if(!t&&!0===e)throw new Error(`Type ${ie(n)} does not have '\u0275mod' property.`);return t}const z=11;function un(n){return Array.isArray(n)&&"object"==typeof n[1]}function Kt(n){return Array.isArray(n)&&!0===n[1]}function La(n){return 0!=(8&n.flags)}function Ts(n){return 2==(2&n.flags)}function Ms(n){return 1==(1&n.flags)}function Zt(n){return null!==n.template}function Qv(n){return 0!=(512&n[2])}function li(n,e){return n.hasOwnProperty(Sn)?n[Sn]:null}class Id{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Td(n){return n.type.prototype.ngOnChanges&&(n.setInput=Xv),Zv}function Zv(){const n=Ad(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===Si)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function Xv(n,e,t,i){const r=Ad(n)||function Jv(n,e){return n[Md]=e}(n,{previous:Si,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new Id(l&&l.currentValue,e,o===Si),n[i]=e}const Md="__ngSimpleChanges__";function Ad(n){return n[Md]||null}let $a;function be(n){return!!n.listen}const Pd={createRenderer:(n,e)=>function za(){return void 0!==$a?$a:"undefined"!=typeof document?document:void 0}()};function Pe(n){for(;Array.isArray(n);)n=n[0];return n}function wt(n,e){return Pe(e[n.index])}function Ua(n,e){return n.data[e]}function Et(n,e){const t=e[n];return un(t)?t:t[0]}function Rd(n){return 4==(4&n[2])}function Wa(n){return 128==(128&n[2])}function jn(n,e){return null==e?null:n[e]}function xd(n){n[18]=0}function Ga(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const j={lFrame:Hd(null),bindingsEnabled:!0};function Nd(){return j.bindingsEnabled}function _(){return j.lFrame.lView}function ee(){return j.lFrame.tView}function ke(){let n=Fd();for(;null!==n&&64===n.type;)n=n.parent;return n}function Fd(){return j.lFrame.currentTNode}function dn(n,e){const t=j.lFrame;t.currentTNode=n,t.isParent=e}function qa(){return j.lFrame.isParent}function yD(n,e){const t=j.lFrame;t.bindingIndex=t.bindingRootIndex=n,Ya(e)}function Ya(n){j.lFrame.currentDirectiveIndex=n}function Vd(){return j.lFrame.currentQueryIndex}function Za(n){j.lFrame.currentQueryIndex=n}function vD(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function Bd(n,e,t){if(t&$.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&$.Host||(r=vD(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=j.lFrame=jd();return i.currentTNode=e,i.lView=n,!0}function xs(n){const e=jd(),t=n[1];j.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function jd(){const n=j.lFrame,e=null===n?null:n.child;return null===e?Hd(n):e}function Hd(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function $d(){const n=j.lFrame;return j.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const zd=$d;function Os(){const n=$d();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function rt(){return j.lFrame.selectedIndex}function Hn(n){j.lFrame.selectedIndex=n}function Ns(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t<i;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-t,o),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),c&&((n.viewHooks||(n.viewHooks=[])).push(t,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(t,u)}}function Fs(n,e,t){Ud(n,e,3,t)}function ks(n,e,t,i){(3&n[2])===t&&Ud(n,e,t,i)}function Xa(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function Ud(n,e,t,i){const s=null!=i?i:-1,o=e.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(MD(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function MD(n,e,t,i){const r=t[i]<0,s=t[i+1],a=n[r?-t[i]:t[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Cr{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function Ls(n,e,t){const i=be(n);let r=0;for(;r<t.length;){const s=t[r];if("number"==typeof s){if(0!==s)break;r++;const o=t[r++],a=t[r++],l=t[r++];i?n.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=t[++r];el(o)?i&&n.setProperty(e,o,a):i?n.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Wd(n){return 3===n||4===n||6===n}function el(n){return 64===n.charCodeAt(0)}function Vs(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?t=r:0===t||Gd(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function Gd(n,e,t,i,r){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,e),s=o+1),n.splice(s++,0,t),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function qd(n){return-1!==n}function xi(n){return 32767&n}function Oi(n,e){let t=function OD(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let tl=!0;function Bs(n){const e=tl;return tl=n,e}let ND=0;function Ir(n,e){const t=il(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,nl(i.data,n),nl(e,null),nl(i.blueprint,null));const r=js(n,e),s=n.injectorIndex;if(qd(r)){const o=xi(r),a=Oi(r,e),l=a[1].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=r,s}function nl(n,e){n.push(0,0,0,0,0,0,0,0,e)}function il(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function js(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function Hs(n,e,t){!function FD(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(vr)&&(i=t[vr]),null==i&&(i=t[vr]=ND++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function Kd(n,e,t){if(t&$.Optional)return n;Ds(e,"NodeInjector")}function Zd(n,e,t,i){if(t&$.Optional&&void 0===i&&(i=null),0==(t&($.Self|$.Host))){const r=n[9],s=kn(void 0);try{return r?r.get(e,i,t&$.Optional):vd(e,i,t&$.Optional)}finally{kn(s)}}return Kd(i,e,t)}function Xd(n,e,t,i=$.Default,r){if(null!==n){const s=function BD(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(vr)?n[vr]:void 0;return"number"==typeof e?e>=0?255&e:LD:e}(t);if("function"==typeof s){if(!Bd(e,n,i))return i&$.Host?Kd(r,t,i):Zd(e,t,i,r);try{const o=s(i);if(null!=o||i&$.Optional)return o;Ds(t)}finally{zd()}}else if("number"==typeof s){let o=null,a=il(n,e),l=-1,c=i&$.Host?e[16][6]:null;for((-1===a||i&$.SkipSelf)&&(l=-1===a?js(n,e):e[a+8],-1!==l&&th(i,!1)?(o=e[1],a=xi(l),e=Oi(l,e)):a=-1);-1!==a;){const u=e[1];if(eh(s,a,u.data)){const d=VD(a,e,t,o,i,c);if(d!==Jd)return d}l=e[a+8],-1!==l&&th(i,e[1].data[a+8]===c)&&eh(s,a,e)?(o=u,a=xi(l),e=Oi(l,e)):a=-1}}}return Zd(e,t,i,r)}const Jd={};function LD(){return new Ni(ke(),_())}function VD(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=$s(a,o,t,null==i?Ts(a)&&tl:i!=o&&0!=(3&a.type),r&$.Host&&s===a);return null!==u?Tr(e,o,u,a):Jd}function $s(n,e,t,i,r){const s=n.providerIndexes,o=e.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&t===p||f>=l&&p.type===t)return f}if(r){const f=o[l];if(f&&Zt(f)&&f.type===t)return l}return null}function Tr(n,e,t,i){let r=n[t];const s=e.data;if(function AD(n){return n instanceof Cr}(r)){const o=r;o.resolving&&function Rv(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new I(-200,`Circular dependency in DI detected for ${n}${t}`)}(Qe(s[t]));const a=Bs(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?kn(o.injectImpl):null;Bd(n,i,$.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function TD(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=Td(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&kn(l),Bs(a),o.resolving=!1,zd()}}return r}function eh(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function th(n,e){return!(n&$.Self||n&$.Host&&e)}class Ni{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return Xd(this._tNode,this._lView,e,i,t)}}class K{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=B({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Vt(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let i=n[t];Array.isArray(i)?(e===n&&(e=n.slice(0,t)),Vt(i,e)):e!==n&&e.push(i)}return e}function hn(n,e){n.forEach(t=>Array.isArray(t)?hn(t,e):e(t))}function ih(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function zs(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}const Rr={},Ws="ngTempTokenPath",ZD=/\n/gm,lh="__source",JD=ae({provide:String,useValue:ae});let xr;function ch(n){const e=xr;return xr=n,e}function ew(n,e=$.Default){if(void 0===xr)throw new I(203,"");return null===xr?vd(n,void 0,e):xr.get(n,e&$.Optional?null:void 0,e)}function w(n,e=$.Default){return(function Vv(){return xa}()||ew)(U(n),e)}const dh=w;function dl(n){const e=[];for(let t=0;t<n.length;t++){const i=U(n[t]);if(Array.isArray(i)){if(0===i.length)throw new I(900,"");let r,s=$.Default;for(let o=0;o<i.length;o++){const a=i[o],l=tw(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(w(r,s))}else e.push(w(i))}return e}function tw(n){return n.__NG_DI_FLAG__}var Ct=(()=>((Ct=Ct||{})[Ct.Important=1]="Important",Ct[Ct.DashCase=2]="DashCase",Ct))();const _h="__ngContext__";function Xe(n,e){n[_h]=e}function gl(n){const e=function Fr(n){return n[_h]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function yl(n,e){return undefined(n,e)}function kr(n){const e=n[3];return Kt(e)?e[3]:e}function _l(n){return Sh(n[13])}function vl(n){return Sh(n[4])}function Sh(n){for(;null!==n&&!Kt(n);)n=n[4];return n}function Hi(n,e,t,i,r){if(null!=i){let s,o=!1;Kt(i)?s=i:un(i)&&(o=!0,i=i[0]);const a=Pe(i);0===n&&null!==t?null==r?Rh(e,t,a):ci(e,t,a,r||null,!0):1===n&&null!==t?ci(e,t,a,r||null,!0):2===n?function Il(n,e,t){const i=Ys(n,e);i&&function xw(n,e,t,i){be(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function Fw(n,e,t,i,r){const s=t[7];s!==Pe(t)&&Hi(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];Lr(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function wl(n,e,t){if(be(n))return n.createElement(e,t);{const i=null!==t?function iD(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(t):null;return null===i?n.createElement(e):n.createElementNS(i,e)}}function Th(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Ga(r,-1)),t.splice(i,1)}function El(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&Th(r,i),e>0&&(n[t-1][4]=i[4]);const s=zs(n,10+e);!function Cw(n,e){Lr(n,e,e[z],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Mh(n,e){if(!(256&e[2])){const t=e[z];be(t)&&t.destroyNode&&Lr(n,e,t,3,null,null),function Tw(n){let e=n[13];if(!e)return bl(n[1],n);for(;e;){let t=null;if(un(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)un(e)&&bl(e[1],e),e=e[3];null===e&&(e=n),un(e)&&bl(e[1],e),t=e&&e[4]}e=t}}(e)}}function bl(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function Rw(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i<t.length;i+=2){const r=e[t[i]];if(!(r instanceof Cr)){const s=t[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,e),function Pw(n,e){const t=n.cleanup,i=e[7];let r=-1;if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+1],a="function"==typeof o?o(e):Pe(e[o]),l=i[r=t[s+2]],c=t[s+3];"boolean"==typeof c?a.removeEventListener(t[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=t[s+1]];t[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();e[7]=null}}(n,e),1===e[1].type&&be(e[z])&&e[z].destroy();const t=e[17];if(null!==t&&Kt(e[3])){t!==e[3]&&Th(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function Ah(n,e,t){return function Ph(n,e,t){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return t[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===Qt.None||r===Qt.Emulated)return null}return wt(i,t)}(n,e.parent,t)}function ci(n,e,t,i,r){be(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function Rh(n,e,t){be(n)?n.appendChild(e,t):e.appendChild(t)}function xh(n,e,t,i,r){null!==i?ci(n,e,t,i,r):Rh(n,e,t)}function Ys(n,e){return be(n)?n.parentNode(e):e.parentNode}let Fh=function Nh(n,e,t){return 40&n.type?wt(n,t):null};function Ks(n,e,t,i){const r=Ah(n,i,e),s=e[z],a=function Oh(n,e,t){return Fh(n,e,t)}(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)xh(s,r,t[l],a,!1);else xh(s,r,t,a,!1)}function Zs(n,e){if(null!==e){const t=e.type;if(3&t)return wt(e,n);if(4&t)return Sl(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return Zs(n,i);{const r=n[e.index];return Kt(r)?Sl(-1,r):Pe(r)}}if(32&t)return yl(e,n)()||Pe(n[e.index]);{const i=Lh(n,e);return null!==i?Array.isArray(i)?i[0]:Zs(kr(n[16]),i):Zs(n,e.next)}}return null}function Lh(n,e){return null!==e?n[16][6].projection[e.projection]:null}function Sl(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return Zs(i,r)}return e[7]}function Tl(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&&Xe(Pe(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)Tl(n,e,t.child,i,r,s,!1),Hi(e,n,r,a,s);else if(32&l){const c=yl(t,i);let u;for(;u=c();)Hi(e,n,r,u,s);Hi(e,n,r,a,s)}else 16&l?Vh(n,e,i,t,r,s):Hi(e,n,r,a,s);t=o?t.projectionNext:t.next}}function Lr(n,e,t,i,r,s){Tl(t,i,n.firstChild,e,r,s,!1)}function Vh(n,e,t,i,r,s){const o=t[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Hi(e,n,r,l[c],s);else Tl(n,e,l,o[3],r,s,!0)}function Bh(n,e,t){be(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function Ml(n,e,t){be(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function kl(n){return n.ngOriginalError}function fE(n,...e){n.error(...e)}class Hr{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=function hE(n){return n&&n.ngErrorLogger||fE}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&kl(e);for(;t&&kl(t);)t=kl(t);return t||null}}const DE=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(se))();function pn(n){return n instanceof Function?n():n}function ef(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=e.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}t=r+1}}const tf="ng-template";function CE(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==ef(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function nf(n){return 4===n.type&&n.value!==tf}function SE(n,e,t){return e===(4!==n.type||t?n.value:tf)}function IE(n,e,t){let i=4;const r=n.attrs||[],s=function AE(n){for(let e=0;e<n.length;e++)if(Wd(n[e]))return e;return n.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!SE(n,l,t)||""===l&&1===e.length){if(Xt(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!CE(n.attrs,c,t)){if(Xt(i))return!1;o=!0}continue}const d=TE(8&i?"class":l,r,nf(n),t);if(-1===d){if(Xt(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==ef(f,c,0)||2&i&&c!==h){if(Xt(i))return!1;o=!0}}}}else{if(!o&&!Xt(i)&&!Xt(l))return!1;if(o&&Xt(l))continue;o=!1,i=l|1&i}}return Xt(i)||o}function Xt(n){return 0==(1&n)}function TE(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let s=!1;for(;r<e.length;){const o=e[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function PE(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const i=n[t];if("number"==typeof i)return-1;if(i===e)return t;t++}return-1}(e,n)}function rf(n,e,t=!1){for(let i=0;i<e.length;i++)if(IE(n,e[i],t))return!0;return!1}function sf(n,e){return n?":not("+e.trim()+")":e}function xE(n){let e=n[0],t=1,i=2,r="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&i){const a=n[++t];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Xt(o)&&(e+=sf(s,r),r=""),i=o,s=s||!Xt(i);t++}return""!==r&&(e+=sf(s,r)),e}const H={};function lf(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&Fs(e,s,t)}else{const s=n.preOrderHooks;null!==s&&ks(e,s,0,t)}Hn(t)}function vf(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],s=t[i+1];if(-1!==s){const o=n.data[s];Za(r),o.contentQueries(2,e[s],s)}}}function $r(n,e,t,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,xd(u),u[3]=u[15]=n,u[8]=t,u[10]=o||n&&n[10],u[z]=a||n&&n[z],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==e.type?n[16]:u,u}function zi(n,e,t,i,r){let s=n.data[e];if(null===s)s=function Ql(n,e,t,i,r){const s=Fd(),o=qa(),l=n.data[e]=function KE(n,e,t,i,r,s){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,e,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,e,t,i,r),function mD(){return j.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function br(){const n=j.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return dn(s,!0),s}function Ui(n,e,t,i){if(0===t)return-1;const r=e.length;for(let s=0;s<t;s++)e.push(i),n.blueprint.push(i),n.data.push(null);return r}function zr(n,e,t){xs(e);try{const i=n.viewQuery;null!==i&&ic(1,i,t);const r=n.template;null!==r&&Df(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&vf(n,e),n.staticViewQueries&&ic(2,n.viewQuery,t);const s=n.components;null!==s&&function qE(n,e){for(let t=0;t<e.length;t++)pb(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,Os()}}function Wi(n,e,t,i){const r=e[2];if(256!=(256&r)){xs(e);try{xd(e),function kd(n){return j.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&Df(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&Fs(e,c,null)}else{const c=n.preOrderHooks;null!==c&&ks(e,c,0,null),Xa(e,0)}if(function hb(n){for(let e=_l(n);null!==e;e=vl(e)){if(!e[2])continue;const t=e[9];for(let i=0;i<t.length;i++){const r=t[i],s=r[3];0==(1024&r[2])&&Ga(s,1),r[2]|=1024}}}(e),function db(n){for(let e=_l(n);null!==e;e=vl(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];Wa(i)&&Wi(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&vf(n,e),o){const c=n.contentCheckHooks;null!==c&&Fs(e,c)}else{const c=n.contentHooks;null!==c&&ks(e,c,1),Xa(e,1)}!function WE(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)Hn(~r);else{const s=r,o=t[++i],a=t[++i];yD(o,s),a(2,e[s])}}}finally{Hn(-1)}}(n,e);const a=n.components;null!==a&&function GE(n,e){for(let t=0;t<e.length;t++)fb(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&ic(2,l,i),o){const c=n.viewCheckHooks;null!==c&&Fs(e,c)}else{const c=n.viewHooks;null!==c&&ks(e,c,2),Xa(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,Ga(e[3],-1))}finally{Os()}}}function QE(n,e,t,i){const r=e[10],o=Rd(e);try{!o&&r.begin&&r.begin(),o&&zr(n,e,i),Wi(n,e,t,i)}finally{!o&&r.end&&r.end()}}function Df(n,e,t,i,r){const s=rt(),o=2&i;try{Hn(-1),o&&e.length>20&&lf(n,e,20,!1),t(i,r)}finally{Hn(s)}}function Ef(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=so(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function so(n,e,t,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function YE(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:H);return t}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Sf(n,e,t,i){const r=Ff(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&kf(n).push(i,r.length-1))}function If(n,e,t){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(e,r):t[i]=[e,r]}return t}function Mf(n,e,t,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function nb(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function Af(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function Pf(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function ab(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;Zt(e)&&(t[""]=n)}}function Rf(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function xf(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=li(r.type)),o=new Cr(s,Zt(r),null);n.blueprint[i]=o,t[i]=o,Mf(n,e,0,i,Ui(n,t,r.hostVars,H),r)}function lb(n,e,t){const i=wt(e,n),r=Ef(t),s=n[10],o=oo(n,$r(n,r,null,t.onPush?64:16,i,e,s,s.createRenderer(i,t),null,null));n[e.index]=o}function cb(n,e,t,i,r,s){const o=s[e];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(t,d,c,u):t[u]=d}}}function ub(n,e){let t=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,n[r],e[i+1])),i+=2}else i+=2;else i+=4}return t}function fb(n,e){const t=Et(e,n);if(Wa(t)){const i=t[1];80&t[2]?Wi(i,t,i.template,t[8]):t[5]>0&&Jl(t)}}function Jl(n){for(let i=_l(n);null!==i;i=vl(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];Wi(o,s,o.template,s[8])}else s[5]>0&&Jl(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=Et(t[i],n);Wa(r)&&r[5]>0&&Jl(r)}}function pb(n,e){const t=Et(e,n),i=t[1];(function gb(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),zr(i,t,t[8])}function oo(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function ec(n){for(;n;){n[2]|=64;const e=kr(n);if(Qv(n)&&!e)return n;n=e}return null}function Nf(n){!function tc(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=gl(t),r=i[1];QE(r,i,r.template,t)}}(n[8])}function ic(n,e,t){Za(0),e(n,t)}const yb=(()=>Promise.resolve(null))();function Ff(n){return n[7]||(n[7]=[])}function kf(n){return n.cleanup||(n.cleanup=[])}function Vf(n,e){const t=n[9],i=t?t.get(Hr,null):null;i&&i.handleError(e)}function Bf(n,e,t,i,r){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=e[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function ao(n,e,t){let i=t?n.styles:null,r=t?n.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?r=Ta(r,a):2==s&&(i=Ta(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const rc=new K("INJECTOR",-1);class jf{get(e,t=Rr){if(t===Rr){const i=new Error(`NullInjectorError: No provider for ${ie(e)}!`);throw i.name="NullInjectorError",i}return t}}const sc=new K("Set Injector scope."),Ur={},Db={};let oc;function Hf(){return void 0===oc&&(oc=new jf),oc}function $f(n,e=null,t=null,i){const r=zf(n,e,t,i);return r._resolveInjectorDefTypes(),r}function zf(n,e=null,t=null,i){return new wb(n,t,e||Hf(),i)}class wb{constructor(e,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&hn(t,a=>this.processProvider(a,e,t)),hn([e],a=>this.processInjectorType(a,[],s)),this.records.set(rc,Gi(void 0,this));const o=this.records.get(sc);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:ie(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Rr,i=$.Default){this.assertNotDestroyed();const r=ch(this),s=kn(void 0);try{if(!(i&$.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function Ab(n){return"function"==typeof n||"object"==typeof n&&n instanceof K}(e)&&Pa(e);a=l&&this.injectableDefInScope(l)?Gi(ac(e),Ur):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&$.Self?Hf():this.parent).get(e,t=i&$.Optional&&t===Rr?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[Ws]=o[Ws]||[]).unshift(ie(e)),r)throw o;return function nw(n,e,t,i){const r=n[Ws];throw e[lh]&&r.unshift(e[lh]),n.message=function iw(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=ie(e);if(Array.isArray(e))r=e.map(ie).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):ie(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(ZD,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[Ws]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{kn(s),ch(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(ie(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processInjectorType(e,t,i){if(!(e=U(e)))return!1;let r=yd(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=yd(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{hn(r.imports,d=>{this.processInjectorType(d,t,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];hn(f,p=>this.processProvider(p,h,f||le))}}this.injectorDefTypes.add(o);const l=li(o)||(()=>new o);this.records.set(o,Gi(l,Ur));const c=r.providers;if(null!=c&&!a){const u=e;hn(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,i){let r=qi(e=U(e))?e:U(e&&e.provide);const s=function bb(n,e,t){return Wf(n)?Gi(void 0,n.useValue):Gi(function Uf(n,e,t){let i;if(qi(n)){const r=U(n);return li(r)||ac(r)}if(Wf(n))i=()=>U(n.useValue);else if(function Sb(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...dl(n.deps||[]));else if(function Cb(n){return!(!n||!n.useExisting)}(n))i=()=>w(U(n.useExisting));else{const r=U(n&&(n.useClass||n.provide));if(!function Tb(n){return!!n.deps}(n))return li(r)||ac(r);i=()=>new r(...dl(n.deps))}return i}(n),Ur)}(e);if(qi(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Gi(void 0,Ur,!0),o.factory=()=>dl(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===Ur&&(t.value=Db,t.value=t.factory()),"object"==typeof t.value&&t.value&&function Mb(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=U(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function ac(n){const e=Pa(n),t=null!==e?e.factory:li(n);if(null!==t)return t;if(n instanceof K)throw new I(204,!1);if(n instanceof Function)return function Eb(n){const e=n.length;if(e>0)throw function Pr(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}(e,"?"),new I(204,!1);const t=function Fv(n){const e=n&&(n[ws]||n[_d]);if(e){const t=function kv(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" 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 "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new I(204,!1)}function Gi(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function Wf(n){return null!==n&&"object"==typeof n&&JD in n}function qi(n){return"function"==typeof n}let It=(()=>{class n{static create(t,i){var r;if(Array.isArray(t))return $f({name:""},i,t,"");{const s=null!==(r=t.name)&&void 0!==r?r:"";return $f({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=Rr,n.NULL=new jf,n.\u0275prov=B({token:n,providedIn:"any",factory:()=>w(rc)}),n.__NG_ELEMENT_ID__=-1,n})();function Lb(n,e){Ns(gl(n)[1],ke())}let lo=null;function Qi(){if(!lo){const n=se.Symbol;if(n&&n.iterator)lo=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const i=e[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(lo=i)}}}return lo}function G(n,e=$.Default){const t=_();return null===t?w(n,e):Xd(ke(),t,U(n),e)}function mc(n,e,t){const i=_();return function Je(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}(i,function Ri(){return j.lFrame.bindingIndex++}(),e)&&function St(n,e,t,i,r,s,o,a){const l=wt(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(Bf(n,t,u,i,r),Ts(e)&&function JE(n,e){const t=Et(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function XE(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,e.value||"",i):r,be(s)?s.setProperty(l,i,r):el(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(ee(),function ye(){const n=j.lFrame;return Ua(n.tView,n.selectedIndex)}(),i,n,e,i[z],t,!1),mc}function yc(n,e,t,i,r){const o=r?"class":"style";Bf(n,t,e.inputs[o],o,i)}function ho(n,e,t,i){const r=_(),s=ee(),o=20+n,a=r[z],l=r[o]=wl(a,e,function ID(){return j.lFrame.currentNamespace}()),c=s.firstCreatePass?function _C(n,e,t,i,r,s,o){const a=e.consts,c=zi(e,n,2,r,jn(a,s));return function Zl(n,e,t,i){let r=!1;if(Nd()){const s=function sb(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];rf(t,o.selectors,!1)&&(r||(r=[]),Hs(Ir(t,e),n,o.type),Zt(o)?(Pf(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,Rf(t,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=Ui(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=Vs(t.mergedAttrs,d.hostAttrs),xf(n,t,e,c,d),ab(c,d,o),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),c++}!function ZE(n,e){const i=e.directiveEnd,r=n.data,s=e.attrs,o=[];let a=null,l=null;for(let c=e.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||nf(e)?null:ub(d,s);o.push(h),a=If(d,c,a),l=If(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(n,t)}o&&function ob(n,e,t){if(e){const i=n.localNames=[];for(let r=0;r<e.length;r+=2){const s=t[e[r+1]];if(null==s)throw new I(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=Vs(t.mergedAttrs,t.attrs),r}(e,t,c,jn(a,o)),null!==c.attrs&&ao(c,c.attrs,!1),null!==c.mergedAttrs&&ao(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];dn(c,!0);const u=c.mergedAttrs;null!==u&&Ls(a,l,u);const d=c.classes;null!==d&&Ml(a,l,d);const h=c.styles;return null!==h&&Bh(a,l,h),64!=(64&c.flags)&&Ks(s,r,l,c),0===function cD(){return j.lFrame.elementDepthCount}()&&Xe(l,r),function uD(){j.lFrame.elementDepthCount++}(),Ms(c)&&(function Yl(n,e,t){!Nd()||(function ib(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||Ir(t,e),Xe(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Zt(l);c&&lb(e,t,l);const u=Tr(e,n,a,t);Xe(u,e),null!==o&&cb(0,a-r,u,l,0,o),c&&(Et(t.index,e)[8]=u)}}(n,e,t,wt(t,e)),128==(128&t.flags)&&function rb(n,e,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function _D(){return j.lFrame.currentDirectiveIndex}();try{Hn(o);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];Ya(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&Af(c,u)}}finally{Hn(-1),Ya(a)}}(n,e,t))}(s,r,c),function wf(n,e,t){if(La(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,t[s],s)}}}(s,c,r)),null!==i&&function Kl(n,e,t=wt){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?t(e,n):n[o];n[r++]=a}}}(r,c),ho}function fo(){let n=ke();qa()?function Qa(){j.lFrame.isParent=!1}():(n=n.parent,dn(n,!1));const e=n;!function dD(){j.lFrame.elementDepthCount--}();const t=ee();return t.firstCreatePass&&(Ns(t,n),La(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function RD(n){return 0!=(16&n.flags)}(e)&&yc(t,e,_(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function xD(n){return 0!=(32&n.flags)}(e)&&yc(t,e,_(),e.stylesWithoutHost,!1),fo}function po(n,e,t,i){return ho(n,e,t,i),fo(),po}function Dc(n){return!!n&&"function"==typeof n.then}const wC=function Ip(n){return!!n&&"function"==typeof n.subscribe};function wc(n,e,t,i){const r=_(),s=ee(),o=ke();return function Mp(n,e,t,i,r,s,o,a){const l=Ms(i),u=n.firstCreatePass&&kf(n),d=e[8],h=Ff(e);let f=!0;if(3&i.type||a){const y=wt(i,e),D=a?a(y):y,m=h.length,b=a?M=>a(Pe(M[i.index])):i.index;if(be(t)){let M=null;if(!a&&l&&(M=function EC(n,e,t,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===t&&r[s+1]===i){const a=e[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,r,i.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=s,M.__ngLastListenerFn__=s,f=!1;else{s=Ec(i,e,d,s,!1);const q=t.listen(D,r,s);h.push(s,q),u&&u.push(r,b,m,m+1)}}else s=Ec(i,e,d,s,!0),D.addEventListener(r,s,o),h.push(s),u&&u.push(r,b,m,o)}else s=Ec(i,e,d,s,!1);const p=i.outputs;let g;if(f&&null!==p&&(g=p[r])){const y=g.length;if(y)for(let D=0;D<y;D+=2){const pe=e[g[D]][g[D+1]].subscribe(s),ve=h.length;h.push(s,pe),u&&u.push(r,i.index,ve,-(ve+1))}}}(s,r,r[z],o,n,e,!!t,i),wc}function Ap(n,e,t,i){try{return!1!==t(i)}catch(r){return Vf(n,r),!1}}function Ec(n,e,t,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?Et(n.index,e):e;0==(32&e[2])&&ec(a);let l=Ap(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=Ap(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}const mo="en-US";let Eg=mo;class qg{}class g0{resolveComponentFactory(e){throw function p0(n){const e=Error(`No component factory found for ${ie(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let fi=(()=>{class n{}return n.NULL=new g0,n})();function m0(){return lr(ke(),_())}function lr(n,e){return new vn(wt(n,e))}let vn=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=m0,n})();function y0(n){return n instanceof vn?n.nativeElement:n}class Xr{}let D0=(()=>{class n{}return n.\u0275prov=B({token:n,providedIn:"root",factory:()=>null}),n})();class wo{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const w0=new wo("13.4.0"),xc={};function Eo(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(Pe(s)),Kt(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&Eo(l[1],l,c,i)}const o=t.type;if(8&o)Eo(n,e,t.child,i);else if(32&o){const a=yl(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Lh(e,t);if(Array.isArray(a))i.push(...a);else{const l=kr(e[16]);Eo(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class Jr{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return Eo(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(Kt(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(El(e,i),zs(t,i))}this._attachedToViewContainer=!1}Mh(this._lView[1],this._lView)}onDestroy(e){Sf(this._lView[1],this._lView,null,e)}markForCheck(){ec(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function nc(n,e,t){const i=e[10];i.begin&&i.begin();try{Wi(n,e,n.template,t)}catch(r){throw Vf(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Iw(n,e){Lr(n,e,e[z],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new I(902,"");this._appRef=e}}class E0 extends Jr{constructor(e){super(e),this._view=e}detectChanges(){Nf(this._view)}checkNoChanges(){}get context(){return null}}class Kg extends fi{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=Ye(e);return new Oc(t,this.ngModule)}}function Zg(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class Oc extends qg{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function OE(n){return n.map(xE).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Zg(this.componentDef.inputs)}get outputs(){return Zg(this.componentDef.outputs)}create(e,t,i,r){const s=(r=r||this.ngModule)?function C0(n,e){return{get:(t,i,r)=>{const s=n.get(t,xc,r);return s!==xc||i===xc?s:e.get(t,i,r)}}}(e,r.injector):e,o=s.get(Xr,Pd),a=s.get(D0,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function Cf(n,e,t){if(be(n))return n.selectRootElement(e,t===Qt.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):wl(o.createRenderer(null,this.componentDef),c,function b0(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function np(n,e){return{components:[],scheduler:n||DE,clean:yb,playerHandler:e||null,flags:0}}(),f=so(0,null,null,1,0,null,null,null,null,null),p=$r(null,f,h,d,null,null,o,l,a,s);let g,y;xs(p);try{const D=function ep(n,e,t,i,r,s){const o=t[1];t[20]=n;const l=zi(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(ao(l,c,!0),null!==n&&(Ls(r,n,c),null!==l.classes&&Ml(r,n,l.classes),null!==l.styles&&Bh(r,n,l.styles)));const u=i.createRenderer(n,e),d=$r(t,Ef(e),null,e.onPush?64:16,t[20],l,i,u,s||null,null);return o.firstCreatePass&&(Hs(Ir(l,t),o,e.type),Pf(o,l),Rf(l,t.length,1)),oo(t,d),t[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)Ls(l,u,["ng-version",w0.full]);else{const{attrs:m,classes:b}=function NE(n){const e=[],t=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&e.push(s,n[++i]):8===r&&t.push(s);else{if(!Xt(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);m&&Ls(l,u,m),b&&b.length>0&&Ml(l,u,b.join(" "))}if(y=Ua(f,20),void 0!==t){const m=y.projection=[];for(let b=0;b<this.ngContentSelectors.length;b++){const M=t[b];m.push(null!=M?Array.from(M):null)}}g=function tp(n,e,t,i,r){const s=t[1],o=function tb(n,e,t){const i=ke();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),xf(n,i,e,Ui(n,e,1,null),t));const r=Tr(e,n,i.directiveStart,i);Xe(r,e);const s=wt(i,e);return s&&Xe(s,e),r}(s,t,e);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,e)),e.contentQueries){const l=ke();e.contentQueries(1,o,l.directiveStart)}const a=ke();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Hn(a.index),Mf(t[1],a,0,a.directiveStart,a.directiveEnd,e),Af(e,o)),o}(D,this.componentDef,p,h,[Lb]),zr(f,p,null)}finally{Os()}return new I0(this.componentType,g,lr(y,p),p,y)}}class I0 extends class f0{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new E0(r),this.componentType=e}get injector(){return new Ni(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class cr{}const ur=new Map;class em extends cr{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Kg(this);const i=Ft(e);this._bootstrapComponents=pn(i.bootstrap),this._r3Injector=zf(e,t,[{provide:cr,useValue:this},{provide:fi,useValue:this.componentFactoryResolver}],ie(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=It.THROW_IF_NOT_FOUND,i=$.Default){return e===It||e===cr||e===rc?this:this._r3Injector.get(e,t,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Nc extends class M0{}{constructor(e){super(),this.moduleType=e,null!==Ft(e)&&function A0(n){const e=new Set;!function t(i){const r=Ft(i,!0),s=r.id;null!==s&&(function Xg(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${ie(e)} vs ${ie(e.name)}`)}(s,ur.get(s),i),ur.set(s,i));const o=pn(r.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new em(this.moduleType,e)}}function Fc(n){return e=>{setTimeout(n,void 0,e)}}const jt=class q0 extends v{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){var r,s,o;let a=e,l=t||(()=>null),c=i;if(e&&"object"==typeof e){const d=e;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=Fc(l),a&&(a=Fc(a)),c&&(c=Fc(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof O&&e.add(u),u}};function Q0(){return this._results[Qi()]()}class kc{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Qi(),i=kc.prototype;i[t]||(i[t]=Q0)}get changes(){return this._changes||(this._changes=new jt)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const i=this;i.dirty=!1;const r=Vt(e);(this._changesDetected=!function $D(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=e[i];if(t&&(r=t(r),s=t(s)),s!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Pn=(()=>{class n{}return n.__NG_ELEMENT_ID__=Z0,n})();const Y0=Pn,K0=class extends Y0{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=$r(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(t)),zr(t,i,e),new Jr(i)}};function Z0(){return bo(ke(),_())}function bo(n,e){return 4&n.type?new K0(e,n,lr(n,e)):null}let Dn=(()=>{class n{}return n.__NG_ELEMENT_ID__=X0,n})();function X0(){return lm(ke(),_())}const J0=Dn,om=class extends J0{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return lr(this._hostTNode,this._hostLView)}get injector(){return new Ni(this._hostTNode,this._hostLView)}get parentInjector(){const e=js(this._hostTNode,this._hostLView);if(qd(e)){const t=Oi(e,this._hostLView),i=xi(e);return new Ni(t[1].data[i+8],t)}return new Ni(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=am(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){const r=e.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(e,t,i,r,s){const o=e&&!function Ar(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new Oc(Ye(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(cr,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function lD(n){return Kt(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new om(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function Mw(n,e,t,i){const r=10+i,s=t.length;i>0&&(t[r-1][4]=e),i<s-10?(e[4]=t[r],ih(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function Aw(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=128}(r,i,o,s);const a=Sl(s,o),l=i[z],c=Ys(l,o[7]);return null!==c&&function Sw(n,e,t,i,r,s){i[0]=r,i[6]=e,Lr(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),ih(Lc(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=am(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=El(this._lContainer,t);i&&(zs(Lc(this._lContainer),t),Mh(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=El(this._lContainer,t);return i&&null!=zs(Lc(this._lContainer),t)?new Jr(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function am(n){return n[8]}function Lc(n){return n[8]||(n[8]=[])}function lm(n,e){let t;const i=e[n.index];if(Kt(i))t=i;else{let r;if(8&n.type)r=Pe(i);else{const s=e[z];r=s.createComment("");const o=wt(n,e);ci(s,Ys(s,o),r,function Ow(n,e){return be(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=function Of(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}(i,e,r,n),oo(e,t)}return new om(t,n,e)}class Vc{constructor(e){this.queryList=e,this.matches=null}clone(){return new Vc(this.queryList)}setDirty(){this.queryList.setDirty()}}class Bc{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const i=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let s=0;s<i;s++){const o=t.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new Bc(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==mm(e,t).matches&&this.queries[t].setDirty()}}class cm{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class jc{constructor(e=[]){this.queries=e}elementStart(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let i=0;i<this.length;i++){const r=null!==t?t.length:0,s=this.getByIndex(i).embeddedTView(e,r);s&&(s.indexInDeclarationView=i,null!==t?t.push(s):t=[s])}return null!==t?new jc(t):null}template(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Hc{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new Hc(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(e,t,nI(t,s)),this.matchTNodeWithReadOption(e,t,$s(t,e,s,!1,!1))}else i===Pn?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,$s(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===vn||r===Dn||r===Pn&&4&t.type)this.addMatch(t.index,-2);else{const s=$s(t,e,r,!1,!1);null!==s&&this.addMatch(t.index,s)}else this.addMatch(t.index,i)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function nI(n,e){const t=n.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===e)return t[i+1];return null}function rI(n,e,t,i){return-1===t?function iI(n,e){return 11&n.type?lr(n,e):4&n.type?bo(n,e):null}(e,n):-2===t?function sI(n,e,t){return t===vn?lr(e,n):t===Pn?bo(e,n):t===Dn?lm(e,n):void 0}(n,e,i):Tr(n,n[1],t,e)}function um(n,e,t,i){const r=e[19].queries[i];if(null===r.matches){const s=n.data,o=t.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:rI(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function $c(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=um(n,e,r,t);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=e[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&$c(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];$c(f[1],f,c,i)}}}}}return i}function dm(n){const e=_(),t=ee(),i=Vd();Za(i+1);const r=mm(t,i);if(n.dirty&&Rd(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?$c(t,e,i,[]):um(t,e,r,i);n.reset(s,y0),n.notifyOnChanges()}return!0}return!1}function hm(n,e,t){const i=ee();i.firstCreatePass&&(function gm(n,e,t){null===n.queries&&(n.queries=new jc),n.queries.track(new Hc(e,t))}(i,new cm(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),function pm(n,e,t){const i=new kc(4==(4&t));Sf(n,e,i,i.destroy),null===e[19]&&(e[19]=new Bc),e[19].queries.push(new Vc(i))}(i,_(),e)}function mm(n,e){return n.queries.getByIndex(e)}function Io(...n){}const Om=new K("Application Initializer");let Qc=(()=>{class n{constructor(t){this.appInits=t,this.resolve=Io,this.reject=Io,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Dc(s))t.push(s);else if(wC(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(w(Om,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const is=new K("AppId",{providedIn:"root",factory:function Nm(){return`${Yc()}${Yc()}${Yc()}`}});function Yc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Fm=new K("Platform Initializer"),To=new K("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),II=new K("appBootstrapListener"),Gn=new K("LocaleId",{providedIn:"root",factory:()=>dh(Gn,$.Optional|$.SkipSelf)||function TI(){return"undefined"!=typeof $localize&&$localize.locale||mo}()}),RI=(()=>Promise.resolve(0))();function Kc(n){"undefined"==typeof Zone?RI.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Se{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new jt(!1),this.onMicrotaskEmpty=new jt(!1),this.onStable=new jt(!1),this.onError=new jt(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function xI(){let n=se.requestAnimationFrame,e=se.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function FI(n){const e=()=>{!function NI(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(se,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Xc(n),n.isCheckStableRunning=!0,Zc(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Xc(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return km(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),Lm(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return km(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),Lm(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Xc(n),Zc(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,i,r,s)=>(t.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Se.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Se.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,OI,Io,Io);try{return s.runTask(o,t,i)}finally{s.cancelTask(o)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const OI={};function Zc(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Xc(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function km(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Lm(n){n._nesting--,Zc(n)}class kI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new jt,this.onMicrotaskEmpty=new jt,this.onStable=new jt,this.onError=new jt}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}let Jc=(()=>{class n{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:()=>{Se.assertNotInAngularZone(),Kc(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Kc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.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,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:r})}whenStable(t,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(w(Se))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),LI=(()=>{class n{constructor(){this._applications=new Map,eu.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}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,i=!0){return eu.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class VI{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let eu=new VI,pi=null;const Vm=new K("AllowMultipleToken"),Bm=new K("PlatformOnDestroy");function jm(n,e,t=[]){const i=`Platform: ${e}`,r=new K(i);return(s=[])=>{let o=tu();if(!o||o.injector.get(Vm,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function $I(n){if(pi&&!pi.get(Vm,!1))throw new I(400,"");pi=n;const e=n.get(Hm),t=n.get(Fm,null);t&&t.forEach(i=>i())}(function UI(n=[],e){return It.create({name:e,providers:[{provide:sc,useValue:"platform"},{provide:Bm,useValue:()=>pi=null},...n]})}(a,i))}return function zI(n){const e=tu();if(!e)throw new I(401,"");return e}()}}function tu(){var n;return null!==(n=null==pi?void 0:pi.get(Hm))&&void 0!==n?n:null}let Hm=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function WI(n,e){let t;return t="noop"===n?new kI:("zone.js"===n?void 0:n)||new Se({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:Se,useValue:a}];return a.run(()=>{const c=It.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(Hr,null);if(!d)throw new I(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{nu(this._modules,u),h.unsubscribe()})}),function GI(n,e,t){try{const i=t();return Dc(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(Qc);return h.runInitializers(),h.donePromise.then(()=>(function mS(n){_t(n,"Expected localeId to be defined"),"string"==typeof n&&(Eg=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Gn,mo)||mo),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=$m({},i);return function jI(n,e,t){const i=new Nc(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(Mo);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new I(403,"");t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new I(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(Bm,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(w(It))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function $m(n,e){return Array.isArray(e)?e.reduce($m,n):Object.assign(Object.assign({},n),e)}let Mo=(()=>{class n{constructor(t,i,r,s){this._zone=t,this._injector=i,this._exceptionHandler=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new X(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new X(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Se.assertNotInAngularZone(),Kc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{Se.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=vs(o,a.pipe(function Av(){return n=>pd()(Sa(Mv)(n))}()))}bootstrap(t,i){if(!this._initStatus.done)throw new I(405,"");let r;r=t instanceof qg?t:this._injector.get(fi).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const s=function HI(n){return n.isBoundToModule}(r)?void 0:this._injector.get(cr),a=r.create(It.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Jc,null),u=c&&a.injector.get(LI);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),nu(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new I(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;nu(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(II,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(w(Se),w(It),w(Hr),w(Qc))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function nu(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let Um=!0,qm=(()=>{class n{}return n.__NG_ELEMENT_ID__=YI,n})();function YI(n){return function KI(n,e,t){if(Ts(n)&&!t){const i=Et(n.index,e);return new Jr(i,i)}return 47&n.type?new Jr(e[16],e):null}(ke(),_(),16==(16&n))}const cT=jm(null,"core",[]);let uT=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(w(Mo))},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({}),n})(),xo=null;function qn(){return xo}const fe=new K("DocumentToken"),_y="browser";function vy(n){return n===_y}let dA=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({}),n})();class bu extends class gA extends class fT{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function hT(n){xo||(xo=n)}(new bu)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function mA(){return cs=cs||document.querySelector("base"),cs?cs.getAttribute("href"):null}();return null==t?null:function yA(n){Uo=Uo||document.createElement("a"),Uo.setAttribute("href",n);const e=Uo.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){cs=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function rM(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,s]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let Uo,cs=null;const Ty=new K("TRANSITION_ID"),vA=[{provide:Om,useFactory:function _A(n,e,t){return()=>{t.get(Qc).donePromise.then(()=>{const i=qn(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[Ty,fe,It],multi:!0}];class Cu{static init(){!function BI(n){eu=n}(new Cu)}addToWindow(e){se.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},se.getAllAngularTestabilities=()=>e.getAllTestabilities(),se.getAllAngularRootElements=()=>e.getAllRootElements(),se.frameworkStabilizers||(se.frameworkStabilizers=[]),se.frameworkStabilizers.push(i=>{const r=se.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,i){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:i?qn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let DA=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const Wo=new K("EventManagerPlugins");let Go=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(w(Wo),w(Se))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class My{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=qn().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let Ay=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),us=(()=>{class n extends Ay{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(Py),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Py))}}return n.\u0275fac=function(t){return new(t||n)(w(fe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();function Py(n){qn().remove(n)}const Su={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/",math:"http://www.w3.org/1998/MathML/"},Iu=/%COMP%/g;function qo(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?qo(n,r,t):(r=r.replace(Iu,n),t.push(r))}return t}function Oy(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Qo=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Tu(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case Qt.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new IA(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case Qt.ShadowDom:return new TA(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=qo(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(w(Go),w(us),w(is))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class Tu{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(Su[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,i){e&&e.insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const s=Su[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=Su[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(Ct.DashCase|Ct.Important)?e.style.setProperty(t,i,r&Ct.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&Ct.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Oy(i)):this.eventManager.addEventListener(e,t,Oy(i))}}class IA extends Tu{constructor(e,t,i,r){super(e),this.component=i;const s=qo(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function bA(n){return"_ngcontent-%COMP%".replace(Iu,n)}(r+"-"+i.id),this.hostAttr=function CA(n){return"_nghost-%COMP%".replace(Iu,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class TA extends Tu{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=qo(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let MA=(()=>{class n extends My{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(w(fe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const Fy=["alt","control","meta","shift"],PA={"\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"},ky={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"},RA={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let xA=(()=>{class n extends My{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>qn().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(Fy.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(t){let i="",r=function OA(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&ky.hasOwnProperty(e)&&(e=ky[e]))}return PA[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Fy.forEach(s=>{s!=r&&RA[s](t)&&(i+=s+".")}),i+=r,i}static eventCallback(t,i,r){return s=>{n.getEventFullKey(s)===t&&r.runGuarded(()=>i(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(w(fe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const LA=jm(cT,"browser",[{provide:To,useValue:_y},{provide:Fm,useValue:function NA(){bu.makeCurrent(),Cu.init()},multi:!0},{provide:fe,useFactory:function kA(){return function rD(n){$a=n}(document),document},deps:[]}]),VA=[{provide:sc,useValue:"root"},{provide:Hr,useFactory:function FA(){return new Hr},deps:[]},{provide:Wo,useClass:MA,multi:!0,deps:[fe,Se,To]},{provide:Wo,useClass:xA,multi:!0,deps:[fe]},{provide:Qo,useClass:Qo,deps:[Go,us,is]},{provide:Xr,useExisting:Qo},{provide:Ay,useExisting:us},{provide:us,useClass:us,deps:[fe]},{provide:Jc,useClass:Jc,deps:[Se]},{provide:Go,useClass:Go,deps:[Wo,Se]},{provide:class fA{},useClass:DA,deps:[]}];let Ly=(()=>{class n{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(t){return{ngModule:n,providers:[{provide:is,useValue:t.appId},{provide:Ty,useExisting:is},vA]}}}return n.\u0275fac=function(t){return new(t||n)(w(n,12))},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({providers:VA,imports:[dA,uT]}),n})();function Yn(...n){let e=n[n.length-1];return F(e)?(n.pop(),wa(n,e)):Ca(n)}"undefined"!=typeof window&&window;class eP extends O{constructor(e,t){super()}schedule(e,t=0){return this}}class Yo extends eP{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let zy=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,r){return new this.SchedulerAction(this,t).schedule(r,i)}}return n.now=()=>Date.now(),n})();class on extends zy{constructor(e,t=zy.now){super(e,()=>on.delegate&&on.delegate!==this?on.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return on.delegate&&on.delegate!==this?on.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}new class nP extends on{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class tP extends Yo{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let rP=1;const sP=Promise.resolve(),Ko={};function Uy(n){return n in Ko&&(delete Ko[n],!0)}const Wy={setImmediate(n){const e=rP++;return Ko[e]=!0,sP.then(()=>Uy(e)&&n()),e},clearImmediate(n){Uy(n)}};new class aP extends on{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class oP extends Yo{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=Wy.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(Wy.clearImmediate(t),e.scheduled=void 0)}});new on(Yo);class pP{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new gP(e,this.predicate,this.thisArg))}}class gP extends A{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}let Au;try{Au="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Au=!1}let ds=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?vy(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&&!Au)&&"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 n.\u0275fac=function(t){return new(t||n)(w(To))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Xy(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const xP=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),OP=new X(n=>n.complete());function e_(n){return n?function NP(n){return new X(e=>n.schedule(()=>e.complete()))}(n):OP}function xu(n){return e=>0===n?e_():e.lift(new FP(n))}class FP{constructor(e){if(this.total=e,this.total<0)throw new xP}call(e,t){return t.subscribe(new kP(e,this.total))}}class kP extends A{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}function Xo(n){return e=>e.lift(new LP(n))}class LP{constructor(e){this.notifier=e}call(e,t){const i=new VP(e),r=_s(this.notifier,new ms(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class VP extends ys{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let Nu=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Xy()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(t),Xy()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(t){return new(t||n)(w(fe),w(ds))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const rR=new class iR extends on{}(class nR extends Yo{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}});function oR({error:n,subscriber:e}){e.error(n)}class zt{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return Yn(this.value);case"E":return function sR(n,e){return new X(e?t=>e.schedule(oR,0,{error:n,subscriber:t}):t=>t.error(n))}(this.error);case"C":return e_()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new zt("N",e):zt.undefinedValueNotification}static createError(e){return new zt("E",void 0,e)}static createComplete(){return zt.completeNotification}}zt.completeNotification=new zt("C"),zt.undefinedValueNotification=new zt("N",void 0);class Jo extends A{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Jo.dispatch,this.delay,new lR(e,this.destination)))}_next(e){this.scheduleMessage(zt.createNext(e))}_error(e){this.scheduleMessage(zt.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(zt.createComplete()),this.unsubscribe()}}class lR{constructor(e,t){this.notification=e,this.destination=t}}class cR extends v{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new uR(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new Fe;if(this.isStopped||this.hasError?o=O.EMPTY:(this.observers.push(e),o=new cn(this,e)),r&&e.add(e=new Jo(e,r)),t)for(let a=0;a<s&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<s&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||rR).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(e-r[o].time<i);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&r.splice(0,o),r}}class uR{constructor(e,t){this.time=e,this.value=t}}function Fu(n,e){return"function"==typeof e?t=>t.pipe(Fu((i,r)=>Ea(n(i,r)).pipe(R((s,o)=>e(i,s,r,o))))):t=>t.lift(new dR(n))}class dR{constructor(e){this.project=e}call(e,t){return t.subscribe(new hR(e,this.project))}}class hR extends ys{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new ms(this),r=this.destination;r.add(i),this.innerSubscription=_s(e,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const ea={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return ea.schedule(n,0);if(void 0===window.requestAnimationFrame)return ea.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let ku;function wR(n,e,t){let i=t;return function pR(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function mR(n,e){if(!ku){const t=Element.prototype;ku=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&ku.call(n,e)}(n,r)||(i=s,0))),i}class bR{constructor(e,t){this.componentFactory=t.get(fi).resolveComponentFactory(e)}create(e){return new CR(this.componentFactory,e)}}class CR{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new cR(1),this.events=this.eventEmitters.pipe(Fu(i=>vs(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(Se),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=ea.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function yR(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=It.create({providers:[],parent:this.injector}),i=function DR(n,e){const t=n.childNodes,i=e.map(()=>[]);let r=-1;e.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],l=wR(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(qm),this.implementsOnChanges=function gR(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Mo).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:i,templateName:r})=>e.instance[i].pipe(R(o=>({name:r,value:o}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=ea.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const r=this.unchangedInputs.has(e),s=r?void 0:this.getInputValue(e);this.inputChanges[e]=new Id(s,t,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class SR extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class c_{}const xn="*";function u_(n,e=null){return{type:2,steps:n,options:e}}function d_(n){return{type:6,styles:n,offset:null}}function h_(n){Promise.resolve(null).then(n)}class fs{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){h_(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class f_{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,i=0,r=0;const s=this.players.length;0==s?h_(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}const J=!1;function p_(n){return new I(3e3,J)}function ax(){return"undefined"!=typeof window&&void 0!==window.document}function Vu(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Kn(n){switch(n.length){case 0:return new fs;case 1:return n[0];default:return new f_(n)}}function g_(n,e,t,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,f=h&&c||{};Object.keys(u).forEach(p=>{let g=p,y=u[p];if("offset"!==p)switch(g=e.normalizePropertyName(g,o),y){case"!":y=r[p];break;case xn:y=s[p];break;default:y=e.normalizeStyleValue(p,g,y,o)}f[g]=y}),h||a.push(f),c=f,l=d}),o.length)throw function KR(n){return new I(3502,J)}();return a}function Bu(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&ju(t,"start",n)));break;case"done":n.onDone(()=>i(t&&ju(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&ju(t,"destroy",n)))}}function ju(n,e,t){const i=t.totalTime,s=Hu(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==i?n.totalTime:i,!!t.disabled),o=n._data;return null!=o&&(s._data=o),s}function Hu(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Tt(n,e,t){let i;return n instanceof Map?(i=n.get(e),i||n.set(e,i=t)):(i=n[e],i||(i=n[e]=t)),i}function m_(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let $u=(n,e)=>!1,y_=(n,e,t)=>[],__=null;function zu(n){const e=n.parentNode||n.host;return e===__?null:e}(Vu()||"undefined"!=typeof Element)&&(ax()?(__=(()=>document.documentElement)(),$u=(n,e)=>{for(;e;){if(e===n)return!0;e=zu(e)}return!1}):$u=(n,e)=>n.contains(e),y_=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let vi=null,v_=!1;function D_(n){vi||(vi=function cx(){return"undefined"!=typeof document?document.body:null}()||{},v_=!!vi.style&&"WebkitAppearance"in vi.style);let e=!0;return vi.style&&!function lx(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in vi.style,!e&&v_&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in vi.style)),e}const w_=$u,E_=y_;let b_=(()=>{class n{validateStyleProperty(t){return D_(t)}matchesElement(t,i){return!1}containsElement(t,i){return w_(t,i)}getParentElement(t){return zu(t)}query(t,i,r){return E_(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new fs(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),Uu=(()=>{class n{}return n.NOOP=new b_,n})();const Wu="ng-enter",na="ng-leave",ia="ng-trigger",ra=".ng-trigger",S_="ng-animating",Gu=".ng-animating";function Di(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:qu(parseFloat(e[1]),e[2])}function qu(n,e){return"s"===e?1e3*n:n}function sa(n,e,t){return n.hasOwnProperty("duration")?n:function hx(n,e,t){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(p_()),{duration:0,delay:0,easing:""};r=qu(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=qu(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(function MR(){return new I(3100,J)}()),a=!0),s<0&&(e.push(function AR(){return new I(3101,J)}()),a=!0),a&&e.splice(l,0,p_())}return{duration:r,delay:s,easing:o}}(n,e,t)}function fr(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function Zn(n,e,t={}){if(e)for(let i in n)t[i]=n[i];else fr(n,t);return t}function T_(n,e,t){return t?e+":"+t+";":""}function M_(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=T_(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=T_(0,gx(t),n.style[t]));n.setAttribute("style",e)}function wn(n,e,t){n.style&&(Object.keys(e).forEach(i=>{const r=Yu(i);t&&!t.hasOwnProperty(i)&&(t[i]=n.style[r]),n.style[r]=e[i]}),Vu()&&M_(n))}function wi(n,e){n.style&&(Object.keys(e).forEach(t=>{const i=Yu(t);n.style[i]=""}),Vu()&&M_(n))}function ps(n){return Array.isArray(n)?1==n.length?n[0]:u_(n):n}const Qu=new RegExp("{{\\s*(.+?)\\s*}}","g");function A_(n){let e=[];if("string"==typeof n){let t;for(;t=Qu.exec(n);)e.push(t[1]);Qu.lastIndex=0}return e}function oa(n,e,t){const i=n.toString(),r=i.replace(Qu,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function RR(n){return new I(3003,J)}()),a=""),a.toString()});return r==i?n:r}function aa(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const px=/-+([a-z0-9])/g;function Yu(n){return n.replace(px,(...e)=>e[1].toUpperCase())}function gx(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Mt(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function xR(n){return new I(3004,J)}()}}function P_(n,e){return window.getComputedStyle(n)[e]}function wx(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function Ex(n,e,t){if(":"==n[0]){const l=function bx(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(function GR(n){return new I(3016,J)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function WR(n){return new I(3015,J)}()),e;const r=i[1],s=i[2],o=i[3];e.push(R_(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(R_(o,r))}(i,t,e)):t.push(n),t}const da=new Set(["true","1"]),ha=new Set(["false","0"]);function R_(n,e){const t=da.has(n)||ha.has(n),i=da.has(e)||ha.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?da.has(n):ha.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?da.has(e):ha.has(e)),o&&a}}const Cx=new RegExp("s*:selfs*,?","g");function Ku(n,e,t,i){return new Sx(n).build(e,t,i)}class Sx{constructor(e){this._driver=e}build(e,t,i){const r=new Mx(t);this._resetContextStyleTimingState(r);const s=Mt(this,ps(e),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function NR(){return new I(3006,J)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(function FR(){return new I(3007,J)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(fa(a)){const l=a;Object.keys(l).forEach(c=>{A_(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(aa(s.values()),t.errors.push(function kR(n,e){return new I(3008,J)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=Mt(this,ps(e.animation),t);return{type:1,matchers:wx(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Ei(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>Mt(this,i,t)),options:Ei(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=Mt(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:Ei(e.options)}}visitAnimate(e,t){const i=function Px(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Zu(sa(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Zu(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=sa(t,e);return Zu(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:d_({});if(5==s.type)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=d_(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==xn?i.push(o):t.errors.push(function LR(n){return new I(3002,J)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(fa(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void t.unsupportedCSSPropertiesFound.add(a);const l=t.collectedStyles[t.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(t.errors.push(function VR(n,e,t,i,r){return new I(3010,J)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),t.options&&function fx(n,e,t){const i=e.params||{},r=A_(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function PR(n){return new I(3001,J)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function BR(){return new I(3011,J)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(D=>{const m=this._makeStyleAst(D,t);let b=null!=m.offset?m.offset:function Ax(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(fa(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(fa(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(m.styles),M=0;return null!=b&&(s++,M=m.offset=b),l=l||M<0||M>1,a=a||M<c,c=M,o.push(M),m});l&&t.errors.push(function jR(){return new I(3012,J)}()),a&&t.errors.push(function HR(){return new I(3200,J)}());const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push(function $R(){return new I(3202,J)}()):0==s&&(h=1/(d-1));const f=d-1,p=t.currentTime,g=t.currentAnimateTimings,y=g.duration;return u.forEach((D,m)=>{const b=h>0?m==f?1:h*m:o[m],M=b*y;t.currentTime=p+g.delay+M,g.duration=M,this._validateStyleAst(D,t),D.offset=b,i.styles.push(D)}),i}visitReference(e,t){return{type:8,animation:Mt(this,ps(e.animation),t),options:Ei(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Ei(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Ei(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function Ix(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(Cx,"")),n=n.replace(/@\*/g,ra).replace(/@\w+/g,t=>ra+"-"+t.substr(1)).replace(/:animating/g,Gu),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,Tt(t.collectedStyles,t.currentQuerySelector,{});const a=Mt(this,ps(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Ei(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function zR(){return new I(3013,J)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:sa(e.timings,t.errors,!0);return{type:12,animation:Mt(this,ps(e.animation),t),timings:i,options:null}}}class Mx{constructor(e){this.errors=e,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,this.unsupportedCSSPropertiesFound=new Set}}function fa(n){return!Array.isArray(n)&&"object"==typeof n}function Ei(n){return n?(n=fr(n)).params&&(n.params=function Tx(n){return n?fr(n):null}(n.params)):n={},n}function Zu(n,e,t){return{duration:n,delay:e,easing:t}}function Xu(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class pa{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const Ox=new RegExp(":enter","g"),Fx=new RegExp(":leave","g");function Ju(n,e,t,i,r,s={},o={},a,l,c=[]){return(new kx).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class kx{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new pa;const d=new ed(e,t,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Mt(this,i,d);const h=d.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let p=h.length-1;p>=0;p--){const g=h[p];if(g.element===t){f=g;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[Xu(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime;const o=null!=i.duration?Di(i.duration):null,a=null!=i.delay?Di(i.delay):null;return 0!==o&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Mt(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ga);const o=Di(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Mt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?Di(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Mt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return sa(t.params?oa(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?Di(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ga);let o=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),Mt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Mt(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const ga={};class ed{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ga,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ma(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=Di(i.duration)),null!=i.delay&&(r.delay=Di(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=oa(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){const r=t||this.element,s=new ed(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=ga,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},s=new Lx(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(Ox,"."+this._enterClassName)).replace(Fx,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function UR(n){return new I(3014,J)}()),a}}class ma{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new ma(this._driver,e,t||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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||xn,this._currentKeyframe[t]=xn}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function Vx(n,e){const t={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{t[s]=xn})):Zn(r,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=oa(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:xn),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(i=>{this._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const i=this._styleSummary[t],r=e._styleSummary[t];(!i||r.time>i.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Zn(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==xn&&t.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?aa(e.values()):[],o=t.size?aa(t.values()):[];if(i){const a=r[0],l=fr(a);a.offset=0,l.offset=1,r=[a,l]}return Xu(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class Lx extends ma{constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=i+t,a=t/o,l=Zn(e[0],!1);l.offset=0,s.push(l);const c=Zn(e[0],!1);c.offset=N_(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=Zn(e[d],!1);h.offset=N_((t+h.offset*i)/o),s.push(h)}i=o,t=0,r="",e=s}return Xu(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function N_(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class td{}class Bx extends td{normalizePropertyName(e,t){return Yu(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if(jx[t]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function OR(n,e){return new I(3005,J)}())}return o+s}}const jx=(()=>function Hx(n){const e={};return n.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 F_(n,e,t,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const nd={};class k_{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function $x(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){const r=this._stateStyles["*"],s=this._stateStyles[e],o=r?r.buildStyles(t,i):{};return s?s.buildStyles(t,i):o}build(e,t,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||nd,p=this.buildStyles(i,a&&a.params||nd,d),g=l&&l.params||nd,y=this.buildStyles(r,g,d),D=new Set,m=new Map,b=new Map,M="void"===r,q={params:Object.assign(Object.assign({},h),g)},pe=u?[]:Ju(e,t,this.ast.animation,s,o,p,y,q,c,d);let ve=0;if(pe.forEach(Pt=>{ve=Math.max(Pt.duration+Pt.delay,ve)}),d.length)return F_(t,this._triggerName,i,r,M,p,y,[],[],m,b,ve,d);pe.forEach(Pt=>{const Rt=Pt.element,gr=Tt(m,Rt,{});Pt.preStyleProps.forEach(an=>gr[an]=!0);const On=Tt(b,Rt,{});Pt.postStyleProps.forEach(an=>On[an]=!0),Rt!==t&&D.add(Rt)});const At=aa(D.values());return F_(t,this._triggerName,i,r,M,p,y,pe,At,m,b,ve)}}class zx{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i={},r=fr(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=oa(l,r,t));const c=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,c,l,t),i[c]=l})}}),i}}class Wx{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states={},t.states.forEach(r=>{this.states[r.name]=new zx(r.style,r.options&&r.options.params||{},i)}),L_(this.states,"true","1"),L_(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new k_(e,r,this.states))}),this.fallbackTransition=function Gx(n,e,t){return new k_(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function L_(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const qx=new pa;class Qx{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(e,t){const i=[],s=Ku(this._driver,t,i,[]);if(i.length)throw function ZR(n){return new I(3503,J)}();this._animations[e]=s}_buildPlayer(e,t,i){const r=e.element,s=g_(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const r=[],s=this._animations[e];let o;const a=new Map;if(s?(o=Ju(this._driver,t,s,Wu,na,{},{},i,qx,r),o.forEach(u=>{const d=Tt(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function XR(){return new I(3300,J)}()),o=[]),r.length)throw function JR(n){return new I(3504,J)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,xn)})});const c=Kn(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[e]=c,c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw function ex(n){return new I(3301,J)}();return t}listen(e,t,i,r){const s=Hu(t,"","","");return Bu(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const V_="ng-animate-queued",id="ng-animate-disabled",Jx=[],B_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},eO={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ut="__ng_removed";class rd{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function rO(n){return null!=n?n:null}(i?e.value:e),i){const s=fr(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const gs="void",sd=new rd(gs);class tO{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Wt(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.hasOwnProperty(t))throw function tx(n,e){return new I(3302,J)}();if(null==i||0==i.length)throw function nx(n){return new I(3303,J)}();if(!function sO(n){return"start"==n||"done"==n}(i))throw function ix(n,e){return new I(3400,J)}();const s=Tt(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=Tt(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Wt(e,ia),Wt(e,ia+"-"+t),a[t]=sd),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw function rx(n){return new I(3401,J)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new od(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Wt(e,ia),Wt(e,ia+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const c=new rd(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[t]=c,l||(l=sd),c.value!==gs&&l.value===c.value){if(!function lO(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){const s=t[r];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}(l.params,c.params)){const g=[],y=s.matchStyles(l.value,l.params,g),D=s.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{wi(e,y),wn(e,D)})}return}const h=Tt(this._engine.playersByElement,e,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let f=s.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(Wt(e,V_),o.onStart(()=>{pr(e,V_)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);const y=this._engine.playersByElement.get(e);if(y){let D=y.indexOf(o);D>=0&&y.splice(D,1)}}),this.players.push(o),h.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,i)=>{delete t[e]}),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,ra,!0);i.forEach(r=>{if(r[Ut])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){const s=this._engine.statesByElement.get(e),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(e,l,gs,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&Kn(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const r=new Set;t.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||sd,u=new rd(gs),d=new od(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{const s=e[Ut];(!s||s===B_)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){Wt(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=Hu(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Bu(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(i=>i.element===e)||t,t}}class nO{constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,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=(r,s)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new tO(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,t)){i.splice(a+1,0,e),o=!0;break}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&t.add(a)}}}return t}trigger(e,t,i,r){if(ya(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!ya(t))return;const s=t[Ut];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Wt(e,id)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),pr(e,id))}removeNode(e,t,i,r){if(ya(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),i){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[Ut]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return ya(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,ra,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Gu,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Kn(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[Ut];if(i&&i.setForRemoval){if(e[Ut]=B_,i.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains(id))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Wt(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{t=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?Kn(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function sx(n){return new I(3402,J)}()}_flushAnimations(e,t){const i=new pa,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(T=>{u.add(T);const P=this.driver.query(T,".ng-animate-queued",!0);for(let k=0;k<P.length;k++)u.add(P[k])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=$_(h,this.collectedEnterElements),p=new Map;let g=0;f.forEach((T,P)=>{const k=Wu+g++;p.set(P,k),T.forEach(ne=>Wt(ne,k))});const y=[],D=new Set,m=new Set;for(let T=0;T<this.collectedLeaveElements.length;T++){const P=this.collectedLeaveElements[T],k=P[Ut];k&&k.setForRemoval&&(y.push(P),D.add(P),k.hasAnimation?this.driver.query(P,".ng-star-inserted",!0).forEach(ne=>D.add(ne)):m.add(P))}const b=new Map,M=$_(h,Array.from(D));M.forEach((T,P)=>{const k=na+g++;b.set(P,k),T.forEach(ne=>Wt(ne,k))}),e.push(()=>{f.forEach((T,P)=>{const k=p.get(P);T.forEach(ne=>pr(ne,k))}),M.forEach((T,P)=>{const k=b.get(P);T.forEach(ne=>pr(ne,k))}),y.forEach(T=>{this.processLeaveNode(T)})});const q=[],pe=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(k=>{const ne=k.player,Ue=k.element;if(q.push(ne),this.collectedEnterElements.length){const lt=Ue[Ut];if(lt&&lt.setForMove){if(lt.previousTriggersValues&&lt.previousTriggersValues.has(k.triggerName)){const bi=lt.previousTriggersValues.get(k.triggerName),ni=this.statesByElement.get(k.element);ni&&ni[k.triggerName]&&(ni[k.triggerName].value=bi)}return void ne.destroy()}}const En=!d||!this.driver.containsElement(d,Ue),xt=b.get(Ue),ti=p.get(Ue),De=this._buildInstruction(k,i,ti,xt,En);if(De.errors&&De.errors.length)return void pe.push(De);if(En)return ne.onStart(()=>wi(Ue,De.fromStyles)),ne.onDestroy(()=>wn(Ue,De.toStyles)),void r.push(ne);if(k.isFallbackTransition)return ne.onStart(()=>wi(Ue,De.fromStyles)),ne.onDestroy(()=>wn(Ue,De.toStyles)),void r.push(ne);const uv=[];De.timelines.forEach(lt=>{lt.stretchStartingKeyframe=!0,this.disabledNodes.has(lt.element)||uv.push(lt)}),De.timelines=uv,i.append(Ue,De.timelines),o.push({instruction:De,player:ne,element:Ue}),De.queriedElements.forEach(lt=>Tt(a,lt,[]).push(ne)),De.preStyleProps.forEach((lt,bi)=>{const ni=Object.keys(lt);if(ni.length){let Ci=l.get(bi);Ci||l.set(bi,Ci=new Set),ni.forEach(ud=>Ci.add(ud))}}),De.postStyleProps.forEach((lt,bi)=>{const ni=Object.keys(lt);let Ci=c.get(bi);Ci||c.set(bi,Ci=new Set),ni.forEach(ud=>Ci.add(ud))})});if(pe.length){const T=[];pe.forEach(P=>{T.push(function ox(n,e){return new I(3505,J)}())}),q.forEach(P=>P.destroy()),this.reportError(T)}const ve=new Map,At=new Map;o.forEach(T=>{const P=T.element;i.has(P)&&(At.set(P,P),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,ve))}),r.forEach(T=>{const P=T.element;this._getPreviousPlayers(P,!1,T.namespaceId,T.triggerName,null).forEach(ne=>{Tt(ve,P,[]).push(ne),ne.destroy()})});const Pt=y.filter(T=>U_(T,l,c)),Rt=new Map;H_(Rt,this.driver,m,c,xn).forEach(T=>{U_(T,l,c)&&Pt.push(T)});const On=new Map;f.forEach((T,P)=>{H_(On,this.driver,new Set(T),l,"!")}),Pt.forEach(T=>{const P=Rt.get(T),k=On.get(T);Rt.set(T,Object.assign(Object.assign({},P),k))});const an=[],mr=[],yr={};o.forEach(T=>{const{element:P,player:k,instruction:ne}=T;if(i.has(P)){if(u.has(P))return k.onDestroy(()=>wn(P,ne.toStyles)),k.disabled=!0,k.overrideTotalTime(ne.totalTime),void r.push(k);let Ue=yr;if(At.size>1){let xt=P;const ti=[];for(;xt=xt.parentNode;){const De=At.get(xt);if(De){Ue=De;break}ti.push(xt)}ti.forEach(De=>At.set(De,Ue))}const En=this._buildAnimation(k.namespaceId,ne,ve,s,On,Rt);if(k.setRealPlayer(En),Ue===yr)an.push(k);else{const xt=this.playersByElement.get(Ue);xt&&xt.length&&(k.parentPlayer=Kn(xt)),r.push(k)}}else wi(P,ne.fromStyles),k.onDestroy(()=>wn(P,ne.toStyles)),mr.push(k),u.has(P)&&r.push(k)}),mr.forEach(T=>{const P=s.get(T.element);if(P&&P.length){const k=Kn(P);T.setRealPlayer(k)}}),r.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T<y.length;T++){const P=y[T],k=P[Ut];if(pr(P,na),k&&k.hasAnimation)continue;let ne=[];if(a.size){let En=a.get(P);En&&En.length&&ne.push(...En);let xt=this.driver.query(P,Gu,!0);for(let ti=0;ti<xt.length;ti++){let De=a.get(xt[ti]);De&&De.length&&ne.push(...De)}}const Ue=ne.filter(En=>!En.destroyed);Ue.length?oO(this,P,Ue):this.processLeaveNode(P)}return y.length=0,an.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();const P=this.players.indexOf(T);this.players.splice(P,1)}),T.play()}),an}elementContainsData(e,t){let i=!1;const r=t[Ut];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==gs;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){const s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==s,d=Tt(i,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}wi(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(p=>{const g=p.element;u.add(g);const y=g[Ut];if(y&&y.removedBeforeQueried)return new fs(p.duration,p.delay);const D=g!==l,m=function aO(n){const e=[];return z_(n,e),e}((i.get(g)||Jx).map(ve=>ve.getRealPlayer())).filter(ve=>!!ve.element&&ve.element===g),b=s.get(g),M=o.get(g),q=g_(0,this._normalizer,0,p.keyframes,b,M),pe=this._buildPlayer(p,q,m);if(p.subTimeline&&r&&d.add(g),D){const ve=new od(e,a,g);ve.setRealPlayer(pe),c.push(ve)}return pe});c.forEach(p=>{Tt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function iO(n,e,t){let i;if(n instanceof Map){if(i=n.get(e),i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&n.delete(e)}}else if(i=n[e],i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&delete n[e]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Wt(p,S_));const f=Kn(h);return f.onDestroy(()=>{u.forEach(p=>pr(p,S_)),wn(l,t.toStyles)}),d.forEach(p=>{Tt(r,p,[]).push(f)}),f}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new fs(e.duration,e.delay)}}class od{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new fs,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(i=>Bu(e,t,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Tt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function ya(n){return n&&1===n.nodeType}function j_(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function H_(n,e,t,i,r){const s=[];t.forEach(l=>s.push(j_(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=e.computeStyle(c,d,r);(!h||0==h.length)&&(c[Ut]=eO,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>j_(l,s[a++])),o}function $_(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const r=new Set(e),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function Wt(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function pr(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function oO(n,e,t){Kn(t).onDone(()=>n.processLeaveNode(e))}function z_(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof f_?z_(i.players,e):e.push(i)}}function U_(n,e,t){const i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}class _a{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new nO(e,t,i),this._timelineEngine=new Qx(e,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){const o=e+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=Ku(this._driver,s,l,[]);if(l.length)throw function YR(n,e){return new I(3404,J)}();a=function Ux(n,e,t){return new Wx(n,e,t)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i,r){this._transitionEngine.removeNode(e,t,r||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if("@"==i.charAt(0)){const[s,o]=m_(i);this._timelineEngine.command(s,t,o,r)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if("@"==i.charAt(0)){const[o,a]=m_(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let uO=(()=>{class n{constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&wn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(wn(this._element,this._initialStyles),this._endStyles&&(wn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(wi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wi(this._element,this._endStyles),this._endStyles=null),wn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ad(n){let e=null;const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];dO(r)&&(e=e||{},e[r]=n[r])}return e}function dO(n){return"display"===n||"position"===n}class W_{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,i){return e.animate(t,i)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(i=>{"offset"!=i&&(e[i]=this._finished?t[i]:P_(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class hO{validateStyleProperty(e){return D_(e)}matchesElement(e,t){return!1}containsElement(e,t){return w_(e,t)}getParentElement(e){return zu(e)}query(e,t,i){return E_(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(h=>h instanceof W_);(function mx(n,e){return 0===n||0===e})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),t=function yx(n,e,t){const i=Object.keys(t);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=t[a]}),o.length)for(var r=1;r<e.length;r++){let a=e[r];o.forEach(function(l){a[l]=P_(n,l)})}}return e}(e,t=t.map(h=>Zn(h,!1)),c);const d=function cO(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=ad(e[0]),e.length>1&&(i=ad(e[e.length-1]))):e&&(t=ad(e)),t||i?new uO(n,t,i):null}(e,t);return new W_(e,t,l,d)}}let fO=(()=>{class n extends c_{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Qt.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?u_(t):t;return G_(this._renderer,null,i,"register",[r]),new pO(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(w(Xr),w(fe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class pO extends class TR{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new gO(this._id,e,t||{},this._renderer)}}class gO{constructor(e,t,i,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return G_(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function G_(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const q_="@.disabled";let mO=(()=>{class n{constructor(t,i,r){this.delegate=t,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(t,i){const s=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new Q_("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,t,u.name,u)};return i.data.animation.forEach(l),new yO(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&t<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}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 n.\u0275fac=function(t){return new(t||n)(w(Xr),w(_a),w(Se))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class Q_{constructor(e,t,i){this.namespaceId=e,this.delegate=t,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==q_?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class yO extends Q_{constructor(e,t,i,r){super(t,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==q_?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.substr(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const r=function _O(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let s=t.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function vO(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}let DO=(()=>{class n extends _a{constructor(t,i,r){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(w(fe),w(Uu),w(td))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const Y_=new K("AnimationModuleType"),K_=[{provide:c_,useClass:fO},{provide:td,useFactory:function wO(){return new Bx}},{provide:_a,useClass:DO},{provide:Xr,useFactory:function EO(n,e,t){return new mO(n,e,t)},deps:[Qo,_a,Se]}],Z_=[{provide:Uu,useFactory:()=>new hO},{provide:Y_,useValue:"BrowserAnimations"},...K_],bO=[{provide:Uu,useClass:b_},{provide:Y_,useValue:"NoopAnimations"},...K_];let CO=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?bO:Z_}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({providers:Z_,imports:[Ly]}),n})();class Xn extends v{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Fe;return this._value}next(e){super.next(this._value=e)}}function X_(n,e,t){return t?X_(n,e).pipe(R(i=>Me(i)?t(...i):t(i))):new X(i=>{const r=(...o)=>i.next(1===o.length?o[0]:o);let s;try{s=n(r)}catch(o){return void i.error(o)}if(We(e))return()=>e(r,s)})}class J_ extends A{notifyNext(e,t,i,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class SO extends A{constructor(e,t,i){super(),this.parent=e,this.outerValue=t,this.outerIndex=i,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function ev(n,e,t,i,r=new SO(n,t,i)){if(!r.closed)return e instanceof X?e.subscribe(r):Da(e)(r)}const tv={};function Jn(...n){let e,t;return F(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Me(n[0])&&(n=n[0]),Ca(n,t).lift(new nv(e))}class nv{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new IO(e,this.resultSelector))}}class IO extends J_{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(tv),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let i=0;i<t;i++)this.add(ev(this,e[i],void 0,i))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,i){const r=this.values,o=this.toRespond?r[i]===tv?--this.toRespond:this.toRespond:0;r[i]=t,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}function iv(...n){return function TO(){return fd(1)}()(Yn(...n))}function rv(...n){const e=n[n.length-1];return F(e)?(n.pop(),t=>iv(n,t,e)):t=>iv(n,t)}function ei(){}class AO{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new PO(e,this.nextOrObserver,this.error,this.complete))}}class PO extends A{constructor(e,t,i,r){super(e),this._tapNext=ei,this._tapError=ei,this._tapComplete=ei,this._tapError=i||ei,this._tapComplete=r||ei,We(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||ei,this._tapError=t.error||ei,this._tapComplete=t.complete||ei)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function ld(...n){return e=>{let t;return"function"==typeof n[n.length-1]&&(t=n.pop()),e.lift(new xO(n,t))}}class xO{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new OO(e,this.observables,this.project))}}class OO extends J_{constructor(e,t,i){super(e),this.observables=t,this.project=i,this.toRespond=[];const r=t.length;this.values=new Array(r);for(let s=0;s<r;s++)this.toRespond.push(s);for(let s=0;s<r;s++)this.add(ev(this,t[s],void 0,s))}notifyNext(e,t,i){this.values[i]=t;const r=this.toRespond;if(r.length>0){const s=r.indexOf(i);-1!==s&&r.splice(s,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}class FO{constructor(e,t,i=!1){this.accumulator=e,this.seed=t,this.hasSeed=i}call(e,t){return t.subscribe(new kO(e,this.accumulator,this.seed,this.hasSeed))}}class kO extends A{constructor(e,t,i,r){super(e),this.accumulator=t,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let i;try{i=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}class VO{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new BO(e,this.compare,this.keySelector))}}class BO extends A{constructor(e,t,i){super(e),this.keySelector=i,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:r}=this;t=r?r(e):e}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}class $O{constructor(e){this.predicate=e}call(e,t){return t.subscribe(new zO(e,this.predicate))}}class zO extends A{constructor(e,t){super(e),this.predicate=t,this.skipping=!0,this.index=0}_next(e){const t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)}tryCallPredicate(e){try{const t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(t){this.destination.error(t)}}}const UO=["youtubeContainer"];let av=(()=>{class n{constructor(t,i){this._ngZone=t,this._youtubeContainer=new v,this._destroyed=new v,this._playerChanges=new Xn(void 0),this._videoId=new Xn(void 0),this._height=new Xn(390),this._width=new Xn(640),this._startSeconds=new Xn(void 0),this._endSeconds=new Xn(void 0),this._suggestedQuality=new Xn(void 0),this._playerVars=new Xn(void 0),this.ready=this._getLazyEmitter("onReady"),this.stateChange=this._getLazyEmitter("onStateChange"),this.error=this._getLazyEmitter("onError"),this.apiChange=this._getLazyEmitter("onApiChange"),this.playbackQualityChange=this._getLazyEmitter("onPlaybackQualityChange"),this.playbackRateChange=this._getLazyEmitter("onPlaybackRateChange"),this._isBrowser=vy(i)}get videoId(){return this._videoId.value}set videoId(t){this._videoId.next(t)}get height(){return this._height.value}set height(t){this._height.next(t||390)}get width(){return this._width.value}set width(t){this._width.next(t||640)}set startSeconds(t){this._startSeconds.next(t)}set endSeconds(t){this._endSeconds.next(t)}set suggestedQuality(t){this._suggestedQuality.next(t)}get playerVars(){return this._playerVars.value}set playerVars(t){this._playerVars.next(t)}ngOnInit(){if(!this._isBrowser)return;let t=Yn(!0);if(!window.YT){if(this.showBeforeIframeApiLoads)throw new Error("Namespace YT not found, cannot construct embedded youtube player. Please install the YouTube Player API Reference for iframe Embeds: https://developers.google.com/youtube/iframe_api_reference");const r=new v;this._existingApiReadyCallback=window.onYouTubeIframeAPIReady,window.onYouTubeIframeAPIReady=()=>{this._existingApiReadyCallback&&this._existingApiReadyCallback(),this._ngZone.run(()=>r.next(!0))},t=r.pipe(xu(1),rv(!1))}const i=function QO(n,e,t,i,r,s,o){const a=Jn([e,s]).pipe(ld(Jn([i,r])),R(([l,c])=>{const[u,d]=l,[h,f]=c;return u?{videoId:u,playerVars:d,width:h,height:f}:void 0}));return Jn([n,a,Yn(o)]).pipe(function YO(n){return Ge(function jO(...n){let e=null;return"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Me(n[0])&&(n=n[0].slice()),t=>t.lift.call(Ea([t,...n]),new nv(e))}(n),function HO(n){return e=>e.lift(new $O(n))}(([e,t])=>!t),R(([e])=>e))}(t),function NO(n,e){let t=!1;return arguments.length>=2&&(t=!0),function(r){return r.lift(new FO(n,e,t))}}(KO,void 0),function LO(n,e){return t=>t.lift(new VO(n,e))}())}(this._youtubeContainer,this._videoId,t,this._width,this._height,this._playerVars,this._ngZone).pipe(function MO(n,e,t){return function(r){return r.lift(new AO(n,e,t))}}(r=>{this._playerChanges.next(r)}),function qO(n){return Dv(e=>e?lv(e)?Yn(e):new X(t=>{let i=!1,r=!1;const s=o=>{r=!0,i||(o.target.removeEventListener("onReady",s),t.next(o.target))};return e.addEventListener("onReady",s),()=>{i=!0,r||n(e)}}).pipe(xu(1),rv(void 0)):Yn(void 0))}(r=>{lv(r)||r.destroy()}),Xo(this._destroyed),function RO(n){return n?Sa(()=>new v,n):Sa(new v)}());i.subscribe(r=>{this._player=r,r&&this._pendingPlayerState&&this._initializePlayer(r,this._pendingPlayerState),this._pendingPlayerState=void 0}),function WO(n,e,t){Jn([n,e,t]).subscribe(([i,r,s])=>i&&i.setSize(r,s))}(i,this._width,this._height),function GO(n,e){Jn([n,e]).subscribe(([t,i])=>t&&i&&t.setPlaybackQuality(i))}(i,this._suggestedQuality),function ZO(n,e,t,i,r,s){const o=Jn([t,i]).pipe(R(([u,d])=>({startSeconds:u,endSeconds:d}))),a=o.pipe(cd(n,u=>!!u&&!function XO(n){const e=n.getPlayerState();return-1!==e&&5!==e}(u))),l=e.pipe(cd(n,(u,d)=>!!u&&u.videoId!==d));vs(n.pipe(cd(Jn([e,o]),([u,d],h)=>!(!h||u==h.videoId&&!d.startSeconds&&!d.endSeconds))),l,a).pipe(ld(Jn([n,e,o,r])),R(([u,d])=>d),Xo(s)).subscribe(([u,d,h,f])=>{!d||!u||(u.videoId=d,u.cueVideoById(Object.assign({videoId:d,suggestedQuality:f},h)))})}(i,this._videoId,this._startSeconds,this._endSeconds,this._suggestedQuality,this._destroyed),i.connect()}createEventsBoundInZone(){return{}}ngAfterViewInit(){this._youtubeContainer.next(this.youtubeContainer.nativeElement)}ngOnDestroy(){this._player&&(this._player.destroy(),window.onYouTubeIframeAPIReady=this._existingApiReadyCallback),this._playerChanges.complete(),this._videoId.complete(),this._height.complete(),this._width.complete(),this._startSeconds.complete(),this._endSeconds.complete(),this._suggestedQuality.complete(),this._youtubeContainer.complete(),this._playerVars.complete(),this._destroyed.next(),this._destroyed.complete()}playVideo(){this._player?this._player.playVideo():this._getPendingState().playbackState=1}pauseVideo(){this._player?this._player.pauseVideo():this._getPendingState().playbackState=2}stopVideo(){this._player?this._player.stopVideo():this._getPendingState().playbackState=5}seekTo(t,i){this._player?this._player.seekTo(t,i):this._getPendingState().seek={seconds:t,allowSeekAhead:i}}mute(){this._player?this._player.mute():this._getPendingState().muted=!0}unMute(){this._player?this._player.unMute():this._getPendingState().muted=!1}isMuted(){return this._player?this._player.isMuted():!!this._pendingPlayerState&&!!this._pendingPlayerState.muted}setVolume(t){this._player?this._player.setVolume(t):this._getPendingState().volume=t}getVolume(){return this._player?this._player.getVolume():this._pendingPlayerState&&null!=this._pendingPlayerState.volume?this._pendingPlayerState.volume:0}setPlaybackRate(t){if(this._player)return this._player.setPlaybackRate(t);this._getPendingState().playbackRate=t}getPlaybackRate(){return this._player?this._player.getPlaybackRate():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackRate?this._pendingPlayerState.playbackRate:0}getAvailablePlaybackRates(){return this._player?this._player.getAvailablePlaybackRates():[]}getVideoLoadedFraction(){return this._player?this._player.getVideoLoadedFraction():0}getPlayerState(){if(this._isBrowser&&window.YT)return this._player?this._player.getPlayerState():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackState?this._pendingPlayerState.playbackState:-1}getCurrentTime(){return this._player?this._player.getCurrentTime():this._pendingPlayerState&&this._pendingPlayerState.seek?this._pendingPlayerState.seek.seconds:0}getPlaybackQuality(){return this._player?this._player.getPlaybackQuality():"default"}getAvailableQualityLevels(){return this._player?this._player.getAvailableQualityLevels():[]}getDuration(){return this._player?this._player.getDuration():0}getVideoUrl(){return this._player?this._player.getVideoUrl():""}getVideoEmbedCode(){return this._player?this._player.getVideoEmbedCode():""}_getPendingState(){return this._pendingPlayerState||(this._pendingPlayerState={}),this._pendingPlayerState}_initializePlayer(t,i){const{playbackState:r,playbackRate:s,volume:o,muted:a,seek:l}=i;switch(r){case 1:t.playVideo();break;case 2:t.pauseVideo();break;case 5:t.stopVideo()}null!=s&&t.setPlaybackRate(s),null!=o&&t.setVolume(o),null!=a&&(a?t.mute():t.unMute()),null!=l&&t.seekTo(l.seconds,l.allowSeekAhead)}_getLazyEmitter(t){return this._playerChanges.pipe(Fu(i=>i?X_(r=>{i.addEventListener(t,r)},r=>{try{i.removeEventListener&&i.removeEventListener(t,r)}catch(s){}}):Yn()),i=>new X(r=>i.subscribe({next:s=>this._ngZone.run(()=>r.next(s)),error:s=>r.error(s),complete:()=>r.complete()})),Xo(this._destroyed))}}return n.\u0275fac=function(t){return new(t||n)(G(Se),G(To))},n.\u0275cmp=bs({type:n,selectors:[["youtube-player"]],viewQuery:function(t,i){if(1&t&&hm(UO,5),2&t){let r;dm(r=function fm(){return function aI(n,e){return n[19].queries[e].queryList}(_(),Vd())}())&&(i.youtubeContainer=r.first)}},inputs:{videoId:"videoId",height:"height",width:"width",startSeconds:"startSeconds",endSeconds:"endSeconds",suggestedQuality:"suggestedQuality",playerVars:"playerVars",showBeforeIframeApiLoads:"showBeforeIframeApiLoads"},outputs:{ready:"ready",stateChange:"stateChange",error:"error",apiChange:"apiChange",playbackQualityChange:"playbackQualityChange",playbackRateChange:"playbackRateChange"},decls:2,vars:0,consts:[["youtubeContainer",""]],template:function(t,i){1&t&&po(0,"div",null,0)},encapsulation:2,changeDetection:0}),n})();function KO(n,[e,t,i]){if(n&&t&&n.playerVars!==t.playerVars)n.destroy();else{if(!t)return void(n&&n.destroy());if(n)return n}const r=i.runOutsideAngular(()=>new YT.Player(e,t));return r.videoId=t.videoId,r.playerVars=t.playerVars,r}function lv(n){return"getPlayerStatus"in n}function cd(n,e){return Ge(ld(n),function Yy(n,e){return function(i){return i.lift(new pP(n,e))}}(([t,i])=>e(i,t)),R(([t])=>t))}let JO=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({}),n})();var cv=hd(289);class eN{constructor(e,t,i,r,s){this.element=e,this.newWidth=t,this.newHeight=i,this.oldWidth=r,this.oldHeight=s}}let tN=(()=>{class n{constructor(t){this.element=t,this.resized=new jt}ngOnInit(){cv.ResizeSensor&&(this.resizeSensor=new cv.ResizeSensor(this.element.nativeElement,()=>this.onResized()))}ngOnDestroy(){this.resizeSensor&&this.resizeSensor.detach()}onResized(){const t=this.element.nativeElement.clientWidth,i=this.element.nativeElement.clientHeight;if(t===this.oldWidth&&i===this.oldHeight)return;const r=new eN(this.element,t,i,this.oldWidth,this.oldHeight);this.oldWidth=this.element.nativeElement.clientWidth,this.oldHeight=this.element.nativeElement.clientHeight,this.resized.emit(r)}}return n.\u0275fac=function(t){return new(t||n)(G(vn))},n.\u0275dir=vt({type:n,selectors:[["","resized",""]],outputs:{resized:"resized"}}),n})(),nN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({imports:[[]]}),n})(),iN=(()=>{class n{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",i=this._document.querySelectorAll(`.${t}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(t),this._document.body.appendChild(r),this._containerElement=r}}}return n.\u0275fac=function(t){return new(t||n)(w(fe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),rN=(()=>{class n{constructor(){}ngOnInit(){if(!window.youtubeApiLoaded){const t=document.createElement("script");t.src="https://www.youtube.com/iframe_api",document.body.appendChild(t),window.youtubeApiLoaded=!0}}onResized(t){this.width=t.newWidth-20,this.height=t.newHeight-20}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=bs({type:n,selectors:[["drayman-youtube-player-internal"]],inputs:{videoId:"videoId",startSeconds:"startSeconds",endSeconds:"endSeconds",playerVars:"playerVars"},decls:3,vars:6,consts:[[2,"width","100%","height","100%","margin","10px",3,"resized"],["chartContainer",""],[3,"videoId","startSeconds","endSeconds","playerVars","width","height"]],template:function(t,i){1&t&&(ho(0,"div",0,1),wc("resized",function(s){return i.onResized(s)}),po(2,"youtube-player",2),fo()),2&t&&(function af(n){lf(ee(),_(),rt()+n,!1)}(2),mc("videoId",i.videoId)("startSeconds",i.startSeconds)("endSeconds",i.endSeconds)("playerVars",i.playerVars)("width",i.width)("height",i.height))},directives:[tN,av],styles:[""]}),n})(),sN=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=function IR(n,e){const t=function vR(n,e){return e.get(fi).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new bR(n,e.injector),r=function _R(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function fR(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends SR{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);t.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),t.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(rN,{injector:this.injector});customElements.define("drayman-youtube-player",t)}}return n.\u0275fac=function(t){return new(t||n)(w(It))},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({providers:[{provide:Nu,useClass:iN}],imports:[[Ly,CO,JO,nN]]}),n})();(function QI(){Um=!1})(),LA().bootstrapModule(sN).catch(n=>console.error(n))})()})();