@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.
- package/dist/button/main.js +1 -1
- package/dist/calendar/main.js +1 -1
- package/dist/checkbox/main.js +1 -1
- package/dist/datepicker/main.js +1 -1
- package/dist/grid/main.js +1 -1
- package/dist/menu/main.js +1 -1
- package/dist/nebula/main.js +1 -1
- package/dist/ngx-charts/main.js +1 -1
- package/dist/ngx-graph/main.js +1 -1
- package/dist/number-field/main.js +1 -1
- package/dist/radio-group/main.js +1 -1
- package/dist/select/main.js +1 -1
- package/dist/table/main.js +1 -1
- package/dist/text-field/main.js +1 -1
- package/dist/textarea-field/main.js +1 -1
- package/dist/timepicker/main.js +1 -1
- package/dist/youtube-player/main.js +1 -1
- package/package.json +3 -3
package/dist/grid/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var gE={289:(dt,nn,De)=>{dt.exports={ResizeSensor:De(294),ElementQueries:De(322)}},322:function(dt,nn,De){"use strict";var wn,Ve;"undefined"!=typeof window&&window,wn=[De(294)],void 0!==(Ve=function(Rt){var Je=function(){var N,He={},kt=[];function vs(b){b||(b=document.documentElement);var D=window.getComputedStyle(b,null).fontSize;return parseFloat(D)||16}function Se(b,D){var V=D.split(/\d/),O=V[V.length-1];switch(D=parseFloat(D),O){case"px":default:return D;case"em":return D*vs(b);case"rem":return D*vs();case"vw":return D*document.documentElement.clientWidth/100;case"vh":return D*document.documentElement.clientHeight/100;case"vmin":case"vmax":var ae=document.documentElement.clientWidth/100,Re=document.documentElement.clientHeight/100;return D*(0,Math["vmin"===O?"min":"max"])(ae,Re)}}function te(b,D){this.element=b;var V,O,ae,Re,rt,we,et,tt,rn=["min-width","min-height","max-width","max-height"];this.call=function(){for(V in ae=function R(b){if(!b.getBoundingClientRect)return{width:b.offsetWidth,height:b.offsetHeight};var D=b.getBoundingClientRect();return{width:Math.round(D.width),height:Math.round(D.height)}}(this.element),we={},He[D])!He[D].hasOwnProperty(V)||(Re=Se(this.element,(O=He[D][V]).value),rt="width"===O.property?ae.width:ae.height,et="","min"===O.mode&&rt>=Re&&(et+=O.value),"max"===O.mode&&rt<=Re&&(et+=O.value),we[tt=O.mode+"-"+O.property]||(we[tt]=""),et&&-1===(" "+we[tt]+" ").indexOf(" "+et+" ")&&(we[tt]+=" "+et));for(var Vt in rn)!rn.hasOwnProperty(Vt)||(we[rn[Vt]]?this.element.setAttribute(rn[Vt],we[rn[Vt]].substr(1)):this.element.removeAttribute(rn[Vt]))}}function Nt(b,D){b.elementQueriesSetupInformation||(b.elementQueriesSetupInformation=new te(b,D)),b.elementQueriesSensor||(b.elementQueriesSensor=new Rt(b,function(){b.elementQueriesSetupInformation.call()}))}function Lt(b,D,V,O){if(void 0===He[b]){He[b]=[];var ae=kt.length;N.innerHTML+="\n"+b+" {animation: 0.1s element-queries;}",N.innerHTML+="\n"+b+" > .resize-sensor {min-width: "+ae+"px;}",kt.push(b)}He[b].push({mode:D,property:V,value:O})}function z(b){var D;if(document.querySelectorAll&&(D=b?b.querySelectorAll.bind(b):document.querySelectorAll.bind(document)),!D&&"undefined"!=typeof $$&&(D=$$),!D&&"undefined"!=typeof jQuery&&(D=jQuery),!D)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return D}function Bt(b){var D=[],V=[],O=[],ae=0,Re=-1,rt=[];for(var we in b.children)if(b.children.hasOwnProperty(we)&&b.children[we].tagName&&"img"===b.children[we].tagName.toLowerCase()){D.push(b.children[we]);var et=b.children[we].getAttribute("min-width")||b.children[we].getAttribute("data-min-width"),tt=b.children[we].getAttribute("data-src")||b.children[we].getAttribute("url");O.push(tt),V.push({minWidth:et}),et?b.children[we].style.display="none":(ae=D.length-1,b.children[we].style.display="block")}function Vt(){var wt,ge=!1;for(wt in D)!D.hasOwnProperty(wt)||V[wt].minWidth&&b.offsetWidth>V[wt].minWidth&&(ge=wt);if(ge||(ge=ae),Re!==ge)if(rt[ge])D[Re].style.display="none",D[ge].style.display="block",Re=ge;else{var di=new Image;di.onload=function(){D[ge].src=O[ge],D[Re].style.display="none",D[ge].style.display="block",rt[ge]=!0,Re=ge},di.src=O[ge]}else D[ge].src=O[ge]}Re=ae,b.resizeSensorInstance=new Rt(b,Vt),Vt()}var bt=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,Pi=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function Ge(b){var D,V,O,ae;for(b=b.replace(/'/g,'"');null!==(D=bt.exec(b));)for(V=D[1]+D[3],O=D[2];null!==(ae=Pi.exec(O));)Lt(V,ae[1],ae[2],ae[3])}function Ln(b){var D="";if(b)if("string"==typeof b)(-1!==(b=b.toLowerCase()).indexOf("min-width")||-1!==b.indexOf("max-width"))&&Ge(b);else for(var V=0,O=b.length;V<O;V++)1===b[V].type?(-1!==(D=b[V].selectorText||b[V].cssText).indexOf("min-height")||-1!==D.indexOf("max-height")||-1!==D.indexOf("min-width")||-1!==D.indexOf("max-width"))&&Ge(D):4===b[V].type?Ln(b[V].cssRules||b[V].rules):3===b[V].type&&b[V].styleSheet.hasOwnProperty("cssRules")&&Ln(b[V].styleSheet.cssRules)}var ui=!1;this.init=function(){var b="animationstart";void 0!==document.documentElement.style.webkitAnimationName?b="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?b="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(b="oanimationstart"),document.body.addEventListener(b,function(O){var ae=O.target,Re=ae&&window.getComputedStyle(ae,null),rt=Re&&Re.getPropertyValue("animation-name");if(rt&&-1!==rt.indexOf("element-queries")){ae.elementQueriesSensor=new Rt(ae,function(){ae.elementQueriesSetupInformation&&ae.elementQueriesSetupInformation.call()});var tt=window.getComputedStyle(ae.resizeSensor,null).getPropertyValue("min-width");tt=parseInt(tt.replace("px","")),Nt(O.target,kt[tt])}}),ui||((N=document.createElement("style")).type="text/css",N.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",N.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(N),ui=!0);for(var D=0,V=document.styleSheets.length;D<V;D++)try{document.styleSheets[D].href&&0===document.styleSheets[D].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[D].href),Ln(document.styleSheets[D].cssRules||document.styleSheets[D].rules||document.styleSheets[D].cssText)}catch(O){}!function J(){for(var D=z()("[data-responsive-image],[responsive-image]"),V=0,O=D.length;V<O;V++)Bt(D[V])}()},this.findElementQueriesElements=function(b){!function vt(b){var D=z(b);for(var V in He)if(He.hasOwnProperty(V))for(var O=D(V,b),ae=0,Re=O.length;ae<Re;ae++)Nt(O[ae],V)}(b)},this.update=function(){this.init()}};Je.update=function(){Je.instance.update()},Je.detach=function(N){N.elementQueriesSetupInformation?(N.elementQueriesSensor.detach(),delete N.elementQueriesSetupInformation,delete N.elementQueriesSensor):N.resizeSensorInstance&&(N.resizeSensorInstance.detach(),delete N.resizeSensorInstance)},Je.init=function(){Je.instance||(Je.instance=new Je),Je.instance.init()};return Je.findElementQueriesElements=function(N){Je.instance.findElementQueriesElements(N)},Je.listen=function(){!function(N){if(document.addEventListener)document.addEventListener("DOMContentLoaded",N,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var He=setInterval(function(){/loaded|complete/i.test(document.readyState)&&(N(),clearInterval(He))},10);else window.onload=N}(Je.init)},Je}.apply(nn,wn))&&(dt.exports=Ve)},294:function(dt,nn,De){"use strict";var wn;"undefined"!=typeof window&&window,void 0!==(wn=function(){if("undefined"==typeof window)return null;var Ve="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Rt=Ve.requestAnimationFrame||Ve.mozRequestAnimationFrame||Ve.webkitRequestAnimationFrame||function(R){return Ve.setTimeout(R,20)},Je=Ve.cancelAnimationFrame||Ve.mozCancelAnimationFrame||Ve.webkitCancelAnimationFrame||function(R){Ve.clearTimeout(R)};function Nn(R,Se){var te=Object.prototype.toString.call(R),Nt="[object Array]"===te||"[object NodeList]"===te||"[object HTMLCollection]"===te||"[object Object]"===te||"undefined"!=typeof jQuery&&R instanceof jQuery||"undefined"!=typeof Elements&&R instanceof Elements,Lt=0,z=R.length;if(Nt)for(;Lt<z;Lt++)Se(R[Lt]);else Se(R)}function N(R){if(!R.getBoundingClientRect)return{width:R.offsetWidth,height:R.offsetHeight};var Se=R.getBoundingClientRect();return{width:Math.round(Se.width),height:Math.round(Se.height)}}function He(R,Se){Object.keys(Se).forEach(function(te){R.style[te]=Se[te]})}var kt=function(R,Se){var te=0;function Nt(){var vt,Bt,z=[];this.add=function(J){z.push(J)},this.call=function(J){for(vt=0,Bt=z.length;vt<Bt;vt++)z[vt].call(this,J)},this.remove=function(J){var bt=[];for(vt=0,Bt=z.length;vt<Bt;vt++)z[vt]!==J&&bt.push(z[vt]);z=bt},this.length=function(){return z.length}}function Lt(z,vt){if(z){if(z.resizedAttached)return void z.resizedAttached.add(vt);z.resizedAttached=new Nt,z.resizedAttached.add(vt),z.resizeSensor=document.createElement("div"),z.resizeSensor.dir="ltr",z.resizeSensor.className="resize-sensor";var Bt={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},J={position:"absolute",left:"0px",top:"0px",transition:"0s"};He(z.resizeSensor,Bt);var bt=document.createElement("div");bt.className="resize-sensor-expand",He(bt,Bt);var Pi=document.createElement("div");He(Pi,J),bt.appendChild(Pi);var Ge=document.createElement("div");Ge.className="resize-sensor-shrink",He(Ge,Bt);var Ln=document.createElement("div");He(Ln,J),He(Ln,{width:"200%",height:"200%"}),Ge.appendChild(Ln),z.resizeSensor.appendChild(bt),z.resizeSensor.appendChild(Ge),z.appendChild(z.resizeSensor);var ui=window.getComputedStyle(z),b=ui?ui.getPropertyValue("position"):null;"absolute"!==b&&"relative"!==b&&"fixed"!==b&&"sticky"!==b&&(z.style.position="relative");var D=!1,V=0,O=N(z),ae=0,Re=0,rt=!0;te=0;var et=function(){if(rt){if(0===z.offsetWidth&&0===z.offsetHeight)return void(te||(te=Rt(function(){te=0,et()})));rt=!1}var ge,wt;wt=z.offsetHeight,Pi.style.width=(ge=z.offsetWidth)+10+"px",Pi.style.height=wt+10+"px",bt.scrollLeft=ge+10,bt.scrollTop=wt+10,Ge.scrollLeft=ge+10,Ge.scrollTop=wt+10};z.resizeSensor.resetSensor=et;var tt=function(){V=0,D&&(ae=O.width,Re=O.height,z.resizedAttached&&z.resizedAttached.call(O))},rn=function(){O=N(z),(D=O.width!==ae||O.height!==Re)&&!V&&(V=Rt(tt)),et()},Vt=function(ge,wt,di){ge.attachEvent?ge.attachEvent("on"+wt,di):ge.addEventListener(wt,di)};Vt(bt,"scroll",rn),Vt(Ge,"scroll",rn),te=Rt(function(){te=0,et()})}}Nn(R,function(z){Lt(z,Se)}),this.detach=function(z){te||(Je(te),te=0),kt.detach(R,z)},this.reset=function(){R.resizeSensor.resetSensor()}};if(kt.reset=function(R){Nn(R,function(Se){Se.resizeSensor.resetSensor()})},kt.detach=function(R,Se){Nn(R,function(te){!te||te.resizedAttached&&"function"==typeof Se&&(te.resizedAttached.remove(Se),te.resizedAttached.length())||te.resizeSensor&&(te.contains(te.resizeSensor)&&te.removeChild(te.resizeSensor),delete te.resizeSensor,delete te.resizedAttached)})},"undefined"!=typeof MutationObserver){var vs=new MutationObserver(function(R){for(var Se in R)if(R.hasOwnProperty(Se))for(var te=R[Se].addedNodes,Nt=0;Nt<te.length;Nt++)te[Nt].resizeSensor&&kt.reset(te[Nt])});document.addEventListener("DOMContentLoaded",function(R){vs.observe(document.body,{childList:!0,subtree:!0})})}return kt}.call(nn,De,nn,dt))&&(dt.exports=wn)}},hf={};function ff(dt){var nn=hf[dt];if(void 0!==nn)return nn.exports;var De=hf[dt]={exports:{}};return gE[dt].call(De.exports,De,De.exports,ff),De.exports}(()=>{"use strict";function dt(n){return"function"==typeof n}let nn=!1;const De={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 nn&&console.log("RxJS: Back to a better error behavior. Thank you. <3");nn=n},get useDeprecatedSynchronousErrorHandling(){return nn}};function ht(n){setTimeout(()=>{throw n},0)}const wn={closed:!0,next(n){},error(n){if(De.useDeprecatedSynchronousErrorHandling)throw n;ht(n)},complete(){}},Ve=Array.isArray||(n=>n&&"number"==typeof n.length);function Rt(n){return null!==n&&"object"==typeof n}const Nn=(()=>{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 N{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 N)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(dt(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof Nn?He(o.errors):[o]}}if(Ve(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(Rt(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof Nn?e=e.concat(He(c.errors)):e.push(c)}}}if(e)throw new Nn(e)}add(e){let t=e;if(!e)return N.EMPTY;switch(typeof e){case"function":t=new N(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof N)){const s=t;t=new N,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 N){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 He(n){return n.reduce((e,t)=>e.concat(t instanceof Nn?t.errors:t),[])}N.EMPTY=((n=new N).closed=!0,n);const kt="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class R extends N{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=wn;break;case 1:if(!e){this.destination=wn;break}if("object"==typeof e){e instanceof R?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Se(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Se(this,e,t,i)}}[kt](){return this}static create(e,t,i){const r=new R(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 Se extends R{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;dt(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==wn&&(o=Object.create(t),dt(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;De.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}=De;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):ht(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;ht(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);De.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(),De.useDeprecatedSynchronousErrorHandling)throw i;ht(i)}}__tryOrSetError(e,t,i){if(!De.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return De.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(ht(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Lt="function"==typeof Symbol&&Symbol.observable||"@@observable";function z(n){return n}let J=(()=>{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 Nt(n,e,t){if(n){if(n instanceof R)return n;if(n[kt])return n[kt]()}return n||e||t?new R(n,e,t):new R(wn)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||De.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),De.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){De.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function te(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof R?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=bt(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)}[Lt](){return this}pipe(...t){return 0===t.length?this:function Bt(n){return 0===n.length?z:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=bt(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function bt(n){if(n||(n=De.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Ge=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Ln extends N{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 ui extends R{constructor(e){super(e),this.destination=e}}let b=(()=>{class n extends J{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[kt](){return new ui(this)}lift(t){const i=new D(this,this);return i.operator=t,i}next(t){if(this.closed)throw new Ge;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 Ge;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 Ge;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 Ge;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new Ge;return this.hasError?(t.error(this.thrownError),N.EMPTY):this.isStopped?(t.complete(),N.EMPTY):(this.observers.push(t),new Ln(this,t))}asObservable(){const t=new J;return t.source=this,t}}return n.create=(e,t)=>new D(e,t),n})();class D extends b{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):N.EMPTY}}function V(n){return n&&"function"==typeof n.schedule}function O(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 ae(n,e))}}class ae{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new Re(e,this.project,this.thisArg))}}class Re extends R{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 rt=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},tt=function et(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),wt=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function di(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const ql=n=>{if(n&&"function"==typeof n[Lt])return(n=>e=>{const t=n[Lt]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(wt(n))return rt(n);if(di(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,ht),e))(n);if(n&&"function"==typeof n[tt])return(n=>e=>{const t=n[tt]();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 ${Rt(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function Kl(n,e){return new J(t=>{const i=new N;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 Yl(n,e){return e?function wE(n,e){if(null!=n){if(function vE(n){return n&&"function"==typeof n[Lt]}(n))return function mE(n,e){return new J(t=>{const i=new N;return i.add(e.schedule(()=>{const r=n[Lt]();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(di(n))return function _E(n,e){return new J(t=>{const i=new N;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(wt(n))return Kl(n,e);if(function bE(n){return n&&"function"==typeof n[tt]}(n)||"string"==typeof n)return function yE(n,e){if(!n)throw new Error("Iterable cannot be null");return new J(t=>{const i=new N;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[tt](),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 J?n:new J(ql(n))}class bs extends R{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 ws extends R{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Es(n,e){if(!e.closed)return n instanceof J?n.subscribe(e):ql(n)(e)}function Po(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(Po((r,s)=>Yl(n(r,s)).pipe(O((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new EE(n,t)))}class EE{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new CE(e,this.project,this.concurrent))}}class CE extends ws{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 bs(this),i=this.destination;i.add(t);const r=Es(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()}}function pf(n=Number.POSITIVE_INFINITY){return Po(z,n)}function Zl(n,e){return e?Kl(n,e):new J(rt(n))}function Fo(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return V(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 J?n[0]:pf(e)(Zl(n,t))}function gf(){return function(e){return e.lift(new DE(e))}}class DE{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new SE(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class SE extends R{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 TE extends J{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 N,e.add(this.source.subscribe(new IE(this.getSubject(),this))),e.closed&&(this._connection=null,e=N.EMPTY)),e}refCount(){return gf()(this)}}const ME=(()=>{const n=TE.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 IE extends ui{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()}}}class OE{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 RE(){return new b}function mf(){return n=>gf()(function AE(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new OE(r,e));const s=Object.create(i,ME);return s.source=i,s.subjectFactory=r,s}}(RE)(n))}function me(n){for(let e in n)if(n[e]===me)return e;throw Error("Could not find renamed property on target object.")}function Ql(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function de(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(de).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 Xl(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const kE=me({__forward_ref__:me});function Jl(n){return n.__forward_ref__=Jl,n.toString=function(){return de(this())},n}function Q(n){return function _f(n){return"function"==typeof n&&n.hasOwnProperty(kE)&&n.__forward_ref__===Jl}(n)?n():n}class M extends Error{constructor(e,t){super(function ec(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function U(n){return"string"==typeof n?n:null==n?"":String(n)}function st(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():U(n)}function No(n,e){const t=e?` in ${e}`:"";throw new M(-201,`No provider for ${st(n)} found${t}`)}function jt(n,e){null==n&&function he(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function k(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Te(n){return{providers:n.providers||[],imports:n.imports||[]}}function tc(n){return yf(n,Lo)||yf(n,bf)}function yf(n,e){return n.hasOwnProperty(e)?n[e]:null}function vf(n){return n&&(n.hasOwnProperty(nc)||n.hasOwnProperty(HE))?n[nc]:null}const Lo=me({\u0275prov:me}),nc=me({\u0275inj:me}),bf=me({ngInjectableDef:me}),HE=me({ngInjectorDef:me});var q=(()=>((q=q||{})[q.Default=0]="Default",q[q.Host=1]="Host",q[q.Self=2]="Self",q[q.SkipSelf=4]="SkipSelf",q[q.Optional=8]="Optional",q))();let ic;function hi(n){const e=ic;return ic=n,e}function wf(n,e,t){const i=tc(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&q.Optional?null:void 0!==e?e:void No(de(n),"Injector")}function fi(n){return{toString:n}.toString()}var En=(()=>((En=En||{})[En.OnPush=0]="OnPush",En[En.Default=1]="Default",En))(),Cn=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Cn||(Cn={})),Cn))();const zE="undefined"!=typeof globalThis&&globalThis,$E="undefined"!=typeof window&&window,UE="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,fe=zE||"undefined"!=typeof global&&global||$E||UE,cr={},_e=[],Bo=me({\u0275cmp:me}),rc=me({\u0275dir:me}),sc=me({\u0275pipe:me}),Ef=me({\u0275mod:me}),Xn=me({\u0275fac:me}),Cs=me({__NG_ELEMENT_ID__:me});let WE=0;function pi(n){return fi(()=>{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===En.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||_e,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Cn.Emulated,id:"c",styles:n.styles||_e,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=WE++,i.inputs=Tf(n.inputs,t),i.outputs=Tf(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(Cf):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Df):null,i})}function Cf(n){return ot(n)||function gi(n){return n[rc]||null}(n)}function Df(n){return function Fi(n){return n[sc]||null}(n)}const Sf={};function ke(n){return fi(()=>{const e={type:n.type,bootstrap:n.bootstrap||_e,declarations:n.declarations||_e,imports:n.imports||_e,exports:n.exports||_e,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Sf[n.id]=n.type),e})}function Tf(n,e){if(null==n)return cr;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 je=pi;function Pt(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function ot(n){return n[Bo]||null}function sn(n,e){const t=n[Ef]||null;if(!t&&!0===e)throw new Error(`Type ${de(n)} does not have '\u0275mod' property.`);return t}const Y=11;function Bn(n){return Array.isArray(n)&&"object"==typeof n[1]}function Sn(n){return Array.isArray(n)&&!0===n[1]}function lc(n){return 0!=(8&n.flags)}function zo(n){return 2==(2&n.flags)}function $o(n){return 1==(1&n.flags)}function Tn(n){return null!==n.template}function QE(n){return 0!=(512&n[2])}function Vi(n,e){return n.hasOwnProperty(Xn)?n[Xn]:null}class If{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Hi(){return xf}function xf(n){return n.type.prototype.ngOnChanges&&(n.setInput=tC),eC}function eC(){const n=Of(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===cr)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function tC(n,e,t,i){const r=Of(n)||function nC(n,e){return n[Af]=e}(n,{previous:cr,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new If(l&&l.currentValue,e,o===cr),n[i]=e}Hi.ngInherit=!0;const Af="__ngSimpleChanges__";function Of(n){return n[Af]||null}let fc;function pc(){return void 0!==fc?fc:"undefined"!=typeof document?document:void 0}function Fe(n){return!!n.listen}const Rf={createRenderer:(n,e)=>pc()};function ze(n){for(;Array.isArray(n);)n=n[0];return n}function Uo(n,e){return ze(e[n])}function $t(n,e){return ze(e[n.index])}function gc(n,e){return n.data[e]}function pr(n,e){return n[e]}function Ut(n,e){const t=e[n];return Bn(t)?t:t[0]}function kf(n){return 4==(4&n[2])}function mc(n){return 128==(128&n[2])}function mi(n,e){return null==e?null:n[e]}function Pf(n){n[18]=0}function _c(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 W={lFrame:$f(null),bindingsEnabled:!0};function Nf(){return W.bindingsEnabled}function w(){return W.lFrame.lView}function oe(){return W.lFrame.tView}function pt(n){return W.lFrame.contextLView=n,n[8]}function qe(){let n=Lf();for(;null!==n&&64===n.type;)n=n.parent;return n}function Lf(){return W.lFrame.currentTNode}function Vn(n,e){const t=W.lFrame;t.currentTNode=n,t.isParent=e}function yc(){return W.lFrame.isParent}function vc(){W.lFrame.isParent=!1}function gr(){return W.lFrame.bindingIndex++}function ei(n){const e=W.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function vC(n,e){const t=W.lFrame;t.bindingIndex=t.bindingRootIndex=n,bc(e)}function bc(n){W.lFrame.currentDirectiveIndex=n}function Hf(){return W.lFrame.currentQueryIndex}function Ec(n){W.lFrame.currentQueryIndex=n}function wC(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function jf(n,e,t){if(t&q.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&q.Host||(r=wC(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=W.lFrame=zf();return i.currentTNode=e,i.lView=n,!0}function Go(n){const e=zf(),t=n[1];W.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function zf(){const n=W.lFrame,e=null===n?null:n.child;return null===e?$f(n):e}function $f(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 Uf(){const n=W.lFrame;return W.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Wf=Uf;function qo(){const n=Uf();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 Dt(){return W.lFrame.selectedIndex}function _i(n){W.lFrame.selectedIndex=n}function Me(){const n=W.lFrame;return gc(n.tView,n.selectedIndex)}function Ko(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 Yo(n,e,t){Gf(n,e,3,t)}function Zo(n,e,t,i){(3&n[2])===t&&Gf(n,e,t,i)}function Cc(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function Gf(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)&&(AC(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function AC(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 Is{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function Qo(n,e,t){const i=Fe(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];Sc(o)?i&&n.setProperty(e,o,a):i?n.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function qf(n){return 3===n||4===n||6===n}function Sc(n){return 64===n.charCodeAt(0)}function Xo(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||Kf(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function Kf(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 Yf(n){return-1!==n}function mr(n){return 32767&n}function _r(n,e){let t=function FC(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let Tc=!0;function Jo(n){const e=Tc;return Tc=n,e}let NC=0;function As(n,e){const t=Ic(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,Mc(i.data,n),Mc(e,null),Mc(i.blueprint,null));const r=ea(n,e),s=n.injectorIndex;if(Yf(r)){const o=mr(r),a=_r(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 Mc(n,e){n.push(0,0,0,0,0,0,0,0,e)}function Ic(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function ea(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 ta(n,e,t){!function LC(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Cs)&&(i=t[Cs]),null==i&&(i=t[Cs]=NC++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function Xf(n,e,t){if(t&q.Optional)return n;No(e,"NodeInjector")}function Jf(n,e,t,i){if(t&q.Optional&&void 0===i&&(i=null),0==(t&(q.Self|q.Host))){const r=n[9],s=hi(void 0);try{return r?r.get(e,i,t&q.Optional):wf(e,i,t&q.Optional)}finally{hi(s)}}return Xf(i,e,t)}function ep(n,e,t,i=q.Default,r){if(null!==n){const s=function jC(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(Cs)?n[Cs]:void 0;return"number"==typeof e?e>=0?255&e:VC:e}(t);if("function"==typeof s){if(!jf(e,n,i))return i&q.Host?Xf(r,t,i):Jf(e,t,i,r);try{const o=s(i);if(null!=o||i&q.Optional)return o;No(t)}finally{Wf()}}else if("number"==typeof s){let o=null,a=Ic(n,e),l=-1,c=i&q.Host?e[16][6]:null;for((-1===a||i&q.SkipSelf)&&(l=-1===a?ea(n,e):e[a+8],-1!==l&&ip(i,!1)?(o=e[1],a=mr(l),e=_r(l,e)):a=-1);-1!==a;){const u=e[1];if(np(s,a,u.data)){const d=HC(a,e,t,o,i,c);if(d!==tp)return d}l=e[a+8],-1!==l&&ip(i,e[1].data[a+8]===c)&&np(s,a,e)?(o=u,a=mr(l),e=_r(l,e)):a=-1}}}return Jf(e,t,i,r)}const tp={};function VC(){return new yr(qe(),w())}function HC(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=na(a,o,t,null==i?zo(a)&&Tc:i!=o&&0!=(3&a.type),r&q.Host&&s===a);return null!==u?Os(e,o,u,a):tp}function na(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&&Tn(f)&&f.type===t)return l}return null}function Os(n,e,t,i){let r=n[t];const s=e.data;if(function OC(n){return n instanceof Is}(r)){const o=r;o.resolving&&function PE(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new M(-200,`Circular dependency in DI detected for ${n}${t}`)}(st(s[t]));const a=Jo(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?hi(o.injectImpl):null;jf(n,i,q.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function xC(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=xf(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&&hi(l),Jo(a),o.resolving=!1,Wf()}}return r}function np(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function ip(n,e){return!(n&q.Self||n&q.Host&&e)}class yr{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return ep(this._tNode,this._lView,e,i,t)}}const br="__parameters__";function Er(n,e,t){return fi(()=>{const i=function Ac(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(br)?l[br]:Object.defineProperty(l,br,{value:[]})[br];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class P{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=k({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function ln(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)),ln(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 sp(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function ra(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Ps(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function Wt(n,e,t){let i=Cr(n,e);return i>=0?n[1|i]=t:(i=~i,function GC(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function Rc(n,e){const t=Cr(n,e);if(t>=0)return n[1|t]}function Cr(n,e){return function lp(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<t];if(e===o)return s<<t;o>e?r=s:i=s+1}return~(r<<t)}(n,e,1)}const Fs={},Pc="__NG_DI_FLAG__",oa="ngTempTokenPath",JC=/\n/gm,up="__source",tD=me({provide:String,useValue:me});let Ns;function dp(n){const e=Ns;return Ns=n,e}function nD(n,e=q.Default){if(void 0===Ns)throw new M(203,"");return null===Ns?wf(n,void 0,e):Ns.get(n,e&q.Optional?null:void 0,e)}function y(n,e=q.Default){return(function jE(){return ic}()||nD)(Q(n),e)}const aa=y;function Fc(n){const e=[];for(let t=0;t<n.length;t++){const i=Q(n[t]);if(Array.isArray(i)){if(0===i.length)throw new M(900,"");let r,s=q.Default;for(let o=0;o<i.length;o++){const a=i[o],l=iD(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(y(r,s))}else e.push(y(i))}return e}function Ls(n,e){return n[Pc]=e,n.prototype[Pc]=e,n}function iD(n){return n[Pc]}const ji=Ls(Er("Optional"),8),Bs=Ls(Er("SkipSelf"),4);var Gt=(()=>((Gt=Gt||{})[Gt.Important=1]="Important",Gt[Gt.DashCase=2]="DashCase",Gt))();const vp="__ngContext__";function gt(n,e){n[vp]=e}function Vc(n){const e=function Hs(n){return n[vp]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function jc(n,e){return undefined(n,e)}function js(n){const e=n[3];return Sn(e)?e[3]:e}function zc(n){return Tp(n[13])}function $c(n){return Tp(n[4])}function Tp(n){for(;null!==n&&!Sn(n);)n=n[4];return n}function Sr(n,e,t,i,r){if(null!=i){let s,o=!1;Sn(i)?s=i:Bn(i)&&(o=!0,i=i[0]);const a=ze(i);0===n&&null!==t?null==r?Rp(e,t,a):zi(e,t,a,r||null,!0):1===n&&null!==t?zi(e,t,a,r||null,!0):2===n?function Zc(n,e,t){const i=ca(n,e);i&&function PD(n,e,t,i){Fe(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function LD(n,e,t,i,r){const s=t[7];s!==ze(t)&&Sr(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];zs(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function Wc(n,e,t){if(Fe(n))return n.createElement(e,t);{const i=null!==t?function oC(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 Ip(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,_c(r,-1)),t.splice(i,1)}function Gc(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&Ip(r,i),e>0&&(n[t-1][4]=i[4]);const s=ra(n,10+e);!function TD(n,e){zs(n,e,e[Y],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 xp(n,e){if(!(256&e[2])){const t=e[Y];Fe(t)&&t.destroyNode&&zs(n,e,t,3,null,null),function xD(n){let e=n[13];if(!e)return qc(n[1],n);for(;e;){let t=null;if(Bn(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)Bn(e)&&qc(e[1],e),e=e[3];null===e&&(e=n),Bn(e)&&qc(e[1],e),t=e&&e[4]}e=t}}(e)}}function qc(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function kD(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 Is)){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 RD(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):ze(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&&Fe(e[Y])&&e[Y].destroy();const t=e[17];if(null!==t&&Sn(e[3])){t!==e[3]&&Ip(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function Ap(n,e,t){return function Op(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===Cn.None||r===Cn.Emulated)return null}return $t(i,t)}(n,e.parent,t)}function zi(n,e,t,i,r){Fe(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function Rp(n,e,t){Fe(n)?n.appendChild(e,t):e.appendChild(t)}function kp(n,e,t,i,r){null!==i?zi(n,e,t,i,r):Rp(n,e,t)}function ca(n,e){return Fe(n)?n.parentNode(e):e.parentNode}function Pp(n,e,t){return Np(n,e,t)}let ha,fa,Np=function Fp(n,e,t){return 40&n.type?$t(n,t):null};function ua(n,e,t,i){const r=Ap(n,i,e),s=e[Y],a=Pp(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)kp(s,r,t[l],a,!1);else kp(s,r,t,a,!1)}function da(n,e){if(null!==e){const t=e.type;if(3&t)return $t(e,n);if(4&t)return Yc(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return da(n,i);{const r=n[e.index];return Sn(r)?Yc(-1,r):ze(r)}}if(32&t)return jc(e,n)()||ze(n[e.index]);{const i=Bp(n,e);return null!==i?Array.isArray(i)?i[0]:da(js(n[16]),i):da(n,e.next)}}return null}function Bp(n,e){return null!==e?n[16][6].projection[e.projection]:null}function Yc(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return da(i,r)}return e[7]}function Qc(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&>(ze(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)Qc(n,e,t.child,i,r,s,!1),Sr(e,n,r,a,s);else if(32&l){const c=jc(t,i);let u;for(;u=c();)Sr(e,n,r,u,s);Sr(e,n,r,a,s)}else 16&l?Vp(n,e,i,t,r,s):Sr(e,n,r,a,s);t=o?t.projectionNext:t.next}}function zs(n,e,t,i,r,s){Qc(t,i,n.firstChild,e,r,s,!1)}function Vp(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++)Sr(e,n,r,l[c],s);else Qc(n,e,l,o[3],r,s,!0)}function Hp(n,e,t){Fe(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function Xc(n,e,t){Fe(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function $i(n){var e;return(null===(e=function Jc(){if(void 0===ha&&(ha=null,fe.trustedTypes))try{ha=fe.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return ha}())||void 0===e?void 0:e.createHTML(n))||n}function jp(n){var e;return(null===(e=function eu(){if(void 0===fa&&(fa=null,fe.trustedTypes))try{fa=fe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return fa}())||void 0===e?void 0:e.createHTML(n))||n}class Ui{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class zD extends Ui{getTypeName(){return"HTML"}}class $D extends Ui{getTypeName(){return"Style"}}class UD extends Ui{getTypeName(){return"Script"}}class WD extends Ui{getTypeName(){return"URL"}}class GD extends Ui{getTypeName(){return"ResourceURL"}}function qt(n){return n instanceof Ui?n.changingThisBreaksApplicationSecurity:n}function jn(n,e){const t=Up(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}function Up(n){return n instanceof Ui&&n.getTypeName()||null}class XD{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString($i(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class JD{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=$i(e),t;const i=this.inertDocument.createElement("body");return i.innerHTML=$i(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const o=t.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&e.removeAttribute(o)}let i=e.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const t0=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,n0=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function $s(n){return(n=String(n)).match(t0)||n.match(n0)?n:"unsafe:"+n}function Gp(n){return(n=String(n)).split(",").map(e=>$s(e.trim())).join(", ")}function zn(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function Us(...n){const e={};for(const t of n)for(const i in t)t.hasOwnProperty(i)&&(e[i]=!0);return e}const qp=zn("area,br,col,hr,img,wbr"),Kp=zn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Yp=zn("rp,rt"),tu=Us(qp,Us(Kp,zn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Us(Yp,zn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Us(Yp,Kp)),nu=zn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),iu=zn("srcset"),Zp=Us(nu,iu,zn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),zn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),r0=zn("script,style,template");class s0{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!tu.hasOwnProperty(t))return this.sanitizedSomething=!0,!r0.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=e.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!Zp.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;nu[a]&&(l=$s(l)),iu[a]&&(l=Gp(l)),this.buf.push(" ",o,'="',Qp(l),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();tu.hasOwnProperty(t)&&!qp.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Qp(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const o0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,a0=/([^\#-~ |!])/g;function Qp(n){return n.replace(/&/g,"&").replace(o0,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(a0,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let pa;function Xp(n,e){let t=null;try{pa=pa||function Wp(n){const e=new JD(n);return function e0(){try{return!!(new window.DOMParser).parseFromString($i(""),"text/html")}catch(n){return!1}}()?new XD(e):e}(n);let i=e?String(e):"";t=pa.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=t.innerHTML,t=pa.getInertBodyElement(i)}while(i!==s);return $i((new s0).sanitizeChildren(ru(t)||t))}finally{if(t){const i=ru(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function ru(n){return"content"in n&&function l0(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ce=(()=>((ce=ce||{})[ce.NONE=0]="NONE",ce[ce.HTML=1]="HTML",ce[ce.STYLE=2]="STYLE",ce[ce.SCRIPT=3]="SCRIPT",ce[ce.URL=4]="URL",ce[ce.RESOURCE_URL=5]="RESOURCE_URL",ce))();function su(n){const e=function Ws(){const n=w();return n&&n[12]}();return e?jp(e.sanitize(ce.HTML,n)||""):jn(n,"HTML")?jp(qt(n)):Xp(pc(),U(n))}function au(n){return n.ngOriginalError}function y0(n,...e){n.error(...e)}class vi{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=function _0(n){return n&&n.ngErrorLogger||y0}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&au(e);for(;t&&au(t);)t=au(t);return t||null}}const S0=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(fe))();function $n(n){return n instanceof Function?n():n}function ng(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 ig="ng-template";function x0(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==ng(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 rg(n){return 4===n.type&&n.value!==ig}function A0(n,e,t){return e===(4!==n.type||t?n.value:ig)}function O0(n,e,t){let i=4;const r=n.attrs||[],s=function P0(n){for(let e=0;e<n.length;e++)if(qf(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&&!A0(n,l,t)||""===l&&1===e.length){if(Mn(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!x0(n.attrs,c,t)){if(Mn(i))return!1;o=!0}continue}const d=R0(8&i?"class":l,r,rg(n),t);if(-1===d){if(Mn(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!==ng(f,c,0)||2&i&&c!==h){if(Mn(i))return!1;o=!0}}}}else{if(!o&&!Mn(i)&&!Mn(l))return!1;if(o&&Mn(l))continue;o=!1,i=l|1&i}}return Mn(i)||o}function Mn(n){return 0==(1&n)}function R0(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 F0(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 sg(n,e,t=!1){for(let i=0;i<e.length;i++)if(O0(n,e[i],t))return!0;return!1}function N0(n,e){e:for(let t=0;t<e.length;t++){const i=e[t];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function og(n,e){return n?":not("+e.trim()+")":e}function L0(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&&!Mn(o)&&(e+=og(s,r),r=""),i=o,s=s||!Mn(i);t++}return""!==r&&(e+=og(s,r)),e}const G={};function $(n){ag(oe(),w(),Dt()+n,!1)}function ag(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&Yo(e,s,t)}else{const s=n.preOrderHooks;null!==s&&Zo(e,s,0,t)}_i(t)}function ga(n,e){return n<<17|e<<2}function In(n){return n>>17&32767}function lu(n){return 2|n}function ti(n){return(131068&n)>>2}function cu(n,e){return-131069&n|e<<2}function uu(n){return 1|n}function yg(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];Ec(r),o.contentQueries(2,e[s],s)}}}function Gs(n,e,t,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,Pf(u),u[3]=u[15]=n,u[8]=t,u[10]=o||n&&n[10],u[Y]=a||n&&n[Y],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 Mr(n,e,t,i,r){let s=n.data[e];if(null===s)s=function vu(n,e,t,i,r){const s=Lf(),o=yc(),l=n.data[e]=function tS(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 yC(){return W.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function Ms(){const n=W.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Vn(s,!0),s}function Ir(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 qs(n,e,t){Go(e);try{const i=n.viewQuery;null!==i&&Iu(1,i,t);const r=n.template;null!==r&&vg(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&yg(n,e),n.staticViewQueries&&Iu(2,n.viewQuery,t);const s=n.components;null!==s&&function X0(n,e){for(let t=0;t<e.length;t++)vS(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,qo()}}function xr(n,e,t,i){const r=e[2];if(256!=(256&r)){Go(e);try{Pf(e),function Bf(n){return W.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&vg(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&Yo(e,c,null)}else{const c=n.preOrderHooks;null!==c&&Zo(e,c,0,null),Cc(e,0)}if(function _S(n){for(let e=zc(n);null!==e;e=$c(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])&&_c(s,1),r[2]|=1024}}}(e),function mS(n){for(let e=zc(n);null!==e;e=$c(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];mc(i)&&xr(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&yg(n,e),o){const c=n.contentCheckHooks;null!==c&&Yo(e,c)}else{const c=n.contentHooks;null!==c&&Zo(e,c,1),Cc(e,1)}!function Z0(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)_i(~r);else{const s=r,o=t[++i],a=t[++i];vC(o,s),a(2,e[s])}}}finally{_i(-1)}}(n,e);const a=n.components;null!==a&&function Q0(n,e){for(let t=0;t<e.length;t++)yS(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&Iu(2,l,i),o){const c=n.viewCheckHooks;null!==c&&Yo(e,c)}else{const c=n.viewHooks;null!==c&&Zo(e,c,2),Cc(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,_c(e[3],-1))}finally{qo()}}}function J0(n,e,t,i){const r=e[10],o=kf(e);try{!o&&r.begin&&r.begin(),o&&qs(n,e,i),xr(n,e,t,i)}finally{!o&&r.end&&r.end()}}function vg(n,e,t,i,r){const s=Dt(),o=2&i;try{_i(-1),o&&e.length>20&&ag(n,e,20,!1),t(i,r)}finally{_i(s)}}function bg(n,e,t){if(lc(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)}}}function bu(n,e,t){!Nf()||(function lS(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||As(t,e),gt(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Tn(l);c&&fS(e,t,l);const u=Os(e,n,a,t);gt(u,e),null!==o&&pS(0,a-r,u,l,0,o),c&&(Ut(t.index,e)[8]=u)}}(n,e,t,$t(t,e)),128==(128&t.flags)&&function cS(n,e,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function bC(){return W.lFrame.currentDirectiveIndex}();try{_i(o);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];bc(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&Ig(c,u)}}finally{_i(-1),bc(a)}}(n,e,t))}function wu(n,e,t=$t){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}}}function wg(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=ya(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function ya(n,e,t,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function eS(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:G);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 Dg(n,e,t,i){const r=Pg(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&Fg(n).push(i,r.length-1))}function Sg(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 Eu(n,e,t,i){let r=!1;if(Nf()){const s=function uS(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];sg(t,o.selectors,!1)&&(r||(r=[]),ta(As(t,e),n,o.type),Tn(o)?(xg(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,Ag(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=Ir(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=Xo(t.mergedAttrs,d.hostAttrs),Og(n,t,e,c,d),hS(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 nS(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||rg(e)?null:gS(d,s);o.push(h),a=Sg(d,c,a),l=Sg(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 dS(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 M(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=Xo(t.mergedAttrs,t.attrs),r}function Mg(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 aS(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 Ig(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function xg(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function hS(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;Tn(e)&&(t[""]=n)}}function Ag(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function Og(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=Vi(r.type)),o=new Is(s,Tn(r),null);n.blueprint[i]=o,t[i]=o,Mg(n,e,0,i,Ir(n,t,r.hostVars,G),r)}function fS(n,e,t){const i=$t(e,n),r=wg(t),s=n[10],o=va(n,Gs(n,r,null,t.onPush?64:16,i,e,s,s.createRenderer(i,t),null,null));n[e.index]=o}function Un(n,e,t,i,r,s){const o=$t(n,e);!function Cu(n,e,t,i,r,s,o){if(null==s)Fe(n)?n.removeAttribute(e,r,t):e.removeAttribute(r);else{const a=null==o?U(s):o(s,i||"",r);Fe(n)?n.setAttribute(e,r,a,t):t?e.setAttributeNS(t,r,a):e.setAttribute(r,a)}}(e[Y],o,s,n.value,t,i,r)}function pS(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 gS(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 Rg(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}function yS(n,e){const t=Ut(e,n);if(mc(t)){const i=t[1];80&t[2]?xr(i,t,i.template,t[8]):t[5]>0&&Du(t)}}function Du(n){for(let i=zc(n);null!==i;i=$c(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];xr(o,s,o.template,s[8])}else s[5]>0&&Du(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=Ut(t[i],n);mc(r)&&r[5]>0&&Du(r)}}function vS(n,e){const t=Ut(e,n),i=t[1];(function bS(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),qs(i,t,t[8])}function va(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function Su(n){for(;n;){n[2]|=64;const e=js(n);if(QE(n)&&!e)return n;n=e}return null}function kg(n){!function Tu(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=Vc(t),r=i[1];J0(r,i,r.template,t)}}(n[8])}function Iu(n,e,t){Ec(0),e(n,t)}const ES=(()=>Promise.resolve(null))();function Pg(n){return n[7]||(n[7]=[])}function Fg(n){return n.cleanup||(n.cleanup=[])}function Lg(n,e){const t=n[9],i=t?t.get(vi,null):null;i&&i.handleError(e)}function Bg(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 ni(n,e,t){const i=Uo(e,n);!function Mp(n,e,t){Fe(n)?n.setValue(e,t):e.textContent=t}(n[Y],i,t)}function ba(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=Xl(r,a):2==s&&(i=Xl(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const xu=new P("INJECTOR",-1);class Vg{get(e,t=Fs){if(t===Fs){const i=new Error(`NullInjectorError: No provider for ${de(e)}!`);throw i.name="NullInjectorError",i}return t}}const Au=new P("Set Injector scope."),Ks={},SS={};let Ou;function Hg(){return void 0===Ou&&(Ou=new Vg),Ou}function jg(n,e=null,t=null,i){const r=zg(n,e,t,i);return r._resolveInjectorDefTypes(),r}function zg(n,e=null,t=null,i){return new TS(n,t,e||Hg(),i)}class TS{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(xu,Ar(void 0,this));const o=this.records.get(Au);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:de(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=Fs,i=q.Default){this.assertNotDestroyed();const r=dp(this),s=hi(void 0);try{if(!(i&q.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function PS(n){return"function"==typeof n||"object"==typeof n&&n instanceof P}(e)&&tc(e);a=l&&this.injectableDefInScope(l)?Ar(Ru(e),Ks):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&q.Self?Hg():this.parent).get(e,t=i&q.Optional&&t===Fs?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[oa]=o[oa]||[]).unshift(de(e)),r)throw o;return function rD(n,e,t,i){const r=n[oa];throw e[up]&&r.unshift(e[up]),n.message=function sD(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=de(e);if(Array.isArray(e))r=e.map(de).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):de(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(JC,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[oa]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{hi(s),dp(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(de(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processInjectorType(e,t,i){if(!(e=Q(e)))return!1;let r=vf(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=vf(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||_e))}}this.injectorDefTypes.add(o);const l=Vi(o)||(()=>new o);this.records.set(o,Ar(l,Ks));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=Or(e=Q(e))?e:Q(e&&e.provide);const s=function IS(n,e,t){return Ug(n)?Ar(void 0,n.useValue):Ar(function $g(n,e,t){let i;if(Or(n)){const r=Q(n);return Vi(r)||Ru(r)}if(Ug(n))i=()=>Q(n.useValue);else if(function AS(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Fc(n.deps||[]));else if(function xS(n){return!(!n||!n.useExisting)}(n))i=()=>y(Q(n.useExisting));else{const r=Q(n&&(n.useClass||n.provide));if(!function RS(n){return!!n.deps}(n))return Vi(r)||Ru(r);i=()=>new r(...Fc(n.deps))}return i}(n),Ks)}(e);if(Or(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Ar(void 0,Ks,!0),o.factory=()=>Fc(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===Ks&&(t.value=SS,t.value=t.factory()),"object"==typeof t.value&&t.value&&function kS(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=Q(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function Ru(n){const e=tc(n),t=null!==e?e.factory:Vi(n);if(null!==t)return t;if(n instanceof P)throw new M(204,!1);if(n instanceof Function)return function MS(n){const e=n.length;if(e>0)throw Ps(e,"?"),new M(204,!1);const t=function BE(n){const e=n&&(n[Lo]||n[bf]);if(e){const t=function VE(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 M(204,!1)}function Ar(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function Ug(n){return null!==n&&"object"==typeof n&&tD in n}function Or(n){return"function"==typeof n}let mt=(()=>{class n{static create(t,i){var r;if(Array.isArray(t))return jg({name:""},i,t,"");{const s=null!==(r=t.name)&&void 0!==r?r:"";return jg({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=Fs,n.NULL=new Vg,n.\u0275prov=k({token:n,providedIn:"any",factory:()=>y(xu)}),n.__NG_ELEMENT_ID__=-1,n})();function zS(n,e){Ko(Vc(n)[1],qe())}function Rr(n){let e=function nm(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const i=[n];for(;e;){let r;if(Tn(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new M(903,"");r=e.\u0275dir}if(r){if(t){i.push(r);const o=n;o.inputs=Fu(n.inputs),o.declaredInputs=Fu(n.declaredInputs),o.outputs=Fu(n.outputs);const a=r.hostBindings;a&&GS(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&US(n,l),c&&WS(n,c),Ql(n.inputs,r.inputs),Ql(n.declaredInputs,r.declaredInputs),Ql(n.outputs,r.outputs),Tn(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===Rr&&(t=!1)}}e=Object.getPrototypeOf(e)}!function $S(n){let e=0,t=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Xo(r.hostAttrs,t=Xo(t,r.hostAttrs))}}(i)}function Fu(n){return n===cr?{}:n===_e?[]:n}function US(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function WS(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,s)=>{e(i,r,s),t(i,r,s)}:e}function GS(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let wa=null;function kr(){if(!wa){const n=fe.Symbol;if(n&&n.iterator)wa=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&&(wa=i)}}}return wa}function Ys(n){return!!Nu(n)&&(Array.isArray(n)||!(n instanceof Map)&&kr()in n)}function Nu(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function _t(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function Tt(n,e,t,i){const r=w();return _t(r,gr(),e)&&(oe(),Un(Me(),r,n,e,t,i)),Tt}function pe(n,e,t,i,r,s,o,a){const l=w(),c=oe(),u=n+20,d=c.firstCreatePass?function JS(n,e,t,i,r,s,o,a,l){const c=e.consts,u=Mr(e,n,4,o||null,mi(c,a));Eu(e,t,u,mi(c,l)),Ko(e,u);const d=u.tViews=ya(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,t,i,r,s,o):c.data[u];Vn(d,!1);const h=l[Y].createComment("");ua(c,l,h,d),gt(h,l),va(l,l[u]=Rg(h,l,h,d)),$o(d)&&bu(c,l,d),null!=o&&wu(l,d,a)}function at(n){return pr(function _C(){return W.lFrame.contextLView}(),20+n)}function E(n,e=q.Default){const t=w();return null===t?y(n,e):ep(qe(),t,Q(n),e)}function j(n,e,t){const i=w();return _t(i,gr(),e)&&function Kt(n,e,t,i,r,s,o,a){const l=$t(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(Bg(n,t,u,i,r),zo(e)&&function rS(n,e){const t=Ut(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function iS(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,Fe(s)?s.setProperty(l,i,r):Sc(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(oe(),Me(),i,n,e,i[Y],t,!1),j}function ju(n,e,t,i,r){const o=r?"class":"style";Bg(n,t,e.inputs[o],o,i)}function be(n,e,t,i){const r=w(),s=oe(),o=20+n,a=r[Y],l=r[o]=Wc(a,e,function IC(){return W.lFrame.currentNamespace}()),c=s.firstCreatePass?function bT(n,e,t,i,r,s,o){const a=e.consts,c=Mr(e,n,2,r,mi(a,s));return Eu(e,t,c,mi(a,o)),null!==c.attrs&&ba(c,c.attrs,!1),null!==c.mergedAttrs&&ba(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];Vn(c,!0);const u=c.mergedAttrs;null!==u&&Qo(a,l,u);const d=c.classes;null!==d&&Xc(a,l,d);const h=c.styles;return null!==h&&Hp(a,l,h),64!=(64&c.flags)&&ua(s,r,l,c),0===function hC(){return W.lFrame.elementDepthCount}()&>(l,r),function fC(){W.lFrame.elementDepthCount++}(),$o(c)&&(bu(s,r,c),bg(s,c,r)),null!==i&&wu(r,c),be}function Ie(){let n=qe();yc()?vc():(n=n.parent,Vn(n,!1));const e=n;!function pC(){W.lFrame.elementDepthCount--}();const t=oe();return t.firstCreatePass&&(Ko(t,n),lc(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function kC(n){return 0!=(16&n.flags)}(e)&&ju(t,e,w(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function PC(n){return 0!=(32&n.flags)}(e)&&ju(t,e,w(),e.stylesWithoutHost,!1),Ie}function Gi(n,e,t,i){return be(n,e,t,i),Ie(),Gi}function Mt(n,e,t){const i=w(),r=oe(),s=n+20,o=r.firstCreatePass?function wT(n,e,t,i,r){const s=e.consts,o=mi(s,i),a=Mr(e,n,8,"ng-container",o);return null!==o&&ba(a,o,!0),Eu(e,t,a,mi(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,t):r.data[s];Vn(o,!0);const a=i[s]=i[Y].createComment("");return ua(r,i,a,o),gt(a,i),$o(o)&&(bu(r,i,o),bg(r,o,i)),null!=t&&wu(i,o),Mt}function It(){let n=qe();const e=oe();return yc()?vc():(n=n.parent,Vn(n,!1)),e.firstCreatePass&&(Ko(e,n),lc(n)&&e.queries.elementEnd(n)),It}function Gn(n,e,t){return Mt(n,e,t),It(),Gn}function qn(){return w()}function zu(n){return!!n&&"function"==typeof n.then}function Cm(n){return!!n&&"function"==typeof n.subscribe}const ET=Cm;function lt(n,e,t,i){const r=w(),s=oe(),o=qe();return function Sm(n,e,t,i,r,s,o,a){const l=$o(i),u=n.firstCreatePass&&Fg(n),d=e[8],h=Pg(e);let f=!0;if(3&i.type||a){const _=$t(i,e),v=a?a(_):_,m=h.length,C=a?x=>a(ze(x[i.index])):i.index;if(Fe(t)){let x=null;if(!a&&l&&(x=function CT(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!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=s,x.__ngLastListenerFn__=s,f=!1;else{s=$u(i,e,d,s,!1);const K=t.listen(v,r,s);h.push(s,K),u&&u.push(r,C,m,m+1)}}else s=$u(i,e,d,s,!0),v.addEventListener(r,s,o),h.push(s),u&&u.push(r,C,m,o)}else s=$u(i,e,d,s,!1);const p=i.outputs;let g;if(f&&null!==p&&(g=p[r])){const _=g.length;if(_)for(let v=0;v<_;v+=2){const Ce=e[g[v]][g[v+1]].subscribe(s),Ae=h.length;h.push(s,Ce),u&&u.push(r,i.index,Ae,-(Ae+1))}}}(s,r,r[Y],o,n,e,!!t,i),lt}function Tm(n,e,t,i){try{return!1!==t(i)}catch(r){return Lg(n,r),!1}}function $u(n,e,t,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?Ut(n.index,e):e;0==(32&e[2])&&Su(a);let l=Tm(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=Tm(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function ie(n=1){return function EC(n){return(W.lFrame.contextLView=function CC(n,e){for(;n>0;)e=e[15],n--;return e}(n,W.lFrame.contextLView))[8]}(n)}function DT(n,e){let t=null;const i=function k0(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?sg(n,s,!0):N0(i,s))return r}else t=r}return t}function Da(n){const e=w()[16][6];if(!e.projection){const i=e.projection=Ps(n?n.length:1,null),r=i.slice();let s=e.child;for(;null!==s;){const o=n?DT(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function Qs(n,e=0,t){const i=w(),r=oe(),s=Mr(r,20+n,16,null,t||null);null===s.projection&&(s.projection=e),vc(),64!=(64&s.flags)&&function ND(n,e,t){Vp(e[Y],0,e,t,Ap(n,t,e),Pp(t.parent||e[6],t,e))}(r,i,s)}function Nm(n,e,t,i,r){const s=n[t+1],o=null===e;let a=i?In(s):ti(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];MT(n[a],e)&&(l=!0,n[a+1]=i?uu(u):lu(u)),a=i?In(u):ti(u)}l&&(n[t+1]=i?lu(s):uu(s))}function MT(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&Cr(n,e)>=0}const Ye={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Lm(n){return n.substring(Ye.key,Ye.keyEnd)}function IT(n){return n.substring(Ye.value,Ye.valueEnd)}function Vm(n,e){const t=Ye.textEnd;let i=Ye.key=Ur(n,e,t);return t===i?-1:(i=Ye.keyEnd=function RT(n,e,t){let i;for(;e<t&&(45===(i=n.charCodeAt(e))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(n,i,t),i=jm(n,i,t),i=Ye.value=Ur(n,i,t),i=Ye.valueEnd=function kT(n,e,t){let i=-1,r=-1,s=-1,o=e,a=o;for(;o<t;){const l=n.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=zm(n,l,o,t):e===o-4&&85===s&&82===r&&76===i&&40===l?a=o=zm(n,41,o,t):l>32&&(a=o),s=r,r=i,i=-33&l}return a}(n,i,t),jm(n,i,t))}function Ur(n,e,t){for(;e<t&&n.charCodeAt(e)<=32;)e++;return e}function jm(n,e,t,i){return(e=Ur(n,e,t))<t&&e++,e}function zm(n,e,t,i){let r=-1,s=t;for(;s<i;){const o=n.charCodeAt(s++);if(o==e&&92!==r)return s;r=92==o&&92===r?0:o}throw new Error}function Xs(n,e,t){return An(n,e,t,!1),Xs}function ii(n,e){return An(n,e,null,!0),ii}function yt(n){!function On(n,e,t,i){const r=oe(),s=ei(2);r.firstUpdatePass&&Um(r,null,s,i);const o=w();if(t!==G&&_t(o,s,t)){const a=r.data[Dt()];if(Km(a,i)&&!$m(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=Xl(l,t||"")),ju(r,a,o,t,i)}else!function jT(n,e,t,i,r,s,o,a){r===G&&(r=_e);let l=0,c=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,f=c<s.length?s[c+1]:void 0;let g,p=null;u===d?(l+=2,c+=2,h!==f&&(p=d,g=f)):null===d||null!==u&&u<d?(l+=2,p=u):(c+=2,p=d,g=f),null!==p&&Gm(n,e,t,i,p,g,o,a),u=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}(r,a,o,o[Y],o[s+1],o[s+1]=function HT(n,e,t){if(null==t||""===t)return _e;const i=[],r=qt(t);if(Array.isArray(r))for(let s=0;s<r.length;s++)n(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&n(i,s,r[s]);else"string"==typeof r&&e(i,r);return i}(n,e,t),i,s)}}(Wm,PT,n,!1)}function PT(n,e){for(let t=function AT(n){return function Hm(n){Ye.key=0,Ye.keyEnd=0,Ye.value=0,Ye.valueEnd=0,Ye.textEnd=n.length}(n),Vm(n,Ur(n,0,Ye.textEnd))}(e);t>=0;t=Vm(e,t))Wm(n,Lm(e),IT(e))}function An(n,e,t,i){const r=w(),s=oe(),o=ei(2);s.firstUpdatePass&&Um(s,n,o,i),e!==G&&_t(r,o,e)&&Gm(s,s.data[Dt()],r,r[Y],n,r[o+1]=function zT(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=de(qt(n)))),n}(e,t),i,o)}function $m(n,e){return e>=n.expandoStartIndex}function Um(n,e,t,i){const r=n.data;if(null===r[t+1]){const s=r[Dt()],o=$m(n,t);Km(s,i)&&null===e&&!o&&(e=!1),e=function NT(n,e,t,i){const r=function wc(n){const e=W.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=Js(t=Wu(null,n,e,t,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==r)if(t=Wu(r,n,e,t,i),null===s){let l=function LT(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==ti(i))return n[In(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=Wu(null,n,e,l[1],i),l=Js(l,e.attrs,i),function BT(n,e,t,i){n[In(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else s=function VT(n,e,t){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=Js(i,n[s].hostAttrs,t);return Js(i,e.attrs,t)}(n,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),t}(r,s,e,i),function ST(n,e,t,i,r,s){let o=s?e.classBindings:e.styleBindings,a=In(o),l=ti(o);n[i]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||Cr(d,u)>0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=In(n[a+1]);n[i+1]=ga(h,a),0!==h&&(n[h+1]=cu(n[h+1],i)),n[a+1]=function H0(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=ga(a,0),0!==a&&(n[a+1]=cu(n[a+1],i)),a=i;else n[i+1]=ga(l,0),0===a?a=i:n[l+1]=cu(n[l+1],i),l=i;c&&(n[i+1]=lu(n[i+1])),Nm(n,u,i,!0),Nm(n,u,i,!1),function TT(n,e,t,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&Cr(s,e)>=0&&(t[i+1]=uu(t[i+1]))}(e,u,n,i,s),o=ga(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,t,o,i)}}function Wu(n,e,t,i,r){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],i=Js(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),i}function Js(n,e,t){const i=t?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),Wt(n,o,!!t||e[++s]))}return void 0===n?null:n}function Wm(n,e,t){Wt(n,e,qt(t))}function Gm(n,e,t,i,r,s,o,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];Sa(function ug(n){return 1==(1&n)}(c)?qm(l,e,t,r,ti(c),o):void 0)||(Sa(s)||function cg(n){return 2==(2&n)}(c)&&(s=qm(l,null,t,r,a,o)),function BD(n,e,t,i,r){const s=Fe(n);if(e)r?s?n.addClass(t,i):t.classList.add(i):s?n.removeClass(t,i):t.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:Gt.DashCase;if(null==r)s?n.removeStyle(t,i,o):t.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=Gt.Important),s?n.setStyle(t,i,r,o):t.style.setProperty(i,r,a?"important":"")}}}(i,o,Uo(Dt(),t),r,s))}function qm(n,e,t,i,r,s){const o=null===e;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===G&&(h=d?_e:void 0);let f=d?Rc(h,i):u===i?h:void 0;if(c&&!Sa(f)&&(f=Rc(l,i)),Sa(f)&&(a=f,o))return a;const p=n[r+1];r=o?In(p):ti(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=Rc(l,i))}return a}function Sa(n){return void 0!==n}function Km(n,e){return 0!=(n.flags&(e?16:32))}function eo(n,e=""){const t=w(),i=oe(),r=n+20,s=i.firstCreatePass?Mr(i,r,1,e,null):i.data[r],o=t[r]=function Uc(n,e){return Fe(n)?n.createText(e):n.createTextNode(e)}(t[Y],e);ua(i,t,o,s),Vn(s,!1)}function Wr(n){return Gu("",n,""),Wr}function Gu(n,e,t){const i=w(),r=function Fr(n,e,t,i){return _t(n,gr(),t)?e+U(t)+i:G}(i,n,e,t);return r!==G&&ni(i,Dt(),r),Gu}const Ta="en-US";let m_=Ta;class j_{}class dI{resolveComponentFactory(e){throw function uI(n){const e=Error(`No component factory found for ${de(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let Ei=(()=>{class n{}return n.NULL=new dI,n})();function hI(){return Kr(qe(),w())}function Kr(n,e){return new Ze($t(n,e))}let Ze=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=hI,n})();function fI(n){return n instanceof Ze?n.nativeElement:n}class so{}let Oa=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function gI(){const n=w(),t=Ut(qe().index,n);return function pI(n){return n[Y]}(Bn(t)?t:n)}(),n})(),mI=(()=>{class n{}return n.\u0275prov=k({token:n,providedIn:"root",factory:()=>null}),n})();class Yr{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const _I=new Yr("13.4.0"),Ju={};function Ra(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(ze(s)),Sn(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&Ra(l[1],l,c,i)}const o=t.type;if(8&o)Ra(n,e,t.child,i);else if(32&o){const a=jc(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Bp(e,t);if(Array.isArray(a))i.push(...a);else{const l=js(e[16]);Ra(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class oo{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 Ra(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(Sn(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(Gc(e,i),ra(t,i))}this._attachedToViewContainer=!1}xp(this._lView[1],this._lView)}onDestroy(e){Dg(this._lView[1],this._lView,null,e)}markForCheck(){Su(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Mu(n,e,t){const i=e[10];i.begin&&i.begin();try{xr(n,e,n.template,t)}catch(r){throw Lg(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ID(n,e){zs(n,e,e[Y],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new M(902,"");this._appRef=e}}class yI extends oo{constructor(e){super(e),this._view=e}detectChanges(){kg(this._view)}checkNoChanges(){}get context(){return null}}class $_ extends Ei{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=ot(e);return new ed(t,this.ngModule)}}function U_(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class ed extends j_{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function B0(n){return n.map(L0).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return U_(this.componentDef.inputs)}get outputs(){return U_(this.componentDef.outputs)}create(e,t,i,r){const s=(r=r||this.ngModule)?function bI(n,e){return{get:(t,i,r)=>{const s=n.get(t,Ju,r);return s!==Ju||i===Ju?s:e.get(t,i,r)}}}(e,r.injector):e,o=s.get(so,Rf),a=s.get(mI,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function Cg(n,e,t){if(Fe(n))return n.selectRootElement(e,t===Cn.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Wc(o.createRenderer(null,this.componentDef),c,function vI(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function tm(n,e){return{components:[],scheduler:n||S0,clean:ES,playerHandler:e||null,flags:0}}(),f=ya(0,null,null,1,0,null,null,null,null,null),p=Gs(null,f,h,d,null,null,o,l,a,s);let g,_;Go(p);try{const v=function Jg(n,e,t,i,r,s){const o=t[1];t[20]=n;const l=Mr(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(ba(l,c,!0),null!==n&&(Qo(r,n,c),null!==l.classes&&Xc(r,n,l.classes),null!==l.styles&&Hp(r,n,l.styles)));const u=i.createRenderer(n,e),d=Gs(t,wg(e),null,e.onPush?64:16,t[20],l,i,u,s||null,null);return o.firstCreatePass&&(ta(As(l,t),o,e.type),xg(o,l),Ag(l,t.length,1)),va(t,d),t[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)Qo(l,u,["ng-version",_I.full]);else{const{attrs:m,classes:C}=function V0(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(!Mn(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);m&&Qo(l,u,m),C&&C.length>0&&Xc(l,u,C.join(" "))}if(_=gc(f,20),void 0!==t){const m=_.projection=[];for(let C=0;C<this.ngContentSelectors.length;C++){const x=t[C];m.push(null!=x?Array.from(x):null)}}g=function em(n,e,t,i,r){const s=t[1],o=function oS(n,e,t){const i=qe();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),Og(n,i,e,Ir(n,e,1,null),t));const r=Os(e,n,i.directiveStart,i);gt(r,e);const s=$t(i,e);return s&>(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=qe();e.contentQueries(1,o,l.directiveStart)}const a=qe();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(_i(a.index),Mg(t[1],a,0,a.directiveStart,a.directiveEnd,e),Ig(e,o)),o}(v,this.componentDef,p,h,[zS]),qs(f,p,null)}finally{qo()}return new EI(this.componentType,g,Kr(_,p),p,_)}}class EI extends class cI{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new yI(r),this.componentType=e}get injector(){return new yr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class Zr{}const Qr=new Map;class q_ extends Zr{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new $_(this);const i=sn(e);this._bootstrapComponents=$n(i.bootstrap),this._r3Injector=zg(e,t,[{provide:Zr,useValue:this},{provide:Ei,useValue:this.componentFactoryResolver}],de(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=mt.THROW_IF_NOT_FOUND,i=q.Default){return e===mt||e===Zr||e===xu?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 td extends class DI{}{constructor(e){super(),this.moduleType=e,null!==sn(e)&&function SI(n){const e=new Set;!function t(i){const r=sn(i,!0),s=r.id;null!==s&&(function W_(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${de(e)} vs ${de(e.name)}`)}(s,Qr.get(s),i),Qr.set(s,i));const o=$n(r.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new q_(this.moduleType,e)}}function K_(n,e,t,i,r,s){const o=e+t;return _t(n,o,r)?function Wn(n,e,t){return n[e]=t}(n,o+1,s?i.call(s,r):i(r)):function ao(n,e){const t=n[e];return t===G?void 0:t}(n,o+1)}function ey(n,e,t){const i=n+20,r=w(),s=pr(r,i);return function lo(n,e){return n[1].data[e].pure}(r,i)?K_(r,function Ct(){const n=W.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}(),e,s.transform,t,s):s.transform(t)}function nd(n){return e=>{setTimeout(n,void 0,e)}}const ct=class jI extends b{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=nd(l),a&&(a=nd(a)),c&&(c=nd(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof N&&e.add(u),u}};function zI(){return this._results[kr()]()}class id{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=kr(),i=id.prototype;i[t]||(i[t]=zI)}get changes(){return this._changes||(this._changes=new ct)}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=ln(e);(this._changesDetected=!function UC(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 ri=(()=>{class n{}return n.__NG_ELEMENT_ID__=WI,n})();const $I=ri,UI=class extends $I{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=Gs(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)),qs(t,i,e),new oo(i)}};function WI(){return ka(qe(),w())}function ka(n,e){return 4&n.type?new UI(e,n,Kr(n,e)):null}let Yt=(()=>{class n{}return n.__NG_ELEMENT_ID__=GI,n})();function GI(){return iy(qe(),w())}const qI=Yt,ty=class extends qI{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return Kr(this._hostTNode,this._hostLView)}get injector(){return new yr(this._hostTNode,this._hostLView)}get parentInjector(){const e=ea(this._hostTNode,this._hostLView);if(Yf(e)){const t=_r(e,this._hostLView),i=mr(e);return new yr(t[1].data[i+8],t)}return new yr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=ny(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 ks(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 ed(ot(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(Zr,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 dC(n){return Sn(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new ty(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function AD(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],sp(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function OD(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=Yc(s,o),l=i[Y],c=ca(l,o[7]);return null!==c&&function MD(n,e,t,i,r,s){i[0]=r,i[6]=e,zs(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),sp(rd(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=ny(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=Gc(this._lContainer,t);i&&(ra(rd(this._lContainer),t),xp(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=Gc(this._lContainer,t);return i&&null!=ra(rd(this._lContainer),t)?new oo(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function ny(n){return n[8]}function rd(n){return n[8]||(n[8]=[])}function iy(n,e){let t;const i=e[n.index];if(Sn(i))t=i;else{let r;if(8&n.type)r=ze(i);else{const s=e[Y];r=s.createComment("");const o=$t(n,e);zi(s,ca(s,o),r,function FD(n,e){return Fe(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=Rg(i,e,r,n),va(e,t)}return new ty(t,n,e)}class sd{constructor(e){this.queryList=e,this.matches=null}clone(){return new sd(this.queryList)}setDirty(){this.queryList.setDirty()}}class od{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 od(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!==ly(e,t).matches&&this.queries[t].setDirty()}}class ry{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class ad{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 ad(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 ld{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 ld(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,ZI(t,s)),this.matchTNodeWithReadOption(e,t,na(t,e,s,!1,!1))}else i===ri?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,na(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Ze||r===Yt||r===ri&&4&t.type)this.addMatch(t.index,-2);else{const s=na(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 ZI(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 XI(n,e,t,i){return-1===t?function QI(n,e){return 11&n.type?Kr(n,e):4&n.type?ka(n,e):null}(e,n):-2===t?function JI(n,e,t){return t===Ze?Kr(e,n):t===ri?ka(e,n):t===Yt?iy(e,n):void 0}(n,e,i):Os(n,n[1],t,e)}function sy(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:XI(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function cd(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=sy(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]&&cd(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];cd(f[1],f,c,i)}}}}}return i}function Xr(n){const e=w(),t=oe(),i=Hf();Ec(i+1);const r=ly(t,i);if(n.dirty&&kf(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?cd(t,e,i,[]):sy(t,e,r,i);n.reset(s,fI),n.notifyOnChanges()}return!0}return!1}function Jr(n,e,t){const i=oe();i.firstCreatePass&&(function ay(n,e,t){null===n.queries&&(n.queries=new ad),n.queries.track(new ld(e,t))}(i,new ry(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),function oy(n,e,t){const i=new id(4==(4&t));Dg(n,e,i,i.destroy),null===e[19]&&(e[19]=new od),e[19].queries.push(new sd(i))}(i,w(),e)}function es(){return function tx(n,e){return n[19].queries[e].queryList}(w(),Hf())}function ly(n,e){return n.queries.getByIndex(e)}function cy(n,e){return ka(n,e)}function Na(...n){}const Ty=new P("Application Initializer");let gd=(()=>{class n{constructor(t){this.appInits=t,this.resolve=Na,this.reject=Na,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(zu(s))t.push(s);else if(ET(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)(y(Ty,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const uo=new P("AppId",{providedIn:"root",factory:function My(){return`${md()}${md()}${md()}`}});function md(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Iy=new P("Platform Initializer"),La=new P("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),vx=new P("appBootstrapListener"),si=new P("LocaleId",{providedIn:"root",factory:()=>aa(si,q.Optional|q.SkipSelf)||function bx(){return"undefined"!=typeof $localize&&$localize.locale||Ta}()}),Dx=(()=>Promise.resolve(0))();function _d(n){"undefined"==typeof Zone?Dx.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ue{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ct(!1),this.onMicrotaskEmpty=new ct(!1),this.onStable=new ct(!1),this.onError=new ct(!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 Sx(){let n=fe.requestAnimationFrame,e=fe.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 Ix(n){const e=()=>{!function Mx(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(fe,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,vd(n),n.isCheckStableRunning=!0,yd(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),vd(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return xy(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),Ay(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return xy(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),Ay(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,vd(n),yd(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(!ue.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ue.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,Tx,Na,Na);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 Tx={};function yd(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 vd(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function xy(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Ay(n){n._nesting--,yd(n)}class xx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ct,this.onMicrotaskEmpty=new ct,this.onStable=new ct,this.onError=new ct}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 bd=(()=>{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:()=>{ue.assertNotInAngularZone(),_d(()=>{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())_d(()=>{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)(y(ue))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),Ax=(()=>{class n{constructor(){this._applications=new Map,wd.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 wd.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class Ox{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let wd=new Ox,Ki=null;const Oy=new P("AllowMultipleToken"),Ry=new P("PlatformOnDestroy");function ky(n,e,t=[]){const i=`Platform: ${e}`,r=new P(i);return(s=[])=>{let o=Ed();if(!o||o.injector.get(Oy,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function Fx(n){if(Ki&&!Ki.get(Oy,!1))throw new M(400,"");Ki=n;const e=n.get(Py),t=n.get(Iy,null);t&&t.forEach(i=>i())}(function Lx(n=[],e){return mt.create({name:e,providers:[{provide:Au,useValue:"platform"},{provide:Ry,useValue:()=>Ki=null},...n]})}(a,i))}return function Nx(n){const e=Ed();if(!e)throw new M(401,"");return e}()}}function Ed(){var n;return null!==(n=null==Ki?void 0:Ki.get(Py))&&void 0!==n?n:null}let Py=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function Bx(n,e){let t;return t="noop"===n?new xx:("zone.js"===n?void 0:n)||new ue({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:ue,useValue:a}];return a.run(()=>{const c=mt.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(vi,null);if(!d)throw new M(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{Cd(this._modules,u),h.unsubscribe()})}),function Vx(n,e,t){try{const i=t();return zu(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(gd);return h.runInitializers(),h.donePromise.then(()=>(function fM(n){jt(n,"Expected localeId to be defined"),"string"==typeof n&&(m_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(si,Ta)||Ta),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=Fy({},i);return function kx(n,e,t){const i=new td(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(Ba);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new M(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 M(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(Ry,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(y(mt))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function Fy(n,e){return Array.isArray(e)?e.reduce(Fy,n):Object.assign(Object.assign({},n),e)}let Ba=(()=>{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 J(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new J(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{ue.assertNotInAngularZone(),_d(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{ue.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=Fo(o,a.pipe(mf()))}bootstrap(t,i){if(!this._initStatus.done)throw new M(405,"");let r;r=t instanceof j_?t:this._injector.get(Ei).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const s=function Px(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Zr),a=r.create(mt.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(bd,null),u=c&&a.injector.get(Ax);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Cd(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new M(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;Cd(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(vx,[]).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)(y(ue),y(mt),y(vi),y(gd))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Cd(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let Ly=!0,ns=(()=>{class n{}return n.__NG_ELEMENT_ID__=zx,n})();function zx(n){return function $x(n,e,t){if(zo(n)&&!t){const i=Ut(n.index,e);return new oo(i,i)}return 47&n.type?new oo(e[16],e):null}(qe(),w(),16==(16&n))}class zy{constructor(){}supports(e){return Ys(e)}create(e){return new Yx(e)}}const Kx=(n,e)=>e;class Yx{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Kx}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,s=null;for(;t||i;){const o=!i||t&&t.currentIndex<Uy(i,r,s)?t:i,a=Uy(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&e(o,a,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Ys(e))throw new M(900,"");return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,s,o,t=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),i=!0),t=t._next}else r=0,function XS(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[kr()]();let i;for(;!(i=t.next()).done;)e(i.value)}}(e,a=>{o=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new Zx(t,i),s,r),e}_verifyReinsertion(e,t,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new $y),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new $y),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class Zx{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Qx{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class $y{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new Qx,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Uy(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+e+r}class Wy{constructor(){}supports(e){return e instanceof Map||Nu(e)}create(){return new Xx}}class Xx{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Nu(e)))throw new M(900,"")}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const r=this._records.get(e);this._maybeAddToChanges(r,t);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new Jx(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(i=>t(e[i],i))}}class Jx{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Gy(){return new ja([new zy])}let ja=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Gy()),deps:[[n,new Bs,new ji]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new M(901,"")}}return n.\u0275prov=k({token:n,providedIn:"root",factory:Gy}),n})();function qy(){return new ho([new Wy])}let ho=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||qy()),deps:[[n,new Bs,new ji]]}}find(t){const i=this.factories.find(s=>s.supports(t));if(i)return i;throw new M(901,"")}}return n.\u0275prov=k({token:n,providedIn:"root",factory:qy}),n})();const nA=ky(null,"core",[]);let iA=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(y(Ba))},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({}),n})(),za=null;function Ci(){return za}const se=new P("DocumentToken");let fo=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:function(){return function aA(){return y(Ky)}()},providedIn:"platform"}),n})(),Ky=(()=>{class n extends fo{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ci().getBaseHref(this._doc)}onPopState(t){const i=Ci().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=Ci().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,i,r){Yy()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){Yy()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(y(se))},n.\u0275prov=k({token:n,factory:function(){return function lA(){return new Ky(y(se))}()},providedIn:"platform"}),n})();function Yy(){return!!window.history.pushState}function Zy(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function Qy(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function Zi(n){return n&&"?"!==n[0]?"?"+n:n}let Id=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:function(){return function cA(n){const e=y(se).location;return new dA(y(fo),e&&e.origin||"")}()},providedIn:"root"}),n})();const uA=new P("appBaseHref");let dA=(()=>{class n extends Id{constructor(t,i){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Zy(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Zi(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,s){const o=this.prepareExternalUrl(r+Zi(s));this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,s){const o=this.prepareExternalUrl(r+Zi(s));this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return n.\u0275fac=function(t){return new(t||n)(y(fo),y(uA,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),Xy=(()=>{class n{constructor(t,i){this._subject=new ct,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Qy(Jy(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Zi(i))}normalize(t){return n.stripTrailingSlash(function fA(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,Jy(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._platformStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Zi(i)),r)}replaceState(t,i="",r=null){this._platformStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Zi(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return n.normalizeQueryParams=Zi,n.joinWithSlash=Zy,n.stripTrailingSlash=Qy,n.\u0275fac=function(t){return new(t||n)(y(Id),y(fo))},n.\u0275prov=k({token:n,factory:function(){return function hA(){return new Xy(y(Id),y(fo))}()},providedIn:"root"}),n})();function Jy(n){return n.replace(/\/index.html$/,"")}let Xa=(()=>{class n{constructor(t,i,r,s){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Ys(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${de(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(t){return new(t||n)(E(ja),E(ho),E(Ze),E(Oa))},n.\u0275dir=je({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class XA{constructor(e,t,i,r){this.$implicit=e,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let lv=(()=>{class n{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new XA(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),cv(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{cv(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(E(Yt),E(ri),E(ja))},n.\u0275dir=je({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function cv(n,e){n.context.$implicit=e.item}let Bd=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new JA,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){uv("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){uv("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(E(Yt),E(ri))},n.\u0275dir=je({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class JA{constructor(){this.$implicit=null,this.ngIf=null}}function uv(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${de(e)}'.`)}const dv="browser";class jd{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let _o=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const i=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=je({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),zd=(()=>{class n{constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new jd(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(E(Yt),E(ri),E(_o,9))},n.\u0275dir=je({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),mv=(()=>{class n{constructor(t,i,r){r._addDefault(new jd(t,i))}}return n.\u0275fac=function(t){return new(t||n)(E(Yt),E(ri),E(_o,9))},n.\u0275dir=je({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),$d=(()=>{class n{constructor(t,i,r){this._ngEl=t,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,i){const[r,s]=t.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(t){t.forEachRemovedItem(i=>this._setStyle(i.key,null)),t.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),t.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(E(Ze),E(ho),E(Oa))},n.\u0275dir=je({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),yv=(()=>{class n{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(t){return new(t||n)(E(Yt))},n.\u0275dir=je({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Hi]}),n})();class OO{createSubscription(e,t){return e.subscribe({next:t,error:i=>{throw i}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class RO{createSubscription(e,t){return e.then(t,i=>{throw i})}dispose(e){}onDestroy(e){}}const kO=new RO,PO=new OO;let vv=(()=>{class n{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(zu(t))return kO;if(Cm(t))return PO;throw function kn(n,e){return new M(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(t){return new(t||n)(E(ns,16))},n.\u0275pipe=Pt({name:"async",type:n,pure:!1}),n})(),Gd=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({}),n})();class qd extends class eR extends class oA{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function sA(n){za||(za=n)}(new qd)}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 tR(){return yo=yo||document.querySelector("base"),yo?yo.getAttribute("href"):null}();return null==t?null:function nR(n){tl=tl||document.createElement("a"),tl.setAttribute("href",n);const e=tl.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){yo=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function ZA(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 tl,yo=null;const Ev=new P("TRANSITION_ID"),rR=[{provide:Ty,useFactory:function iR(n,e,t){return()=>{t.get(gd).donePromise.then(()=>{const i=Ci(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[Ev,se,mt],multi:!0}];class Kd{static init(){!function Rx(n){wd=n}(new Kd)}addToWindow(e){fe.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},fe.getAllAngularTestabilities=()=>e.getAllTestabilities(),fe.getAllAngularRootElements=()=>e.getAllRootElements(),fe.frameworkStabilizers||(fe.frameworkStabilizers=[]),fe.frameworkStabilizers.push(i=>{const r=fe.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?Ci().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let sR=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const nl=new P("EventManagerPlugins");let il=(()=>{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)(y(nl),y(ue))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class Cv{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=Ci().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let Dv=(()=>{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=k({token:n,factory:n.\u0275fac}),n})(),vo=(()=>{class n extends Dv{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(Sv),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Sv))}}return n.\u0275fac=function(t){return new(t||n)(y(se))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function Sv(n){Ci().remove(n)}const Yd={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/"},Zd=/%COMP%/g;function rl(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?rl(n,r,t):(r=r.replace(Zd,n),t.push(r))}return t}function Iv(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let sl=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Qd(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case Cn.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new dR(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case Cn.ShadowDom:return new hR(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=rl(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)(y(il),y(vo),y(uo))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class Qd{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(Yd[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=Yd[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=Yd[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&(Gt.DashCase|Gt.Important)?e.style.setProperty(t,i,r&Gt.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&Gt.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,Iv(i)):this.eventManager.addEventListener(e,t,Iv(i))}}class dR extends Qd{constructor(e,t,i,r){super(e),this.component=i;const s=rl(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function lR(n){return"_ngcontent-%COMP%".replace(Zd,n)}(r+"-"+i.id),this.hostAttr=function cR(n){return"_nghost-%COMP%".replace(Zd,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 hR extends Qd{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=rl(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 fR=(()=>{class n extends Cv{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)(y(se))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const Av=["alt","control","meta","shift"],gR={"\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"},Ov={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"},mR={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let _R=(()=>{class n extends Cv{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(()=>Ci().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(Av.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 yR(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&&Ov.hasOwnProperty(e)&&(e=Ov[e]))}return gR[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Av.forEach(s=>{s!=r&&mR[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)(y(se))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const ER=ky(nA,"browser",[{provide:La,useValue:dv},{provide:Iy,useValue:function vR(){qd.makeCurrent(),Kd.init()},multi:!0},{provide:se,useFactory:function wR(){return function aC(n){fc=n}(document),document},deps:[]}]),CR=[{provide:Au,useValue:"root"},{provide:vi,useFactory:function bR(){return new vi},deps:[]},{provide:nl,useClass:fR,multi:!0,deps:[se,ue,La]},{provide:nl,useClass:_R,multi:!0,deps:[se]},{provide:sl,useClass:sl,deps:[il,vo,uo]},{provide:so,useExisting:sl},{provide:Dv,useExisting:vo},{provide:vo,useClass:vo,deps:[se]},{provide:bd,useClass:bd,deps:[ue]},{provide:il,useClass:il,deps:[nl,ue]},{provide:class XO{},useClass:sR,deps:[]}];let Xd=(()=>{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:uo,useValue:t.appId},{provide:Ev,useExisting:uo},rR]}}}return n.\u0275fac=function(t){return new(t||n)(y(n,12))},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({providers:CR,imports:[Gd,iA]}),n})();"undefined"!=typeof window&&window;let ol=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:function(t){let i=null;return i=t?new(t||n):y(Pv),i},providedIn:"root"}),n})(),Pv=(()=>{class n extends ol{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case ce.NONE:return i;case ce.HTML:return jn(i,"HTML")?qt(i):Xp(this._doc,String(i)).toString();case ce.STYLE:return jn(i,"Style")?qt(i):i;case ce.SCRIPT:if(jn(i,"Script"))return qt(i);throw new Error("unsafe value used in a script context");case ce.URL:return Up(i),jn(i,"URL")?qt(i):$s(String(i));case ce.RESOURCE_URL:if(jn(i,"ResourceURL"))return qt(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function qD(n){return new zD(n)}(t)}bypassSecurityTrustStyle(t){return function KD(n){return new $D(n)}(t)}bypassSecurityTrustScript(t){return function YD(n){return new UD(n)}(t)}bypassSecurityTrustUrl(t){return function ZD(n){return new WD(n)}(t)}bypassSecurityTrustResourceUrl(t){return function QD(n){return new GD(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(y(se))},n.\u0275prov=k({token:n,factory:function(t){let i=null;return i=t?new t:function kR(n){return new Pv(n.get(se))}(y(mt)),i},providedIn:"root"}),n})();function al(n){return null!=n&&"false"!=`${n}`}function Fv(n,e=0){return function PR(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}function ll(n){return Array.isArray(n)?n:[n]}function We(n){return null==n?"":"string"==typeof n?n:`${n}px`}function is(n){return n instanceof Ze?n.nativeElement:n}function hn(...n){let e=n[n.length-1];return V(e)?(n.pop(),Kl(n,e)):Zl(n)}function eh(n,e,t,i){return dt(t)&&(i=t,t=void 0),i?eh(n,e,t).pipe(O(r=>Ve(r)?i(...r):i(r))):new J(r=>{Nv(n,e,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,t)})}function Nv(n,e,t,i,r){let s;if(function LR(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(e,t,r),s=()=>o.removeEventListener(e,t,r)}else if(function NR(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(e,t),s=()=>o.off(e,t)}else if(function FR(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(e,t),s=()=>o.removeListener(e,t)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)Nv(n[o],e,t,i,r)}i.add(s)}class BR extends N{constructor(e,t){super()}schedule(e,t=0){return this}}class cl extends BR{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 Lv=(()=>{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 Pn extends Lv{constructor(e,t=Lv.now){super(e,()=>Pn.delegate&&Pn.delegate!==this?Pn.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return Pn.delegate&&Pn.delegate!==this?Pn.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 HR extends Pn{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 VR extends cl{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 zR=1;const $R=Promise.resolve(),ul={};function Bv(n){return n in ul&&(delete ul[n],!0)}const Vv={setImmediate(n){const e=zR++;return ul[e]=!0,$R.then(()=>Bv(e)&&n()),e},clearImmediate(n){Bv(n)}},th=(new class WR extends Pn{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 UR extends cl{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=Vv.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&&(Vv.clearImmediate(t),e.scheduled=void 0)}}),new Pn(cl));class KR{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new YR(e,this.durationSelector))}}class YR extends ws{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let t;try{const{durationSelector:r}=this;t=r(e)}catch(r){return this.destination.error(r)}const i=Es(t,new bs(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Hv(n){return!Ve(n)&&n-parseFloat(n)+1>=0}function QR(n){const{index:e,period:t,subscriber:i}=n;if(i.next(e),!i.closed){if(-1===t)return i.complete();n.index=e+1,this.schedule(n,t)}}function jv(n,e=th){return function qR(n){return function(t){return t.lift(new KR(n))}}(()=>function ZR(n=0,e,t){let i=-1;return Hv(e)?i=Number(e)<1?1:Number(e):V(e)&&(t=e),V(t)||(t=th),new J(r=>{const s=Hv(n)?n:+n-t.now();return t.schedule(QR,s,{index:0,period:i,subscriber:r})})}(n,e))}function dl(n,e){return function(i){return i.lift(new XR(n,e))}}class XR{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new JR(e,this.predicate,this.thisArg))}}class JR extends R{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)}}function fn(n){return e=>e.lift(new ek(n))}class ek{constructor(e){this.notifier=e}call(e,t){const i=new tk(e),r=Es(this.notifier,new bs(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class tk extends ws{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let nh;try{nh="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){nh=!1}let bo,fl,Qi,ih,pn=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function iO(n){return n===dv}(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&&!nh)&&"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)(y(La))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function hl(n){return function nk(){if(null==bo&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>bo=!0}))}finally{bo=bo||!1}return bo}()?n:!!n.capture}function $v(){if(null==Qi){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Qi=!1,Qi;if("scrollBehavior"in document.documentElement.style)Qi=!0;else{const n=Element.prototype.scrollTo;Qi=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Qi}function wo(){if("object"!=typeof document||!document)return 0;if(null==fl){const n=document.createElement("div"),e=n.style;n.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const t=document.createElement("div"),i=t.style;i.width="2px",i.height="1px",n.appendChild(t),document.body.appendChild(n),fl=0,0===n.scrollLeft&&(n.scrollLeft=1,fl=0===n.scrollLeft?1:2),n.remove()}return fl}function Xi(n){return n.composedPath?n.composedPath()[0]:n.target}function rh(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const sk=new P("cdk-dir-doc",{providedIn:"root",factory:function ok(){return aa(se)}}),ak=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let sh=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new ct,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function lk(n){const e=(null==n?void 0:n.toLowerCase())||"";return"auto"===e&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?ak.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(y(sk,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Eo=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({}),n})(),oh=(()=>{class n{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new b,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new J(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(jv(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):hn()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(dl(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,t)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=is(i),s=t.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>eh(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(t){return new(t||n)(y(ue),y(pn),y(se,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Uv=(()=>{class n{constructor(t,i,r,s){this.elementRef=t,this.scrollDispatcher=i,this.ngZone=r,this.dir=s,this._destroyed=new b,this._elementScrolled=new J(o=>this.ngZone.runOutsideAngular(()=>eh(this.elementRef.nativeElement,"scroll").pipe(fn(this._destroyed)).subscribe(o)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=r?t.end:t.start),null==t.right&&(t.right=r?t.start:t.end),null!=t.bottom&&(t.top=i.scrollHeight-i.clientHeight-t.bottom),r&&0!=wo()?(null!=t.left&&(t.right=i.scrollWidth-i.clientWidth-t.left),2==wo()?t.left=t.right:1==wo()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=i.scrollWidth-i.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const i=this.elementRef.nativeElement;$v()?i.scrollTo(t):(null!=t.top&&(i.scrollTop=t.top),null!=t.left&&(i.scrollLeft=t.left))}measureScrollOffset(t){const i="left",r="right",s=this.elementRef.nativeElement;if("top"==t)return s.scrollTop;if("bottom"==t)return s.scrollHeight-s.clientHeight-s.scrollTop;const o=this.dir&&"rtl"==this.dir.value;return"start"==t?t=o?r:i:"end"==t&&(t=o?i:r),o&&2==wo()?t==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:o&&1==wo()?t==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:t==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}}return n.\u0275fac=function(t){return new(t||n)(E(Ze),E(oh),E(ue),E(sh,8))},n.\u0275dir=je({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),Wv=(()=>{class n{constructor(t,i,r){this._platform=t,this._change=new b,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,s=r.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(jv(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(y(pn),y(ue),y(se,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ah=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({}),n})(),lh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({imports:[[Eo,ah],Eo,ah]}),n})();class ch{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class Gv extends ch{constructor(e,t,i,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r}}class dk extends ch{constructor(e,t,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class hk extends ch{constructor(e){super(),this.element=e instanceof Ze?e.nativeElement:e}}class pk extends class fk{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof Gv?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof dk?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof hk?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(e,t,i,r,s){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(e){const i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector||mt.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let gk=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({}),n})();const mk=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),_k=new J(n=>n.complete());function qv(n){return n?function yk(n){return new J(e=>n.schedule(()=>e.complete()))}(n):_k}function ss(n){return e=>0===n?qv():e.lift(new vk(n))}class vk{constructor(e){if(this.total=e,this.total<0)throw new mk}call(e,t){return t.subscribe(new bk(e,this.total))}}class bk extends R{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()))}}const Kv=$v();class wk{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=We(-this._previousScrollPosition.left),e.style.top=We(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,i=e.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Kv&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Kv&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class Ek{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Yv{enable(){}disable(){}attach(){}}function uh(n,e){return e.some(t=>n.bottom<t.top||n.top>t.bottom||n.right<t.left||n.left>t.right)}function Zv(n,e){return e.some(t=>n.top<t.top||n.bottom>t.bottom||n.left<t.left||n.right>t.right)}class Ck{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();uh(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Dk=(()=>{class n{constructor(t,i,r,s){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new Yv,this.close=o=>new Ek(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new wk(this._viewportRuler,this._document),this.reposition=o=>new Ck(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(t){return new(t||n)(y(oh),y(Wv),y(ue),y(se))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Sk{constructor(e){if(this.scrollStrategy=new Yv,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class Tk{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}class Mk{constructor(e,t,i,r,s,o,a,l,c){this._portalOutlet=e,this._host=t,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new b,this._attachments=new b,this._detachments=new b,this._locationChanges=N.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new b,this._outsidePointerEvents=new b,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(ss(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){var e;const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(e=this._host)||void 0===e||e.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=We(this._config.width),e.height=We(this._config.height),e.minWidth=We(this._config.minWidth),e.minHeight=We(this._config.minHeight),e.maxWidth=We(this._config.maxWidth),e.maxHeight=We(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;!e||(e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500)))}_toggleClasses(e,t,i){const r=ll(t||[]).filter(s=>!!s);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(fn(Fo(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let pl=(()=>{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||rh()){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),rh()?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)(y(se),y(pn))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Qv="cdk-overlay-connected-position-bounding-box",Ik=/([A-Za-z%]+)$/;class xk{constructor(e,t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new b,this._resizeSubscription=N.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(Qv),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,t,a),u=this._getOverlayFit(c,t,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?s.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:t})}if(s.length){let a=null,l=-1;for(const c of s){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ji(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Qv),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,i){let r,s;if("center"==i.originX)r=e.left+e.width/2;else{const o=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==i.originX?o:a}return t.left<0&&(r-=t.left),s="center"==i.originY?e.top+e.height/2:"top"==i.originY?e.top:e.bottom,t.top<0&&(s-=t.top),{x:r,y:s}}_getOverlayPoint(e,t,i){let r,s;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,s="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+r,y:e.y+s}}_getOverlayFit(e,t,i,r){const s=Jv(t);let{x:o,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-i.height,p=this._subtractOverflows(s.width,0-o,o+s.width-i.width),g=this._subtractOverflows(s.height,h,f),_=p*g;return{visibleArea:_,isCompletelyWithinViewport:s.width*s.height===_,fitsInViewportVertically:g===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,s=i.right-t.x,o=Xv(this._overlayRef.getConfig().minHeight),a=Xv(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=s;return(e.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=Jv(t),s=this._viewportRect,o=Math.max(e.x+r.width-s.width,0),a=Math.max(e.y+r.height-s.height,0),l=Math.max(s.top-i.top-e.y,0),c=Math.max(s.left-i.left-e.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:e.x<this._viewportMargin?s.left-i.left-e.x:0,d=r.height<=s.height?l||-a:e.y<this._viewportMargin?s.top-i.top-e.y:0,this._previousPushAmount={x:u,y:d},{x:e.x+u,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new Tk(e,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=e.overlayY;i="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(e,t){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===t.overlayY)o=e.y,s=i.height-o+this._viewportMargin;else if("bottom"===t.overlayY)a=i.height-e.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-e.y+i.top,e.y),p=this._lastBoundingBoxSize.height;s=2*f,o=e.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-e.x+this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)d=e.x,u=i.right-e.x;else{const f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=2*f,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=We(i.height),r.top=We(i.top),r.bottom=We(i.bottom),r.width=We(i.width),r.left=We(i.left),r.right=We(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=We(s)),o&&(r.maxWidth=We(o))}this._lastBoundingBoxSize=i,Ji(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Ji(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ji(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Ji(i,this._getExactOverlayY(t,e,u)),Ji(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=We(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=We(o.maxWidth):s&&(i.maxWidth="")),Ji(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=We(s.y),r}_getExactOverlayX(e,t,i){let o,r={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=We(s.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Zv(e,i),isOriginOutsideView:uh(e,i),isOverlayClipped:Zv(t,i),isOverlayOutsideView:uh(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&ll(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof Ze)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function Ji(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Xv(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(Ik);return t&&"px"!==t?null:parseFloat(e)}return n||null}function Jv(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const eb="cdk-global-overlay-wrapper";class Ak{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(eb),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=l?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,l?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(eb),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let Ok=(()=>{class n{constructor(t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new Ak}flexibleConnectedTo(t){return new xk(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(y(Wv),y(se),y(pn),y(pl))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tb=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(y(se))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rk=(()=>{class n extends tb{constructor(t,i){super(t),this._ngZone=i,this._keydownListener=r=>{const s=this._attachedOverlays;for(let o=s.length-1;o>-1;o--)if(s[o]._keydownEvents.observers.length>0){const a=s[o]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(t){return new(t||n)(y(se),y(ue,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kk=(()=>{class n extends tb{constructor(t,i,r){super(t),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Xi(s)},this._clickListener=s=>{const o=Xi(s),a="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(o)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(s)):d.next(s)}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(t){return new(t||n)(y(se),y(pn),y(ue,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pk=0,gl=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new Sk(t);return o.direction=o.direction||this._directionality.value,new Mk(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+Pk++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Ba)),new pk(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(y(Dk),y(pl),y(Ei),y(Ok),y(Rk),y(mt),y(ue),y(se),y(sh),y(Xy),y(kk))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const Lk={provide:new P("cdk-connected-overlay-scroll-strategy"),deps:[gl],useFactory:function Nk(n){return()=>n.scrollStrategies.reposition()}};let Bk=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({providers:[gl,Lk],imports:[[Eo,gk,lh],lh]}),n})();const jk=new class Hk extends Pn{}(class Vk extends cl{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 nb(n,e){return new J(e?t=>e.schedule(zk,0,{error:n,subscriber:t}):t=>t.error(n))}function zk({error:n,subscriber:e}){e.error(n)}class gn{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 hn(this.value);case"E":return nb(this.error);case"C":return qv()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new gn("N",e):gn.undefinedValueNotification}static createError(e){return new gn("E",void 0,e)}static createComplete(){return gn.completeNotification}}gn.completeNotification=new gn("C"),gn.undefinedValueNotification=new gn("N",void 0);class ml extends R{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(ml.dispatch,this.delay,new Uk(e,this.destination)))}_next(e){this.scheduleMessage(gn.createNext(e))}_error(e){this.scheduleMessage(gn.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(gn.createComplete()),this.unsubscribe()}}class Uk{constructor(e,t){this.notification=e,this.destination=t}}class ib extends b{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 Wk(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 Ge;if(this.isStopped||this.hasError?o=N.EMPTY:(this.observers.push(e),o=new Ln(this,e)),r&&e.add(e=new ml(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||jk).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 Wk{constructor(e,t){this.time=e,this.value=t}}function dh(n,e){return"function"==typeof e?t=>t.pipe(dh((i,r)=>Yl(n(i,r)).pipe(O((s,o)=>e(i,s,r,o))))):t=>t.lift(new Gk(n))}class Gk{constructor(e){this.project=e}call(e,t){return t.subscribe(new qk(e,this.project))}}class qk extends ws{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 bs(this),r=this.destination;r.add(i),this.innerSubscription=Es(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 _l={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return _l.schedule(n,0);if(void 0===window.requestAnimationFrame)return _l.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let hh;function nP(n,e,t){let i=t;return function Yk(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function Qk(n,e){if(!hh){const t=Element.prototype;hh=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&hh.call(n,e)}(n,r)||(i=s,0))),i}class rP{constructor(e,t){this.componentFactory=t.get(Ei).resolveComponentFactory(e)}create(e){return new sP(this.componentFactory,e)}}class sP{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new ib(1),this.events=this.eventEmitters.pipe(dh(i=>Fo(...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(ue),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=_l.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 Xk(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=mt.create({providers:[],parent:this.injector}),i=function tP(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=nP(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(ns),this.implementsOnChanges=function Zk(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Ba).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(O(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=_l.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 If(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 oP extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function rb(n,e){const t=function eP(n,e){return e.get(Ei).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new rP(n,e.injector),r=function Jk(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function Kk(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends oP{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}class sb{}const ai="*";function ab(n,e=null){return{type:2,steps:n,options:e}}function Si(n){return{type:6,styles:n,offset:null}}function ub(n){Promise.resolve(null).then(n)}class Co{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(){ub(()=>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 db{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?ub(()=>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 re=!1;function hb(n){return new M(3e3,re)}function $P(){return"undefined"!=typeof window&&void 0!==window.document}function ph(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Ti(n){switch(n.length){case 0:return new Co;case 1:return n[0];default:return new db(n)}}function fb(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,_=u[p];if("offset"!==p)switch(g=e.normalizePropertyName(g,o),_){case"!":_=r[p];break;case ai:_=s[p];break;default:_=e.normalizeStyleValue(p,g,_,o)}f[g]=_}),h||a.push(f),c=f,l=d}),o.length)throw function RP(n){return new M(3502,re)}();return a}function gh(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&mh(t,"start",n)));break;case"done":n.onDone(()=>i(t&&mh(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&mh(t,"destroy",n)))}}function mh(n,e,t){const i=t.totalTime,s=_h(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 _h(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Zt(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 pb(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let yh=(n,e)=>!1,gb=(n,e,t)=>[],mb=null;function vh(n){const e=n.parentNode||n.host;return e===mb?null:e}(ph()||"undefined"!=typeof Element)&&($P()?(mb=(()=>document.documentElement)(),yh=(n,e)=>{for(;e;){if(e===n)return!0;e=vh(e)}return!1}):yh=(n,e)=>n.contains(e),gb=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let er=null,_b=!1;function yb(n){er||(er=function WP(){return"undefined"!=typeof document?document.body:null}()||{},_b=!!er.style&&"WebkitAppearance"in er.style);let e=!0;return er.style&&!function UP(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in er.style,!e&&_b&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in er.style)),e}const vb=yh,bb=gb;let wb=(()=>{class n{validateStyleProperty(t){return yb(t)}matchesElement(t,i){return!1}containsElement(t,i){return vb(t,i)}getParentElement(t){return vh(t)}query(t,i,r){return bb(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new Co(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),bh=(()=>{class n{}return n.NOOP=new wb,n})();const wh="ng-enter",vl="ng-leave",bl="ng-trigger",wl=".ng-trigger",Cb="ng-animating",Eh=".ng-animating";function tr(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ch(parseFloat(e[1]),e[2])}function Ch(n,e){return"s"===e?1e3*n:n}function El(n,e,t){return n.hasOwnProperty("duration")?n:function KP(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(hb()),{duration:0,delay:0,easing:""};r=Ch(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Ch(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 uP(){return new M(3100,re)}()),a=!0),s<0&&(e.push(function dP(){return new M(3101,re)}()),a=!0),a&&e.splice(l,0,hb())}return{duration:r,delay:s,easing:o}}(n,e,t)}function os(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function Mi(n,e,t={}){if(e)for(let i in n)t[i]=n[i];else os(n,t);return t}function Sb(n,e,t){return t?e+":"+t+";":""}function Tb(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=Sb(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=Sb(0,QP(t),n.style[t]));n.setAttribute("style",e)}function Yn(n,e,t){n.style&&(Object.keys(e).forEach(i=>{const r=Sh(i);t&&!t.hasOwnProperty(i)&&(t[i]=n.style[r]),n.style[r]=e[i]}),ph()&&Tb(n))}function nr(n,e){n.style&&(Object.keys(e).forEach(t=>{const i=Sh(t);n.style[i]=""}),ph()&&Tb(n))}function Do(n){return Array.isArray(n)?1==n.length?n[0]:ab(n):n}const Dh=new RegExp("{{\\s*(.+?)\\s*}}","g");function Mb(n){let e=[];if("string"==typeof n){let t;for(;t=Dh.exec(n);)e.push(t[1]);Dh.lastIndex=0}return e}function Cl(n,e,t){const i=n.toString(),r=i.replace(Dh,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function fP(n){return new M(3003,re)}()),a=""),a.toString()});return r==i?n:r}function Dl(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const ZP=/-+([a-z0-9])/g;function Sh(n){return n.replace(ZP,(...e)=>e[1].toUpperCase())}function QP(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Qt(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 pP(n){return new M(3004,re)}()}}function Ib(n,e){return window.getComputedStyle(n)[e]}function iF(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function rF(n,e,t){if(":"==n[0]){const l=function sF(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 IP(n){return new M(3016,re)}()),"* => *"}}(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 MP(n){return new M(3015,re)}()),e;const r=i[1],s=i[2],o=i[3];e.push(xb(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(xb(o,r))}(i,t,e)):t.push(n),t}const Il=new Set(["true","1"]),xl=new Set(["false","0"]);function xb(n,e){const t=Il.has(n)||xl.has(n),i=Il.has(e)||xl.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?Il.has(n):xl.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?Il.has(e):xl.has(e)),o&&a}}const oF=new RegExp("s*:selfs*,?","g");function Th(n,e,t,i){return new aF(n).build(e,t,i)}class aF{constructor(e){this._driver=e}build(e,t,i){const r=new uF(t);this._resetContextStyleTimingState(r);const s=Qt(this,Do(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 mP(){return new M(3006,re)}()),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 _P(){return new M(3007,re)}())}),{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(Al(a)){const l=a;Object.keys(l).forEach(c=>{Mb(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(Dl(s.values()),t.errors.push(function yP(n,e){return new M(3008,re)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=Qt(this,Do(e.animation),t);return{type:1,matchers:iF(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:ir(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>Qt(this,i,t)),options:ir(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=Qt(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:ir(e.options)}}visitAnimate(e,t){const i=function hF(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Mh(El(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Mh(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=El(t,e);return Mh(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:Si({});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=Si(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==ai?i.push(o):t.errors.push(function vP(n){return new M(3002,re)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(Al(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 bP(n,e,t,i,r){return new M(3010,re)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),t.options&&function YP(n,e,t){const i=e.params||{},r=Mb(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function hP(n){return new M(3001,re)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function wP(){return new M(3011,re)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(v=>{const m=this._makeStyleAst(v,t);let C=null!=m.offset?m.offset:function dF(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(Al(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(Al(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(m.styles),x=0;return null!=C&&(s++,x=m.offset=C),l=l||x<0||x>1,a=a||x<c,c=x,o.push(x),m});l&&t.errors.push(function EP(){return new M(3012,re)}()),a&&t.errors.push(function CP(){return new M(3200,re)}());const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push(function DP(){return new M(3202,re)}()):0==s&&(h=1/(d-1));const f=d-1,p=t.currentTime,g=t.currentAnimateTimings,_=g.duration;return u.forEach((v,m)=>{const C=h>0?m==f?1:h*m:o[m],x=C*_;t.currentTime=p+g.delay+x,g.duration=x,this._validateStyleAst(v,t),v.offset=C,i.styles.push(v)}),i}visitReference(e,t){return{type:8,animation:Qt(this,Do(e.animation),t),options:ir(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:ir(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ir(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function lF(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(oF,"")),n=n.replace(/@\*/g,wl).replace(/@\w+/g,t=>wl+"-"+t.substr(1)).replace(/:animating/g,Eh),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,Zt(t.collectedStyles,t.currentQuerySelector,{});const a=Qt(this,Do(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:ir(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function SP(){return new M(3013,re)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:El(e.timings,t.errors,!0);return{type:12,animation:Qt(this,Do(e.animation),t),timings:i,options:null}}}class uF{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 Al(n){return!Array.isArray(n)&&"object"==typeof n}function ir(n){return n?(n=os(n)).params&&(n.params=function cF(n){return n?os(n):null}(n.params)):n={},n}function Mh(n,e,t){return{duration:n,delay:e,easing:t}}function Ih(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 Ol{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 gF=new RegExp(":enter","g"),_F=new RegExp(":leave","g");function xh(n,e,t,i,r,s={},o={},a,l,c=[]){return(new yF).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class yF{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new Ol;const d=new Ah(e,t,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Qt(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()):[Ih(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?tr(i.duration):null,a=null!=i.delay?tr(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),Qt(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=Rl);const o=tr(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Qt(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?tr(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Qt(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 El(t.params?Cl(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?tr(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Rl);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),Qt(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;Qt(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Rl={};class Ah{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=Rl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new kl(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=tr(i.duration)),null!=i.delay&&(r.delay=tr(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]=Cl(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 Ah(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=Rl,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 vF(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(gF,"."+this._enterClassName)).replace(_F,"."+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 TP(n){return new M(3014,re)}()),a}}class kl{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 kl(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]||ai,this._currentKeyframe[t]=ai}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function bF(n,e){const t={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{t[s]=ai})):Mi(r,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Cl(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:ai),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=Mi(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==ai&&t.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?Dl(e.values()):[],o=t.size?Dl(t.values()):[];if(i){const a=r[0],l=os(a);a.offset=0,l.offset=1,r=[a,l]}return Ih(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class vF extends kl{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=Mi(e[0],!1);l.offset=0,s.push(l);const c=Mi(e[0],!1);c.offset=Rb(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=Mi(e[d],!1);h.offset=Rb((t+h.offset*i)/o),s.push(h)}i=o,t=0,r="",e=s}return Ih(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function Rb(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class Oh{}class wF extends Oh{normalizePropertyName(e,t){return Sh(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if(EF[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 gP(n,e){return new M(3005,re)}())}return o+s}}const EF=(()=>function CF(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 kb(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 Rh={};class Pb{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function DF(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||Rh,p=this.buildStyles(i,a&&a.params||Rh,d),g=l&&l.params||Rh,_=this.buildStyles(r,g,d),v=new Set,m=new Map,C=new Map,x="void"===r,K={params:Object.assign(Object.assign({},h),g)},Ce=u?[]:xh(e,t,this.ast.animation,s,o,p,_,K,c,d);let Ae=0;if(Ce.forEach(Jt=>{Ae=Math.max(Jt.duration+Jt.delay,Ae)}),d.length)return kb(t,this._triggerName,i,r,x,p,_,[],[],m,C,Ae,d);Ce.forEach(Jt=>{const en=Jt.element,ms=Zt(m,en,{});Jt.preStyleProps.forEach(Fn=>ms[Fn]=!0);const ci=Zt(C,en,{});Jt.postStyleProps.forEach(Fn=>ci[Fn]=!0),en!==t&&v.add(en)});const Xt=Dl(v.values());return kb(t,this._triggerName,i,r,x,p,_,Ce,Xt,m,C,Ae)}}class SF{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i={},r=os(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=Cl(l,r,t));const c=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,c,l,t),i[c]=l})}}),i}}class MF{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 SF(r.style,r.options&&r.options.params||{},i)}),Fb(this.states,"true","1"),Fb(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Pb(e,r,this.states))}),this.fallbackTransition=function IF(n,e,t){return new Pb(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 Fb(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const xF=new Ol;class AF{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=Th(this._driver,t,i,[]);if(i.length)throw function kP(n){return new M(3503,re)}();this._animations[e]=s}_buildPlayer(e,t,i){const r=e.element,s=fb(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=xh(this._driver,t,s,wh,vl,{},{},i,xF,r),o.forEach(u=>{const d=Zt(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function PP(){return new M(3300,re)}()),o=[]),r.length)throw function FP(n){return new M(3504,re)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,ai)})});const c=Ti(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 NP(n){return new M(3301,re)}();return t}listen(e,t,i,r){const s=_h(t,"","","");return gh(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 Nb="ng-animate-queued",kh="ng-animate-disabled",FF=[],Lb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},NF={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},mn="__ng_removed";class Ph{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function HF(n){return null!=n?n:null}(i?e.value:e),i){const s=os(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 So="void",Fh=new Ph(So);class LF{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,_n(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.hasOwnProperty(t))throw function LP(n,e){return new M(3302,re)}();if(null==i||0==i.length)throw function BP(n){return new M(3303,re)}();if(!function jF(n){return"start"==n||"done"==n}(i))throw function VP(n,e){return new M(3400,re)}();const s=Zt(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=Zt(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(_n(e,bl),_n(e,bl+"-"+t),a[t]=Fh),()=>{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 HP(n){return new M(3401,re)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new Nh(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(_n(e,bl),_n(e,bl+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const c=new Ph(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[t]=c,l||(l=Fh),c.value!==So&&l.value===c.value){if(!function UF(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=[],_=s.matchStyles(l.value,l.params,g),v=s.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{nr(e,_),Yn(e,v)})}return}const h=Zt(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||(_n(e,Nb),o.onStart(()=>{as(e,Nb)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);const _=this._engine.playersByElement.get(e);if(_){let v=_.indexOf(o);v>=0&&_.splice(v,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,wl,!0);i.forEach(r=>{if(r[mn])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,So,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&Ti(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]||Fh,u=new Ph(So),d=new Nh(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[mn];(!s||s===Lb)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){_n(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=_h(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,gh(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 BF{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 LF(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(Pl(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!Pl(t))return;const s=t[mn];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),_n(e,kh)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),as(e,kh))}removeNode(e,t,i,r){if(Pl(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[mn]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return Pl(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,wl,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Eh,!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 Ti(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[mn];if(i&&i.setForRemoval){if(e[mn]=Lb,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(kh))&&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++)_n(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?Ti(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function jP(n){return new M(3402,re)}()}_flushAnimations(e,t){const i=new Ol,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(I=>{u.add(I);const F=this.driver.query(I,".ng-animate-queued",!0);for(let H=0;H<F.length;H++)u.add(F[H])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=Hb(h,this.collectedEnterElements),p=new Map;let g=0;f.forEach((I,F)=>{const H=wh+g++;p.set(F,H),I.forEach(le=>_n(le,H))});const _=[],v=new Set,m=new Set;for(let I=0;I<this.collectedLeaveElements.length;I++){const F=this.collectedLeaveElements[I],H=F[mn];H&&H.setForRemoval&&(_.push(F),v.add(F),H.hasAnimation?this.driver.query(F,".ng-star-inserted",!0).forEach(le=>v.add(le)):m.add(F))}const C=new Map,x=Hb(h,Array.from(v));x.forEach((I,F)=>{const H=vl+g++;C.set(F,H),I.forEach(le=>_n(le,H))}),e.push(()=>{f.forEach((I,F)=>{const H=p.get(F);I.forEach(le=>as(le,H))}),x.forEach((I,F)=>{const H=C.get(F);I.forEach(le=>as(le,H))}),_.forEach(I=>{this.processLeaveNode(I)})});const K=[],Ce=[];for(let I=this._namespaceList.length-1;I>=0;I--)this._namespaceList[I].drainQueuedTransitions(t).forEach(H=>{const le=H.player,it=H.element;if(K.push(le),this.collectedEnterElements.length){const Ot=it[mn];if(Ot&&Ot.setForMove){if(Ot.previousTriggersValues&&Ot.previousTriggersValues.has(H.triggerName)){const ar=Ot.previousTriggersValues.get(H.triggerName),ki=this.statesByElement.get(H.element);ki&&ki[H.triggerName]&&(ki[H.triggerName].value=ar)}return void le.destroy()}}const Zn=!d||!this.driver.containsElement(d,it),tn=C.get(it),Ri=p.get(it),Oe=this._buildInstruction(H,i,Ri,tn,Zn);if(Oe.errors&&Oe.errors.length)return void Ce.push(Oe);if(Zn)return le.onStart(()=>nr(it,Oe.fromStyles)),le.onDestroy(()=>Yn(it,Oe.toStyles)),void r.push(le);if(H.isFallbackTransition)return le.onStart(()=>nr(it,Oe.fromStyles)),le.onDestroy(()=>Yn(it,Oe.toStyles)),void r.push(le);const pE=[];Oe.timelines.forEach(Ot=>{Ot.stretchStartingKeyframe=!0,this.disabledNodes.has(Ot.element)||pE.push(Ot)}),Oe.timelines=pE,i.append(it,Oe.timelines),o.push({instruction:Oe,player:le,element:it}),Oe.queriedElements.forEach(Ot=>Zt(a,Ot,[]).push(le)),Oe.preStyleProps.forEach((Ot,ar)=>{const ki=Object.keys(Ot);if(ki.length){let lr=l.get(ar);lr||l.set(ar,lr=new Set),ki.forEach(df=>lr.add(df))}}),Oe.postStyleProps.forEach((Ot,ar)=>{const ki=Object.keys(Ot);let lr=c.get(ar);lr||c.set(ar,lr=new Set),ki.forEach(df=>lr.add(df))})});if(Ce.length){const I=[];Ce.forEach(F=>{I.push(function zP(n,e){return new M(3505,re)}())}),K.forEach(F=>F.destroy()),this.reportError(I)}const Ae=new Map,Xt=new Map;o.forEach(I=>{const F=I.element;i.has(F)&&(Xt.set(F,F),this._beforeAnimationBuild(I.player.namespaceId,I.instruction,Ae))}),r.forEach(I=>{const F=I.element;this._getPreviousPlayers(F,!1,I.namespaceId,I.triggerName,null).forEach(le=>{Zt(Ae,F,[]).push(le),le.destroy()})});const Jt=_.filter(I=>zb(I,l,c)),en=new Map;Vb(en,this.driver,m,c,ai).forEach(I=>{zb(I,l,c)&&Jt.push(I)});const ci=new Map;f.forEach((I,F)=>{Vb(ci,this.driver,new Set(I),l,"!")}),Jt.forEach(I=>{const F=en.get(I),H=ci.get(I);en.set(I,Object.assign(Object.assign({},F),H))});const Fn=[],_s=[],ys={};o.forEach(I=>{const{element:F,player:H,instruction:le}=I;if(i.has(F)){if(u.has(F))return H.onDestroy(()=>Yn(F,le.toStyles)),H.disabled=!0,H.overrideTotalTime(le.totalTime),void r.push(H);let it=ys;if(Xt.size>1){let tn=F;const Ri=[];for(;tn=tn.parentNode;){const Oe=Xt.get(tn);if(Oe){it=Oe;break}Ri.push(tn)}Ri.forEach(Oe=>Xt.set(Oe,it))}const Zn=this._buildAnimation(H.namespaceId,le,Ae,s,ci,en);if(H.setRealPlayer(Zn),it===ys)Fn.push(H);else{const tn=this.playersByElement.get(it);tn&&tn.length&&(H.parentPlayer=Ti(tn)),r.push(H)}}else nr(F,le.fromStyles),H.onDestroy(()=>Yn(F,le.toStyles)),_s.push(H),u.has(F)&&r.push(H)}),_s.forEach(I=>{const F=s.get(I.element);if(F&&F.length){const H=Ti(F);I.setRealPlayer(H)}}),r.forEach(I=>{I.parentPlayer?I.syncPlayerEvents(I.parentPlayer):I.destroy()});for(let I=0;I<_.length;I++){const F=_[I],H=F[mn];if(as(F,vl),H&&H.hasAnimation)continue;let le=[];if(a.size){let Zn=a.get(F);Zn&&Zn.length&&le.push(...Zn);let tn=this.driver.query(F,Eh,!0);for(let Ri=0;Ri<tn.length;Ri++){let Oe=a.get(tn[Ri]);Oe&&Oe.length&&le.push(...Oe)}}const it=le.filter(Zn=>!Zn.destroyed);it.length?zF(this,F,it):this.processLeaveNode(F)}return _.length=0,Fn.forEach(I=>{this.players.push(I),I.onDone(()=>{I.destroy();const F=this.players.indexOf(I);this.players.splice(F,1)}),I.play()}),Fn}elementContainsData(e,t){let i=!1;const r=t[mn];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==So;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=Zt(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)})}nr(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 _=g[mn];if(_&&_.removedBeforeQueried)return new Co(p.duration,p.delay);const v=g!==l,m=function $F(n){const e=[];return jb(n,e),e}((i.get(g)||FF).map(Ae=>Ae.getRealPlayer())).filter(Ae=>!!Ae.element&&Ae.element===g),C=s.get(g),x=o.get(g),K=fb(0,this._normalizer,0,p.keyframes,C,x),Ce=this._buildPlayer(p,K,m);if(p.subTimeline&&r&&d.add(g),v){const Ae=new Nh(e,a,g);Ae.setRealPlayer(Ce),c.push(Ae)}return Ce});c.forEach(p=>{Zt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function VF(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=>_n(p,Cb));const f=Ti(h);return f.onDestroy(()=>{u.forEach(p=>as(p,Cb)),Yn(l,t.toStyles)}),d.forEach(p=>{Zt(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 Co(e.duration,e.delay)}}class Nh{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Co,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=>gh(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){Zt(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 Pl(n){return n&&1===n.nodeType}function Bb(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function Vb(n,e,t,i,r){const s=[];t.forEach(l=>s.push(Bb(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[mn]=NF,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>Bb(l,s[a++])),o}function Hb(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 _n(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function as(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function zF(n,e,t){Ti(t).onDone(()=>n.processLeaveNode(e))}function jb(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof db?jb(i.players,e):e.push(i)}}function zb(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 Fl{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new BF(e,t,i),this._timelineEngine=new AF(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=Th(this._driver,s,l,[]);if(l.length)throw function OP(n,e){return new M(3404,re)}();a=function TF(n,e,t){return new MF(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]=pb(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]=pb(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 GF=(()=>{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&&Yn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Yn(this._element,this._initialStyles),this._endStyles&&(Yn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(nr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(nr(this._element,this._endStyles),this._endStyles=null),Yn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Lh(n){let e=null;const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];qF(r)&&(e=e||{},e[r]=n[r])}return e}function qF(n){return"display"===n||"position"===n}class $b{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]:Ib(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class KF{validateStyleProperty(e){return yb(e)}matchesElement(e,t){return!1}containsElement(e,t){return vb(e,t)}getParentElement(e){return vh(e)}query(e,t,i){return bb(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 $b);(function XP(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 JP(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]=Ib(n,l)})}}return e}(e,t=t.map(h=>Mi(h,!1)),c);const d=function WF(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=Lh(e[0]),e.length>1&&(i=Lh(e[e.length-1]))):e&&(t=Lh(e)),t||i?new GF(n,t,i):null}(e,t);return new $b(e,t,l,d)}}let YF=(()=>{class n extends sb{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Cn.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?ab(t):t;return Ub(this._renderer,null,i,"register",[r]),new ZF(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(y(so),y(se))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class ZF extends class aP{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new QF(this._id,e,t||{},this._renderer)}}class QF{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 Ub(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 Ub(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const Wb="@.disabled";let XF=(()=>{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 Gb("",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 JF(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)(y(so),y(Fl),y(ue))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class Gb{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==Wb?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 JF extends Gb{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==Wb?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 eN(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 tN(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 nN=(()=>{class n extends Fl{constructor(t,i,r){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(y(se),y(bh),y(Oh))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const ls=new P("AnimationModuleType"),qb=[{provide:sb,useClass:YF},{provide:Oh,useFactory:function iN(){return new wF}},{provide:Fl,useClass:nN},{provide:so,useFactory:function rN(n,e,t){return new XF(n,e,t)},deps:[sl,Fl,ue]}],Kb=[{provide:bh,useFactory:()=>new KF},{provide:ls,useValue:"BrowserAnimations"},...qb],sN=[{provide:bh,useClass:wb},{provide:ls,useValue:"NoopAnimations"},...qb];let Yb=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?sN:Kb}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({providers:Kb,imports:[Xd]}),n})();var Zb=ff(289);class oN{constructor(e,t,i,r,s){this.element=e,this.newWidth=t,this.newHeight=i,this.oldWidth=r,this.oldHeight=s}}let aN=(()=>{class n{constructor(t){this.element=t,this.resized=new ct}ngOnInit(){Zb.ResizeSensor&&(this.resizeSensor=new Zb.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 oN(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)(E(Ze))},n.\u0275dir=je({type:n,selectors:[["","resized",""]],outputs:{resized:"resized"}}),n})(),lN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({imports:[[]]}),n})(),Qb=(()=>{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)(y(se))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class cN extends b{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 Ge;return this._value}next(e){super.next(this._value=e)}}function Jb(n){return e=>e.lift(new _N(n))}class _N{constructor(e){this.total=e}call(e,t){return t.subscribe(new yN(e,this.total))}}class yN extends R{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}class bN{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new wN(e,this.compare,this.keySelector))}}class wN extends R{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))}}let EN=(()=>{class n{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),CN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({providers:[EN]}),n})();function Ll(n,e){return(n.getAttribute(e)||"").match(/\S+/g)||[]}const tw="cdk-describedby-message",Bl="cdk-describedby-host";let nw=0,TN=(()=>{class n{constructor(t,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+nw++,this._document=t}describe(t,i,r){if(!this._canBeDescribed(t,i))return;const s=Bh(i,r);"string"!=typeof i?(iw(i),this._messageRegistry.set(s,{messageElement:i,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(t,s)||this._addMessageReference(t,s)}removeDescription(t,i,r){var s;if(!i||!this._isElementNode(t))return;const o=Bh(i,r);if(this._isElementDescribedByMessage(t,o)&&this._removeMessageReference(t,o),"string"==typeof i){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===(null===(s=this._messagesContainer)||void 0===s?void 0:s.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var t;const i=this._document.querySelectorAll(`[${Bl}="${this._id}"]`);for(let r=0;r<i.length;r++)this._removeCdkDescribedByReferenceIds(i[r]),i[r].removeAttribute(Bl);null===(t=this._messagesContainer)||void 0===t||t.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(t,i){const r=this._document.createElement("div");iw(r),r.textContent=t,i&&r.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(r),this._messageRegistry.set(Bh(t,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(t){var i,r;null===(r=null===(i=this._messageRegistry.get(t))||void 0===i?void 0:i.messageElement)||void 0===r||r.remove(),this._messageRegistry.delete(t)}_createMessagesContainer(){if(this._messagesContainer)return;const t="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${t}[platform="server"]`);for(let s=0;s<i.length;s++)i[s].remove();const r=this._document.createElement("div");r.style.visibility="hidden",r.classList.add(t),r.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&r.setAttribute("platform","server"),this._document.body.appendChild(r),this._messagesContainer=r}_removeCdkDescribedByReferenceIds(t){const i=Ll(t,"aria-describedby").filter(r=>0!=r.indexOf(tw));t.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(t,i){const r=this._messageRegistry.get(i);(function DN(n,e,t){const i=Ll(n,e);i.some(r=>r.trim()==t.trim())||(i.push(t.trim()),n.setAttribute(e,i.join(" ")))})(t,"aria-describedby",r.messageElement.id),t.setAttribute(Bl,this._id),r.referenceCount++}_removeMessageReference(t,i){const r=this._messageRegistry.get(i);r.referenceCount--,function SN(n,e,t){const r=Ll(n,e).filter(s=>s!=t.trim());r.length?n.setAttribute(e,r.join(" ")):n.removeAttribute(e)}(t,"aria-describedby",r.messageElement.id),t.removeAttribute(Bl)}_isElementDescribedByMessage(t,i){const r=Ll(t,"aria-describedby"),s=this._messageRegistry.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(t,i){if(!this._isElementNode(t))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=t.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(t){return new(t||n)(y(se),y(pn))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Bh(n,e){return"string"==typeof n?`${e||""}/${n}`:n}function iw(n){n.id||(n.id=`${tw}-${nw++}`)}function sw(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function ow(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const RN=new P("cdk-input-modality-detector-options"),kN={ignoreKeys:[18,17,224,91,16]},cs=hl({passive:!0,capture:!0});let PN=(()=>{class n{constructor(t,i,r,s){this._platform=t,this._mostRecentTarget=null,this._modality=new cN(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Xi(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(sw(o)?"keyboard":"mouse"),this._mostRecentTarget=Xi(o))},this._onTouchstart=o=>{ow(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Xi(o))},this._options=Object.assign(Object.assign({},kN),s),this.modalityDetected=this._modality.pipe(Jb(1)),this.modalityChanged=this.modalityDetected.pipe(function vN(n,e){return t=>t.lift(new bN(n,e))}()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,cs),r.addEventListener("mousedown",this._onMousedown,cs),r.addEventListener("touchstart",this._onTouchstart,cs)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,cs),document.removeEventListener("mousedown",this._onMousedown,cs),document.removeEventListener("touchstart",this._onTouchstart,cs))}}return n.\u0275fac=function(t){return new(t||n)(y(pn),y(ue),y(se),y(RN,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const NN=new P("cdk-focus-monitor-default-options"),Vl=hl({passive:!0,capture:!0});let lw=(()=>{class n{constructor(t,i,r,s,o){this._ngZone=t,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new b,this._rootNodeFocusAndBlurListener=a=>{const l=Xi(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(t,i=!1){const r=is(t);if(!this._platform.isBrowser||1!==r.nodeType)return hn(null);const s=function rk(n){if(function ik(){if(null==ih){const n="undefined"!=typeof document?document.head:null;ih=!(!n||!n.createShadowRoot&&!n.attachShadow)}return ih}()){const e=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new b,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=is(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const s=is(t);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),s=Xi(t);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(t,i){this._ngZone.run(()=>t.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Vl),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Vl)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(fn(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Vl),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Vl),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,s)=>{(s===t||r.checkChildren&&s.contains(t))&&i.push([s,r])}),i}}return n.\u0275fac=function(t){return new(t||n)(y(ue),y(pn),y(PN),y(se,8),y(NN,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const cw="cdk-high-contrast-black-on-white",uw="cdk-high-contrast-white-on-black",Vh="cdk-high-contrast-active";let dw=(()=>{class n{constructor(t,i){this._platform=t,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Vh),t.remove(cw),t.remove(uw),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(t.add(Vh),t.add(cw)):2===i&&(t.add(Vh),t.add(uw))}}}return n.\u0275fac=function(t){return new(t||n)(y(pn),y(se))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),LN=(()=>{class n{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(t){return new(t||n)(y(dw))},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({imports:[[CN]]}),n})();const VN=new P("mat-sanity-checks",{providedIn:"root",factory:function BN(){return!0}});let Ii=(()=>{class n{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!rh()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(y(dw),y(VN,8),y(se))},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({imports:[[Eo],Eo]}),n})();function HN(n){return class extends n{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=al(e)}}}function fw(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const i=t||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function jN(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=al(e)}}}class $N{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const pw={enterDuration:225,exitDuration:150},Hh=hl({passive:!0}),gw=["mousedown","touchstart"],mw=["mouseup","mouseleave","touchend","touchcancel"];class WN{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=is(i))}fadeInRipple(e,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},pw),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const o=i.radius||function qN(n,e,t){const i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),a=e-r.left,l=t-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function GN(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new $N(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,r=Object.assign(Object.assign({},pw),e.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=is(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(gw))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(mw),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=sw(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!ow(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,Hh)})})}_removeTriggerEvents(){this._triggerElement&&(gw.forEach(e=>{this._triggerElement.removeEventListener(e,this,Hh)}),this._pointerUpEventsRegistered&&mw.forEach(e=>{this._triggerElement.removeEventListener(e,this,Hh)}))}}const KN=new P("mat-ripple-global-options");let _w=(()=>{class n{constructor(t,i,r,s,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new WN(this,i,t,r)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(E(Ze),E(ue),E(pn),E(KN,8),E(ls,8))},n.\u0275dir=je({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,i){2&t&&ii("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),YN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({imports:[[Ii],Ii]}),n})();const ZN=["mat-button",""],QN=["*"],JN=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],e1=fw(HN(jN(class{constructor(n){this._elementRef=n}})));let t1=(()=>{class n extends e1{constructor(t,i,r){super(t),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of JN)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,i){t?this._focusMonitor.focusVia(this._getHostElement(),t,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(t){return new(t||n)(E(Ze),E(lw),E(ls,8))},n.\u0275cmp=pi({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,i){if(1&t&&Jr(_w,5),2&t){let r;Xr(r=es())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,i){2&t&&(Tt("disabled",i.disabled||null),ii("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Rr],attrs:ZN,ngContentSelectors:QN,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,i){1&t&&(Da(),be(0,"span",0),Qs(1),Ie(),Gi(2,"span",1)(3,"span",2)),2&t&&($(2),ii("mat-button-ripple-round",i.isRoundButton||i.isIconButton),j("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[_w],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),n1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({imports:[[YN,Ii],Ii]}),n})();function Hl(n,e){return new J(t=>{const i=n.length;if(0===i)return void t.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=Yl(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>t.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&t.next(e?e.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),t.complete())}}))}})}function li(){}function yn(n,e,t){return function(r){return r.lift(new s1(n,e,t))}}class s1{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new o1(e,this.nextOrObserver,this.error,this.complete))}}class o1 extends R{constructor(e,t,i,r){super(e),this._tapNext=li,this._tapError=li,this._tapComplete=li,this._tapError=i||li,this._tapComplete=r||li,dt(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||li,this._tapError=t.error||li,this._tapComplete=t.complete||li)}_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 yw(n){return function(t){const i=new a1(n),r=t.lift(i);return i.caught=r}}class a1{constructor(e){this.selector=e}call(e,t){return t.subscribe(new l1(e,this.selector,this.caught))}}class l1 extends ws{constructor(e,t,i){super(e),this.selector=t,this.caught=i}error(e){if(!this.isStopped){let t;try{t=this.selector(e,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new bs(this);this.add(i);const r=Es(t,i);r!==i&&this.add(r)}}}class u1{constructor(e){this.callback=e}call(e,t){return t.subscribe(new d1(e,this.callback))}}class d1 extends R{constructor(e,t){super(e),this.add(new N(t))}}class f1{}class xi{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),s=r.toLowerCase(),o=t.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let i=e[t];const r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof xi?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new xi;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof xi?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":const s=e.value;if(s){let o=this.headers.get(t);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class p1{encodeKey(e){return vw(e)}encodeValue(e){return vw(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const m1=/%(\d[a-f0-9])/gi,_1={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function vw(n){return encodeURIComponent(n).replace(m1,(e,t)=>{var i;return null!==(i=_1[t])&&void 0!==i?i:e})}function bw(n){return`${n}`}class Ai{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new p1,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function g1(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],l=t.get(o)||[];l.push(a),t.set(o,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const i=e.fromObject[t];this.map.set(t,Array.isArray(i)?i:[i])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(i=>{const r=e[i];Array.isArray(r)?r.forEach(s=>{t.push({param:i,value:s,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Ai({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(bw(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let i=this.map.get(e.param)||[];const r=i.indexOf(bw(e.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class y1{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function ww(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function Ew(n){return"undefined"!=typeof Blob&&n instanceof Blob}function Cw(n){return"undefined"!=typeof FormData&&n instanceof FormData}class Mo{constructor(e,t,i,r){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function v1(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new xi),this.context||(this.context=new y1),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+o}}else this.params=new Ai,this.urlWithParams=t}serializeBody(){return null===this.body?null:ww(this.body)||Ew(this.body)||Cw(this.body)||function b1(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Ai?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Cw(this.body)?null:Ew(this.body)?this.body.type||null:ww(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ai?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){var t;const i=e.method||this.method,r=e.url||this.url,s=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,l=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let c=e.headers||this.headers,u=e.params||this.params;const d=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((h,f)=>h.set(f,e.setHeaders[f]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new Mo(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var ut=(()=>((ut=ut||{})[ut.Sent=0]="Sent",ut[ut.UploadProgress=1]="UploadProgress",ut[ut.ResponseHeader=2]="ResponseHeader",ut[ut.DownloadProgress=3]="DownloadProgress",ut[ut.Response=4]="Response",ut[ut.User=5]="User",ut))();class jh extends class w1{constructor(e,t=200,i="OK"){this.headers=e.headers||new xi,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(e={}){super(e),this.type=ut.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new jh({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function zh(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Sw=(()=>{class n{constructor(t){this.handler=t}request(t,i,r={}){let s;if(t instanceof Mo)s=t;else{let l,c;l=r.headers instanceof xi?r.headers:new xi(r.headers),r.params&&(c=r.params instanceof Ai?r.params:new Ai({fromObject:r.params})),s=new Mo(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=hn(s).pipe(function h1(n,e){return Po(n,e,1)}(l=>this.handler.handle(l)));if(t instanceof Mo||"events"===r.observe)return o;const a=o.pipe(dl(l=>l instanceof jh));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(O(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(O(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(O(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(O(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new Ai).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,zh(r,i))}post(t,i,r={}){return this.request("POST",t,zh(r,i))}put(t,i,r={}){return this.request("PUT",t,zh(r,i))}}return n.\u0275fac=function(t){return new(t||n)(y(f1))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const C1=["*"];let jl;function Io(n){var e;return(null===(e=function D1(){if(void 0===jl&&(jl=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(jl=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return jl}())||void 0===e?void 0:e.createHTML(n))||n}function Tw(n){return Error(`Unable to find icon with the name "${n}"`)}function Mw(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Iw(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class rr{constructor(e,t,i){this.url=e,this.svgText=t,this.options=i}}let zl=(()=>{class n{constructor(t,i,r,s){this._httpClient=t,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(t,i,r){return this.addSvgIconInNamespace("",t,i,r)}addSvgIconLiteral(t,i,r){return this.addSvgIconLiteralInNamespace("",t,i,r)}addSvgIconInNamespace(t,i,r,s){return this._addSvgIconConfig(t,i,new rr(r,null,s))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,r,s){const o=this._sanitizer.sanitize(ce.HTML,r);if(!o)throw Iw(r);const a=Io(o);return this._addSvgIconConfig(t,i,new rr("",a,s))}addSvgIconSet(t,i){return this.addSvgIconSetInNamespace("",t,i)}addSvgIconSetLiteral(t,i){return this.addSvgIconSetLiteralInNamespace("",t,i)}addSvgIconSetInNamespace(t,i,r){return this._addSvgIconSetConfig(t,new rr(i,null,r))}addSvgIconSetLiteralInNamespace(t,i,r){const s=this._sanitizer.sanitize(ce.HTML,i);if(!s)throw Iw(i);const o=Io(s);return this._addSvgIconSetConfig(t,new rr("",o,r))}registerFontClassAlias(t,i=t){return this._fontCssClassesByAlias.set(t,i),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const i=this._sanitizer.sanitize(ce.RESOURCE_URL,t);if(!i)throw Mw(t);const r=this._cachedIconsByUrl.get(i);return r?hn($l(r)):this._loadSvgIconFromConfig(new rr(t,null)).pipe(yn(s=>this._cachedIconsByUrl.set(i,s)),O(s=>$l(s)))}getNamedSvgIcon(t,i=""){const r=xw(i,t);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,t),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(t,o):nb(Tw(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?hn($l(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(O(i=>$l(i)))}_getSvgFromIconSetConfigs(t,i){const r=this._extractIconWithNameFromAnySet(t,i);return r?hn(r):function r1(...n){if(1===n.length){const e=n[0];if(Ve(e))return Hl(e,null);if(Rt(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Hl(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return Hl(n=1===n.length&&Ve(n[0])?n[0]:n,null).pipe(O(t=>e(...t)))}return Hl(n,null)}(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(yw(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(ce.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),hn(null)})))).pipe(O(()=>{const o=this._extractIconWithNameFromAnySet(t,i);if(!o)throw Tw(t);return o}))}_extractIconWithNameFromAnySet(t,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(t)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,t,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(yn(i=>t.svgText=i),O(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?hn(null):this._fetchIcon(t).pipe(yn(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,r){const s=t.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(Io("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(t){const i=this._document.createElement("DIV");i.innerHTML=t;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(t){const i=this._svgElementFromString(Io("<svg></svg>")),r=t.attributes;for(let s=0;s<r.length;s++){const{name:o,value:a}=r[s];"id"!==o&&i.setAttribute(o,a)}for(let s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&i.appendChild(t.childNodes[s].cloneNode(!0));return i}_setSvgAttributes(t,i){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),i&&i.viewBox&&t.setAttribute("viewBox",i.viewBox),t}_fetchIcon(t){var i;const{url:r,options:s}=t,o=null!==(i=null==s?void 0:s.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function S1(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==r)throw Error(`Cannot fetch icon from URL "${r}".`);const a=this._sanitizer.sanitize(ce.RESOURCE_URL,r);if(!a)throw Mw(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(O(u=>Io(u)),function c1(n){return e=>e.lift(new u1(n))}(()=>this._inProgressUrlFetches.delete(a)),mf());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(t,i,r){return this._svgIconConfigs.set(xw(t,i),r),this}_addSvgIconSetConfig(t,i){const r=this._iconSetConfigs.get(t);return r?r.push(i):this._iconSetConfigs.set(t,[i]),this}_svgElementFromConfig(t){if(!t.svgElement){const i=this._svgElementFromString(t.svgText);this._setSvgAttributes(i,t.options),t.svgElement=i}return t.svgElement}_getIconConfigFromResolvers(t,i){for(let r=0;r<this._resolvers.length;r++){const s=this._resolvers[r](i,t);if(s)return M1(s)?new rr(s.url,null,s.options):new rr(s,null)}}}return n.\u0275fac=function(t){return new(t||n)(y(Sw,8),y(ol),y(se,8),y(vi))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function $l(n){return n.cloneNode(!0)}function xw(n,e){return n+":"+e}function M1(n){return!(!n.url||!n.options)}const I1=fw(class{constructor(n){this._elementRef=n}}),x1=new P("mat-icon-location",{providedIn:"root",factory:function A1(){const n=aa(se),e=n?n.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),Aw=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],O1=Aw.map(n=>`[${n}]`).join(", "),R1=/^url\(['"]?#(.*?)['"]?\)$/;let k1=(()=>{class n extends I1{constructor(t,i,r,s,o){super(t),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=N.EMPTY,r||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=al(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const i=this._cleanupFontValue(t);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const i=this._cleanupFontValue(t);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const i=t.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let i=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=t.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),i&&t.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${t}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(t){const i=t.querySelectorAll(O1),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<i.length;s++)Aw.forEach(o=>{const a=i[s],l=a.getAttribute(o),c=l?l.match(R1):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[i,r]=this._splitIconName(t);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(ss(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(t){return new(t||n)(E(Ze),E(zl),function ia(n){return function BC(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const s=t[r];if(qf(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(s===e)return t[r+1];r+=2}}}return null}(qe(),n)}("aria-hidden"),E(x1),E(vi))},n.\u0275cmp=pi({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,i){2&t&&(Tt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),ii("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Rr],ngContentSelectors:C1,decls:1,vars:0,template:function(t,i){1&t&&(Da(),Qs(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),P1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({imports:[[Ii],Ii]}),n})();class F1 extends R{notifyNext(e,t,i,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class N1 extends R{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 L1(n,e,t,i,r=new N1(n,t,i)){if(!r.closed)return e instanceof J?e.subscribe(r):ql(e)(r)}const Ow={};class V1{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new H1(e,this.resultSelector))}}class H1 extends F1{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Ow),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(L1(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]===Ow?--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 $h(...n){return function j1(){return pf(1)}()(hn(...n))}function Uh(n,e=th){return t=>t.lift(new z1(n,e))}class z1{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new $1(e,this.dueTime,this.scheduler))}}class $1 extends R{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(U1,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function U1(n){n.debouncedNext()}function W1(...n){const e=n[n.length-1];return V(e)?(n.pop(),t=>$h(n,t,e)):t=>$h(n,t)}const Rw=new Set;let us,G1=(()=>{class n{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):K1}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function q1(n){if(!Rw.has(n))try{us||(us=document.createElement("style"),us.setAttribute("type","text/css"),document.head.appendChild(us)),us.sheet&&(us.sheet.insertRule(`@media ${n} {body{ }}`,0),Rw.add(n))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return n.\u0275fac=function(t){return new(t||n)(y(pn))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function K1(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let Y1=(()=>{class n{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new b}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return kw(ll(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let s=function B1(...n){let e,t;return V(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Ve(n[0])&&(n=n[0]),Zl(n,t).lift(new V1(e))}(kw(ll(t)).map(o=>this._registerQuery(o).observable));return s=$h(s.pipe(ss(1)),s.pipe(Jb(1),Uh(0))),s.pipe(O(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),s={observable:new J(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(W1(i),O(({matches:o})=>({query:t,matches:o})),fn(this._destroySubject)),mql:i};return this._queries.set(t,s),s}}return n.\u0275fac=function(t){return new(t||n)(y(G1),y(ue))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function kw(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}const Q1=["tooltip"],Pw="tooltip-panel",Fw=hl({passive:!0}),Nw=new P("mat-tooltip-scroll-strategy"),tL={provide:Nw,deps:[gl],useFactory:function eL(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},nL=new P("mat-tooltip-default-options",{providedIn:"root",factory:function iL(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let rL=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h,f){this._overlay=t,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=s,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new b,this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(fn(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(t){var i;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=al(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=Fv(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=Fv(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(fn(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{t.removeEventListener(i,r,Fw)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new Gv(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=i.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(fn(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var t;if(this._overlayRef)return this._overlayRef;const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(fn(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${Pw}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(fn(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(fn(this._destroyed)).subscribe(()=>{var s;return null===(s=this._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(fn(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!function mN(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(t=this._defaultOptions)||void 0===t?void 0:t.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const i=t.getConfig().positionStrategy,r=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),s.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),s.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={originX:"end",originY:"center"});const{x:s,y:o}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:s,originY:o}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={overlayX:"start",overlayY:"center"});const{x:s,y:o}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:s,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(ss(1),fn(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){const{overlayY:i,originX:r,originY:s}=t;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===s?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${Pw}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",i=>{var r;const s=i.relatedTarget;(!s||!(null===(r=this._overlayRef)||void 0===r?void 0:r.overlayElement.contains(s)))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,Fw)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(t.clientX,t.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const i=this._elementRef.nativeElement,r=i.style;("on"===t||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===t||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(t){!function Em(){throw new Error("invalid")}()},n.\u0275dir=je({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),sL=(()=>{class n extends rL{constructor(t,i,r,s,o,a,l,c,u,d,h,f){super(t,i,r,s,o,a,l,c,u,d,h,f),this._tooltipComponent=aL}}return n.\u0275fac=function(t){return new(t||n)(E(gl),E(Ze),E(oh),E(Yt),E(ue),E(pn),E(TN),E(lw),E(Nw),E(sh,8),E(nL,8),E(se))},n.\u0275dir=je({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Rr]}),n})(),oL=(()=>{class n{constructor(t,i){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new b,this._animationsDisabled="NoopAnimations"===i}show(t){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){const i=this._tooltip.nativeElement,r=this._showAnimation,s=this._hideAnimation;if(i.classList.remove(t?s:r),i.classList.add(t?r:s),this._isVisible=t,t&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const o=getComputedStyle(i);("0s"===o.getPropertyValue("animation-duration")||"none"===o.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}}return n.\u0275fac=function(t){return new(t||n)(E(ns),E(ls,8))},n.\u0275dir=je({type:n}),n})(),aL=(()=>{class n extends oL{constructor(t,i,r){super(t,r),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(t){return new(t||n)(E(ns),E(Y1),E(ls,8))},n.\u0275cmp=pi({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(t,i){if(1&t&&Jr(Q1,7),2&t){let r;Xr(r=es())&&(i._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,i){1&t&<("mouseleave",function(s){return i._handleMouseLeave(s)}),2&t&&Xs("zoom",i.isVisible()?1:null)},features:[Rr],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(t,i){if(1&t&&(be(0,"div",0,1),lt("animationend",function(s){return i._handleAnimationEnd(s)}),function J_(n,e){const t=oe();let i;const r=n+20;t.firstCreatePass?(i=function NI(n,e){if(e)for(let t=e.length-1;t>=0;t--){const i=e[t];if(n===i.name)return i}}(e,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(r,i.onDestroy)):i=t.data[r];const s=i.factory||(i.factory=Vi(i.type)),o=hi(E);try{const a=Jo(!1),l=s();return Jo(a),function eT(n,e,t,i){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=i}(t,w(),r,l),l}finally{hi(o)}}(2,"async"),eo(3),Ie()),2&t){let r;ii("mat-tooltip-handset",null==(r=ey(2,4,i._isHandset))?null:r.matches),j("ngClass",i.tooltipClass),$(3),Wr(i.message)}},directives:[Xa],pipes:[vv],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],encapsulation:2,changeDetection:0}),n})(),lL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({providers:[tL],imports:[[LN,Gd,Bk,Ii],Ii,ah]}),n})();const cL=new J(li);function Lw(n){return Boolean(n.parentElement&&"picture"===n.parentElement.nodeName.toLowerCase())}function xo(n){return"img"===n.nodeName.toLowerCase()}function Bw(n,e,t){return xo(n)?t&&"srcset"in n?n.srcset=e:n.src=e:n.style.backgroundImage=`url('${e}')`,n}function Wh(n){return e=>{const t=e.parentElement.getElementsByTagName("source");for(let i=0;i<t.length;i++){const r=t[i].getAttribute(n);r&&("srcset"in t[i]?t[i].srcset=r:t[i].src=r)}}}const hL=Wh("defaultImage"),Vw=Wh("lazyLoad"),fL=Wh("errorImage");function Gh(n){return(e,t,i)=>{xo(e)&&Lw(e)&&n(e),t&&Bw(e,t,i)}}const pL=Gh(hL),gL=Gh(Vw),mL=Gh(fL);function Hw(n,e){n.className=n.className.replace(e,"")}function qh(n,e){n.className.includes(e)||(n.className+=` ${e}`)}class jw extends class vL extends class _L{constructor(){this.navigator=function dL(){return"undefined"!=typeof window?window.navigator:void 0}()}setPlatformId(e){this.platformId=e}onDestroy(e){}onAttributeChange(e){}}{setup(e){pL(e.element,e.defaultImagePath,e.useSrcset),e.imagePath&&qh(e.element,"ng-lazyloading"),function yL(n,e){return n.className&&n.className.includes(e)}(e.element,"ng-lazyloaded")&&Hw(e.element,"ng-lazyloaded")}finally(e){qh(e.element,"ng-lazyloaded"),Hw(e.element,"ng-lazyloading")}loadImage(e){if(this.skipLazyLoading(e))return[e.imagePath];const{element:t,useSrcset:i,imagePath:r,decode:s}=e;let o;return xo(t)&&Lw(t)?(o=t.parentNode.cloneNode(!0).getElementsByTagName("img")[0],Vw(o),Bw(o,r,i)):(o=new Image,xo(t)&&t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),xo(t)&&t.sizes&&(o.sizes=t.sizes),i&&"srcset"in o?o.srcset=r:o.src=r),s&&o.decode?o.decode().then(()=>r):new Promise((a,l)=>{o.onload=()=>a(r),o.onerror=()=>l(null)})}setErrorImage(e,t){const{element:i,useSrcset:r,errorImagePath:s}=t;mL(i,s,r),qh(i,"ng-failed-lazyloaded")}setLoadedImage(e,t){const{element:i,useSrcset:r}=t;gL(i,e,r)}isDisabled(){return function rO(n){return"server"===n}(this.platformId)&&!this.isBot()}skipLazyLoading(e){return this.isBot(e)}isBot(e){var t;return!!(null===(t=this.navigator)||void 0===t?void 0:t.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(this.navigator.userAgent)}}{constructor(){super(...arguments),this.observers=new WeakMap,this.intersectionSubject=new b,this.uniqKey={}}getObservable(e){if(this.skipLazyLoading(e))return hn({isIntersecting:!0});if(e.customObservable)return e.customObservable;const t=e.scrollContainer||this.uniqKey,i={root:e.scrollContainer||null};e.offset&&(i.rootMargin=`${e.offset}px`);let r=this.observers.get(t);return r||(r=new IntersectionObserver(s=>this.loadingCallback(s),i),this.observers.set(t,r)),r.observe(e.element),J.create(s=>{const o=this.intersectionSubject.pipe(dl(a=>a.target===e.element)).subscribe(s);return()=>{o.unsubscribe(),r.unobserve(e.element)}})}isVisible(e){return e.isIntersecting}loadingCallback(e){e.forEach(t=>this.intersectionSubject.next(t))}}const Kh=new P("LazyLoadImageHooks");let wL=(()=>{class n{constructor(t,i,r,s){this.onStateChange=new ct,this.elementRef=t,this.ngZone=i,this.propertyChanges$=new ib,this.hooks=s,this.hooks.setPlatformId(r),this.uid=Math.random().toString(36).substr(2,9)}ngOnChanges(){!0===this.debug&&!this.debugSubscription&&(this.debugSubscription=this.onStateChange.subscribe(t=>console.log(t))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange,id:this.uid})}ngAfterContentInit(){if(this.hooks.isDisabled())return null;this.ngZone.runOutsideAngular(()=>{this.loadSubscription=this.propertyChanges$.pipe(yn(t=>this.hooks.onAttributeChange(t)),yn(t=>t.onStateChange.emit({reason:"setup"})),yn(t=>this.hooks.setup(t)),dh(t=>t.imagePath?this.hooks.getObservable(t).pipe(function bL(n,e){return t=>t.pipe(yn(i=>e.onStateChange.emit({reason:"observer-emit",data:i})),dl(i=>n.isVisible(i,e)),ss(1),yn(()=>e.onStateChange.emit({reason:"start-loading"})),Po(()=>n.loadImage(e)),yn(()=>e.onStateChange.emit({reason:"mount-image"})),yn(i=>n.setLoadedImage(i,e)),yn(()=>e.onStateChange.emit({reason:"loading-succeeded"})),O(()=>!0),yw(i=>(e.onStateChange.emit({reason:"loading-failed",data:i}),n.setErrorImage(i,e),hn(!1))),yn(()=>{e.onStateChange.emit({reason:"finally"}),n.finally(e)}))}(this.hooks,t)):function uL(){return cL}())).subscribe({next:()=>null})})}ngOnDestroy(){var t,i;this.propertyChanges$.pipe(ss(1)).subscribe({next:r=>this.hooks.onDestroy(r)}).unsubscribe(),null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(i=this.debugSubscription)||void 0===i||i.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(E(Ze),E(ue),E(La),E(Kh))},n.\u0275dir=je({type:n,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange"},features:[Hi]}),n})(),EL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({providers:[{provide:Kh,useClass:jw}]}),n})();class vn{constructor(e,t,i,r){this.left=e,this.top=t,this.right=i,this.bottom=r}static fromElement(e){const{left:t,top:i,right:r,bottom:s}=e.getBoundingClientRect();return 0===t&&0===i&&0===r&&0===s?vn.empty:new vn(t,i,r,s)}static fromWindow(e){return new vn(0,0,e.innerWidth,e.innerHeight)}inflate(e){this.left-=e,this.top-=e,this.right+=e,this.bottom+=e}intersectsWith(e){return e.left<this.right&&this.left<e.right&&e.top<this.bottom&&this.top<e.bottom}getIntersectionWith(e){const t=Math.max(this.left,e.left),i=Math.max(this.top,e.top),r=Math.min(this.right,e.right),s=Math.min(this.bottom,e.bottom);return r>=t&&s>=i?new vn(t,i,r,s):vn.empty}}vn.empty=new vn(0,0,0,0);var Ao="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,CL=function(){for(var n=["Edge","Trident","Firefox"],e=0;e<n.length;e+=1)if(Ao&&navigator.userAgent.indexOf(n[e])>=0)return 1;return 0}(),ML=Ao&&window.Promise?function DL(n){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,n()}))}}:function SL(n){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,n()},CL))}};function zw(n){return n&&"[object Function]"==={}.toString.call(n)}function sr(n,e){if(1!==n.nodeType)return[];var i=n.ownerDocument.defaultView.getComputedStyle(n,null);return e?i[e]:i}function Yh(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function Oo(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var e=sr(n);return/(auto|scroll|overlay)/.test(e.overflow+e.overflowY+e.overflowX)?n:Oo(Yh(n))}function $w(n){return n&&n.referenceNode?n.referenceNode:n}var Uw=Ao&&!(!window.MSInputMethodContext||!document.documentMode),Ww=Ao&&/MSIE 10/.test(navigator.userAgent);function hs(n){return 11===n?Uw:10===n?Ww:Uw||Ww}function fs(n){if(!n)return document.documentElement;for(var e=hs(10)?document.body:null,t=n.offsetParent||null;t===e&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;var i=t&&t.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===sr(t,"position")?fs(t):t:n?n.ownerDocument.documentElement:document.documentElement}function Zh(n){return null!==n.parentNode?Zh(n.parentNode):n}function Ul(n,e){if(!(n&&n.nodeType&&e&&e.nodeType))return document.documentElement;var t=n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=t?n:e,r=t?e:n,s=document.createRange();s.setStart(i,0),s.setEnd(r,0);var o=s.commonAncestorContainer;if(n!==o&&e!==o||i.contains(r))return function IL(n){var e=n.nodeName;return"BODY"!==e&&("HTML"===e||fs(n.firstElementChild)===n)}(o)?o:fs(o);var a=Zh(n);return a.host?Ul(a.host,e):Ul(n,Zh(e).host)}function ps(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",t="top"===e?"scrollTop":"scrollLeft",i=n.nodeName;if("BODY"===i||"HTML"===i){var r=n.ownerDocument.documentElement,s=n.ownerDocument.scrollingElement||r;return s[t]}return n[t]}function xL(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=ps(e,"top"),r=ps(e,"left"),s=t?-1:1;return n.top+=i*s,n.bottom+=i*s,n.left+=r*s,n.right+=r*s,n}function Gw(n,e){var t="x"===e?"Left":"Top",i="Left"===t?"Right":"Bottom";return parseFloat(n["border"+t+"Width"])+parseFloat(n["border"+i+"Width"])}function qw(n,e,t,i){return Math.max(e["offset"+n],e["scroll"+n],t["client"+n],t["offset"+n],t["scroll"+n],hs(10)?parseInt(t["offset"+n])+parseInt(i["margin"+("Height"===n?"Top":"Left")])+parseInt(i["margin"+("Height"===n?"Bottom":"Right")]):0)}function Kw(n){var e=n.body,t=n.documentElement,i=hs(10)&&getComputedStyle(t);return{height:qw("Height",e,t,i),width:qw("Width",e,t,i)}}var AL=function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")},OL=function(){function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),gs=function(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n},bn=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n};function Oi(n){return bn({},n,{right:n.left+n.width,bottom:n.top+n.height})}function Qh(n){var e={};try{if(hs(10)){e=n.getBoundingClientRect();var t=ps(n,"top"),i=ps(n,"left");e.top+=t,e.left+=i,e.bottom+=t,e.right+=i}else e=n.getBoundingClientRect()}catch(d){}var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===n.nodeName?Kw(n.ownerDocument):{},l=n.offsetWidth-(s.width||n.clientWidth||r.width),c=n.offsetHeight-(s.height||n.clientHeight||r.height);if(l||c){var u=sr(n);l-=Gw(u,"x"),c-=Gw(u,"y"),r.width-=l,r.height-=c}return Oi(r)}function Xh(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=hs(10),r="HTML"===e.nodeName,s=Qh(n),o=Qh(e),a=Oo(n),l=sr(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);t&&r&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=Oi({top:s.top-o.top-c,left:s.left-o.left-u,width:s.width,height:s.height});if(d.marginTop=0,d.marginLeft=0,!i&&r){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-h,d.bottom-=c-h,d.left-=u-f,d.right-=u-f,d.marginTop=h,d.marginLeft=f}return(i&&!t?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(d=xL(d,e)),d}function RL(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.ownerDocument.documentElement,i=Xh(n,t),r=Math.max(t.clientWidth,window.innerWidth||0),s=Math.max(t.clientHeight,window.innerHeight||0),o=e?0:ps(t),a=e?0:ps(t,"left"),l={top:o-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:r,height:s};return Oi(l)}function Yw(n){var e=n.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===sr(n,"position"))return!0;var t=Yh(n);return!!t&&Yw(t)}function Zw(n){if(!n||!n.parentElement||hs())return document.documentElement;for(var e=n.parentElement;e&&"none"===sr(e,"transform");)e=e.parentElement;return e||document.documentElement}function Jh(n,e,t,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},o=r?Zw(n):Ul(n,$w(e));if("viewport"===i)s=RL(o,r);else{var a=void 0;"scrollParent"===i?"BODY"===(a=Oo(Yh(e))).nodeName&&(a=n.ownerDocument.documentElement):a="window"===i?n.ownerDocument.documentElement:i;var l=Xh(a,o,r);if("HTML"!==a.nodeName||Yw(o))s=l;else{var c=Kw(n.ownerDocument),u=c.height,d=c.width;s.top+=l.top-l.marginTop,s.bottom=u+l.top,s.left+=l.left-l.marginLeft,s.right=d+l.left}}var h="number"==typeof(t=t||0);return s.left+=h?t:t.left||0,s.top+=h?t:t.top||0,s.right-=h?t:t.right||0,s.bottom-=h?t:t.bottom||0,s}function kL(n){return n.width*n.height}function Qw(n,e,t,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===n.indexOf("auto"))return n;var o=Jh(t,i,s,r),a={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},l=Object.keys(a).map(function(h){return bn({key:h},a[h],{area:kL(a[h])})}).sort(function(h,f){return f.area-h.area}),c=l.filter(function(h){return h.width>=t.clientWidth&&h.height>=t.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=n.split("-")[1];return u+(d?"-"+d:"")}function Xw(n,e,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=i?Zw(e):Ul(e,$w(t));return Xh(t,r,i)}function Jw(n){var t=n.ownerDocument.defaultView.getComputedStyle(n),i=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function Wl(n){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(t){return e[t]})}function eE(n,e,t){t=t.split("-")[0];var i=Jw(n),r={width:i.width,height:i.height},s=-1!==["right","left"].indexOf(t),o=s?"top":"left",a=s?"left":"top",l=s?"height":"width",c=s?"width":"height";return r[o]=e[o]+e[l]/2-i[l]/2,r[a]=t===a?e[a]-i[c]:e[Wl(a)],r}function Ro(n,e){return Array.prototype.find?n.find(e):n.filter(e)[0]}function tE(n,e,t){var i=void 0===t?n:n.slice(0,function PL(n,e,t){if(Array.prototype.findIndex)return n.findIndex(function(r){return r[e]===t});var i=Ro(n,function(r){return r[e]===t});return n.indexOf(i)}(n,"name",t));return i.forEach(function(r){r.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=r.function||r.fn;r.enabled&&zw(s)&&(e.offsets.popper=Oi(e.offsets.popper),e.offsets.reference=Oi(e.offsets.reference),e=s(e,r))}),e}function FL(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=Xw(this.state,this.popper,this.reference,this.options.positionFixed),n.placement=Qw(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),n.originalPlacement=n.placement,n.positionFixed=this.options.positionFixed,n.offsets.popper=eE(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",n=tE(this.modifiers,n),this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function nE(n,e){return n.some(function(t){return t.enabled&&t.name===e})}function ef(n){for(var e=[!1,"ms","Webkit","Moz","O"],t=n.charAt(0).toUpperCase()+n.slice(1),i=0;i<e.length;i++){var r=e[i],s=r?""+r+t:n;if(void 0!==document.body.style[s])return s}return null}function NL(){return this.state.isDestroyed=!0,nE(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ef("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function iE(n){var e=n.ownerDocument;return e?e.defaultView:window}function rE(n,e,t,i){var r="BODY"===n.nodeName,s=r?n.ownerDocument.defaultView:n;s.addEventListener(e,t,{passive:!0}),r||rE(Oo(s.parentNode),e,t,i),i.push(s)}function LL(n,e,t,i){t.updateBound=i,iE(n).addEventListener("resize",t.updateBound,{passive:!0});var r=Oo(n);return rE(r,"scroll",t.updateBound,t.scrollParents),t.scrollElement=r,t.eventsEnabled=!0,t}function BL(){this.state.eventsEnabled||(this.state=LL(this.reference,0,this.state,this.scheduleUpdate))}function HL(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function VL(n,e){return iE(n).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}(this.reference,this.state))}function tf(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function nf(n,e){Object.keys(e).forEach(function(t){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&tf(e[t])&&(i="px"),n.style[t]=e[t]+i})}var WL=Ao&&/Firefox/i.test(navigator.userAgent);function sE(n,e,t){var i=Ro(n,function(a){return a.name===e}),r=!!i&&n.some(function(a){return a.name===t&&a.enabled&&a.order<i.order});if(!r){var s="`"+e+"`";console.warn("`"+t+"` modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return r}var oE=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],rf=oE.slice(3);function aE(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=rf.indexOf(n),i=rf.slice(t+1).concat(rf.slice(0,t));return e?i.reverse():i}var rB={shift:{order:100,enabled:!0,fn:function tB(n){var e=n.placement,t=e.split("-")[0],i=e.split("-")[1];if(i){var r=n.offsets,s=r.reference,o=r.popper,a=-1!==["bottom","top"].indexOf(t),l=a?"left":"top",c=a?"width":"height",u={start:gs({},l,s[l]),end:gs({},l,s[l]+s[c]-o[c])};n.offsets.popper=bn({},o,u[i])}return n}},offset:{order:200,enabled:!0,fn:function JL(n,e){var l,t=e.offset,r=n.offsets,s=r.popper,o=r.reference,a=n.placement.split("-")[0];return l=tf(+t)?[+t,0]:function XL(n,e,t,i){var r=[0,0],s=-1!==["right","left"].indexOf(i),o=n.split(/(\+|\-)/).map(function(u){return u.trim()}),a=o.indexOf(Ro(o,function(u){return-1!==u.search(/,|\s/)}));o[a]&&-1===o[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[o.slice(0,a).concat([o[a].split(l)[0]]),[o[a].split(l)[1]].concat(o.slice(a+1))]:[o];return c=c.map(function(u,d){var h=(1===d?!s:s)?"height":"width",f=!1;return u.reduce(function(p,g){return""===p[p.length-1]&&-1!==["+","-"].indexOf(g)?(p[p.length-1]=g,f=!0,p):f?(p[p.length-1]+=g,f=!1,p):p.concat(g)},[]).map(function(p){return function QL(n,e,t,i){var r=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+r[1],o=r[2];return s?0===o.indexOf("%")?Oi("%p"===o?t:i)[e]/100*s:"vh"===o||"vw"===o?("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s:s:n}(p,h,e,t)})}),c.forEach(function(u,d){u.forEach(function(h,f){tf(h)&&(r[d]+=h*("-"===u[f-1]?-1:1))})}),r}(t,s,o,a),"left"===a?(s.top+=l[0],s.left-=l[1]):"right"===a?(s.top+=l[0],s.left+=l[1]):"top"===a?(s.left+=l[0],s.top-=l[1]):"bottom"===a&&(s.left+=l[0],s.top+=l[1]),n.popper=s,n},offset:0},preventOverflow:{order:300,enabled:!0,fn:function eB(n,e){var t=e.boundariesElement||fs(n.instance.popper);n.instance.reference===t&&(t=fs(t));var i=ef("transform"),r=n.instance.popper.style,s=r.top,o=r.left,a=r[i];r.top="",r.left="",r[i]="";var l=Jh(n.instance.popper,n.instance.reference,e.padding,t,n.positionFixed);r.top=s,r.left=o,r[i]=a,e.boundaries=l;var u=n.offsets.popper,d={primary:function(f){var p=u[f];return u[f]<l[f]&&!e.escapeWithReference&&(p=Math.max(u[f],l[f])),gs({},f,p)},secondary:function(f){var p="right"===f?"left":"top",g=u[p];return u[f]>l[f]&&!e.escapeWithReference&&(g=Math.min(u[p],l[f]-("right"===f?u.width:u.height))),gs({},p,g)}};return e.priority.forEach(function(h){var f=-1!==["left","top"].indexOf(h)?"primary":"secondary";u=bn({},u,d[f](h))}),n.offsets.popper=u,n},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function ZL(n){var e=n.offsets,t=e.popper,i=e.reference,r=n.placement.split("-")[0],s=Math.floor,o=-1!==["top","bottom"].indexOf(r),a=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return t[a]<s(i[l])&&(n.offsets.popper[l]=s(i[l])-t[c]),t[l]>s(i[a])&&(n.offsets.popper[l]=s(i[a])),n}},arrow:{order:500,enabled:!0,fn:function qL(n,e){var t;if(!sE(n.instance.modifiers,"arrow","keepTogether"))return n;var i=e.element;if("string"==typeof i){if(!(i=n.instance.popper.querySelector(i)))return n}else if(!n.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var r=n.placement.split("-")[0],s=n.offsets,o=s.popper,a=s.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=Jw(i)[c];a[f]-p<o[d]&&(n.offsets.popper[d]-=o[d]-(a[f]-p)),a[d]+p>o[f]&&(n.offsets.popper[d]+=a[d]+p-o[f]),n.offsets.popper=Oi(n.offsets.popper);var g=a[d]+a[c]/2-p/2,_=sr(n.instance.popper),v=parseFloat(_["margin"+u]),m=parseFloat(_["border"+u+"Width"]),C=g-n.offsets.popper[d]-v-m;return C=Math.max(Math.min(o[c]-p,C),0),n.arrowElement=i,n.offsets.arrow=(gs(t={},d,Math.round(C)),gs(t,h,""),t),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function YL(n,e){if(nE(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var t=Jh(n.instance.popper,n.instance.reference,e.padding,e.boundariesElement,n.positionFixed),i=n.placement.split("-")[0],r=Wl(i),s=n.placement.split("-")[1]||"",o=[];switch(e.behavior){case"flip":o=[i,r];break;case"clockwise":o=aE(i);break;case"counterclockwise":o=aE(i,!0);break;default:o=e.behavior}return o.forEach(function(a,l){if(i!==a||o.length===l+1)return n;i=n.placement.split("-")[0],r=Wl(i);var c=n.offsets.popper,u=n.offsets.reference,d=Math.floor,h="left"===i&&d(c.right)>d(u.left)||"right"===i&&d(c.left)<d(u.right)||"top"===i&&d(c.bottom)>d(u.top)||"bottom"===i&&d(c.top)<d(u.bottom),f=d(c.left)<d(t.left),p=d(c.right)>d(t.right),g=d(c.top)<d(t.top),_=d(c.bottom)>d(t.bottom),v="left"===i&&f||"right"===i&&p||"top"===i&&g||"bottom"===i&&_,m=-1!==["top","bottom"].indexOf(i),K=!!e.flipVariations&&(m&&"start"===s&&f||m&&"end"===s&&p||!m&&"start"===s&&g||!m&&"end"===s&&_)||!!e.flipVariationsByContent&&(m&&"start"===s&&p||m&&"end"===s&&f||!m&&"start"===s&&_||!m&&"end"===s&&g);(h||v||K)&&(n.flipped=!0,(h||v)&&(i=o[l+1]),K&&(s=function KL(n){return"end"===n?"start":"start"===n?"end":n}(s)),n.placement=i+(s?"-"+s:""),n.offsets.popper=bn({},n.offsets.popper,eE(n.instance.popper,n.offsets.reference,n.placement)),n=tE(n.instance.modifiers,n,"flip"))}),n},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function iB(n){var e=n.placement,t=e.split("-")[0],i=n.offsets,r=i.popper,s=i.reference,o=-1!==["left","right"].indexOf(t),a=-1===["top","left"].indexOf(t);return r[o?"left":"top"]=s[t]-(a?r[o?"width":"height"]:0),n.placement=Wl(e),n.offsets.popper=Oi(r),n}},hide:{order:800,enabled:!0,fn:function nB(n){if(!sE(n.instance.modifiers,"hide","preventOverflow"))return n;var e=n.offsets.reference,t=Ro(n.instance.modifiers,function(i){return"preventOverflow"===i.name}).boundaries;if(e.bottom<t.top||e.left>t.right||e.top>t.bottom||e.right<t.left){if(!0===n.hide)return n;n.hide=!0,n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1,n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function GL(n,e){var t=e.x,i=e.y,r=n.offsets.popper,s=Ro(n.instance.modifiers,function(C){return"applyStyle"===C.name}).gpuAcceleration;void 0!==s&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var p,g,o=void 0!==s?s:e.gpuAcceleration,a=fs(n.instance.popper),l=Qh(a),c={position:r.position},u=function UL(n,e){var t=n.offsets,i=t.popper,s=Math.round,o=Math.floor,a=function(v){return v},l=s(t.reference.width),c=s(i.width),u=-1!==["left","right"].indexOf(n.placement),d=-1!==n.placement.indexOf("-"),p=e?u||d||l%2==c%2?s:o:a,g=e?s:a;return{left:p(l%2==1&&c%2==1&&!d&&e?i.left-1:i.left),top:g(i.top),bottom:g(i.bottom),right:p(i.right)}}(n,window.devicePixelRatio<2||!WL),d="bottom"===t?"top":"bottom",h="right"===i?"left":"right",f=ef("transform");if(g="bottom"===d?"HTML"===a.nodeName?-a.clientHeight+u.bottom:-l.height+u.bottom:u.top,p="right"===h?"HTML"===a.nodeName?-a.clientWidth+u.right:-l.width+u.right:u.left,o&&f)c[f]="translate3d("+p+"px, "+g+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var v="right"===h?-1:1;c[d]=g*("bottom"===d?-1:1),c[h]=p*v,c.willChange=d+", "+h}return n.attributes=bn({},{"x-placement":n.placement},n.attributes),n.styles=bn({},c,n.styles),n.arrowStyles=bn({},n.offsets.arrow,n.arrowStyles),n},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function zL(n){return nf(n.instance.popper,n.styles),function jL(n,e){Object.keys(e).forEach(function(t){!1!==e[t]?n.setAttribute(t,e[t]):n.removeAttribute(t)})}(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&nf(n.arrowElement,n.arrowStyles),n},onLoad:function $L(n,e,t,i,r){var s=Xw(r,e,n,t.positionFixed),o=Qw(t.placement,s,e,n,t.modifiers.flip.boundariesElement,t.modifiers.flip.padding);return e.setAttribute("x-placement",o),nf(e,{position:t.positionFixed?"fixed":"absolute"}),t},gpuAcceleration:void 0}},sB={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:rB},Gl=function(){function n(e,t){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};AL(this,n),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=ML(this.update.bind(this)),this.options=bn({},n.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(bn({},n.Defaults.modifiers,r.modifiers)).forEach(function(o){i.options.modifiers[o]=bn({},n.Defaults.modifiers[o]||{},r.modifiers?r.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return bn({name:o},i.options.modifiers[o])}).sort(function(o,a){return o.order-a.order}),this.modifiers.forEach(function(o){o.enabled&&zw(o.onLoad)&&o.onLoad(i.reference,i.popper,i.options,o,i.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return OL(n,[{key:"update",value:function(){return FL.call(this)}},{key:"destroy",value:function(){return NL.call(this)}},{key:"enableEventListeners",value:function(){return BL.call(this)}},{key:"disableEventListeners",value:function(){return HL.call(this)}}]),n}();Gl.Utils=("undefined"!=typeof window?window:global).PopperUtils,Gl.placements=oE,Gl.Defaults=sB;const oB=Gl,aB=["popperViewRef"];function lB(n,e){1&n&&(be(0,"div",5),Qs(1),Ie()),2&n&&j("innerHTML",ie().text,su)}function cB(n,e){1&n&&(be(0,"div",6),Qs(1,1),Ie())}const lE=["*","*"];let or=(()=>{class n{}return n.CLICK="click",n.HOVER="hover",n.MOUSEDOWN="mousedown",n.NONE="none",n})(),cE=(()=>{class n{}return n.Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.TopStart="top-start",n.BottomStart="bottom-start",n.LeftStart="left-start",n.RightStart="right-start",n.TopEnd="top-end",n.BottomEnd="bottom-end",n.LeftEnd="left-end",n.RightEnd="right-end",n.Auto="auto",n.AutoStart="auto-start",n.AutoEnd="auto-end",n})(),uE=(()=>{class n{constructor(t,i,r,s){this.elemRef=t,this.renderer=i,this.viewRef=r,this.CDR=s,this.popperOptions={disableAnimation:!1,disableDefaultStyling:!1,placement:cE.Auto,boundariesElement:"",trigger:or.HOVER,positionFixed:!1,appendToBody:!1,popperModifiers:{}},this.isMouseOver=!1,this.onHidden=new ct,this.displayType="none",this.opacity=0,this.ariaHidden="true",this.arrowColor=null,this.state=!0}onMouseOver(){this.isMouseOver=!0}showOnLeave(){this.isMouseOver=!1,(this.popperOptions.trigger===or.HOVER||this.popperOptions.hideOnMouseLeave)&&this.hide()}onDocumentResize(){this.update()}ngOnDestroy(){this.clean(),this.popperOptions.appendTo&&this.elemRef&&this.elemRef.nativeElement&&this.elemRef.nativeElement.parentNode&&(this.viewRef.detach(),this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement))}clean(){this.toggleVisibility(!1),this.popperInstance&&(this.popperInstance.disableEventListeners(),this.popperInstance.destroy())}show(){if(!this.referenceObject)return;const t=this.popperOptions.appendTo&&document.querySelector(this.popperOptions.appendTo);t&&this.elemRef.nativeElement.parentNode!==t&&(this.elemRef.nativeElement.parentNode&&this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement),t.appendChild(this.elemRef.nativeElement));let i={placement:this.popperOptions.placement,positionFixed:this.popperOptions.positionFixed,modifiers:{arrow:{element:this.popperViewRef.nativeElement.querySelector(".ngxp__arrow")}}};this.onUpdate&&(i.onUpdate=this.onUpdate);let r=this.popperOptions.boundariesElement&&document.querySelector(this.popperOptions.boundariesElement);i.modifiers&&r&&(i.modifiers.preventOverflow={boundariesElement:r}),i.modifiers&&void 0!==this.popperOptions.preventOverflow&&(i.modifiers.preventOverflow=i.modifiers.preventOverflow||{},i.modifiers.preventOverflow.enabled=this.popperOptions.preventOverflow,i.modifiers.preventOverflow.enabled||(i.modifiers.hide={enabled:!1})),this.determineArrowColor(),i.modifiers=Object.assign(i.modifiers,this.popperOptions.popperModifiers),this.popperInstance=new oB(this.referenceObject,this.popperViewRef.nativeElement,i),this.popperInstance.enableEventListeners(),this.scheduleUpdate(),this.toggleVisibility(!0),this.globalResize=this.renderer.listen("document","resize",this.onDocumentResize.bind(this))}determineArrowColor(){["background-color","backgroundColor"].some(t=>!(!this.popperOptions.styles||!this.popperOptions.styles.hasOwnProperty(t)||(this.arrowColor=this.popperOptions.styles[t],0)))}update(){this.popperInstance&&this.popperInstance.update()}scheduleUpdate(){this.popperInstance&&this.popperInstance.scheduleUpdate()}hide(){this.popperInstance&&this.popperInstance.destroy(),this.toggleVisibility(!1),this.onHidden.emit()}toggleVisibility(t){t?(this.opacity=1,this.displayType="block",this.ariaHidden="false",this.state=!0):(this.opacity=0,this.displayType="none",this.ariaHidden="true",this.state=!1),this.CDR.destroyed||this.CDR.detectChanges()}extractAppliedClassListExpr(t){if(!t||"string"!=typeof t)return null;try{return t.replace(/ /,"").split(",").reduce((i,r)=>(i[r]=!0,i),{})}catch(i){return null}}clearGlobalResize(){this.globalResize&&"function"==typeof this.globalResize&&this.globalResize()}}return n.\u0275fac=function(t){return new(t||n)(E(Ze),E(Oa),E(Yt),E(ns))},n.\u0275cmp=pi({type:n,selectors:[["popper-content"]],viewQuery:function(t,i){if(1&t&&Jr(aB,5),2&t){let r;Xr(r=es())&&(i.popperViewRef=r.first)}},hostBindings:function(t,i){1&t&<("mouseover",function(){return i.onMouseOver()})("mouseleave",function(){return i.showOnLeave()})},ngContentSelectors:lE,decls:5,vars:20,consts:[[3,"ngStyle","ngClass"],["popperViewRef",""],["class","ngxp__inner",3,"innerHTML",4,"ngIf"],["class","ngxp__inner",4,"ngIf"],[1,"ngxp__arrow",3,"ngClass"],[1,"ngxp__inner",3,"innerHTML"],[1,"ngxp__inner"]],template:function(t,i){1&t&&(Da(lE),be(0,"div",0,1),pe(2,lB,2,1,"div",2),pe(3,cB,2,0,"div",3),Gi(4,"div",4),Ie()),2&t&&(Xs("display",i.displayType)("opacity",i.opacity),ii("ngxp__container",!i.popperOptions.disableDefaultStyling)("ngxp__animation",!i.popperOptions.disableAnimation),j("ngStyle",i.popperOptions.styles)("ngClass",i.extractAppliedClassListExpr(i.popperOptions.applyClass)),Tt("aria-hidden",i.ariaHidden)("aria-describedby",i.popperOptions.ariaDescribe||null)("role",i.popperOptions.ariaRole),$(2),j("ngIf",i.text),$(1),j("ngIf",!i.text),$(1),Xs("border-color",i.arrowColor),ii("__force-arrow",i.arrowColor),j("ngClass",i.extractAppliedClassListExpr(i.popperOptions.applyArrowClass)))},directives:[$d,Xa,Bd],styles:[".ngxp__container{display:none;position:absolute;border-radius:3px;border:1px solid grey;box-shadow:0 0 2px rgba(0,0,0,.5);padding:10px}.ngxp__container.ngxp__animation{-webkit-animation:150ms ease-out ngxp-fadeIn;animation:150ms ease-out ngxp-fadeIn}.ngxp__container>.ngxp__arrow{border-color:grey;width:0;height:0;border-style:solid;position:absolute;margin:5px}.ngxp__container[x-placement^=bottom],.ngxp__container[x-placement^=left],.ngxp__container[x-placement^=right],.ngxp__container[x-placement^=top]{display:block}.ngxp__container[x-placement^=top]{margin-bottom:5px}.ngxp__container[x-placement^=top]>.ngxp__arrow{border-width:5px 5px 0;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=top]>.ngxp__arrow.__force-arrow{border-right-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=bottom]{margin-top:5px}.ngxp__container[x-placement^=bottom]>.ngxp__arrow{border-width:0 5px 5px;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=bottom]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-right-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=right]{margin-left:5px}.ngxp__container[x-placement^=right]>.ngxp__arrow{border-width:5px 5px 5px 0;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=right]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=left]{margin-right:5px}.ngxp__container[x-placement^=left]>.ngxp__arrow{border-width:5px 0 5px 5px;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=left]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-right-color:transparent!important}@-webkit-keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}@keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}"],encapsulation:2,changeDetection:0}),n})();class Xe{constructor(e,t,i,r,s,o={}){this.viewContainerRef=e,this.changeDetectorRef=t,this.resolver=i,this.elementRef=r,this.renderer=s,this.popperDefaults=o,this.popperContentClass=uE,this.shown=!1,this.subscriptions=[],this.eventListeners=[],this.globalEventListeners=[],this.hideTimeout=0,this.timeoutAfterShow=0,this.popperOnShown=new ct,this.popperOnHidden=new ct,this.popperOnUpdate=new ct,Xe.baseOptions=Object.assign({},Xe.baseOptions,this.popperDefaults)}hideOnClickOutsideHandler(e){this.disabled||!this.hideOnClickOutside||e.srcElement&&e.srcElement===this.popperContent.elemRef.nativeElement||this.popperContent.elemRef.nativeElement.contains(e.srcElement)||this.scheduledHide(e,this.hideTimeout)}hideOnScrollHandler(e){this.disabled||!this.hideOnScroll||this.scheduledHide(e,this.hideTimeout)}applyTriggerListeners(){switch(this.showTrigger){case or.CLICK:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"click",this.toggle.bind(this)));break;case or.MOUSEDOWN:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mousedown",this.toggle.bind(this)));break;case or.HOVER:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseenter",this.scheduledShow.bind(this,this.showDelay))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout)))}this.showTrigger!==or.HOVER&&this.hideOnMouseLeave&&(this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout))))}static assignDefined(e,...t){for(const i of t)for(const r of Object.keys(i)){const s=i[r];void 0!==s&&(e[r]=s)}return e}ngOnInit(){if(this.hideOnClickOutside=void 0===this.hideOnClickOutside?this.closeOnClickOutside:this.hideOnClickOutside,"string"==typeof this.content){const t=this.content;this.popperContent=this.constructContent(),this.popperContent.text=t}else this.popperContent=this.content;const e=this.popperContent;e.referenceObject=this.getRefElement(),this.setContentProperties(e),this.setDefaults(),this.applyTriggerListeners(),this.showOnStart&&this.scheduledShow()}ngOnChanges(e){e.popperDisabled&&e.popperDisabled.currentValue&&this.hide(),e.content&&!e.content.firstChange&&"string"==typeof e.content.currentValue&&(this.popperContent.text=e.content.currentValue),e.applyClass&&!e.applyClass.firstChange&&"string"==typeof e.applyClass.currentValue&&(this.popperContent.popperOptions.applyClass=e.applyClass.currentValue),e.applyArrowClass&&!e.applyArrowClass.firstChange&&"string"==typeof e.applyArrowClass.currentValue&&(this.popperContent.popperOptions.applyArrowClass=e.applyArrowClass.currentValue)}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe&&e.unsubscribe()),this.subscriptions.length=0,this.clearEventListeners(),this.clearGlobalEventListeners(),clearTimeout(this.scheduledShowTimeout),clearTimeout(this.scheduledHideTimeout),this.popperContent&&this.popperContent.clean()}toggle(){this.disabled||(this.shown?this.scheduledHide(null,this.hideTimeout):this.scheduledShow())}show(){if(this.shown)return void this.overrideHideTimeout();this.shown=!0;const e=this.popperContent,t=this.getRefElement();e.referenceObject!==t&&(e.referenceObject=t),this.setContentProperties(e),e.show(),this.popperOnShown.emit(this),this.timeoutAfterShow>0&&this.scheduledHide(null,this.timeoutAfterShow),this.globalEventListeners.push(this.renderer.listen("document","touchend",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen("document","click",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen(this.getScrollParent(this.getRefElement()),"scroll",this.hideOnScrollHandler.bind(this)))}hide(){if(!this.disabled){if(!this.shown)return void this.overrideShowTimeout();this.shown=!1,this.popperContentRef?this.popperContentRef.instance.hide():this.popperContent.hide(),this.popperOnHidden.emit(this),this.clearGlobalEventListeners()}}scheduledShow(e=this.showDelay){this.disabled||(this.overrideHideTimeout(),this.scheduledShowTimeout=setTimeout(()=>{this.show(),this.applyChanges()},e))}scheduledHide(e=null,t=this.hideTimeout){this.disabled||(this.overrideShowTimeout(),this.scheduledHideTimeout=setTimeout(()=>{const i=e?e.toElement:null,r=!!this.popperContent.popperViewRef&&this.popperContent.popperViewRef.nativeElement;!r||r===i||r.contains(i)||this.content.isMouseOver||(this.hide(),this.applyChanges())},t))}getRefElement(){return this.targetElement||this.viewContainerRef.element.nativeElement}applyChanges(){this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()}setDefaults(){this.showDelay=void 0===this.showDelay?Xe.baseOptions.showDelay:this.showDelay,this.showTrigger=void 0===this.showTrigger?Xe.baseOptions.trigger:this.showTrigger,this.hideOnClickOutside=void 0===this.hideOnClickOutside?Xe.baseOptions.hideOnClickOutside:this.hideOnClickOutside,this.hideOnScroll=void 0===this.hideOnScroll?Xe.baseOptions.hideOnScroll:this.hideOnScroll,this.hideOnMouseLeave=void 0===this.hideOnMouseLeave?Xe.baseOptions.hideOnMouseLeave:this.hideOnMouseLeave,this.ariaRole=void 0===this.ariaRole?Xe.baseOptions.ariaRole:this.ariaRole,this.ariaDescribe=void 0===this.ariaDescribe?Xe.baseOptions.ariaDescribe:this.ariaDescribe,this.styles=void 0===this.styles?Object.assign({},Xe.baseOptions.styles):this.styles}clearEventListeners(){this.eventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.eventListeners.length=0}clearGlobalEventListeners(){this.globalEventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.globalEventListeners.length=0}overrideShowTimeout(){this.scheduledShowTimeout&&(clearTimeout(this.scheduledShowTimeout),this.scheduledHideTimeout=0)}overrideHideTimeout(){this.scheduledHideTimeout&&(clearTimeout(this.scheduledHideTimeout),this.scheduledHideTimeout=0)}constructContent(){const e=this.resolver.resolveComponentFactory(this.popperContentClass);return this.popperContentRef=this.viewContainerRef.createComponent(e),this.popperContentRef.instance}setContentProperties(e){e.popperOptions=Xe.assignDefined(e.popperOptions,Xe.baseOptions,{showDelay:this.showDelay,disableAnimation:this.disableAnimation,disableDefaultStyling:this.disableStyle,placement:this.placement,boundariesElement:this.boundariesElement,trigger:this.showTrigger,positionFixed:this.positionFixed,popperModifiers:this.popperModifiers,ariaDescribe:this.ariaDescribe,ariaRole:this.ariaRole,applyClass:this.applyClass,applyArrowClass:this.applyArrowClass,hideOnMouseLeave:this.hideOnMouseLeave,styles:this.styles,appendTo:this.appendTo,preventOverflow:this.preventOverflow}),e.onUpdate=this.onPopperUpdate.bind(this),this.subscriptions.push(e.onHidden.subscribe(this.hide.bind(this)))}getScrollParent(e){const i=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return e?"visible"!==i&&"hidden"!==i&&e.scrollHeight>=e.clientHeight?e:this.getScrollParent(e.parentNode)||document:null}onPopperUpdate(e){this.popperOnUpdate.emit(e)}}Xe.\u0275fac=function(e){return new(e||Xe)(E(Yt),E(ns),E(Ei),E(Ze),E(Oa),E("popperDefaults"))},Xe.\u0275dir=je({type:Xe,selectors:[["","popper",""]],inputs:{hideTimeout:["popperTimeout","hideTimeout"],timeoutAfterShow:["popperTimeoutAfterShow","timeoutAfterShow"],hideOnClickOutside:["popperHideOnClickOutside","hideOnClickOutside"],showDelay:["popperDelay","showDelay"],showTrigger:["popperTrigger","showTrigger"],hideOnScroll:["popperHideOnScroll","hideOnScroll"],hideOnMouseLeave:["popperHideOnMouseLeave","hideOnMouseLeave"],ariaRole:["popperAriaRole","ariaRole"],ariaDescribe:["popperAriaDescribeBy","ariaDescribe"],styles:["popperStyles","styles"],content:["popper","content"],disabled:["popperDisabled","disabled"],placement:["popperPlacement","placement"],targetElement:["popperTarget","targetElement"],boundariesElement:["popperBoundaries","boundariesElement"],showOnStart:["popperShowOnStart","showOnStart"],closeOnClickOutside:["popperCloseOnClickOutside","closeOnClickOutside"],positionFixed:["popperPositionFixed","positionFixed"],popperModifiers:"popperModifiers",disableStyle:["popperDisableStyle","disableStyle"],disableAnimation:["popperDisableAnimation","disableAnimation"],applyClass:["popperApplyClass","applyClass"],applyArrowClass:["popperApplyArrowClass","applyArrowClass"],appendTo:["popperAppendTo","appendTo"],preventOverflow:["popperPreventOverflow","preventOverflow"]},outputs:{popperOnShown:"popperOnShown",popperOnHidden:"popperOnHidden",popperOnUpdate:"popperOnUpdate"},exportAs:["popper"],features:[Hi]}),Xe.baseOptions={showDelay:0,placement:cE.Auto,hideOnClickOutside:!0,hideOnMouseLeave:!1,hideOnScroll:!1,showTrigger:or.HOVER,appendTo:void 0,ariaRole:"popper",ariaDescribe:"",styles:{}};let uB=(()=>{class n{ngDoBootstrap(){}static forRoot(t={}){return{ngModule:n,providers:[{provide:"popperDefaults",useValue:t}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({imports:[[Gd]]}),n})();function dB(n,e){1&n&&Gn(0)}function hB(n,e){if(1&n){const t=qn();Mt(0),be(1,"button",7),lt("click",function(r){return pt(t),ie().emitClick(r)}),pe(2,dB,1,0,"ng-container",8),Ie(),It()}if(2&n){const t=ie(),i=at(12),r=at(10);$(1),j("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Tt("aria-label",t.label+" raised button"),$(1),j("ngTemplateOutlet",r)}}function fB(n,e){1&n&&Gn(0)}function pB(n,e){if(1&n){const t=qn();Mt(0),be(1,"button",9),lt("click",function(r){return pt(t),ie().emitClick(r)}),pe(2,fB,1,0,"ng-container",8),Ie(),It()}if(2&n){const t=ie(),i=at(12),r=at(10);$(1),j("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Tt("aria-label",t.label+" stroked button"),$(1),j("ngTemplateOutlet",r)}}function gB(n,e){1&n&&Gn(0)}function mB(n,e){if(1&n){const t=qn();Mt(0),be(1,"button",10),lt("click",function(r){return pt(t),ie().emitClick(r)}),pe(2,gB,1,0,"ng-container",8),Ie(),It()}if(2&n){const t=ie(),i=at(12),r=at(10);$(1),j("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Tt("aria-label",t.label+" flat button"),$(1),j("ngTemplateOutlet",r)}}function _B(n,e){1&n&&Gn(0)}function yB(n,e){if(1&n){const t=qn();Mt(0),be(1,"button",11),lt("click",function(r){return pt(t),ie().emitClick(r)}),pe(2,_B,1,0,"ng-container",8),Ie(),It()}if(2&n){const t=ie(),i=at(12),r=at(10);$(1),j("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Tt("aria-label",t.label+" icon button"),$(1),j("ngTemplateOutlet",r)}}function vB(n,e){1&n&&Gn(0)}function bB(n,e){if(1&n){const t=qn();Mt(0),be(1,"button",12),lt("click",function(r){return pt(t),ie().emitClick(r)}),pe(2,vB,1,0,"ng-container",8),Ie(),It()}if(2&n){const t=ie(),i=at(12),r=at(10);$(1),j("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Tt("aria-label",t.label+" fab button"),$(1),j("ngTemplateOutlet",r)}}function wB(n,e){1&n&&Gn(0)}function EB(n,e){if(1&n){const t=qn();Mt(0),be(1,"button",13),lt("click",function(r){return pt(t),ie().emitClick(r)}),pe(2,wB,1,0,"ng-container",8),Ie(),It()}if(2&n){const t=ie(),i=at(12),r=at(10);$(1),j("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Tt("aria-label",t.label+" mini fab button"),$(1),j("ngTemplateOutlet",r)}}function CB(n,e){1&n&&Gn(0)}function DB(n,e){if(1&n){const t=qn();Mt(0),be(1,"button",14),lt("click",function(r){return pt(t),ie().emitClick(r)}),pe(2,CB,1,0,"ng-container",8),Ie(),It()}if(2&n){const t=ie(),i=at(12),r=at(10);$(1),j("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Tt("aria-label",t.label+" unstyled button"),$(1),j("ngTemplateOutlet",r)}}function SB(n,e){1&n&&Gn(0)}function TB(n,e){if(1&n){const t=qn();Mt(0),be(1,"button",15),lt("click",function(r){return pt(t),ie().emitClick(r)}),pe(2,SB,1,0,"ng-container",8),Ie(),It()}if(2&n){const t=ie(),i=at(12),r=at(10);$(1),j("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup))("popperAppendTo","body"),Tt("aria-label",t.label+" basic button"),$(1),j("ngTemplateOutlet",r)}}function MB(n,e){if(1&n&&(be(0,"mat-icon",18),eo(1),Ie()),2&n){const t=ie(2);j("ngStyle",t.buttonIconStyle),$(1),Wr(t.icon)}}function IB(n,e){if(1&n&&(be(0,"div"),eo(1),Ie()),2&n){const t=ie(2);$(1),Wr(t.label||"Button")}}function xB(n,e){if(1&n&&(pe(0,MB,2,2,"mat-icon",16),pe(1,IB,2,1,"div",17)),2&n){const t=ie();j("ngIf",t.icon),$(1),j("ngIf",!t.icon)}}function AB(n,e){1&n&&Gi(0,"img",19),2&n&&j("lazyLoad",ie().imgUrl)}function OB(n,e){if(1&n&&(be(0,"div"),eo(1),Ie()),2&n){const t=ie();yt(t.popup.style),$(1),Wr(t.popup.text)}}let dE=(()=>{class n{emitClick(t){t.stopPropagation(),this.onClick()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=pi({type:n,selectors:[["drayman-button-internal"]],inputs:{onClick:"onClick",label:"label",view:"view",icon:"icon",tooltip:"tooltip",disabled:"disabled",imgUrl:"imgUrl",popup:"popup",buttonStyle:"buttonStyle",buttonIconStyle:"buttonIconStyle"},decls:15,vars:10,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["button",""],["thumbnailContent",""],["style","width: 150px; z-index: 1001;",3,"lazyLoad",4,"ngIf"],[3,"style",4,"ngIf"],["type","button","mat-raised-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],[4,"ngTemplateOutlet"],["type","button","mat-stroked-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-flat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-icon-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-mini-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","popperAppendTo","click"],[3,"ngStyle",4,"ngIf"],[4,"ngIf"],[3,"ngStyle"],[2,"width","150px","z-index","1001",3,"lazyLoad"]],template:function(t,i){1&t&&(Mt(0,0),pe(1,hB,3,7,"ng-container",1),pe(2,pB,3,7,"ng-container",1),pe(3,mB,3,7,"ng-container",1),pe(4,yB,3,7,"ng-container",1),pe(5,bB,3,7,"ng-container",1),pe(6,EB,3,7,"ng-container",1),pe(7,DB,3,7,"ng-container",1),pe(8,TB,3,8,"ng-container",2),It(),pe(9,xB,2,2,"ng-template",null,3,cy),be(11,"popper-content",null,4),pe(13,AB,1,1,"img",5),pe(14,OB,2,3,"div",6),Ie()),2&t&&(j("ngSwitch",i.view),$(1),j("ngSwitchCase","raised"),$(1),j("ngSwitchCase","stroked"),$(1),j("ngSwitchCase","flat"),$(1),j("ngSwitchCase","icon"),$(1),j("ngSwitchCase","fab"),$(1),j("ngSwitchCase","miniFab"),$(1),j("ngSwitchCase","unstyled"),$(6),j("ngIf",i.imgUrl),$(1),j("ngIf",i.popup))},directives:[_o,zd,t1,sL,$d,Xe,yv,mv,Bd,k1,uE,wL],styles:[""]}),n})();"function"==typeof SuppressedError&&SuppressedError;class tV extends jw{loadImage({imagePath:e}){return function hE(n,e,t,i){return new(t||(t=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):function r(s){return s instanceof t?s:new t(function(o){o(s)})}(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){const i=yield(yield fetch(e)).blob();if(i.size)return URL.createObjectURL(i)})}}let nV=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=rb(dE,{injector:this.injector});customElements.define("drayman-button",t)}}return n.\u0275fac=function(t){return new(t||n)(y(mt))},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({providers:[{provide:Kh,useClass:tV},{provide:pl,useClass:Qb}],imports:[[Xd,Yb,n1,lL,P1,EL,uB.forRoot({disableDefaultStyling:!0,applyArrowClass:"hidden",showDelay:500,trigger:"hover",hideOnClickOutside:!1,styles:{position:"relative",background:"#fff",padding:"5px 5px 0 5px","z-index":"1001","border-radius":"2px","box-shadow":"0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)"},placement:"right"})]]}),n})();const iV=["container"];function rV(n,e){if(1&n&&(Mt(0),Gi(1,"div",8),It()),2&n){const t=ie().$implicit,i=ie().$implicit,r=ie();$(1),yt(i.hovered&&t.hoverStyle?t.hoverStyle:t.style),j("innerHTML",r.getSanitizedString(t.value),su)}}function sV(n,e){if(1&n&&(Mt(0),be(1,"div"),Gi(2,"drayman-button-internal",9),Ie(),It()),2&n){const t=ie().$implicit,i=ie().$implicit,r=ie();$(1),yt(i.hovered&&t.hoverStyle?t.hoverStyle:t.style),$(1),j("label",t.value.label)("onClick",r.emitContentButtonClick.bind(r,i,t.value))("view",t.value.view)("icon",t.value.icon)("tooltip",t.value.tooltip)("disabled",t.value.disabled)("imgUrl",t.value.imgUrl)("popup",t.value.popup)("buttonStyle",t.value.buttonStyle)("options",t.value)}}function oV(n,e){if(1&n&&(Mt(0)(1,6),pe(2,rV,2,3,"ng-container",7),pe(3,sV,3,12,"ng-container",7),It()()),2&n){const t=e.$implicit;$(1),j("ngSwitch",t.type),$(1),j("ngSwitchCase","text"),$(1),j("ngSwitchCase","button")}}function aV(n,e){if(1&n){const t=qn();be(0,"div",4),lt("mouseenter",function(){return pt(t).$implicit.hovered=!0})("contextmenu",function(r){const o=pt(t).$implicit;return ie().oncontextmenu(r,o)})("click",function(r){const o=pt(t).$implicit;return ie().emitCellClick(r,o)})("mousedown",function(r){const o=pt(t).$implicit;return ie().onMouseDown(r,o)})("mouseup",function(r){const o=pt(t).$implicit;return ie().onMouseUp(r,o)})("mouseover",function(r){const o=pt(t).$implicit;return ie().onMouseOver(r,o)})("mouseleave",function(r){const o=pt(t).$implicit;return ie().onMouseLeave(r,o),o.hovered=!1}),be(1,"div"),pe(2,oV,4,3,"ng-container",5),Ie()()}if(2&n){const t=e.$implicit;yt(ie().getCellStyle(t)),Tt("ref",t.ref),$(1),yt(t.contentStyle),$(1),j("ngForOf",t.content)}}let lV=(()=>{class n{constructor(t,i){this.elementRef=t,this.sanitizer=i,this.selectedCells=[],this.scrollTo=({row:r})=>{this.cellHeight&&this.scrollable.scrollTo({top:r*this.cellHeight})},this.grid=[],this.scrollDirection="vertical",this.scrollbarWidth="narrow",this.resized$=new b,this.selectedCellsChanged$=new b,this._selectedCells=[],this.pendingSelectedCells=[],this.hoveredRow=-1}onWheel(t){"horizontal"===this.scrollDirection&&(t.preventDefault(),this.containerRef.nativeElement.scrollLeft+=t.deltaY)}get scrollbarWidthClass(){return"narrow"===this.scrollbarWidth?null:`scrollbar-${this.scrollbarWidth}`}getCellStyle(t){var i,r,s;const o=t.rowSpan?t.row+t.rowSpan:t.row+1,a=t.colSpan?t.col+t.colSpan:t.col+1;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.cellStyle),this.hoveredRow===t.row?this.rowHoverStyle:{}),[...this.pendingSelectedCells,...this._selectedCells].find(l=>l.selectionGroup===t.selectionGroup)?Object.assign({},null===(i=this.selectionMode)||void 0===i?void 0:i.similarGroupCellStyle):{}),[...this.pendingSelectedCells,...this._selectedCells].length&&![...this.pendingSelectedCells,...this._selectedCells].find(l=>l.selectionGroup===t.selectionGroup)?Object.assign({},null===(r=this.selectionMode)||void 0===r?void 0:r.otherGroupCellStyle):{}),[...this.pendingSelectedCells,...this._selectedCells].find(l=>l.row===t.row&&l.col===t.col)?Object.assign(Object.assign({},null===(s=this.selectionMode)||void 0===s?void 0:s.cellStyle),t.selectionCellStyle):{}),{gridArea:`${t.row+1}/${t.col+1}/${o+1}/${a+1}`})}ngOnDestroy(){}getSanitizedString(t){return this.sanitizer.bypassSecurityTrustHtml(t)}oncontextmenu(t,i){t.ctrlKey&&(t.preventDefault(),this.emitCellClick(t,i,!0))}emitCellClick(t,i,r=!1){var s,o,a;t.ctrlKey&&(t.preventDefault(),r=!0),(null===(s=this.selectionMode)||void 0===s?void 0:s.enabled)?this.pendingSelectedCells.length||(r?(this._selectedCells=[i],this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!0})):this._selectedCells.find(c=>c.row===i.row&&c.col===i.col)?(this._selectedCells=this._selectedCells.filter(c=>!(c.row===i.row&&c.col===i.col)),this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!1})):!i.disableSelect&&(!this._selectedCells.length||(null===(o=this._selectedCells[0])||void 0===o?void 0:o.selectionGroup)===i.selectionGroup)&&(this._selectedCells.push(i),this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!1}))):null===(a=this.onCellClick)||void 0===a||a.call(this,{cell:i})}onMouseLeave(t,i){this.hoveredRow=-1}onMouseDown(t,i){var r,s;((null===(r=this.selectionMode)||void 0===r?void 0:r.enabled)&&!this._selectedCells.length||(null===(s=this._selectedCells[0])||void 0===s?void 0:s.selectionGroup)===i.selectionGroup)&&(this.ctrl=t.ctrlKey,this.startSelectionCell=i)}onMouseUp(t,i){this.startSelectionCell=null,this.pendingSelectedCells.length&&(this._selectedCells=[...this.ctrl?[]:this._selectedCells,...this.pendingSelectedCells],this.pendingSelectedCells=[],this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!!this.ctrl}))}onMouseOver(t,i){if(this.hoveredRow=i.row,this.startSelectionCell){const r=Math.min(i.col,this.startSelectionCell.col),s=Math.max(i.col,this.startSelectionCell.col),o=Math.min(i.row,this.startSelectionCell.row),a=Math.max(i.row,this.startSelectionCell.row);this.pendingSelectedCells=this.grid.filter(l=>{var c;return!l.disableSelect&&l.col>=r&&l.col<=s&&l.row>=o&&l.row<=a&&l.selectionGroup===(null===(c=this.startSelectionCell)||void 0===c?void 0:c.selectionGroup)})}}onGridMouseLeave(t){this.startSelectionCell=null,this.pendingSelectedCells.length&&(this._selectedCells=[...this._selectedCells,...this.pendingSelectedCells],this.pendingSelectedCells=[],this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!1}))}emitContentButtonClick(t,i){var r;null===(r=this.onContentButtonClick)||void 0===r||r.call(this,{cell:t,button:i})}onResized(t){t.oldHeight&&t.oldWidth&&this.resized$.next()}ngAfterViewInit(){Fo(this.scrollable.elementScrolled(),this.resized$).pipe(Uh(50)).subscribe(t=>{var i;null===(i=this.onScroll)||void 0===i||i.call(this,{currentCol:this.cellWidth?Math.floor(this.scrollable.measureScrollOffset("left")/this.cellWidth):0,visibleColCount:this.cellWidth?Math.ceil(this.scrollable.getElementRef().nativeElement.clientWidth/this.cellWidth):this.columnCount,currentRow:this.cellHeight?Math.floor(this.scrollable.measureScrollOffset("top")/this.cellHeight):0,visibleRowCount:this.cellHeight?Math.ceil(this.scrollable.getElementRef().nativeElement.clientHeight/this.cellHeight):this.rowCount})}),this.selectedCellsChanged$.pipe(Uh(250)).subscribe(t=>{var i;null===(i=this.onSelectedCellsChange)||void 0===i||i.call(this,Object.assign(Object.assign({},t),{selectedCells:t.selectedCells.filter((r,s)=>t.selectedCells.findIndex(o=>o.row===r.row&&o.col===r.col)===s)}))})}ngOnInit(){}ngOnChanges(t){this.selectedCells&&(this._selectedCells=[...this.selectedCells])}get gridStyle(){const t=(this.cellHeight||0)*(this.rowCount||0);return{gridTemplateColumns:`repeat(${this.columnCount}, ${this.cellWidth?`${this.cellWidth}px`:"auto"})`,gridTemplateRows:`repeat(${this.rowCount}, ${this.cellHeight?`${this.cellHeight}px`:"autor"})`,width:this.cellWidth?this.columnCount*this.cellWidth+"px":"100%",height:t?`${t}px`:"100%",display:"grid",userSelect:"none"}}}return n.\u0275fac=function(t){return new(t||n)(E(Ze),E(ol))},n.\u0275cmp=pi({type:n,selectors:[["drayman-grid-internal"]],viewQuery:function(t,i){if(1&t&&(Jr(iV,5),Jr(Uv,5)),2&t){let r;Xr(r=es())&&(i.containerRef=r.first),Xr(r=es())&&(i.scrollable=r.first)}},hostBindings:function(t,i){1&t&<("wheel",function(s){return i.onWheel(s)})},inputs:{selectionMode:"selectionMode",selectedCells:"selectedCells",rowHoverStyle:"rowHoverStyle",onSelectedCellsChange:"onSelectedCellsChange",scrollTo:"scrollTo",onLoad:"onLoad",onContentButtonClick:"onContentButtonClick",onCellClick:"onCellClick",grid:"grid",scrollDirection:"scrollDirection",gridRef:"gridRef",onScroll:"onScroll",cellHeight:"cellHeight",cellWidth:"cellWidth",columnCount:"columnCount",rowCount:"rowCount",scrollbarWidth:"scrollbarWidth"},features:[Hi],decls:4,vars:5,consts:[["cdkScrollable","",1,"wrapper",3,"ngClass","resized"],["container",""],[3,"mouseleave"],["tabindex","-1",3,"style","mouseenter","contextmenu","click","mousedown","mouseup","mouseover","mouseleave",4,"ngFor","ngForOf"],["tabindex","-1",3,"mouseenter","contextmenu","click","mousedown","mouseup","mouseover","mouseleave"],[4,"ngFor","ngForOf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"innerHTML"],[3,"label","onClick","view","icon","tooltip","disabled","imgUrl","popup","buttonStyle","options"]],template:function(t,i){1&t&&(be(0,"div",0,1),lt("resized",function(s){return i.onResized(s)}),be(2,"div",2),lt("mouseleave",function(s){return i.onGridMouseLeave(s)}),pe(3,aV,3,6,"div",3),Ie()()),2&t&&(j("ngClass",i.scrollbarWidthClass),$(2),yt(i.gridStyle),Tt("ref",i.gridRef),$(1),j("ngForOf",i.grid))},directives:[Uv,Xa,aN,lv,_o,zd,dE],styles:[".wrapper[_ngcontent-%COMP%]{width:100%;height:100%;overflow:auto}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.scrollbar-medium[_ngcontent-%COMP%]::-webkit-scrollbar{width:14px;height:14px}.scrollbar-wide[_ngcontent-%COMP%]::-webkit-scrollbar{width:16px;height:16px}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f0f0f000}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#88888840}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#888888}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:window-inactive{background:var(--component-A-color)}"]}),n})(),cV=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=rb(lV,{injector:this.injector});customElements.define("drayman-grid",t)}}return n.\u0275fac=function(t){return new(t||n)(y(mt))},n.\u0275mod=ke({type:n}),n.\u0275inj=Te({providers:[{provide:pl,useClass:Qb}],imports:[[Xd,Yb,lh,lN,nV]]}),n})();(function jx(){Ly=!1})(),ER().bootstrapModule(cV).catch(n=>console.error(n))})()})();
|
|
1
|
+
(()=>{var yE={289:(ut,rn,Se)=>{ut.exports={ResizeSensor:Se(294),ElementQueries:Se(322)}},322:function(ut,rn,Se){"use strict";var wn,Ve;"undefined"!=typeof window&&window,wn=[Se(294)],void 0!==(Ve=function(Rt){var Je=function(){var N,He={},kt=[];function _s(b){b||(b=document.documentElement);var D=window.getComputedStyle(b,null).fontSize;return parseFloat(D)||16}function Te(b,D){var V=D.split(/\d/),O=V[V.length-1];switch(D=parseFloat(D),O){case"px":default:return D;case"em":return D*_s(b);case"rem":return D*_s();case"vw":return D*document.documentElement.clientWidth/100;case"vh":return D*document.documentElement.clientHeight/100;case"vmin":case"vmax":var ae=document.documentElement.clientWidth/100,ke=document.documentElement.clientHeight/100;return D*(0,Math["vmin"===O?"min":"max"])(ae,ke)}}function te(b,D){this.element=b;var V,O,ae,ke,rt,we,et,tt,sn=["min-width","min-height","max-width","max-height"];this.call=function(){for(V in ae=function R(b){if(!b.getBoundingClientRect)return{width:b.offsetWidth,height:b.offsetHeight};var D=b.getBoundingClientRect();return{width:Math.round(D.width),height:Math.round(D.height)}}(this.element),we={},He[D])!He[D].hasOwnProperty(V)||(ke=Te(this.element,(O=He[D][V]).value),rt="width"===O.property?ae.width:ae.height,et="","min"===O.mode&&rt>=ke&&(et+=O.value),"max"===O.mode&&rt<=ke&&(et+=O.value),we[tt=O.mode+"-"+O.property]||(we[tt]=""),et&&-1===(" "+we[tt]+" ").indexOf(" "+et+" ")&&(we[tt]+=" "+et));for(var Vt in sn)!sn.hasOwnProperty(Vt)||(we[sn[Vt]]?this.element.setAttribute(sn[Vt],we[sn[Vt]].substr(1)):this.element.removeAttribute(sn[Vt]))}}function Nt(b,D){b.elementQueriesSetupInformation||(b.elementQueriesSetupInformation=new te(b,D)),b.elementQueriesSensor||(b.elementQueriesSensor=new Rt(b,function(){b.elementQueriesSetupInformation.call()}))}function Lt(b,D,V,O){if(void 0===He[b]){He[b]=[];var ae=kt.length;N.innerHTML+="\n"+b+" {animation: 0.1s element-queries;}",N.innerHTML+="\n"+b+" > .resize-sensor {min-width: "+ae+"px;}",kt.push(b)}He[b].push({mode:D,property:V,value:O})}function z(b){var D;if(document.querySelectorAll&&(D=b?b.querySelectorAll.bind(b):document.querySelectorAll.bind(document)),!D&&"undefined"!=typeof $$&&(D=$$),!D&&"undefined"!=typeof jQuery&&(D=jQuery),!D)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return D}function Bt(b){var D=[],V=[],O=[],ae=0,ke=-1,rt=[];for(var we in b.children)if(b.children.hasOwnProperty(we)&&b.children[we].tagName&&"img"===b.children[we].tagName.toLowerCase()){D.push(b.children[we]);var et=b.children[we].getAttribute("min-width")||b.children[we].getAttribute("data-min-width"),tt=b.children[we].getAttribute("data-src")||b.children[we].getAttribute("url");O.push(tt),V.push({minWidth:et}),et?b.children[we].style.display="none":(ae=D.length-1,b.children[we].style.display="block")}function Vt(){var bt,ge=!1;for(bt in D)!D.hasOwnProperty(bt)||V[bt].minWidth&&b.offsetWidth>V[bt].minWidth&&(ge=bt);if(ge||(ge=ae),ke!==ge)if(rt[ge])D[ke].style.display="none",D[ge].style.display="block",ke=ge;else{var fi=new Image;fi.onload=function(){D[ge].src=O[ge],D[ke].style.display="none",D[ge].style.display="block",rt[ge]=!0,ke=ge},fi.src=O[ge]}else D[ge].src=O[ge]}ke=ae,b.resizeSensorInstance=new Rt(b,Vt),Vt()}var vt=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,Ni=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function Ge(b){var D,V,O,ae;for(b=b.replace(/'/g,'"');null!==(D=vt.exec(b));)for(V=D[1]+D[3],O=D[2];null!==(ae=Ni.exec(O));)Lt(V,ae[1],ae[2],ae[3])}function Bn(b){var D="";if(b)if("string"==typeof b)(-1!==(b=b.toLowerCase()).indexOf("min-width")||-1!==b.indexOf("max-width"))&&Ge(b);else for(var V=0,O=b.length;V<O;V++)1===b[V].type?(-1!==(D=b[V].selectorText||b[V].cssText).indexOf("min-height")||-1!==D.indexOf("max-height")||-1!==D.indexOf("min-width")||-1!==D.indexOf("max-width"))&&Ge(D):4===b[V].type?Bn(b[V].cssRules||b[V].rules):3===b[V].type&&b[V].styleSheet.hasOwnProperty("cssRules")&&Bn(b[V].styleSheet.cssRules)}var hi=!1;this.init=function(){var b="animationstart";void 0!==document.documentElement.style.webkitAnimationName?b="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?b="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(b="oanimationstart"),document.body.addEventListener(b,function(O){var ae=O.target,ke=ae&&window.getComputedStyle(ae,null),rt=ke&&ke.getPropertyValue("animation-name");if(rt&&-1!==rt.indexOf("element-queries")){ae.elementQueriesSensor=new Rt(ae,function(){ae.elementQueriesSetupInformation&&ae.elementQueriesSetupInformation.call()});var tt=window.getComputedStyle(ae.resizeSensor,null).getPropertyValue("min-width");tt=parseInt(tt.replace("px","")),Nt(O.target,kt[tt])}}),hi||((N=document.createElement("style")).type="text/css",N.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",N.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(N),hi=!0);for(var D=0,V=document.styleSheets.length;D<V;D++)try{document.styleSheets[D].href&&0===document.styleSheets[D].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[D].href),Bn(document.styleSheets[D].cssRules||document.styleSheets[D].rules||document.styleSheets[D].cssText)}catch(O){}!function J(){for(var D=z()("[data-responsive-image],[responsive-image]"),V=0,O=D.length;V<O;V++)Bt(D[V])}()},this.findElementQueriesElements=function(b){!function yt(b){var D=z(b);for(var V in He)if(He.hasOwnProperty(V))for(var O=D(V,b),ae=0,ke=O.length;ae<ke;ae++)Nt(O[ae],V)}(b)},this.update=function(){this.init()}};Je.update=function(){Je.instance.update()},Je.detach=function(N){N.elementQueriesSetupInformation?(N.elementQueriesSensor.detach(),delete N.elementQueriesSetupInformation,delete N.elementQueriesSensor):N.resizeSensorInstance&&(N.resizeSensorInstance.detach(),delete N.resizeSensorInstance)},Je.init=function(){Je.instance||(Je.instance=new Je),Je.instance.init()};return Je.findElementQueriesElements=function(N){Je.instance.findElementQueriesElements(N)},Je.listen=function(){!function(N){if(document.addEventListener)document.addEventListener("DOMContentLoaded",N,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var He=setInterval(function(){/loaded|complete/i.test(document.readyState)&&(N(),clearInterval(He))},10);else window.onload=N}(Je.init)},Je}.apply(rn,wn))&&(ut.exports=Ve)},294:function(ut,rn,Se){"use strict";var wn;"undefined"!=typeof window&&window,void 0!==(wn=function(){if("undefined"==typeof window)return null;var Ve="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Rt=Ve.requestAnimationFrame||Ve.mozRequestAnimationFrame||Ve.webkitRequestAnimationFrame||function(R){return Ve.setTimeout(R,20)},Je=Ve.cancelAnimationFrame||Ve.mozCancelAnimationFrame||Ve.webkitCancelAnimationFrame||function(R){Ve.clearTimeout(R)};function Ln(R,Te){var te=Object.prototype.toString.call(R),Nt="[object Array]"===te||"[object NodeList]"===te||"[object HTMLCollection]"===te||"[object Object]"===te||"undefined"!=typeof jQuery&&R instanceof jQuery||"undefined"!=typeof Elements&&R instanceof Elements,Lt=0,z=R.length;if(Nt)for(;Lt<z;Lt++)Te(R[Lt]);else Te(R)}function N(R){if(!R.getBoundingClientRect)return{width:R.offsetWidth,height:R.offsetHeight};var Te=R.getBoundingClientRect();return{width:Math.round(Te.width),height:Math.round(Te.height)}}function He(R,Te){Object.keys(Te).forEach(function(te){R.style[te]=Te[te]})}var kt=function(R,Te){var te=0;function Nt(){var yt,Bt,z=[];this.add=function(J){z.push(J)},this.call=function(J){for(yt=0,Bt=z.length;yt<Bt;yt++)z[yt].call(this,J)},this.remove=function(J){var vt=[];for(yt=0,Bt=z.length;yt<Bt;yt++)z[yt]!==J&&vt.push(z[yt]);z=vt},this.length=function(){return z.length}}function Lt(z,yt){if(z){if(z.resizedAttached)return void z.resizedAttached.add(yt);z.resizedAttached=new Nt,z.resizedAttached.add(yt),z.resizeSensor=document.createElement("div"),z.resizeSensor.dir="ltr",z.resizeSensor.className="resize-sensor";var Bt={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},J={position:"absolute",left:"0px",top:"0px",transition:"0s"};He(z.resizeSensor,Bt);var vt=document.createElement("div");vt.className="resize-sensor-expand",He(vt,Bt);var Ni=document.createElement("div");He(Ni,J),vt.appendChild(Ni);var Ge=document.createElement("div");Ge.className="resize-sensor-shrink",He(Ge,Bt);var Bn=document.createElement("div");He(Bn,J),He(Bn,{width:"200%",height:"200%"}),Ge.appendChild(Bn),z.resizeSensor.appendChild(vt),z.resizeSensor.appendChild(Ge),z.appendChild(z.resizeSensor);var hi=window.getComputedStyle(z),b=hi?hi.getPropertyValue("position"):null;"absolute"!==b&&"relative"!==b&&"fixed"!==b&&"sticky"!==b&&(z.style.position="relative");var D=!1,V=0,O=N(z),ae=0,ke=0,rt=!0;te=0;var et=function(){if(rt){if(0===z.offsetWidth&&0===z.offsetHeight)return void(te||(te=Rt(function(){te=0,et()})));rt=!1}var ge,bt;bt=z.offsetHeight,Ni.style.width=(ge=z.offsetWidth)+10+"px",Ni.style.height=bt+10+"px",vt.scrollLeft=ge+10,vt.scrollTop=bt+10,Ge.scrollLeft=ge+10,Ge.scrollTop=bt+10};z.resizeSensor.resetSensor=et;var tt=function(){V=0,D&&(ae=O.width,ke=O.height,z.resizedAttached&&z.resizedAttached.call(O))},sn=function(){O=N(z),(D=O.width!==ae||O.height!==ke)&&!V&&(V=Rt(tt)),et()},Vt=function(ge,bt,fi){ge.attachEvent?ge.attachEvent("on"+bt,fi):ge.addEventListener(bt,fi)};Vt(vt,"scroll",sn),Vt(Ge,"scroll",sn),te=Rt(function(){te=0,et()})}}Ln(R,function(z){Lt(z,Te)}),this.detach=function(z){te||(Je(te),te=0),kt.detach(R,z)},this.reset=function(){R.resizeSensor.resetSensor()}};if(kt.reset=function(R){Ln(R,function(Te){Te.resizeSensor.resetSensor()})},kt.detach=function(R,Te){Ln(R,function(te){!te||te.resizedAttached&&"function"==typeof Te&&(te.resizedAttached.remove(Te),te.resizedAttached.length())||te.resizeSensor&&(te.contains(te.resizeSensor)&&te.removeChild(te.resizeSensor),delete te.resizeSensor,delete te.resizedAttached)})},"undefined"!=typeof MutationObserver){var _s=new MutationObserver(function(R){for(var Te in R)if(R.hasOwnProperty(Te))for(var te=R[Te].addedNodes,Nt=0;Nt<te.length;Nt++)te[Nt].resizeSensor&&kt.reset(te[Nt])});document.addEventListener("DOMContentLoaded",function(R){_s.observe(document.body,{childList:!0,subtree:!0})})}return kt}.call(rn,Se,rn,ut))&&(ut.exports=wn)}},gf={};function mf(ut){var rn=gf[ut];if(void 0!==rn)return rn.exports;var Se=gf[ut]={exports:{}};return yE[ut].call(Se.exports,Se,Se.exports,mf),Se.exports}(()=>{"use strict";function ut(n){return"function"==typeof n}let rn=!1;const Se={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 rn&&console.log("RxJS: Back to a better error behavior. Thank you. <3");rn=n},get useDeprecatedSynchronousErrorHandling(){return rn}};function dt(n){setTimeout(()=>{throw n},0)}const wn={closed:!0,next(n){},error(n){if(Se.useDeprecatedSynchronousErrorHandling)throw n;dt(n)},complete(){}},Ve=Array.isArray||(n=>n&&"number"==typeof n.length);function Rt(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 N{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 N)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(ut(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof Ln?He(o.errors):[o]}}if(Ve(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(Rt(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof Ln?e=e.concat(He(c.errors)):e.push(c)}}}if(e)throw new Ln(e)}add(e){let t=e;if(!e)return N.EMPTY;switch(typeof e){case"function":t=new N(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof N)){const s=t;t=new N,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 N){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 He(n){return n.reduce((e,t)=>e.concat(t instanceof Ln?t.errors:t),[])}N.EMPTY=((n=new N).closed=!0,n);const kt="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class R extends N{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=wn;break;case 1:if(!e){this.destination=wn;break}if("object"==typeof e){e instanceof R?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Te(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Te(this,e,t,i)}}[kt](){return this}static create(e,t,i){const r=new R(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 Te extends R{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;ut(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==wn&&(o=Object.create(t),ut(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;Se.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}=Se;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):dt(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;dt(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);Se.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(),Se.useDeprecatedSynchronousErrorHandling)throw i;dt(i)}}__tryOrSetError(e,t,i){if(!Se.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return Se.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(dt(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Lt="function"==typeof Symbol&&Symbol.observable||"@@observable";function z(n){return n}let J=(()=>{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 Nt(n,e,t){if(n){if(n instanceof R)return n;if(n[kt])return n[kt]()}return n||e||t?new R(n,e,t):new R(wn)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||Se.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),Se.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){Se.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function te(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof R?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=vt(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)}[Lt](){return this}pipe(...t){return 0===t.length?this:function Bt(n){return 0===n.length?z:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=vt(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function vt(n){if(n||(n=Se.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Ge=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Bn extends N{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 hi extends R{constructor(e){super(e),this.destination=e}}let b=(()=>{class n extends J{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[kt](){return new hi(this)}lift(t){const i=new D(this,this);return i.operator=t,i}next(t){if(this.closed)throw new Ge;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 Ge;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 Ge;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 Ge;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new Ge;return this.hasError?(t.error(this.thrownError),N.EMPTY):this.isStopped?(t.complete(),N.EMPTY):(this.observers.push(t),new Bn(this,t))}asObservable(){const t=new J;return t.source=this,t}}return n.create=(e,t)=>new D(e,t),n})();class D extends b{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):N.EMPTY}}function V(n){return n&&"function"==typeof n.schedule}function O(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 ae(n,e))}}class ae{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new ke(e,this.project,this.thisArg))}}class ke extends R{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 rt=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},tt=function et(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),bt=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function fi(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Yl=n=>{if(n&&"function"==typeof n[Lt])return(n=>e=>{const t=n[Lt]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(bt(n))return rt(n);if(fi(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,dt),e))(n);if(n&&"function"==typeof n[tt])return(n=>e=>{const t=n[tt]();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 ${Rt(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function Ql(n,e){return new J(t=>{const i=new N;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 Zl(n,e){return e?function DE(n,e){if(null!=n){if(function EE(n){return n&&"function"==typeof n[Lt]}(n))return function vE(n,e){return new J(t=>{const i=new N;return i.add(e.schedule(()=>{const r=n[Lt]();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(fi(n))return function bE(n,e){return new J(t=>{const i=new N;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(bt(n))return Ql(n,e);if(function CE(n){return n&&"function"==typeof n[tt]}(n)||"string"==typeof n)return function wE(n,e){if(!n)throw new Error("Iterable cannot be null");return new J(t=>{const i=new N;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[tt](),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 J?n:new J(Yl(n))}class ys extends R{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 vs extends R{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function bs(n,e){if(!e.closed)return n instanceof J?n.subscribe(e):Yl(n)(e)}function Fo(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(Fo((r,s)=>Zl(n(r,s)).pipe(O((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new SE(n,t)))}class SE{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new TE(e,this.project,this.concurrent))}}class TE extends vs{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 ys(this),i=this.destination;i.add(t);const r=bs(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()}}function _f(n=Number.POSITIVE_INFINITY){return Fo(z,n)}function Xl(n,e){return e?Ql(n,e):new J(rt(n))}function No(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return V(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 J?n[0]:_f(e)(Xl(n,t))}function yf(){return function(e){return e.lift(new ME(e))}}class ME{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new IE(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class IE extends R{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 xE extends J{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 N,e.add(this.source.subscribe(new OE(this.getSubject(),this))),e.closed&&(this._connection=null,e=N.EMPTY)),e}refCount(){return yf()(this)}}const AE=(()=>{const n=xE.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 OE extends hi{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()}}}class PE{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 FE(){return new b}function vf(){return n=>yf()(function kE(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new PE(r,e));const s=Object.create(i,AE);return s.source=i,s.subjectFactory=r,s}}(FE)(n))}function me(n){for(let e in n)if(n[e]===me)return e;throw Error("Could not find renamed property on target object.")}function Jl(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function ue(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ue).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 ec(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const NE=me({__forward_ref__:me});function tc(n){return n.__forward_ref__=tc,n.toString=function(){return ue(this())},n}function Q(n){return function bf(n){return"function"==typeof n&&n.hasOwnProperty(NE)&&n.__forward_ref__===tc}(n)?n():n}class M extends Error{constructor(e,t){super(function nc(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function U(n){return"string"==typeof n?n:null==n?"":String(n)}function st(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():U(n)}function Lo(n,e){const t=e?` in ${e}`:"";throw new M(-201,`No provider for ${st(n)} found${t}`)}function jt(n,e){null==n&&function de(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function k(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Ee(n){return{providers:n.providers||[],imports:n.imports||[]}}function ic(n){return wf(n,Bo)||wf(n,Cf)}function wf(n,e){return n.hasOwnProperty(e)?n[e]:null}function Ef(n){return n&&(n.hasOwnProperty(rc)||n.hasOwnProperty($E))?n[rc]:null}const Bo=me({\u0275prov:me}),rc=me({\u0275inj:me}),Cf=me({ngInjectableDef:me}),$E=me({ngInjectorDef:me});var q=(()=>((q=q||{})[q.Default=0]="Default",q[q.Host=1]="Host",q[q.Self=2]="Self",q[q.SkipSelf=4]="SkipSelf",q[q.Optional=8]="Optional",q))();let sc;function pi(n){const e=sc;return sc=n,e}function Df(n,e,t){const i=ic(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&q.Optional?null:void 0!==e?e:void Lo(ue(n),"Injector")}function gi(n){return{toString:n}.toString()}var En=(()=>((En=En||{})[En.OnPush=0]="OnPush",En[En.Default=1]="Default",En))(),Cn=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Cn||(Cn={})),Cn))();const WE="undefined"!=typeof globalThis&&globalThis,GE="undefined"!=typeof window&&window,qE="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,he=WE||"undefined"!=typeof global&&global||GE||qE,dr={},_e=[],Vo=me({\u0275cmp:me}),oc=me({\u0275dir:me}),ac=me({\u0275pipe:me}),Sf=me({\u0275mod:me}),ei=me({\u0275fac:me}),ws=me({__NG_ELEMENT_ID__:me});let KE=0;function mi(n){return gi(()=>{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===En.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||_e,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Cn.Emulated,id:"c",styles:n.styles||_e,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=KE++,i.inputs=xf(n.inputs,t),i.outputs=xf(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(Tf):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Mf):null,i})}function Tf(n){return ot(n)||function _i(n){return n[oc]||null}(n)}function Mf(n){return function Li(n){return n[ac]||null}(n)}const If={};function Me(n){return gi(()=>{const e={type:n.type,bootstrap:n.bootstrap||_e,declarations:n.declarations||_e,imports:n.imports||_e,exports:n.exports||_e,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(If[n.id]=n.type),e})}function xf(n,e){if(null==n)return dr;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 je=mi;function Pt(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function ot(n){return n[Vo]||null}function on(n,e){const t=n[Sf]||null;if(!t&&!0===e)throw new Error(`Type ${ue(n)} does not have '\u0275mod' property.`);return t}const Y=11;function Vn(n){return Array.isArray(n)&&"object"==typeof n[1]}function Sn(n){return Array.isArray(n)&&!0===n[1]}function uc(n){return 0!=(8&n.flags)}function $o(n){return 2==(2&n.flags)}function Uo(n){return 1==(1&n.flags)}function Tn(n){return null!==n.template}function eC(n){return 0!=(512&n[2])}function ji(n,e){return n.hasOwnProperty(ei)?n[ei]:null}class Of{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function zi(){return Rf}function Rf(n){return n.type.prototype.ngOnChanges&&(n.setInput=rC),iC}function iC(){const n=Pf(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===dr)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function rC(n,e,t,i){const r=Pf(n)||function sC(n,e){return n[kf]=e}(n,{previous:dr,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new Of(l&&l.currentValue,e,o===dr),n[i]=e}zi.ngInherit=!0;const kf="__ngSimpleChanges__";function Pf(n){return n[kf]||null}let gc;function mc(){return void 0!==gc?gc:"undefined"!=typeof document?document:void 0}function Fe(n){return!!n.listen}const Ff={createRenderer:(n,e)=>mc()};function ze(n){for(;Array.isArray(n);)n=n[0];return n}function Wo(n,e){return ze(e[n])}function $t(n,e){return ze(e[n.index])}function _c(n,e){return n.data[e]}function mr(n,e){return n[e]}function Ut(n,e){const t=e[n];return Vn(t)?t:t[0]}function Nf(n){return 4==(4&n[2])}function yc(n){return 128==(128&n[2])}function yi(n,e){return null==e?null:n[e]}function Lf(n){n[18]=0}function vc(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 W={lFrame:Gf(null),bindingsEnabled:!0};function Vf(){return W.bindingsEnabled}function w(){return W.lFrame.lView}function oe(){return W.lFrame.tView}function ft(n){return W.lFrame.contextLView=n,n[8]}function qe(){let n=Hf();for(;null!==n&&64===n.type;)n=n.parent;return n}function Hf(){return W.lFrame.currentTNode}function Hn(n,e){const t=W.lFrame;t.currentTNode=n,t.isParent=e}function bc(){return W.lFrame.isParent}function wc(){W.lFrame.isParent=!1}function _r(){return W.lFrame.bindingIndex++}function ni(n){const e=W.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function EC(n,e){const t=W.lFrame;t.bindingIndex=t.bindingRootIndex=n,Ec(e)}function Ec(n){W.lFrame.currentDirectiveIndex=n}function $f(){return W.lFrame.currentQueryIndex}function Dc(n){W.lFrame.currentQueryIndex=n}function DC(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function Uf(n,e,t){if(t&q.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&q.Host||(r=DC(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=W.lFrame=Wf();return i.currentTNode=e,i.lView=n,!0}function qo(n){const e=Wf(),t=n[1];W.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function Wf(){const n=W.lFrame,e=null===n?null:n.child;return null===e?Gf(n):e}function Gf(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 qf(){const n=W.lFrame;return W.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Kf=qf;function Ko(){const n=qf();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 Ct(){return W.lFrame.selectedIndex}function vi(n){W.lFrame.selectedIndex=n}function Ie(){const n=W.lFrame;return _c(n.tView,n.selectedIndex)}function Yo(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 Qo(n,e,t){Yf(n,e,3,t)}function Zo(n,e,t,i){(3&n[2])===t&&Yf(n,e,t,i)}function Sc(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function Yf(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)&&(kC(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function kC(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 Ts{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function Xo(n,e,t){const i=Fe(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];Mc(o)?i&&n.setProperty(e,o,a):i?n.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Qf(n){return 3===n||4===n||6===n}function Mc(n){return 64===n.charCodeAt(0)}function Jo(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||Zf(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function Zf(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 Xf(n){return-1!==n}function yr(n){return 32767&n}function vr(n,e){let t=function BC(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let Ic=!0;function ea(n){const e=Ic;return Ic=n,e}let VC=0;function Is(n,e){const t=Ac(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,xc(i.data,n),xc(e,null),xc(i.blueprint,null));const r=ta(n,e),s=n.injectorIndex;if(Xf(r)){const o=yr(r),a=vr(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 xc(n,e){n.push(0,0,0,0,0,0,0,0,e)}function Ac(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function ta(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 na(n,e,t){!function HC(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(ws)&&(i=t[ws]),null==i&&(i=t[ws]=VC++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function tp(n,e,t){if(t&q.Optional)return n;Lo(e,"NodeInjector")}function np(n,e,t,i){if(t&q.Optional&&void 0===i&&(i=null),0==(t&(q.Self|q.Host))){const r=n[9],s=pi(void 0);try{return r?r.get(e,i,t&q.Optional):Df(e,i,t&q.Optional)}finally{pi(s)}}return tp(i,e,t)}function ip(n,e,t,i=q.Default,r){if(null!==n){const s=function UC(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(ws)?n[ws]:void 0;return"number"==typeof e?e>=0?255&e:zC:e}(t);if("function"==typeof s){if(!Uf(e,n,i))return i&q.Host?tp(r,t,i):np(e,t,i,r);try{const o=s(i);if(null!=o||i&q.Optional)return o;Lo(t)}finally{Kf()}}else if("number"==typeof s){let o=null,a=Ac(n,e),l=-1,c=i&q.Host?e[16][6]:null;for((-1===a||i&q.SkipSelf)&&(l=-1===a?ta(n,e):e[a+8],-1!==l&&op(i,!1)?(o=e[1],a=yr(l),e=vr(l,e)):a=-1);-1!==a;){const u=e[1];if(sp(s,a,u.data)){const d=$C(a,e,t,o,i,c);if(d!==rp)return d}l=e[a+8],-1!==l&&op(i,e[1].data[a+8]===c)&&sp(s,a,e)?(o=u,a=yr(l),e=vr(l,e)):a=-1}}}return np(e,t,i,r)}const rp={};function zC(){return new br(qe(),w())}function $C(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=ia(a,o,t,null==i?$o(a)&&Ic:i!=o&&0!=(3&a.type),r&q.Host&&s===a);return null!==u?xs(e,o,u,a):rp}function ia(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&&Tn(f)&&f.type===t)return l}return null}function xs(n,e,t,i){let r=n[t];const s=e.data;if(function PC(n){return n instanceof Ts}(r)){const o=r;o.resolving&&function LE(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new M(-200,`Circular dependency in DI detected for ${n}${t}`)}(st(s[t]));const a=ea(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?pi(o.injectImpl):null;Uf(n,i,q.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function RC(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=Rf(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&&pi(l),ea(a),o.resolving=!1,Kf()}}return r}function sp(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function op(n,e){return!(n&q.Self||n&q.Host&&e)}class br{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return ip(this._tNode,this._lView,e,i,t)}}const Er="__parameters__";function Dr(n,e,t){return gi(()=>{const i=function Rc(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Er)?l[Er]:Object.defineProperty(l,Er,{value:[]})[Er];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class P{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=k({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function cn(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)),cn(i,e)):e!==n&&e.push(i)}return e}function jn(n,e){n.forEach(t=>Array.isArray(t)?jn(t,e):e(t))}function lp(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function sa(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Rs(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function Wt(n,e,t){let i=Sr(n,e);return i>=0?n[1|i]=t:(i=~i,function YC(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function Pc(n,e){const t=Sr(n,e);if(t>=0)return n[1|t]}function Sr(n,e){return function dp(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<t];if(e===o)return s<<t;o>e?r=s:i=s+1}return~(r<<t)}(n,e,1)}const ks={},Nc="__NG_DI_FLAG__",aa="ngTempTokenPath",nD=/\n/gm,fp="__source",rD=me({provide:String,useValue:me});let Ps;function pp(n){const e=Ps;return Ps=n,e}function sD(n,e=q.Default){if(void 0===Ps)throw new M(203,"");return null===Ps?Df(n,void 0,e):Ps.get(n,e&q.Optional?null:void 0,e)}function v(n,e=q.Default){return(function UE(){return sc}()||sD)(Q(n),e)}const la=v;function Lc(n){const e=[];for(let t=0;t<n.length;t++){const i=Q(n[t]);if(Array.isArray(i)){if(0===i.length)throw new M(900,"");let r,s=q.Default;for(let o=0;o<i.length;o++){const a=i[o],l=oD(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(v(r,s))}else e.push(v(i))}return e}function Fs(n,e){return n[Nc]=e,n.prototype[Nc]=e,n}function oD(n){return n[Nc]}const $i=Fs(Dr("Optional"),8),Ns=Fs(Dr("SkipSelf"),4);var Gt=(()=>((Gt=Gt||{})[Gt.Important=1]="Important",Gt[Gt.DashCase=2]="DashCase",Gt))();const Ep="__ngContext__";function pt(n,e){n[Ep]=e}function jc(n){const e=function Bs(n){return n[Ep]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function $c(n,e){return undefined(n,e)}function Vs(n){const e=n[3];return Sn(e)?e[3]:e}function Uc(n){return xp(n[13])}function Wc(n){return xp(n[4])}function xp(n){for(;null!==n&&!Sn(n);)n=n[4];return n}function Mr(n,e,t,i,r){if(null!=i){let s,o=!1;Sn(i)?s=i:Vn(i)&&(o=!0,i=i[0]);const a=ze(i);0===n&&null!==t?null==r?Fp(e,t,a):Ui(e,t,a,r||null,!0):1===n&&null!==t?Ui(e,t,a,r||null,!0):2===n?function Xc(n,e,t){const i=ua(n,e);i&&function LD(n,e,t,i){Fe(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function HD(n,e,t,i,r){const s=t[7];s!==ze(t)&&Mr(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];Hs(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function qc(n,e,t){if(Fe(n))return n.createElement(e,t);{const i=null!==t?function cC(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 Op(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,vc(r,-1)),t.splice(i,1)}function Kc(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&Op(r,i),e>0&&(n[t-1][4]=i[4]);const s=sa(n,10+e);!function xD(n,e){Hs(n,e,e[Y],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 Rp(n,e){if(!(256&e[2])){const t=e[Y];Fe(t)&&t.destroyNode&&Hs(n,e,t,3,null,null),function RD(n){let e=n[13];if(!e)return Yc(n[1],n);for(;e;){let t=null;if(Vn(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)Vn(e)&&Yc(e[1],e),e=e[3];null===e&&(e=n),Vn(e)&&Yc(e[1],e),t=e&&e[4]}e=t}}(e)}}function Yc(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function ND(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 Ts)){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 FD(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):ze(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&&Fe(e[Y])&&e[Y].destroy();const t=e[17];if(null!==t&&Sn(e[3])){t!==e[3]&&Op(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function kp(n,e,t){return function Pp(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===Cn.None||r===Cn.Emulated)return null}return $t(i,t)}(n,e.parent,t)}function Ui(n,e,t,i,r){Fe(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function Fp(n,e,t){Fe(n)?n.appendChild(e,t):e.appendChild(t)}function Np(n,e,t,i,r){null!==i?Ui(n,e,t,i,r):Fp(n,e,t)}function ua(n,e){return Fe(n)?n.parentNode(e):e.parentNode}function Lp(n,e,t){return Vp(n,e,t)}let fa,pa,Vp=function Bp(n,e,t){return 40&n.type?$t(n,t):null};function da(n,e,t,i){const r=kp(n,i,e),s=e[Y],a=Lp(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)Np(s,r,t[l],a,!1);else Np(s,r,t,a,!1)}function ha(n,e){if(null!==e){const t=e.type;if(3&t)return $t(e,n);if(4&t)return Zc(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return ha(n,i);{const r=n[e.index];return Sn(r)?Zc(-1,r):ze(r)}}if(32&t)return $c(e,n)()||ze(n[e.index]);{const i=jp(n,e);return null!==i?Array.isArray(i)?i[0]:ha(Vs(n[16]),i):ha(n,e.next)}}return null}function jp(n,e){return null!==e?n[16][6].projection[e.projection]:null}function Zc(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return ha(i,r)}return e[7]}function Jc(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&&pt(ze(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)Jc(n,e,t.child,i,r,s,!1),Mr(e,n,r,a,s);else if(32&l){const c=$c(t,i);let u;for(;u=c();)Mr(e,n,r,u,s);Mr(e,n,r,a,s)}else 16&l?zp(n,e,i,t,r,s):Mr(e,n,r,a,s);t=o?t.projectionNext:t.next}}function Hs(n,e,t,i,r,s){Jc(t,i,n.firstChild,e,r,s,!1)}function zp(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++)Mr(e,n,r,l[c],s);else Jc(n,e,l,o[3],r,s,!0)}function $p(n,e,t){Fe(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function eu(n,e,t){Fe(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function Wi(n){var e;return(null===(e=function tu(){if(void 0===fa&&(fa=null,he.trustedTypes))try{fa=he.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return fa}())||void 0===e?void 0:e.createHTML(n))||n}function Up(n){var e;return(null===(e=function nu(){if(void 0===pa&&(pa=null,he.trustedTypes))try{pa=he.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return pa}())||void 0===e?void 0:e.createHTML(n))||n}class Gi{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class WD extends Gi{getTypeName(){return"HTML"}}class GD extends Gi{getTypeName(){return"Style"}}class qD extends Gi{getTypeName(){return"Script"}}class KD extends Gi{getTypeName(){return"URL"}}class YD extends Gi{getTypeName(){return"ResourceURL"}}function qt(n){return n instanceof Gi?n.changingThisBreaksApplicationSecurity:n}function zn(n,e){const t=qp(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}function qp(n){return n instanceof Gi&&n.getTypeName()||null}class t0{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Wi(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class n0{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Wi(e),t;const i=this.inertDocument.createElement("body");return i.innerHTML=Wi(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const o=t.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&e.removeAttribute(o)}let i=e.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const s0=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,o0=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function js(n){return(n=String(n)).match(s0)||n.match(o0)?n:"unsafe:"+n}function Yp(n){return(n=String(n)).split(",").map(e=>js(e.trim())).join(", ")}function $n(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function zs(...n){const e={};for(const t of n)for(const i in t)t.hasOwnProperty(i)&&(e[i]=!0);return e}const Qp=$n("area,br,col,hr,img,wbr"),Zp=$n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Xp=$n("rp,rt"),iu=zs(Qp,zs(Zp,$n("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),zs(Xp,$n("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),zs(Xp,Zp)),ru=$n("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),su=$n("srcset"),Jp=zs(ru,su,$n("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),$n("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),a0=$n("script,style,template");class l0{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!iu.hasOwnProperty(t))return this.sanitizedSomething=!0,!a0.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=e.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!Jp.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;ru[a]&&(l=js(l)),su[a]&&(l=Yp(l)),this.buf.push(" ",o,'="',eg(l),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();iu.hasOwnProperty(t)&&!Qp.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(eg(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const c0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u0=/([^\#-~ |!])/g;function eg(n){return n.replace(/&/g,"&").replace(c0,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(u0,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let ga;function tg(n,e){let t=null;try{ga=ga||function Kp(n){const e=new n0(n);return function r0(){try{return!!(new window.DOMParser).parseFromString(Wi(""),"text/html")}catch(n){return!1}}()?new t0(e):e}(n);let i=e?String(e):"";t=ga.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=t.innerHTML,t=ga.getInertBodyElement(i)}while(i!==s);return Wi((new l0).sanitizeChildren(ou(t)||t))}finally{if(t){const i=ou(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function ou(n){return"content"in n&&function d0(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ce=(()=>((ce=ce||{})[ce.NONE=0]="NONE",ce[ce.HTML=1]="HTML",ce[ce.STYLE=2]="STYLE",ce[ce.SCRIPT=3]="SCRIPT",ce[ce.URL=4]="URL",ce[ce.RESOURCE_URL=5]="RESOURCE_URL",ce))();function au(n){const e=function $s(){const n=w();return n&&n[12]}();return e?Up(e.sanitize(ce.HTML,n)||""):zn(n,"HTML")?Up(qt(n)):tg(mc(),U(n))}function cu(n){return n.ngOriginalError}function w0(n,...e){n.error(...e)}class wi{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=function b0(n){return n&&n.ngErrorLogger||w0}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&cu(e);for(;t&&cu(t);)t=cu(t);return t||null}}const I0=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(he))();function Un(n){return n instanceof Function?n():n}function sg(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 og="ng-template";function R0(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==sg(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 ag(n){return 4===n.type&&n.value!==og}function k0(n,e,t){return e===(4!==n.type||t?n.value:og)}function P0(n,e,t){let i=4;const r=n.attrs||[],s=function L0(n){for(let e=0;e<n.length;e++)if(Qf(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&&!k0(n,l,t)||""===l&&1===e.length){if(Mn(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!R0(n.attrs,c,t)){if(Mn(i))return!1;o=!0}continue}const d=F0(8&i?"class":l,r,ag(n),t);if(-1===d){if(Mn(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!==sg(f,c,0)||2&i&&c!==h){if(Mn(i))return!1;o=!0}}}}else{if(!o&&!Mn(i)&&!Mn(l))return!1;if(o&&Mn(l))continue;o=!1,i=l|1&i}}return Mn(i)||o}function Mn(n){return 0==(1&n)}function F0(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 B0(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 lg(n,e,t=!1){for(let i=0;i<e.length;i++)if(P0(n,e[i],t))return!0;return!1}function V0(n,e){e:for(let t=0;t<e.length;t++){const i=e[t];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function cg(n,e){return n?":not("+e.trim()+")":e}function H0(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&&!Mn(o)&&(e+=cg(s,r),r=""),i=o,s=s||!Mn(i);t++}return""!==r&&(e+=cg(s,r)),e}const G={};function $(n){ug(oe(),w(),Ct()+n,!1)}function ug(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&Qo(e,s,t)}else{const s=n.preOrderHooks;null!==s&&Zo(e,s,0,t)}vi(t)}function ma(n,e){return n<<17|e<<2}function In(n){return n>>17&32767}function uu(n){return 2|n}function ii(n){return(131068&n)>>2}function du(n,e){return-131069&n|e<<2}function hu(n){return 1|n}function wg(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];Dc(r),o.contentQueries(2,e[s],s)}}}function Us(n,e,t,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,Lf(u),u[3]=u[15]=n,u[8]=t,u[10]=o||n&&n[10],u[Y]=a||n&&n[Y],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 xr(n,e,t,i,r){let s=n.data[e];if(null===s)s=function wu(n,e,t,i,r){const s=Hf(),o=bc(),l=n.data[e]=function rS(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 wC(){return W.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function Ss(){const n=W.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Hn(s,!0),s}function Ar(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 Ws(n,e,t){qo(e);try{const i=n.viewQuery;null!==i&&Au(1,i,t);const r=n.template;null!==r&&Eg(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&wg(n,e),n.staticViewQueries&&Au(2,n.viewQuery,t);const s=n.components;null!==s&&function tS(n,e){for(let t=0;t<e.length;t++)ES(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,Ko()}}function Or(n,e,t,i){const r=e[2];if(256!=(256&r)){qo(e);try{Lf(e),function jf(n){return W.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&Eg(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&Qo(e,c,null)}else{const c=n.preOrderHooks;null!==c&&Zo(e,c,0,null),Sc(e,0)}if(function bS(n){for(let e=Uc(n);null!==e;e=Wc(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])&&vc(s,1),r[2]|=1024}}}(e),function vS(n){for(let e=Uc(n);null!==e;e=Wc(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];yc(i)&&Or(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&wg(n,e),o){const c=n.contentCheckHooks;null!==c&&Qo(e,c)}else{const c=n.contentHooks;null!==c&&Zo(e,c,1),Sc(e,1)}!function J0(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)vi(~r);else{const s=r,o=t[++i],a=t[++i];EC(o,s),a(2,e[s])}}}finally{vi(-1)}}(n,e);const a=n.components;null!==a&&function eS(n,e){for(let t=0;t<e.length;t++)wS(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&Au(2,l,i),o){const c=n.viewCheckHooks;null!==c&&Qo(e,c)}else{const c=n.viewHooks;null!==c&&Zo(e,c,2),Sc(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,vc(e[3],-1))}finally{Ko()}}}function nS(n,e,t,i){const r=e[10],o=Nf(e);try{!o&&r.begin&&r.begin(),o&&Ws(n,e,i),Or(n,e,t,i)}finally{!o&&r.end&&r.end()}}function Eg(n,e,t,i,r){const s=Ct(),o=2&i;try{vi(-1),o&&e.length>20&&ug(n,e,20,!1),t(i,r)}finally{vi(s)}}function Cg(n,e,t){if(uc(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)}}}function Eu(n,e,t){!Vf()||(function dS(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||Is(t,e),pt(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Tn(l);c&&mS(e,t,l);const u=xs(e,n,a,t);pt(u,e),null!==o&&_S(0,a-r,u,l,0,o),c&&(Ut(t.index,e)[8]=u)}}(n,e,t,$t(t,e)),128==(128&t.flags)&&function hS(n,e,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function CC(){return W.lFrame.currentDirectiveIndex}();try{vi(o);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];Ec(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&Og(c,u)}}finally{vi(-1),Ec(a)}}(n,e,t))}function Cu(n,e,t=$t){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}}}function Dg(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=va(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function va(n,e,t,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function iS(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:G);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 Mg(n,e,t,i){const r=Lg(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&Bg(n).push(i,r.length-1))}function Ig(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 Du(n,e,t,i){let r=!1;if(Vf()){const s=function fS(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];lg(t,o.selectors,!1)&&(r||(r=[]),na(Is(t,e),n,o.type),Tn(o)?(Rg(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,kg(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=Ar(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=Jo(t.mergedAttrs,d.hostAttrs),Pg(n,t,e,c,d),gS(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 sS(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||ag(e)?null:yS(d,s);o.push(h),a=Ig(d,c,a),l=Ig(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 pS(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 M(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=Jo(t.mergedAttrs,t.attrs),r}function Ag(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 uS(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 Og(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function Rg(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function gS(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;Tn(e)&&(t[""]=n)}}function kg(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function Pg(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=ji(r.type)),o=new Ts(s,Tn(r),null);n.blueprint[i]=o,t[i]=o,Ag(n,e,0,i,Ar(n,t,r.hostVars,G),r)}function mS(n,e,t){const i=$t(e,n),r=Dg(t),s=n[10],o=ba(n,Us(n,r,null,t.onPush?64:16,i,e,s,s.createRenderer(i,t),null,null));n[e.index]=o}function Wn(n,e,t,i,r,s){const o=$t(n,e);!function Su(n,e,t,i,r,s,o){if(null==s)Fe(n)?n.removeAttribute(e,r,t):e.removeAttribute(r);else{const a=null==o?U(s):o(s,i||"",r);Fe(n)?n.setAttribute(e,r,a,t):t?e.setAttributeNS(t,r,a):e.setAttribute(r,a)}}(e[Y],o,s,n.value,t,i,r)}function _S(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 yS(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 Fg(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}function wS(n,e){const t=Ut(e,n);if(yc(t)){const i=t[1];80&t[2]?Or(i,t,i.template,t[8]):t[5]>0&&Tu(t)}}function Tu(n){for(let i=Uc(n);null!==i;i=Wc(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];Or(o,s,o.template,s[8])}else s[5]>0&&Tu(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=Ut(t[i],n);yc(r)&&r[5]>0&&Tu(r)}}function ES(n,e){const t=Ut(e,n),i=t[1];(function CS(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),Ws(i,t,t[8])}function ba(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function Mu(n){for(;n;){n[2]|=64;const e=Vs(n);if(eC(n)&&!e)return n;n=e}return null}function Ng(n){!function Iu(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=jc(t),r=i[1];nS(r,i,r.template,t)}}(n[8])}function Au(n,e,t){Dc(0),e(n,t)}const SS=(()=>Promise.resolve(null))();function Lg(n){return n[7]||(n[7]=[])}function Bg(n){return n.cleanup||(n.cleanup=[])}function Hg(n,e){const t=n[9],i=t?t.get(wi,null):null;i&&i.handleError(e)}function jg(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 ri(n,e,t){const i=Wo(e,n);!function Ap(n,e,t){Fe(n)?n.setValue(e,t):e.textContent=t}(n[Y],i,t)}function wa(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=ec(r,a):2==s&&(i=ec(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const Ou=new P("INJECTOR",-1);class zg{get(e,t=ks){if(t===ks){const i=new Error(`NullInjectorError: No provider for ${ue(e)}!`);throw i.name="NullInjectorError",i}return t}}const Ru=new P("Set Injector scope."),Gs={},IS={};let ku;function $g(){return void 0===ku&&(ku=new zg),ku}function Ug(n,e=null,t=null,i){const r=Wg(n,e,t,i);return r._resolveInjectorDefTypes(),r}function Wg(n,e=null,t=null,i){return new xS(n,t,e||$g(),i)}class xS{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&&jn(t,a=>this.processProvider(a,e,t)),jn([e],a=>this.processInjectorType(a,[],s)),this.records.set(Ou,Rr(void 0,this));const o=this.records.get(Ru);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:ue(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=ks,i=q.Default){this.assertNotDestroyed();const r=pp(this),s=pi(void 0);try{if(!(i&q.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function LS(n){return"function"==typeof n||"object"==typeof n&&n instanceof P}(e)&&ic(e);a=l&&this.injectableDefInScope(l)?Rr(Pu(e),Gs):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&q.Self?$g():this.parent).get(e,t=i&q.Optional&&t===ks?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[aa]=o[aa]||[]).unshift(ue(e)),r)throw o;return function aD(n,e,t,i){const r=n[aa];throw e[fp]&&r.unshift(e[fp]),n.message=function lD(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=ue(e);if(Array.isArray(e))r=e.map(ue).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):ue(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(nD,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[aa]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{pi(s),pp(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(ue(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processInjectorType(e,t,i){if(!(e=Q(e)))return!1;let r=Ef(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=Ef(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{jn(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];jn(f,p=>this.processProvider(p,h,f||_e))}}this.injectorDefTypes.add(o);const l=ji(o)||(()=>new o);this.records.set(o,Rr(l,Gs));const c=r.providers;if(null!=c&&!a){const u=e;jn(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,i){let r=kr(e=Q(e))?e:Q(e&&e.provide);const s=function OS(n,e,t){return qg(n)?Rr(void 0,n.useValue):Rr(function Gg(n,e,t){let i;if(kr(n)){const r=Q(n);return ji(r)||Pu(r)}if(qg(n))i=()=>Q(n.useValue);else if(function kS(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Lc(n.deps||[]));else if(function RS(n){return!(!n||!n.useExisting)}(n))i=()=>v(Q(n.useExisting));else{const r=Q(n&&(n.useClass||n.provide));if(!function FS(n){return!!n.deps}(n))return ji(r)||Pu(r);i=()=>new r(...Lc(n.deps))}return i}(n),Gs)}(e);if(kr(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Rr(void 0,Gs,!0),o.factory=()=>Lc(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===Gs&&(t.value=IS,t.value=t.factory()),"object"==typeof t.value&&t.value&&function NS(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=Q(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function Pu(n){const e=ic(n),t=null!==e?e.factory:ji(n);if(null!==t)return t;if(n instanceof P)throw new M(204,!1);if(n instanceof Function)return function AS(n){const e=n.length;if(e>0)throw Rs(e,"?"),new M(204,!1);const t=function jE(n){const e=n&&(n[Bo]||n[Cf]);if(e){const t=function zE(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 M(204,!1)}function Rr(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function qg(n){return null!==n&&"object"==typeof n&&rD in n}function kr(n){return"function"==typeof n}let St=(()=>{class n{static create(t,i){var r;if(Array.isArray(t))return Ug({name:""},i,t,"");{const s=null!==(r=t.name)&&void 0!==r?r:"";return Ug({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=ks,n.NULL=new zg,n.\u0275prov=k({token:n,providedIn:"any",factory:()=>v(Ou)}),n.__NG_ELEMENT_ID__=-1,n})();function WS(n,e){Yo(jc(n)[1],qe())}function Pr(n){let e=function sm(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const i=[n];for(;e;){let r;if(Tn(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new M(903,"");r=e.\u0275dir}if(r){if(t){i.push(r);const o=n;o.inputs=Lu(n.inputs),o.declaredInputs=Lu(n.declaredInputs),o.outputs=Lu(n.outputs);const a=r.hostBindings;a&&YS(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&qS(n,l),c&&KS(n,c),Jl(n.inputs,r.inputs),Jl(n.declaredInputs,r.declaredInputs),Jl(n.outputs,r.outputs),Tn(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===Pr&&(t=!1)}}e=Object.getPrototypeOf(e)}!function GS(n){let e=0,t=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Jo(r.hostAttrs,t=Jo(t,r.hostAttrs))}}(i)}function Lu(n){return n===dr?{}:n===_e?[]:n}function qS(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function KS(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,s)=>{e(i,r,s),t(i,r,s)}:e}function YS(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let Ea=null;function Fr(){if(!Ea){const n=he.Symbol;if(n&&n.iterator)Ea=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&&(Ea=i)}}}return Ea}function qs(n){return!!Bu(n)&&(Array.isArray(n)||!(n instanceof Map)&&Fr()in n)}function Bu(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function gt(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function Tt(n,e,t,i){const r=w();return gt(r,_r(),e)&&(oe(),Wn(Ie(),r,n,e,t,i)),Tt}function fe(n,e,t,i,r,s,o,a){const l=w(),c=oe(),u=n+20,d=c.firstCreatePass?function nT(n,e,t,i,r,s,o,a,l){const c=e.consts,u=xr(e,n,4,o||null,yi(c,a));Du(e,t,u,yi(c,l)),Yo(e,u);const d=u.tViews=va(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,t,i,r,s,o):c.data[u];Hn(d,!1);const h=l[Y].createComment("");da(c,l,h,d),pt(h,l),ba(l,l[u]=Fg(h,l,h,d)),Uo(d)&&Eu(c,l,d),null!=o&&Cu(l,d,a)}function at(n){return mr(function bC(){return W.lFrame.contextLView}(),20+n)}function E(n,e=q.Default){const t=w();return null===t?v(n,e):ip(qe(),t,Q(n),e)}function j(n,e,t){const i=w();return gt(i,_r(),e)&&function Kt(n,e,t,i,r,s,o,a){const l=$t(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(jg(n,t,u,i,r),$o(e)&&function aS(n,e){const t=Ut(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function oS(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,Fe(s)?s.setProperty(l,i,r):Mc(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(oe(),Ie(),i,n,e,i[Y],t,!1),j}function $u(n,e,t,i,r){const o=r?"class":"style";jg(n,t,e.inputs[o],o,i)}function be(n,e,t,i){const r=w(),s=oe(),o=20+n,a=r[Y],l=r[o]=qc(a,e,function OC(){return W.lFrame.currentNamespace}()),c=s.firstCreatePass?function CT(n,e,t,i,r,s,o){const a=e.consts,c=xr(e,n,2,r,yi(a,s));return Du(e,t,c,yi(a,o)),null!==c.attrs&&wa(c,c.attrs,!1),null!==c.mergedAttrs&&wa(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];Hn(c,!0);const u=c.mergedAttrs;null!==u&&Xo(a,l,u);const d=c.classes;null!==d&&eu(a,l,d);const h=c.styles;return null!==h&&$p(a,l,h),64!=(64&c.flags)&&da(s,r,l,c),0===function gC(){return W.lFrame.elementDepthCount}()&&pt(l,r),function mC(){W.lFrame.elementDepthCount++}(),Uo(c)&&(Eu(s,r,c),Cg(s,c,r)),null!==i&&Cu(r,c),be}function xe(){let n=qe();bc()?wc():(n=n.parent,Hn(n,!1));const e=n;!function _C(){W.lFrame.elementDepthCount--}();const t=oe();return t.firstCreatePass&&(Yo(t,n),uc(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function NC(n){return 0!=(16&n.flags)}(e)&&$u(t,e,w(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function LC(n){return 0!=(32&n.flags)}(e)&&$u(t,e,w(),e.stylesWithoutHost,!1),xe}function Ki(n,e,t,i){return be(n,e,t,i),xe(),Ki}function Mt(n,e,t){const i=w(),r=oe(),s=n+20,o=r.firstCreatePass?function DT(n,e,t,i,r){const s=e.consts,o=yi(s,i),a=xr(e,n,8,"ng-container",o);return null!==o&&wa(a,o,!0),Du(e,t,a,yi(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,t):r.data[s];Hn(o,!0);const a=i[s]=i[Y].createComment("");return da(r,i,a,o),pt(a,i),Uo(o)&&(Eu(r,i,o),Cg(r,o,i)),null!=t&&Cu(i,o),Mt}function It(){let n=qe();const e=oe();return bc()?wc():(n=n.parent,Hn(n,!1)),e.firstCreatePass&&(Yo(e,n),uc(n)&&e.queries.elementEnd(n)),It}function qn(n,e,t){return Mt(n,e,t),It(),qn}function Kn(){return w()}function Uu(n){return!!n&&"function"==typeof n.then}function Tm(n){return!!n&&"function"==typeof n.subscribe}const ST=Tm;function mt(n,e,t,i){const r=w(),s=oe(),o=qe();return function Im(n,e,t,i,r,s,o,a){const l=Uo(i),u=n.firstCreatePass&&Bg(n),d=e[8],h=Lg(e);let f=!0;if(3&i.type||a){const _=$t(i,e),y=a?a(_):_,m=h.length,C=a?x=>a(ze(x[i.index])):i.index;if(Fe(t)){let x=null;if(!a&&l&&(x=function TT(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!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=s,x.__ngLastListenerFn__=s,f=!1;else{s=Wu(i,e,d,s,!1);const K=t.listen(y,r,s);h.push(s,K),u&&u.push(r,C,m,m+1)}}else s=Wu(i,e,d,s,!0),y.addEventListener(r,s,o),h.push(s),u&&u.push(r,C,m,o)}else s=Wu(i,e,d,s,!1);const p=i.outputs;let g;if(f&&null!==p&&(g=p[r])){const _=g.length;if(_)for(let y=0;y<_;y+=2){const De=e[g[y]][g[y+1]].subscribe(s),Oe=h.length;h.push(s,De),u&&u.push(r,i.index,Oe,-(Oe+1))}}}(s,r,r[Y],o,n,e,!!t,i),mt}function xm(n,e,t,i){try{return!1!==t(i)}catch(r){return Hg(n,r),!1}}function Wu(n,e,t,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?Ut(n.index,e):e;0==(32&e[2])&&Mu(a);let l=xm(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=xm(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function ie(n=1){return function SC(n){return(W.lFrame.contextLView=function TC(n,e){for(;n>0;)e=e[15],n--;return e}(n,W.lFrame.contextLView))[8]}(n)}function MT(n,e){let t=null;const i=function N0(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?lg(n,s,!0):V0(i,s))return r}else t=r}return t}function Sa(n){const e=w()[16][6];if(!e.projection){const i=e.projection=Rs(n?n.length:1,null),r=i.slice();let s=e.child;for(;null!==s;){const o=n?MT(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function Ys(n,e=0,t){const i=w(),r=oe(),s=xr(r,20+n,16,null,t||null);null===s.projection&&(s.projection=e),wc(),64!=(64&s.flags)&&function VD(n,e,t){zp(e[Y],0,e,t,kp(n,t,e),Lp(t.parent||e[6],t,e))}(r,i,s)}function Vm(n,e,t,i,r){const s=n[t+1],o=null===e;let a=i?In(s):ii(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];AT(n[a],e)&&(l=!0,n[a+1]=i?hu(u):uu(u)),a=i?In(u):ii(u)}l&&(n[t+1]=i?uu(s):hu(s))}function AT(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&Sr(n,e)>=0}const Ye={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Hm(n){return n.substring(Ye.key,Ye.keyEnd)}function OT(n){return n.substring(Ye.value,Ye.valueEnd)}function zm(n,e){const t=Ye.textEnd;let i=Ye.key=Gr(n,e,t);return t===i?-1:(i=Ye.keyEnd=function FT(n,e,t){let i;for(;e<t&&(45===(i=n.charCodeAt(e))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(n,i,t),i=Um(n,i,t),i=Ye.value=Gr(n,i,t),i=Ye.valueEnd=function NT(n,e,t){let i=-1,r=-1,s=-1,o=e,a=o;for(;o<t;){const l=n.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=Wm(n,l,o,t):e===o-4&&85===s&&82===r&&76===i&&40===l?a=o=Wm(n,41,o,t):l>32&&(a=o),s=r,r=i,i=-33&l}return a}(n,i,t),Um(n,i,t))}function Gr(n,e,t){for(;e<t&&n.charCodeAt(e)<=32;)e++;return e}function Um(n,e,t,i){return(e=Gr(n,e,t))<t&&e++,e}function Wm(n,e,t,i){let r=-1,s=t;for(;s<i;){const o=n.charCodeAt(s++);if(o==e&&92!==r)return s;r=92==o&&92===r?0:o}throw new Error}function Qs(n,e,t){return An(n,e,t,!1),Qs}function si(n,e){return An(n,e,null,!0),si}function _t(n){!function On(n,e,t,i){const r=oe(),s=ni(2);r.firstUpdatePass&&qm(r,null,s,i);const o=w();if(t!==G&>(o,s,t)){const a=r.data[Ct()];if(Zm(a,i)&&!Gm(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=ec(l,t||"")),$u(r,a,o,t,i)}else!function UT(n,e,t,i,r,s,o,a){r===G&&(r=_e);let l=0,c=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,f=c<s.length?s[c+1]:void 0;let g,p=null;u===d?(l+=2,c+=2,h!==f&&(p=d,g=f)):null===d||null!==u&&u<d?(l+=2,p=u):(c+=2,p=d,g=f),null!==p&&Ym(n,e,t,i,p,g,o,a),u=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}(r,a,o,o[Y],o[s+1],o[s+1]=function $T(n,e,t){if(null==t||""===t)return _e;const i=[],r=qt(t);if(Array.isArray(r))for(let s=0;s<r.length;s++)n(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&n(i,s,r[s]);else"string"==typeof r&&e(i,r);return i}(n,e,t),i,s)}}(Km,LT,n,!1)}function LT(n,e){for(let t=function kT(n){return function $m(n){Ye.key=0,Ye.keyEnd=0,Ye.value=0,Ye.valueEnd=0,Ye.textEnd=n.length}(n),zm(n,Gr(n,0,Ye.textEnd))}(e);t>=0;t=zm(e,t))Km(n,Hm(e),OT(e))}function An(n,e,t,i){const r=w(),s=oe(),o=ni(2);s.firstUpdatePass&&qm(s,n,o,i),e!==G&>(r,o,e)&&Ym(s,s.data[Ct()],r,r[Y],n,r[o+1]=function WT(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=ue(qt(n)))),n}(e,t),i,o)}function Gm(n,e){return e>=n.expandoStartIndex}function qm(n,e,t,i){const r=n.data;if(null===r[t+1]){const s=r[Ct()],o=Gm(n,t);Zm(s,i)&&null===e&&!o&&(e=!1),e=function VT(n,e,t,i){const r=function Cc(n){const e=W.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=Zs(t=qu(null,n,e,t,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==r)if(t=qu(r,n,e,t,i),null===s){let l=function HT(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==ii(i))return n[In(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=qu(null,n,e,l[1],i),l=Zs(l,e.attrs,i),function jT(n,e,t,i){n[In(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else s=function zT(n,e,t){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=Zs(i,n[s].hostAttrs,t);return Zs(i,e.attrs,t)}(n,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),t}(r,s,e,i),function IT(n,e,t,i,r,s){let o=s?e.classBindings:e.styleBindings,a=In(o),l=ii(o);n[i]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||Sr(d,u)>0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=In(n[a+1]);n[i+1]=ma(h,a),0!==h&&(n[h+1]=du(n[h+1],i)),n[a+1]=function $0(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=ma(a,0),0!==a&&(n[a+1]=du(n[a+1],i)),a=i;else n[i+1]=ma(l,0),0===a?a=i:n[l+1]=du(n[l+1],i),l=i;c&&(n[i+1]=uu(n[i+1])),Vm(n,u,i,!0),Vm(n,u,i,!1),function xT(n,e,t,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&Sr(s,e)>=0&&(t[i+1]=hu(t[i+1]))}(e,u,n,i,s),o=ma(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,t,o,i)}}function qu(n,e,t,i,r){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],i=Zs(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),i}function Zs(n,e,t){const i=t?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),Wt(n,o,!!t||e[++s]))}return void 0===n?null:n}function Km(n,e,t){Wt(n,e,qt(t))}function Ym(n,e,t,i,r,s,o,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];Ta(function fg(n){return 1==(1&n)}(c)?Qm(l,e,t,r,ii(c),o):void 0)||(Ta(s)||function hg(n){return 2==(2&n)}(c)&&(s=Qm(l,null,t,r,a,o)),function jD(n,e,t,i,r){const s=Fe(n);if(e)r?s?n.addClass(t,i):t.classList.add(i):s?n.removeClass(t,i):t.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:Gt.DashCase;if(null==r)s?n.removeStyle(t,i,o):t.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=Gt.Important),s?n.setStyle(t,i,r,o):t.style.setProperty(i,r,a?"important":"")}}}(i,o,Wo(Ct(),t),r,s))}function Qm(n,e,t,i,r,s){const o=null===e;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===G&&(h=d?_e:void 0);let f=d?Pc(h,i):u===i?h:void 0;if(c&&!Ta(f)&&(f=Pc(l,i)),Ta(f)&&(a=f,o))return a;const p=n[r+1];r=o?In(p):ii(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=Pc(l,i))}return a}function Ta(n){return void 0!==n}function Zm(n,e){return 0!=(n.flags&(e?16:32))}function Xs(n,e=""){const t=w(),i=oe(),r=n+20,s=i.firstCreatePass?xr(i,r,1,e,null):i.data[r],o=t[r]=function Gc(n,e){return Fe(n)?n.createText(e):n.createTextNode(e)}(t[Y],e);da(i,t,o,s),Hn(s,!1)}function qr(n){return Ku("",n,""),qr}function Ku(n,e,t){const i=w(),r=function Lr(n,e,t,i){return gt(n,_r(),t)?e+U(t)+i:G}(i,n,e,t);return r!==G&&ri(i,Ct(),r),Ku}const Ma="en-US";let v_=Ma;class U_{}class pI{resolveComponentFactory(e){throw function fI(n){const e=Error(`No component factory found for ${ue(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let Di=(()=>{class n{}return n.NULL=new pI,n})();function gI(){return Qr(qe(),w())}function Qr(n,e){return new Qe($t(n,e))}let Qe=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=gI,n})();function mI(n){return n instanceof Qe?n.nativeElement:n}class io{}let Ra=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function yI(){const n=w(),t=Ut(qe().index,n);return function _I(n){return n[Y]}(Vn(t)?t:n)}(),n})(),vI=(()=>{class n{}return n.\u0275prov=k({token:n,providedIn:"root",factory:()=>null}),n})();class Zr{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const bI=new Zr("13.4.0"),td={};function ka(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(ze(s)),Sn(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&ka(l[1],l,c,i)}const o=t.type;if(8&o)ka(n,e,t.child,i);else if(32&o){const a=$c(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=jp(e,t);if(Array.isArray(a))i.push(...a);else{const l=Vs(e[16]);ka(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class ro{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 ka(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(Sn(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(Kc(e,i),sa(t,i))}this._attachedToViewContainer=!1}Rp(this._lView[1],this._lView)}onDestroy(e){Mg(this._lView[1],this._lView,null,e)}markForCheck(){Mu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function xu(n,e,t){const i=e[10];i.begin&&i.begin();try{Or(n,e,n.template,t)}catch(r){throw Hg(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function OD(n,e){Hs(n,e,e[Y],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new M(902,"");this._appRef=e}}class wI extends ro{constructor(e){super(e),this._view=e}detectChanges(){Ng(this._view)}checkNoChanges(){}get context(){return null}}class G_ extends Di{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=ot(e);return new nd(t,this.ngModule)}}function q_(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class nd extends U_{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function j0(n){return n.map(H0).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return q_(this.componentDef.inputs)}get outputs(){return q_(this.componentDef.outputs)}create(e,t,i,r){const s=(r=r||this.ngModule)?function CI(n,e){return{get:(t,i,r)=>{const s=n.get(t,td,r);return s!==td||i===td?s:e.get(t,i,r)}}}(e,r.injector):e,o=s.get(io,Ff),a=s.get(vI,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function Tg(n,e,t){if(Fe(n))return n.selectRootElement(e,t===Cn.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):qc(o.createRenderer(null,this.componentDef),c,function EI(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function rm(n,e){return{components:[],scheduler:n||I0,clean:SS,playerHandler:e||null,flags:0}}(),f=va(0,null,null,1,0,null,null,null,null,null),p=Us(null,f,h,d,null,null,o,l,a,s);let g,_;qo(p);try{const y=function nm(n,e,t,i,r,s){const o=t[1];t[20]=n;const l=xr(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(wa(l,c,!0),null!==n&&(Xo(r,n,c),null!==l.classes&&eu(r,n,l.classes),null!==l.styles&&$p(r,n,l.styles)));const u=i.createRenderer(n,e),d=Us(t,Dg(e),null,e.onPush?64:16,t[20],l,i,u,s||null,null);return o.firstCreatePass&&(na(Is(l,t),o,e.type),Rg(o,l),kg(l,t.length,1)),ba(t,d),t[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)Xo(l,u,["ng-version",bI.full]);else{const{attrs:m,classes:C}=function z0(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(!Mn(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);m&&Xo(l,u,m),C&&C.length>0&&eu(l,u,C.join(" "))}if(_=_c(f,20),void 0!==t){const m=_.projection=[];for(let C=0;C<this.ngContentSelectors.length;C++){const x=t[C];m.push(null!=x?Array.from(x):null)}}g=function im(n,e,t,i,r){const s=t[1],o=function cS(n,e,t){const i=qe();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),Pg(n,i,e,Ar(n,e,1,null),t));const r=xs(e,n,i.directiveStart,i);pt(r,e);const s=$t(i,e);return s&&pt(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=qe();e.contentQueries(1,o,l.directiveStart)}const a=qe();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(vi(a.index),Ag(t[1],a,0,a.directiveStart,a.directiveEnd,e),Og(e,o)),o}(y,this.componentDef,p,h,[WS]),Ws(f,p,null)}finally{Ko()}return new SI(this.componentType,g,Qr(_,p),p,_)}}class SI extends class hI{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new wI(r),this.componentType=e}get injector(){return new br(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class Xr{}const Jr=new Map;class Q_ extends Xr{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new G_(this);const i=on(e);this._bootstrapComponents=Un(i.bootstrap),this._r3Injector=Wg(e,t,[{provide:Xr,useValue:this},{provide:Di,useValue:this.componentFactoryResolver}],ue(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=St.THROW_IF_NOT_FOUND,i=q.Default){return e===St||e===Xr||e===Ou?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 id extends class MI{}{constructor(e){super(),this.moduleType=e,null!==on(e)&&function II(n){const e=new Set;!function t(i){const r=on(i,!0),s=r.id;null!==s&&(function K_(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${ue(e)} vs ${ue(e.name)}`)}(s,Jr.get(s),i),Jr.set(s,i));const o=Un(r.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new Q_(this.moduleType,e)}}function Z_(n,e,t,i,r,s){const o=e+t;return gt(n,o,r)?function Gn(n,e,t){return n[e]=t}(n,o+1,s?i.call(s,r):i(r)):function so(n,e){const t=n[e];return t===G?void 0:t}(n,o+1)}function iy(n,e,t){const i=n+20,r=w(),s=mr(r,i);return function oo(n,e){return n[1].data[e].pure}(r,i)?Z_(r,function Et(){const n=W.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}(),e,s.transform,t,s):s.transform(t)}function rd(n){return e=>{setTimeout(n,void 0,e)}}const lt=class UI extends b{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=rd(l),a&&(a=rd(a)),c&&(c=rd(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof N&&e.add(u),u}};function WI(){return this._results[Fr()]()}class sd{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=Fr(),i=sd.prototype;i[t]||(i[t]=WI)}get changes(){return this._changes||(this._changes=new lt)}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=cn(e);(this._changesDetected=!function qC(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 oi=(()=>{class n{}return n.__NG_ELEMENT_ID__=KI,n})();const GI=oi,qI=class extends GI{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=Us(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)),Ws(t,i,e),new ro(i)}};function KI(){return Pa(qe(),w())}function Pa(n,e){return 4&n.type?new qI(e,n,Qr(n,e)):null}let Yt=(()=>{class n{}return n.__NG_ELEMENT_ID__=YI,n})();function YI(){return oy(qe(),w())}const QI=Yt,ry=class extends QI{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return Qr(this._hostTNode,this._hostLView)}get injector(){return new br(this._hostTNode,this._hostLView)}get parentInjector(){const e=ta(this._hostTNode,this._hostLView);if(Xf(e)){const t=vr(e,this._hostLView),i=yr(e);return new br(t[1].data[i+8],t)}return new br(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=sy(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 Os(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 nd(ot(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(Xr,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 pC(n){return Sn(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new ry(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function kD(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],lp(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function PD(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=Zc(s,o),l=i[Y],c=ua(l,o[7]);return null!==c&&function AD(n,e,t,i,r,s){i[0]=r,i[6]=e,Hs(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),lp(od(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=sy(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=Kc(this._lContainer,t);i&&(sa(od(this._lContainer),t),Rp(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=Kc(this._lContainer,t);return i&&null!=sa(od(this._lContainer),t)?new ro(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function sy(n){return n[8]}function od(n){return n[8]||(n[8]=[])}function oy(n,e){let t;const i=e[n.index];if(Sn(i))t=i;else{let r;if(8&n.type)r=ze(i);else{const s=e[Y];r=s.createComment("");const o=$t(n,e);Ui(s,ua(s,o),r,function BD(n,e){return Fe(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=Fg(i,e,r,n),ba(e,t)}return new ry(t,n,e)}class ad{constructor(e){this.queryList=e,this.matches=null}clone(){return new ad(this.queryList)}setDirty(){this.queryList.setDirty()}}class ld{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 ld(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!==dy(e,t).matches&&this.queries[t].setDirty()}}class ay{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class cd{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 cd(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 ud{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 ud(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,JI(t,s)),this.matchTNodeWithReadOption(e,t,ia(t,e,s,!1,!1))}else i===oi?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,ia(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Qe||r===Yt||r===oi&&4&t.type)this.addMatch(t.index,-2);else{const s=ia(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 JI(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 tx(n,e,t,i){return-1===t?function ex(n,e){return 11&n.type?Qr(n,e):4&n.type?Pa(n,e):null}(e,n):-2===t?function nx(n,e,t){return t===Qe?Qr(e,n):t===oi?Pa(e,n):t===Yt?oy(e,n):void 0}(n,e,i):xs(n,n[1],t,e)}function ly(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:tx(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function dd(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=ly(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]&&dd(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];dd(f[1],f,c,i)}}}}}return i}function ao(n){const e=w(),t=oe(),i=$f();Dc(i+1);const r=dy(t,i);if(n.dirty&&Nf(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?dd(t,e,i,[]):ly(t,e,r,i);n.reset(s,mI),n.notifyOnChanges()}return!0}return!1}function lo(n,e,t){const i=oe();i.firstCreatePass&&(function uy(n,e,t){null===n.queries&&(n.queries=new cd),n.queries.track(new ud(e,t))}(i,new ay(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),function cy(n,e,t){const i=new sd(4==(4&t));Mg(n,e,i,i.destroy),null===e[19]&&(e[19]=new ld),e[19].queries.push(new ad(i))}(i,w(),e)}function co(){return function rx(n,e){return n[19].queries[e].queryList}(w(),$f())}function dy(n,e){return n.queries.getByIndex(e)}function hy(n,e){return Pa(n,e)}function La(...n){}const xy=new P("Application Initializer");let _d=(()=>{class n{constructor(t){this.appInits=t,this.resolve=La,this.reject=La,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(Uu(s))t.push(s);else if(ST(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)(v(xy,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ho=new P("AppId",{providedIn:"root",factory:function Ay(){return`${yd()}${yd()}${yd()}`}});function yd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Oy=new P("Platform Initializer"),Ba=new P("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ex=new P("appBootstrapListener"),ai=new P("LocaleId",{providedIn:"root",factory:()=>la(ai,q.Optional|q.SkipSelf)||function Cx(){return"undefined"!=typeof $localize&&$localize.locale||Ma}()}),Mx=(()=>Promise.resolve(0))();function vd(n){"undefined"==typeof Zone?Mx.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class pe{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new lt(!1),this.onMicrotaskEmpty=new lt(!1),this.onStable=new lt(!1),this.onError=new lt(!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 Ix(){let n=he.requestAnimationFrame,e=he.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 Ox(n){const e=()=>{!function Ax(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(he,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,wd(n),n.isCheckStableRunning=!0,bd(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),wd(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return Ry(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),ky(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return Ry(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),ky(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,wd(n),bd(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(!pe.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(pe.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,xx,La,La);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 xx={};function bd(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 wd(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function Ry(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function ky(n){n._nesting--,bd(n)}class Rx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new lt,this.onMicrotaskEmpty=new lt,this.onStable=new lt,this.onError=new lt}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 Ed=(()=>{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:()=>{pe.assertNotInAngularZone(),vd(()=>{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())vd(()=>{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)(v(pe))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),kx=(()=>{class n{constructor(){this._applications=new Map,Cd.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 Cd.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class Px{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let Cd=new Px,Qi=null;const Py=new P("AllowMultipleToken"),Fy=new P("PlatformOnDestroy");function Ny(n,e,t=[]){const i=`Platform: ${e}`,r=new P(i);return(s=[])=>{let o=Dd();if(!o||o.injector.get(Py,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function Bx(n){if(Qi&&!Qi.get(Py,!1))throw new M(400,"");Qi=n;const e=n.get(Ly),t=n.get(Oy,null);t&&t.forEach(i=>i())}(function Hx(n=[],e){return St.create({name:e,providers:[{provide:Ru,useValue:"platform"},{provide:Fy,useValue:()=>Qi=null},...n]})}(a,i))}return function Vx(n){const e=Dd();if(!e)throw new M(401,"");return e}()}}function Dd(){var n;return null!==(n=null==Qi?void 0:Qi.get(Ly))&&void 0!==n?n:null}let Ly=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function jx(n,e){let t;return t="noop"===n?new Rx:("zone.js"===n?void 0:n)||new pe({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:pe,useValue:a}];return a.run(()=>{const c=St.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(wi,null);if(!d)throw new M(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{Sd(this._modules,u),h.unsubscribe()})}),function zx(n,e,t){try{const i=t();return Uu(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(_d);return h.runInitializers(),h.donePromise.then(()=>(function mM(n){jt(n,"Expected localeId to be defined"),"string"==typeof n&&(v_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(ai,Ma)||Ma),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=By({},i);return function Nx(n,e,t){const i=new id(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(Va);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new M(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 M(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(Fy,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(v(St))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function By(n,e){return Array.isArray(e)?e.reduce(By,n):Object.assign(Object.assign({},n),e)}let Va=(()=>{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 J(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new J(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{pe.assertNotInAngularZone(),vd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{pe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=No(o,a.pipe(vf()))}bootstrap(t,i){if(!this._initStatus.done)throw new M(405,"");let r;r=t instanceof U_?t:this._injector.get(Di).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const s=function Lx(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Xr),a=r.create(St.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Ed,null),u=c&&a.injector.get(kx);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Sd(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new M(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;Sd(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ex,[]).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)(v(pe),v(St),v(wi),v(_d))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Sd(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let Hy=!0,ts=(()=>{class n{}return n.__NG_ELEMENT_ID__=Wx,n})();function Wx(n){return function Gx(n,e,t){if($o(n)&&!t){const i=Ut(n.index,e);return new ro(i,i)}return 47&n.type?new ro(e[16],e):null}(qe(),w(),16==(16&n))}class Wy{constructor(){}supports(e){return qs(e)}create(e){return new Xx(e)}}const Zx=(n,e)=>e;class Xx{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Zx}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,s=null;for(;t||i;){const o=!i||t&&t.currentIndex<qy(i,r,s)?t:i,a=qy(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&e(o,a,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!qs(e))throw new M(900,"");return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,s,o,t=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),i=!0),t=t._next}else r=0,function tT(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[Fr()]();let i;for(;!(i=t.next()).done;)e(i.value)}}(e,a=>{o=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new Jx(t,i),s,r),e}_verifyReinsertion(e,t,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Gy),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Gy),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class Jx{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class eA{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class Gy{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new eA,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function qy(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+e+r}class Ky{constructor(){}supports(e){return e instanceof Map||Bu(e)}create(){return new tA}}class tA{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Bu(e)))throw new M(900,"")}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const r=this._records.get(e);this._maybeAddToChanges(r,t);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new nA(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(i=>t(e[i],i))}}class nA{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Yy(){return new za([new Wy])}let za=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Yy()),deps:[[n,new Ns,new $i]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new M(901,"")}}return n.\u0275prov=k({token:n,providedIn:"root",factory:Yy}),n})();function Qy(){return new fo([new Ky])}let fo=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Qy()),deps:[[n,new Ns,new $i]]}}find(t){const i=this.factories.find(s=>s.supports(t));if(i)return i;throw new M(901,"")}}return n.\u0275prov=k({token:n,providedIn:"root",factory:Qy}),n})();const sA=Ny(null,"core",[]);let oA=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(v(Va))},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({}),n})(),$a=null;function Si(){return $a}const se=new P("DocumentToken");let po=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:function(){return function uA(){return v(Zy)}()},providedIn:"platform"}),n})(),Zy=(()=>{class n extends po{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Si().getBaseHref(this._doc)}onPopState(t){const i=Si().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=Si().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,i,r){Xy()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){Xy()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(v(se))},n.\u0275prov=k({token:n,factory:function(){return function dA(){return new Zy(v(se))}()},providedIn:"platform"}),n})();function Xy(){return!!window.history.pushState}function Jy(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function ev(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function Xi(n){return n&&"?"!==n[0]?"?"+n:n}let Ad=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:function(){return function hA(n){const e=v(se).location;return new pA(v(po),e&&e.origin||"")}()},providedIn:"root"}),n})();const fA=new P("appBaseHref");let pA=(()=>{class n extends Ad{constructor(t,i){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Jy(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Xi(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,s){const o=this.prepareExternalUrl(r+Xi(s));this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,s){const o=this.prepareExternalUrl(r+Xi(s));this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return n.\u0275fac=function(t){return new(t||n)(v(po),v(fA,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),tv=(()=>{class n{constructor(t,i){this._subject=new lt,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=ev(nv(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Xi(i))}normalize(t){return n.stripTrailingSlash(function mA(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,nv(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._platformStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Xi(i)),r)}replaceState(t,i="",r=null){this._platformStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Xi(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return n.normalizeQueryParams=Xi,n.joinWithSlash=Jy,n.stripTrailingSlash=ev,n.\u0275fac=function(t){return new(t||n)(v(Ad),v(po))},n.\u0275prov=k({token:n,factory:function(){return function gA(){return new tv(v(Ad),v(po))}()},providedIn:"root"}),n})();function nv(n){return n.replace(/\/index.html$/,"")}let Ja=(()=>{class n{constructor(t,i,r,s){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(qs(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ue(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(t){return new(t||n)(E(za),E(fo),E(Qe),E(Ra))},n.\u0275dir=je({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class tO{constructor(e,t,i,r){this.$implicit=e,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let dv=(()=>{class n{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new tO(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),hv(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{hv(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(E(Yt),E(oi),E(za))},n.\u0275dir=je({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function hv(n,e){n.context.$implicit=e.item}let Hd=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new nO,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){fv("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){fv("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(E(Yt),E(oi))},n.\u0275dir=je({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class nO{constructor(){this.$implicit=null,this.ngIf=null}}function fv(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${ue(e)}'.`)}const pv="browser";class $d{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let yo=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const i=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=je({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),Ud=(()=>{class n{constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new $d(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(E(Yt),E(oi),E(yo,9))},n.\u0275dir=je({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),vv=(()=>{class n{constructor(t,i,r){r._addDefault(new $d(t,i))}}return n.\u0275fac=function(t){return new(t||n)(E(Yt),E(oi),E(yo,9))},n.\u0275dir=je({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),Wd=(()=>{class n{constructor(t,i,r){this._ngEl=t,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,i){const[r,s]=t.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(t){t.forEachRemovedItem(i=>this._setStyle(i.key,null)),t.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),t.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(E(Qe),E(fo),E(Ra))},n.\u0275dir=je({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),wv=(()=>{class n{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(t){return new(t||n)(E(Yt))},n.\u0275dir=je({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[zi]}),n})();class PO{createSubscription(e,t){return e.subscribe({next:t,error:i=>{throw i}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class FO{createSubscription(e,t){return e.then(t,i=>{throw i})}dispose(e){}onDestroy(e){}}const NO=new FO,LO=new PO;let Ev=(()=>{class n{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(Uu(t))return NO;if(Tm(t))return LO;throw function kn(n,e){return new M(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(t){return new(t||n)(E(ts,16))},n.\u0275pipe=Pt({name:"async",type:n,pure:!1}),n})(),Kd=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({}),n})();class Yd extends class iR extends class cA{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function lA(n){$a||($a=n)}(new Yd)}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 rR(){return vo=vo||document.querySelector("base"),vo?vo.getAttribute("href"):null}();return null==t?null:function sR(n){nl=nl||document.createElement("a"),nl.setAttribute("href",n);const e=nl.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){vo=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function JA(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 nl,vo=null;const Sv=new P("TRANSITION_ID"),aR=[{provide:xy,useFactory:function oR(n,e,t){return()=>{t.get(_d).donePromise.then(()=>{const i=Si(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[Sv,se,St],multi:!0}];class Qd{static init(){!function Fx(n){Cd=n}(new Qd)}addToWindow(e){he.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},he.getAllAngularTestabilities=()=>e.getAllTestabilities(),he.getAllAngularRootElements=()=>e.getAllRootElements(),he.frameworkStabilizers||(he.frameworkStabilizers=[]),he.frameworkStabilizers.push(i=>{const r=he.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?Si().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let lR=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const il=new P("EventManagerPlugins");let rl=(()=>{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)(v(il),v(pe))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class Tv{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=Si().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let Mv=(()=>{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=k({token:n,factory:n.\u0275fac}),n})(),bo=(()=>{class n extends Mv{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(Iv),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Iv))}}return n.\u0275fac=function(t){return new(t||n)(v(se))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function Iv(n){Si().remove(n)}const Zd={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/"},Xd=/%COMP%/g;function sl(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?sl(n,r,t):(r=r.replace(Xd,n),t.push(r))}return t}function Ov(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let ol=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Jd(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case Cn.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new pR(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case Cn.ShadowDom:return new gR(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=sl(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)(v(rl),v(bo),v(ho))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class Jd{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(Zd[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=Zd[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=Zd[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&(Gt.DashCase|Gt.Important)?e.style.setProperty(t,i,r&Gt.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&Gt.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,Ov(i)):this.eventManager.addEventListener(e,t,Ov(i))}}class pR extends Jd{constructor(e,t,i,r){super(e),this.component=i;const s=sl(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function dR(n){return"_ngcontent-%COMP%".replace(Xd,n)}(r+"-"+i.id),this.hostAttr=function hR(n){return"_nghost-%COMP%".replace(Xd,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 gR extends Jd{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=sl(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 mR=(()=>{class n extends Tv{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)(v(se))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const kv=["alt","control","meta","shift"],yR={"\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"},Pv={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"},vR={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let bR=(()=>{class n extends Tv{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(()=>Si().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(kv.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 wR(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&&Pv.hasOwnProperty(e)&&(e=Pv[e]))}return yR[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),kv.forEach(s=>{s!=r&&vR[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)(v(se))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const SR=Ny(sA,"browser",[{provide:Ba,useValue:pv},{provide:Oy,useValue:function ER(){Yd.makeCurrent(),Qd.init()},multi:!0},{provide:se,useFactory:function DR(){return function uC(n){gc=n}(document),document},deps:[]}]),TR=[{provide:Ru,useValue:"root"},{provide:wi,useFactory:function CR(){return new wi},deps:[]},{provide:il,useClass:mR,multi:!0,deps:[se,pe,Ba]},{provide:il,useClass:bR,multi:!0,deps:[se]},{provide:ol,useClass:ol,deps:[rl,bo,ho]},{provide:io,useExisting:ol},{provide:Mv,useExisting:bo},{provide:bo,useClass:bo,deps:[se]},{provide:Ed,useClass:Ed,deps:[pe]},{provide:rl,useClass:rl,deps:[il,pe]},{provide:class tR{},useClass:lR,deps:[]}];let eh=(()=>{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:ho,useValue:t.appId},{provide:Sv,useExisting:ho},aR]}}}return n.\u0275fac=function(t){return new(t||n)(v(n,12))},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({providers:TR,imports:[Kd,oA]}),n})();"undefined"!=typeof window&&window;let al=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:function(t){let i=null;return i=t?new(t||n):v(Lv),i},providedIn:"root"}),n})(),Lv=(()=>{class n extends al{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case ce.NONE:return i;case ce.HTML:return zn(i,"HTML")?qt(i):tg(this._doc,String(i)).toString();case ce.STYLE:return zn(i,"Style")?qt(i):i;case ce.SCRIPT:if(zn(i,"Script"))return qt(i);throw new Error("unsafe value used in a script context");case ce.URL:return qp(i),zn(i,"URL")?qt(i):js(String(i));case ce.RESOURCE_URL:if(zn(i,"ResourceURL"))return qt(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function QD(n){return new WD(n)}(t)}bypassSecurityTrustStyle(t){return function ZD(n){return new GD(n)}(t)}bypassSecurityTrustScript(t){return function XD(n){return new qD(n)}(t)}bypassSecurityTrustUrl(t){return function JD(n){return new KD(n)}(t)}bypassSecurityTrustResourceUrl(t){return function e0(n){return new YD(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(v(se))},n.\u0275prov=k({token:n,factory:function(t){let i=null;return i=t?new t:function NR(n){return new Lv(n.get(se))}(v(St)),i},providedIn:"root"}),n})();function ll(n){return null!=n&&"false"!=`${n}`}function Bv(n,e=0){return function LR(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}function cl(n){return Array.isArray(n)?n:[n]}function We(n){return null==n?"":"string"==typeof n?n:`${n}px`}function ns(n){return n instanceof Qe?n.nativeElement:n}function fn(...n){let e=n[n.length-1];return V(e)?(n.pop(),Ql(n,e)):Xl(n)}function nh(n,e,t,i){return ut(t)&&(i=t,t=void 0),i?nh(n,e,t).pipe(O(r=>Ve(r)?i(...r):i(r))):new J(r=>{Vv(n,e,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,t)})}function Vv(n,e,t,i,r){let s;if(function HR(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(e,t,r),s=()=>o.removeEventListener(e,t,r)}else if(function VR(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(e,t),s=()=>o.off(e,t)}else if(function BR(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(e,t),s=()=>o.removeListener(e,t)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)Vv(n[o],e,t,i,r)}i.add(s)}class jR extends N{constructor(e,t){super()}schedule(e,t=0){return this}}class ul extends jR{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 Hv=(()=>{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 Pn extends Hv{constructor(e,t=Hv.now){super(e,()=>Pn.delegate&&Pn.delegate!==this?Pn.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return Pn.delegate&&Pn.delegate!==this?Pn.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 $R extends Pn{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 zR extends ul{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 WR=1;const GR=Promise.resolve(),dl={};function jv(n){return n in dl&&(delete dl[n],!0)}const zv={setImmediate(n){const e=WR++;return dl[e]=!0,GR.then(()=>jv(e)&&n()),e},clearImmediate(n){jv(n)}},ih=(new class KR extends Pn{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 qR extends ul{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=zv.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&&(zv.clearImmediate(t),e.scheduled=void 0)}}),new Pn(ul));class ZR{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new XR(e,this.durationSelector))}}class XR extends vs{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let t;try{const{durationSelector:r}=this;t=r(e)}catch(r){return this.destination.error(r)}const i=bs(t,new ys(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function $v(n){return!Ve(n)&&n-parseFloat(n)+1>=0}function ek(n){const{index:e,period:t,subscriber:i}=n;if(i.next(e),!i.closed){if(-1===t)return i.complete();n.index=e+1,this.schedule(n,t)}}function Uv(n,e=ih){return function QR(n){return function(t){return t.lift(new ZR(n))}}(()=>function JR(n=0,e,t){let i=-1;return $v(e)?i=Number(e)<1?1:Number(e):V(e)&&(t=e),V(t)||(t=ih),new J(r=>{const s=$v(n)?n:+n-t.now();return t.schedule(ek,s,{index:0,period:i,subscriber:r})})}(n,e))}function hl(n,e){return function(i){return i.lift(new tk(n,e))}}class tk{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new nk(e,this.predicate,this.thisArg))}}class nk extends R{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)}}function pn(n){return e=>e.lift(new ik(n))}class ik{constructor(e){this.notifier=e}call(e,t){const i=new rk(e),r=bs(this.notifier,new ys(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class rk extends vs{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let rh;try{rh="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){rh=!1}let wo,pl,Ji,oh,Fn=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function oO(n){return n===pv}(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&&!rh)&&"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)(v(Ba))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({}),n})();function fl(n){return function sk(){if(null==wo&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>wo=!0}))}finally{wo=wo||!1}return wo}()?n:!!n.capture}function Gv(){if(null==Ji){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ji=!1,Ji;if("scrollBehavior"in document.documentElement.style)Ji=!0;else{const n=Element.prototype.scrollTo;Ji=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Ji}function Eo(){if("object"!=typeof document||!document)return 0;if(null==pl){const n=document.createElement("div"),e=n.style;n.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const t=document.createElement("div"),i=t.style;i.width="2px",i.height="1px",n.appendChild(t),document.body.appendChild(n),pl=0,0===n.scrollLeft&&(n.scrollLeft=1,pl=0===n.scrollLeft?1:2),n.remove()}return pl}function er(n){return n.composedPath?n.composedPath()[0]:n.target}function ah(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const lk=new P("cdk-dir-doc",{providedIn:"root",factory:function ck(){return la(se)}}),uk=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let lh=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new lt,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function dk(n){const e=(null==n?void 0:n.toLowerCase())||"";return"auto"===e&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?uk.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(v(lk,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Co=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({}),n})(),ch=(()=>{class n{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new b,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new J(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(Uv(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):fn()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(hl(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,t)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=ns(i),s=t.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>nh(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(t){return new(t||n)(v(pe),v(Fn),v(se,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qv=(()=>{class n{constructor(t,i,r,s){this.elementRef=t,this.scrollDispatcher=i,this.ngZone=r,this.dir=s,this._destroyed=new b,this._elementScrolled=new J(o=>this.ngZone.runOutsideAngular(()=>nh(this.elementRef.nativeElement,"scroll").pipe(pn(this._destroyed)).subscribe(o)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=r?t.end:t.start),null==t.right&&(t.right=r?t.start:t.end),null!=t.bottom&&(t.top=i.scrollHeight-i.clientHeight-t.bottom),r&&0!=Eo()?(null!=t.left&&(t.right=i.scrollWidth-i.clientWidth-t.left),2==Eo()?t.left=t.right:1==Eo()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=i.scrollWidth-i.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const i=this.elementRef.nativeElement;Gv()?i.scrollTo(t):(null!=t.top&&(i.scrollTop=t.top),null!=t.left&&(i.scrollLeft=t.left))}measureScrollOffset(t){const i="left",r="right",s=this.elementRef.nativeElement;if("top"==t)return s.scrollTop;if("bottom"==t)return s.scrollHeight-s.clientHeight-s.scrollTop;const o=this.dir&&"rtl"==this.dir.value;return"start"==t?t=o?r:i:"end"==t&&(t=o?i:r),o&&2==Eo()?t==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:o&&1==Eo()?t==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:t==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}}return n.\u0275fac=function(t){return new(t||n)(E(Qe),E(ch),E(pe),E(lh,8))},n.\u0275dir=je({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),Kv=(()=>{class n{constructor(t,i,r){this._platform=t,this._change=new b,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,s=r.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Uv(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(v(Fn),v(pe),v(se,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),uh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({}),n})(),dh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[[Co,sh,uh],Co,uh]}),n})();class hh{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class Yv extends hh{constructor(e,t,i,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r}}class pk extends hh{constructor(e,t,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class gk extends hh{constructor(e){super(),this.element=e instanceof Qe?e.nativeElement:e}}class _k extends class mk{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof Yv?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof pk?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof gk?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(e,t,i,r,s){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(e){const i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let yk=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({}),n})();const vk=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),bk=new J(n=>n.complete());function Qv(n){return n?function wk(n){return new J(e=>n.schedule(()=>e.complete()))}(n):bk}function rs(n){return e=>0===n?Qv():e.lift(new Ek(n))}class Ek{constructor(e){if(this.total=e,this.total<0)throw new vk}call(e,t){return t.subscribe(new Ck(e,this.total))}}class Ck extends R{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()))}}const Zv=Gv();class Dk{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=We(-this._previousScrollPosition.left),e.style.top=We(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,i=e.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Zv&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Zv&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class Sk{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Xv{enable(){}disable(){}attach(){}}function fh(n,e){return e.some(t=>n.bottom<t.top||n.top>t.bottom||n.right<t.left||n.left>t.right)}function Jv(n,e){return e.some(t=>n.top<t.top||n.bottom>t.bottom||n.left<t.left||n.right>t.right)}class Tk{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();fh(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Mk=(()=>{class n{constructor(t,i,r,s){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new Xv,this.close=o=>new Sk(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new Dk(this._viewportRuler,this._document),this.reposition=o=>new Tk(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(t){return new(t||n)(v(ch),v(Kv),v(pe),v(se))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Ik{constructor(e){if(this.scrollStrategy=new Xv,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class xk{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}class Ak{constructor(e,t,i,r,s,o,a,l,c){this._portalOutlet=e,this._host=t,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new b,this._attachments=new b,this._detachments=new b,this._locationChanges=N.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new b,this._outsidePointerEvents=new b,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(rs(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){var e;const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(e=this._host)||void 0===e||e.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=We(this._config.width),e.height=We(this._config.height),e.minWidth=We(this._config.minWidth),e.minHeight=We(this._config.minHeight),e.maxWidth=We(this._config.maxWidth),e.maxHeight=We(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(!e)return;let t;const i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),this._disposeBackdrop(e)),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(e,t,i){const r=cl(t||[]).filter(s=>!!s);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(pn(No(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.remove(),this._backdropElement===e&&(this._backdropElement=null))}}let gl=(()=>{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||ah()){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),ah()?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)(v(se),v(Fn))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const eb="cdk-overlay-connected-position-bounding-box",Ok=/([A-Za-z%]+)$/;class Rk{constructor(e,t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new b,this._resizeSubscription=N.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(eb),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,t,a),u=this._getOverlayFit(c,t,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?s.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:t})}if(s.length){let a=null,l=-1;for(const c of s){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&tr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(eb),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,i){let r,s;if("center"==i.originX)r=e.left+e.width/2;else{const o=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==i.originX?o:a}return t.left<0&&(r-=t.left),s="center"==i.originY?e.top+e.height/2:"top"==i.originY?e.top:e.bottom,t.top<0&&(s-=t.top),{x:r,y:s}}_getOverlayPoint(e,t,i){let r,s;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,s="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+r,y:e.y+s}}_getOverlayFit(e,t,i,r){const s=nb(t);let{x:o,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-i.height,p=this._subtractOverflows(s.width,0-o,o+s.width-i.width),g=this._subtractOverflows(s.height,h,f),_=p*g;return{visibleArea:_,isCompletelyWithinViewport:s.width*s.height===_,fitsInViewportVertically:g===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,s=i.right-t.x,o=tb(this._overlayRef.getConfig().minHeight),a=tb(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=s;return(e.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=nb(t),s=this._viewportRect,o=Math.max(e.x+r.width-s.width,0),a=Math.max(e.y+r.height-s.height,0),l=Math.max(s.top-i.top-e.y,0),c=Math.max(s.left-i.left-e.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:e.x<this._viewportMargin?s.left-i.left-e.x:0,d=r.height<=s.height?l||-a:e.y<this._viewportMargin?s.top-i.top-e.y:0,this._previousPushAmount={x:u,y:d},{x:e.x+u,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new xk(e,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=e.overlayY;i="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(e,t){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===t.overlayY)o=e.y,s=i.height-o+this._viewportMargin;else if("bottom"===t.overlayY)a=i.height-e.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-e.y+i.top,e.y),p=this._lastBoundingBoxSize.height;s=2*f,o=e.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-e.x+this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)d=e.x,u=i.right-e.x;else{const f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=2*f,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=We(i.height),r.top=We(i.top),r.bottom=We(i.bottom),r.width=We(i.width),r.left=We(i.left),r.right=We(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=We(s)),o&&(r.maxWidth=We(o))}this._lastBoundingBoxSize=i,tr(this._boundingBox.style,r)}_resetBoundingBoxStyles(){tr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){tr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();tr(i,this._getExactOverlayY(t,e,u)),tr(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=We(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=We(o.maxWidth):s&&(i.maxWidth="")),tr(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=We(s.y),r}_getExactOverlayX(e,t,i){let o,r={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=We(s.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Jv(e,i),isOriginOutsideView:fh(e,i),isOverlayClipped:Jv(t,i),isOverlayOutsideView:fh(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&cl(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof Qe)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function tr(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function tb(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(Ok);return t&&"px"!==t?null:parseFloat(e)}return n||null}function nb(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const ib="cdk-global-overlay-wrapper";class kk{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(ib),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=l?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,l?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(ib),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let Pk=(()=>{class n{constructor(t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new kk}flexibleConnectedTo(t){return new Rk(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(v(Kv),v(se),v(Fn),v(gl))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rb=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(v(se))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Fk=(()=>{class n extends rb{constructor(t){super(t),this._keydownListener=i=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){r[s]._keydownEvents.next(i);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(t){return new(t||n)(v(se))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Nk=(()=>{class n extends rb{constructor(t,i){super(t),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=er(r)},this._clickListener=r=>{const s=er(r),o="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(s)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(r)}}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(t){return new(t||n)(v(se),v(Fn))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Lk=0,ml=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new Ik(t);return o.direction=o.direction||this._directionality.value,new Ak(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+Lk++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Va)),new _k(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(v(Mk),v(gl),v(Di),v(Pk),v(Fk),v(St),v(pe),v(se),v(lh),v(tv),v(Nk))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const Hk={provide:new P("cdk-connected-overlay-scroll-strategy"),deps:[ml],useFactory:function Vk(n){return()=>n.scrollStrategies.reposition()}};let jk=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({providers:[ml,Hk],imports:[[Co,yk,dh],dh]}),n})();const Uk=new class $k extends Pn{}(class zk extends ul{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 sb(n,e){return new J(e?t=>e.schedule(Wk,0,{error:n,subscriber:t}):t=>t.error(n))}function Wk({error:n,subscriber:e}){e.error(n)}class gn{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 fn(this.value);case"E":return sb(this.error);case"C":return Qv()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new gn("N",e):gn.undefinedValueNotification}static createError(e){return new gn("E",void 0,e)}static createComplete(){return gn.completeNotification}}gn.completeNotification=new gn("C"),gn.undefinedValueNotification=new gn("N",void 0);class _l extends R{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(_l.dispatch,this.delay,new qk(e,this.destination)))}_next(e){this.scheduleMessage(gn.createNext(e))}_error(e){this.scheduleMessage(gn.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(gn.createComplete()),this.unsubscribe()}}class qk{constructor(e,t){this.notification=e,this.destination=t}}class ob extends b{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 Kk(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 Ge;if(this.isStopped||this.hasError?o=N.EMPTY:(this.observers.push(e),o=new Bn(this,e)),r&&e.add(e=new _l(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||Uk).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 Kk{constructor(e,t){this.time=e,this.value=t}}function ph(n,e){return"function"==typeof e?t=>t.pipe(ph((i,r)=>Zl(n(i,r)).pipe(O((s,o)=>e(i,s,r,o))))):t=>t.lift(new Yk(n))}class Yk{constructor(e){this.project=e}call(e,t){return t.subscribe(new Qk(e,this.project))}}class Qk extends vs{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 ys(this),r=this.destination;r.add(i),this.innerSubscription=bs(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 yl={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return yl.schedule(n,0);if(void 0===window.requestAnimationFrame)return yl.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let gh;function sP(n,e,t){let i=t;return function Xk(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function eP(n,e){if(!gh){const t=Element.prototype;gh=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&gh.call(n,e)}(n,r)||(i=s,0))),i}class aP{constructor(e,t){this.componentFactory=t.get(Di).resolveComponentFactory(e)}create(e){return new lP(this.componentFactory,e)}}class lP{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new ob(1),this.events=this.eventEmitters.pipe(ph(i=>No(...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(pe),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=yl.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 tP(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=St.create({providers:[],parent:this.injector}),i=function rP(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=sP(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(ts),this.implementsOnChanges=function Jk(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Va).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(O(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=yl.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 Of(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 cP extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function ab(n,e){const t=function iP(n,e){return e.get(Di).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new aP(n,e.injector),r=function nP(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function Zk(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends cP{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}class lb{}const ci="*";function dP(n,e){return{type:7,name:n,definitions:e,options:{}}}function cb(n,e=null){return{type:4,styles:e,timings:n}}function ub(n,e=null){return{type:2,steps:n,options:e}}function Mi(n){return{type:6,styles:n,offset:null}}function db(n,e,t){return{type:0,name:n,styles:e,options:t}}function hP(n){return{type:5,steps:n}}function hb(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function fb(n){Promise.resolve(null).then(n)}class Do{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(){fb(()=>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 pb{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?fb(()=>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 re=!1;function gb(n){return new M(3e3,re)}function GP(){return"undefined"!=typeof window&&void 0!==window.document}function _h(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Ii(n){switch(n.length){case 0:return new Do;case 1:return n[0];default:return new pb(n)}}function mb(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,_=u[p];if("offset"!==p)switch(g=e.normalizePropertyName(g,o),_){case"!":_=r[p];break;case ci:_=s[p];break;default:_=e.normalizeStyleValue(p,g,_,o)}f[g]=_}),h||a.push(f),c=f,l=d}),o.length)throw function FP(n){return new M(3502,re)}();return a}function yh(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&vh(t,"start",n)));break;case"done":n.onDone(()=>i(t&&vh(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&vh(t,"destroy",n)))}}function vh(n,e,t){const i=t.totalTime,s=bh(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 bh(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Qt(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 _b(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let wh=(n,e)=>!1,yb=(n,e,t)=>[],vb=null;function Eh(n){const e=n.parentNode||n.host;return e===vb?null:e}(_h()||"undefined"!=typeof Element)&&(GP()?(vb=(()=>document.documentElement)(),wh=(n,e)=>{for(;e;){if(e===n)return!0;e=Eh(e)}return!1}):wh=(n,e)=>n.contains(e),yb=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let nr=null,bb=!1;function wb(n){nr||(nr=function KP(){return"undefined"!=typeof document?document.body:null}()||{},bb=!!nr.style&&"WebkitAppearance"in nr.style);let e=!0;return nr.style&&!function qP(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in nr.style,!e&&bb&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in nr.style)),e}const Eb=wh,Cb=yb;let Db=(()=>{class n{validateStyleProperty(t){return wb(t)}matchesElement(t,i){return!1}containsElement(t,i){return Eb(t,i)}getParentElement(t){return Eh(t)}query(t,i,r){return Cb(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new Do(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),Ch=(()=>{class n{}return n.NOOP=new Db,n})();const Dh="ng-enter",bl="ng-leave",wl="ng-trigger",El=".ng-trigger",Tb="ng-animating",Sh=".ng-animating";function ir(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Th(parseFloat(e[1]),e[2])}function Th(n,e){return"s"===e?1e3*n:n}function Cl(n,e,t){return n.hasOwnProperty("duration")?n:function ZP(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(gb()),{duration:0,delay:0,easing:""};r=Th(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Th(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 fP(){return new M(3100,re)}()),a=!0),s<0&&(e.push(function pP(){return new M(3101,re)}()),a=!0),a&&e.splice(l,0,gb())}return{duration:r,delay:s,easing:o}}(n,e,t)}function ss(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function xi(n,e,t={}){if(e)for(let i in n)t[i]=n[i];else ss(n,t);return t}function Ib(n,e,t){return t?e+":"+t+";":""}function xb(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=Ib(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=Ib(0,eF(t),n.style[t]));n.setAttribute("style",e)}function Qn(n,e,t){n.style&&(Object.keys(e).forEach(i=>{const r=Ih(i);t&&!t.hasOwnProperty(i)&&(t[i]=n.style[r]),n.style[r]=e[i]}),_h()&&xb(n))}function rr(n,e){n.style&&(Object.keys(e).forEach(t=>{const i=Ih(t);n.style[i]=""}),_h()&&xb(n))}function So(n){return Array.isArray(n)?1==n.length?n[0]:ub(n):n}const Mh=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ab(n){let e=[];if("string"==typeof n){let t;for(;t=Mh.exec(n);)e.push(t[1]);Mh.lastIndex=0}return e}function Dl(n,e,t){const i=n.toString(),r=i.replace(Mh,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function mP(n){return new M(3003,re)}()),a=""),a.toString()});return r==i?n:r}function Sl(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const JP=/-+([a-z0-9])/g;function Ih(n){return n.replace(JP,(...e)=>e[1].toUpperCase())}function eF(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Zt(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 _P(n){return new M(3004,re)}()}}function Ob(n,e){return window.getComputedStyle(n)[e]}function oF(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function aF(n,e,t){if(":"==n[0]){const l=function lF(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 OP(n){return new M(3016,re)}()),"* => *"}}(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 AP(n){return new M(3015,re)}()),e;const r=i[1],s=i[2],o=i[3];e.push(Rb(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(Rb(o,r))}(i,t,e)):t.push(n),t}const xl=new Set(["true","1"]),Al=new Set(["false","0"]);function Rb(n,e){const t=xl.has(n)||Al.has(n),i=xl.has(e)||Al.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?xl.has(n):Al.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?xl.has(e):Al.has(e)),o&&a}}const cF=new RegExp("s*:selfs*,?","g");function xh(n,e,t,i){return new uF(n).build(e,t,i)}class uF{constructor(e){this._driver=e}build(e,t,i){const r=new fF(t);this._resetContextStyleTimingState(r);const s=Zt(this,So(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 vP(){return new M(3006,re)}()),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 bP(){return new M(3007,re)}())}),{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(Ol(a)){const l=a;Object.keys(l).forEach(c=>{Ab(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(Sl(s.values()),t.errors.push(function wP(n,e){return new M(3008,re)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=Zt(this,So(e.animation),t);return{type:1,matchers:oF(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:sr(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>Zt(this,i,t)),options:sr(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=Zt(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:sr(e.options)}}visitAnimate(e,t){const i=function gF(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Ah(Cl(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Ah(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=Cl(t,e);return Ah(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:Mi({});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=Mi(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==ci?i.push(o):t.errors.push(function EP(n){return new M(3002,re)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(Ol(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 CP(n,e,t,i,r){return new M(3010,re)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),t.options&&function XP(n,e,t){const i=e.params||{},r=Ab(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function gP(n){return new M(3001,re)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function DP(){return new M(3011,re)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(y=>{const m=this._makeStyleAst(y,t);let C=null!=m.offset?m.offset:function pF(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(Ol(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(Ol(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(m.styles),x=0;return null!=C&&(s++,x=m.offset=C),l=l||x<0||x>1,a=a||x<c,c=x,o.push(x),m});l&&t.errors.push(function SP(){return new M(3012,re)}()),a&&t.errors.push(function TP(){return new M(3200,re)}());const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push(function MP(){return new M(3202,re)}()):0==s&&(h=1/(d-1));const f=d-1,p=t.currentTime,g=t.currentAnimateTimings,_=g.duration;return u.forEach((y,m)=>{const C=h>0?m==f?1:h*m:o[m],x=C*_;t.currentTime=p+g.delay+x,g.duration=x,this._validateStyleAst(y,t),y.offset=C,i.styles.push(y)}),i}visitReference(e,t){return{type:8,animation:Zt(this,So(e.animation),t),options:sr(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:sr(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:sr(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function dF(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(cF,"")),n=n.replace(/@\*/g,El).replace(/@\w+/g,t=>El+"-"+t.substr(1)).replace(/:animating/g,Sh),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,Qt(t.collectedStyles,t.currentQuerySelector,{});const a=Zt(this,So(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:sr(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function IP(){return new M(3013,re)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:Cl(e.timings,t.errors,!0);return{type:12,animation:Zt(this,So(e.animation),t),timings:i,options:null}}}class fF{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 Ol(n){return!Array.isArray(n)&&"object"==typeof n}function sr(n){return n?(n=ss(n)).params&&(n.params=function hF(n){return n?ss(n):null}(n.params)):n={},n}function Ah(n,e,t){return{duration:n,delay:e,easing:t}}function Oh(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 Rl{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 yF=new RegExp(":enter","g"),bF=new RegExp(":leave","g");function Rh(n,e,t,i,r,s={},o={},a,l,c=[]){return(new wF).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class wF{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new Rl;const d=new kh(e,t,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Zt(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()):[Oh(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?ir(i.duration):null,a=null!=i.delay?ir(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),Zt(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=kl);const o=ir(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Zt(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?ir(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Zt(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 Cl(t.params?Dl(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?ir(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=kl);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),Zt(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;Zt(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const kl={};class kh{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=kl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Pl(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=ir(i.duration)),null!=i.delay&&(r.delay=ir(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]=Dl(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 kh(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=kl,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 EF(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(yF,"."+this._enterClassName)).replace(bF,"."+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 xP(n){return new M(3014,re)}()),a}}class Pl{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 Pl(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]||ci,this._currentKeyframe[t]=ci}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function CF(n,e){const t={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{t[s]=ci})):xi(r,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Dl(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:ci),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=xi(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==ci&&t.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?Sl(e.values()):[],o=t.size?Sl(t.values()):[];if(i){const a=r[0],l=ss(a);a.offset=0,l.offset=1,r=[a,l]}return Oh(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class EF extends Pl{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=xi(e[0],!1);l.offset=0,s.push(l);const c=xi(e[0],!1);c.offset=Fb(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=xi(e[d],!1);h.offset=Fb((t+h.offset*i)/o),s.push(h)}i=o,t=0,r="",e=s}return Oh(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function Fb(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class Ph{}class DF extends Ph{normalizePropertyName(e,t){return Ih(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if(SF[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 yP(n,e){return new M(3005,re)}())}return o+s}}const SF=(()=>function TF(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 Nb(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 Fh={};class Lb{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function MF(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||Fh,p=this.buildStyles(i,a&&a.params||Fh,d),g=l&&l.params||Fh,_=this.buildStyles(r,g,d),y=new Set,m=new Map,C=new Map,x="void"===r,K={params:Object.assign(Object.assign({},h),g)},De=u?[]:Rh(e,t,this.ast.animation,s,o,p,_,K,c,d);let Oe=0;if(De.forEach(en=>{Oe=Math.max(en.duration+en.delay,Oe)}),d.length)return Nb(t,this._triggerName,i,r,x,p,_,[],[],m,C,Oe,d);De.forEach(en=>{const tn=en.element,ps=Qt(m,tn,{});en.preStyleProps.forEach(Nn=>ps[Nn]=!0);const di=Qt(C,tn,{});en.postStyleProps.forEach(Nn=>di[Nn]=!0),tn!==t&&y.add(tn)});const Jt=Sl(y.values());return Nb(t,this._triggerName,i,r,x,p,_,De,Jt,m,C,Oe)}}class IF{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i={},r=ss(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=Dl(l,r,t));const c=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,c,l,t),i[c]=l})}}),i}}class AF{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 IF(r.style,r.options&&r.options.params||{},i)}),Bb(this.states,"true","1"),Bb(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Lb(e,r,this.states))}),this.fallbackTransition=function OF(n,e,t){return new Lb(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 Bb(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const RF=new Rl;class kF{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=xh(this._driver,t,i,[]);if(i.length)throw function NP(n){return new M(3503,re)}();this._animations[e]=s}_buildPlayer(e,t,i){const r=e.element,s=mb(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=Rh(this._driver,t,s,Dh,bl,{},{},i,RF,r),o.forEach(u=>{const d=Qt(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function LP(){return new M(3300,re)}()),o=[]),r.length)throw function BP(n){return new M(3504,re)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,ci)})});const c=Ii(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 VP(n){return new M(3301,re)}();return t}listen(e,t,i,r){const s=bh(t,"","","");return yh(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 Vb="ng-animate-queued",Nh="ng-animate-disabled",BF=[],Hb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},VF={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},mn="__ng_removed";class Lh{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function $F(n){return null!=n?n:null}(i?e.value:e),i){const s=ss(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 To="void",Bh=new Lh(To);class HF{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,_n(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.hasOwnProperty(t))throw function HP(n,e){return new M(3302,re)}();if(null==i||0==i.length)throw function jP(n){return new M(3303,re)}();if(!function UF(n){return"start"==n||"done"==n}(i))throw function zP(n,e){return new M(3400,re)}();const s=Qt(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=Qt(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(_n(e,wl),_n(e,wl+"-"+t),a[t]=Bh),()=>{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 $P(n){return new M(3401,re)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new Vh(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(_n(e,wl),_n(e,wl+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const c=new Lh(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[t]=c,l||(l=Bh),c.value!==To&&l.value===c.value){if(!function qF(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=[],_=s.matchStyles(l.value,l.params,g),y=s.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{rr(e,_),Qn(e,y)})}return}const h=Qt(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||(_n(e,Vb),o.onStart(()=>{os(e,Vb)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);const _=this._engine.playersByElement.get(e);if(_){let y=_.indexOf(o);y>=0&&_.splice(y,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,El,!0);i.forEach(r=>{if(r[mn])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,To,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&Ii(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]||Bh,u=new Lh(To),d=new Vh(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[mn];(!s||s===Hb)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){_n(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=bh(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,yh(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 jF{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 HF(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(Fl(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!Fl(t))return;const s=t[mn];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),_n(e,Nh)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),os(e,Nh))}removeNode(e,t,i,r){if(Fl(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[mn]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return Fl(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,El,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Sh,!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 Ii(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[mn];if(i&&i.setForRemoval){if(e[mn]=Hb,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(Nh))&&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++)_n(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?Ii(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function UP(n){return new M(3402,re)}()}_flushAnimations(e,t){const i=new Rl,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(I=>{u.add(I);const F=this.driver.query(I,".ng-animate-queued",!0);for(let H=0;H<F.length;H++)u.add(F[H])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=$b(h,this.collectedEnterElements),p=new Map;let g=0;f.forEach((I,F)=>{const H=Dh+g++;p.set(F,H),I.forEach(le=>_n(le,H))});const _=[],y=new Set,m=new Set;for(let I=0;I<this.collectedLeaveElements.length;I++){const F=this.collectedLeaveElements[I],H=F[mn];H&&H.setForRemoval&&(_.push(F),y.add(F),H.hasAnimation?this.driver.query(F,".ng-star-inserted",!0).forEach(le=>y.add(le)):m.add(F))}const C=new Map,x=$b(h,Array.from(y));x.forEach((I,F)=>{const H=bl+g++;C.set(F,H),I.forEach(le=>_n(le,H))}),e.push(()=>{f.forEach((I,F)=>{const H=p.get(F);I.forEach(le=>os(le,H))}),x.forEach((I,F)=>{const H=C.get(F);I.forEach(le=>os(le,H))}),_.forEach(I=>{this.processLeaveNode(I)})});const K=[],De=[];for(let I=this._namespaceList.length-1;I>=0;I--)this._namespaceList[I].drainQueuedTransitions(t).forEach(H=>{const le=H.player,it=H.element;if(K.push(le),this.collectedEnterElements.length){const Ot=it[mn];if(Ot&&Ot.setForMove){if(Ot.previousTriggersValues&&Ot.previousTriggersValues.has(H.triggerName)){const cr=Ot.previousTriggersValues.get(H.triggerName),Fi=this.statesByElement.get(H.element);Fi&&Fi[H.triggerName]&&(Fi[H.triggerName].value=cr)}return void le.destroy()}}const Xn=!d||!this.driver.containsElement(d,it),nn=C.get(it),Pi=p.get(it),Re=this._buildInstruction(H,i,Pi,nn,Xn);if(Re.errors&&Re.errors.length)return void De.push(Re);if(Xn)return le.onStart(()=>rr(it,Re.fromStyles)),le.onDestroy(()=>Qn(it,Re.toStyles)),void r.push(le);if(H.isFallbackTransition)return le.onStart(()=>rr(it,Re.fromStyles)),le.onDestroy(()=>Qn(it,Re.toStyles)),void r.push(le);const _E=[];Re.timelines.forEach(Ot=>{Ot.stretchStartingKeyframe=!0,this.disabledNodes.has(Ot.element)||_E.push(Ot)}),Re.timelines=_E,i.append(it,Re.timelines),o.push({instruction:Re,player:le,element:it}),Re.queriedElements.forEach(Ot=>Qt(a,Ot,[]).push(le)),Re.preStyleProps.forEach((Ot,cr)=>{const Fi=Object.keys(Ot);if(Fi.length){let ur=l.get(cr);ur||l.set(cr,ur=new Set),Fi.forEach(pf=>ur.add(pf))}}),Re.postStyleProps.forEach((Ot,cr)=>{const Fi=Object.keys(Ot);let ur=c.get(cr);ur||c.set(cr,ur=new Set),Fi.forEach(pf=>ur.add(pf))})});if(De.length){const I=[];De.forEach(F=>{I.push(function WP(n,e){return new M(3505,re)}())}),K.forEach(F=>F.destroy()),this.reportError(I)}const Oe=new Map,Jt=new Map;o.forEach(I=>{const F=I.element;i.has(F)&&(Jt.set(F,F),this._beforeAnimationBuild(I.player.namespaceId,I.instruction,Oe))}),r.forEach(I=>{const F=I.element;this._getPreviousPlayers(F,!1,I.namespaceId,I.triggerName,null).forEach(le=>{Qt(Oe,F,[]).push(le),le.destroy()})});const en=_.filter(I=>Wb(I,l,c)),tn=new Map;zb(tn,this.driver,m,c,ci).forEach(I=>{Wb(I,l,c)&&en.push(I)});const di=new Map;f.forEach((I,F)=>{zb(di,this.driver,new Set(I),l,"!")}),en.forEach(I=>{const F=tn.get(I),H=di.get(I);tn.set(I,Object.assign(Object.assign({},F),H))});const Nn=[],gs=[],ms={};o.forEach(I=>{const{element:F,player:H,instruction:le}=I;if(i.has(F)){if(u.has(F))return H.onDestroy(()=>Qn(F,le.toStyles)),H.disabled=!0,H.overrideTotalTime(le.totalTime),void r.push(H);let it=ms;if(Jt.size>1){let nn=F;const Pi=[];for(;nn=nn.parentNode;){const Re=Jt.get(nn);if(Re){it=Re;break}Pi.push(nn)}Pi.forEach(Re=>Jt.set(Re,it))}const Xn=this._buildAnimation(H.namespaceId,le,Oe,s,di,tn);if(H.setRealPlayer(Xn),it===ms)Nn.push(H);else{const nn=this.playersByElement.get(it);nn&&nn.length&&(H.parentPlayer=Ii(nn)),r.push(H)}}else rr(F,le.fromStyles),H.onDestroy(()=>Qn(F,le.toStyles)),gs.push(H),u.has(F)&&r.push(H)}),gs.forEach(I=>{const F=s.get(I.element);if(F&&F.length){const H=Ii(F);I.setRealPlayer(H)}}),r.forEach(I=>{I.parentPlayer?I.syncPlayerEvents(I.parentPlayer):I.destroy()});for(let I=0;I<_.length;I++){const F=_[I],H=F[mn];if(os(F,bl),H&&H.hasAnimation)continue;let le=[];if(a.size){let Xn=a.get(F);Xn&&Xn.length&&le.push(...Xn);let nn=this.driver.query(F,Sh,!0);for(let Pi=0;Pi<nn.length;Pi++){let Re=a.get(nn[Pi]);Re&&Re.length&&le.push(...Re)}}const it=le.filter(Xn=>!Xn.destroyed);it.length?WF(this,F,it):this.processLeaveNode(F)}return _.length=0,Nn.forEach(I=>{this.players.push(I),I.onDone(()=>{I.destroy();const F=this.players.indexOf(I);this.players.splice(F,1)}),I.play()}),Nn}elementContainsData(e,t){let i=!1;const r=t[mn];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==To;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=Qt(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)})}rr(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 _=g[mn];if(_&&_.removedBeforeQueried)return new Do(p.duration,p.delay);const y=g!==l,m=function GF(n){const e=[];return Ub(n,e),e}((i.get(g)||BF).map(Oe=>Oe.getRealPlayer())).filter(Oe=>!!Oe.element&&Oe.element===g),C=s.get(g),x=o.get(g),K=mb(0,this._normalizer,0,p.keyframes,C,x),De=this._buildPlayer(p,K,m);if(p.subTimeline&&r&&d.add(g),y){const Oe=new Vh(e,a,g);Oe.setRealPlayer(De),c.push(Oe)}return De});c.forEach(p=>{Qt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function zF(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=>_n(p,Tb));const f=Ii(h);return f.onDestroy(()=>{u.forEach(p=>os(p,Tb)),Qn(l,t.toStyles)}),d.forEach(p=>{Qt(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 Do(e.duration,e.delay)}}class Vh{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Do,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=>yh(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){Qt(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 Fl(n){return n&&1===n.nodeType}function jb(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function zb(n,e,t,i,r){const s=[];t.forEach(l=>s.push(jb(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[mn]=VF,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>jb(l,s[a++])),o}function $b(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 _n(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function os(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function WF(n,e,t){Ii(t).onDone(()=>n.processLeaveNode(e))}function Ub(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof pb?Ub(i.players,e):e.push(i)}}function Wb(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 Nl{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new jF(e,t,i),this._timelineEngine=new kF(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=xh(this._driver,s,l,[]);if(l.length)throw function PP(n,e){return new M(3404,re)}();a=function xF(n,e,t){return new AF(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]=_b(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]=_b(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 YF=(()=>{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&&Qn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Qn(this._element,this._initialStyles),this._endStyles&&(Qn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(rr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(rr(this._element,this._endStyles),this._endStyles=null),Qn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Hh(n){let e=null;const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];QF(r)&&(e=e||{},e[r]=n[r])}return e}function QF(n){return"display"===n||"position"===n}class Gb{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]:Ob(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class ZF{validateStyleProperty(e){return wb(e)}matchesElement(e,t){return!1}containsElement(e,t){return Eb(e,t)}getParentElement(e){return Eh(e)}query(e,t,i){return Cb(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 Gb);(function tF(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 nF(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]=Ob(n,l)})}}return e}(e,t=t.map(h=>xi(h,!1)),c);const d=function KF(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=Hh(e[0]),e.length>1&&(i=Hh(e[e.length-1]))):e&&(t=Hh(e)),t||i?new YF(n,t,i):null}(e,t);return new Gb(e,t,l,d)}}let XF=(()=>{class n extends lb{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Cn.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?ub(t):t;return qb(this._renderer,null,i,"register",[r]),new JF(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(v(io),v(se))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class JF extends class uP{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new eN(this._id,e,t||{},this._renderer)}}class eN{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 qb(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 qb(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const Kb="@.disabled";let tN=(()=>{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 Yb("",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 nN(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)(v(io),v(Nl),v(pe))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class Yb{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==Kb?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 nN extends Yb{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==Kb?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 iN(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 rN(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 sN=(()=>{class n extends Nl{constructor(t,i,r){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(v(se),v(Ch),v(Ph))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const Bl=new P("AnimationModuleType"),Qb=[{provide:lb,useClass:XF},{provide:Ph,useFactory:function oN(){return new DF}},{provide:Nl,useClass:sN},{provide:io,useFactory:function aN(n,e,t){return new tN(n,e,t)},deps:[ol,Nl,pe]}],Zb=[{provide:Ch,useFactory:()=>new ZF},{provide:Bl,useValue:"BrowserAnimations"},...Qb],lN=[{provide:Ch,useClass:Db},{provide:Bl,useValue:"NoopAnimations"},...Qb];let Xb=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?lN:Zb}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({providers:Zb,imports:[eh]}),n})();var Jb=mf(289);class cN{constructor(e,t,i,r,s){this.element=e,this.newWidth=t,this.newHeight=i,this.oldWidth=r,this.oldHeight=s}}let uN=(()=>{class n{constructor(t){this.element=t,this.resized=new lt}ngOnInit(){Jb.ResizeSensor&&(this.resizeSensor=new Jb.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 cN(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)(E(Qe))},n.\u0275dir=je({type:n,selectors:[["","resized",""]],outputs:{resized:"resized"}}),n})(),dN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[[]]}),n})(),ew=(()=>{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)(v(se))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class hN extends b{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 Ge;return this._value}next(e){super.next(this._value=e)}}function nw(n){return e=>e.lift(new bN(n))}class bN{constructor(e){this.total=e}call(e,t){return t.subscribe(new wN(e,this.total))}}class wN extends R{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}class CN{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new DN(e,this.compare,this.keySelector))}}class DN extends R{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))}}let SN=(()=>{class n{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),TN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({providers:[SN]}),n})();function Vl(n,e){return(n.getAttribute(e)||"").match(/\S+/g)||[]}const rw="cdk-describedby-message-container",sw="cdk-describedby-message",Hl="cdk-describedby-host";let xN=0;const Zn=new Map;let Xt=null,AN=(()=>{class n{constructor(t){this._document=t}describe(t,i,r){if(!this._canBeDescribed(t,i))return;const s=jh(i,r);"string"!=typeof i?(ow(i),Zn.set(s,{messageElement:i,referenceCount:0})):Zn.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(t,s)||this._addMessageReference(t,s)}removeDescription(t,i,r){if(!i||!this._isElementNode(t))return;const s=jh(i,r);if(this._isElementDescribedByMessage(t,s)&&this._removeMessageReference(t,s),"string"==typeof i){const o=Zn.get(s);o&&0===o.referenceCount&&this._deleteMessageElement(s)}Xt&&0===Xt.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll(`[${Hl}]`);for(let i=0;i<t.length;i++)this._removeCdkDescribedByReferenceIds(t[i]),t[i].removeAttribute(Hl);Xt&&this._deleteMessagesContainer(),Zn.clear()}_createMessageElement(t,i){const r=this._document.createElement("div");ow(r),r.textContent=t,i&&r.setAttribute("role",i),this._createMessagesContainer(),Xt.appendChild(r),Zn.set(jh(t,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(t){var i;const r=Zn.get(t);null===(i=null==r?void 0:r.messageElement)||void 0===i||i.remove(),Zn.delete(t)}_createMessagesContainer(){if(!Xt){const t=this._document.getElementById(rw);null==t||t.remove(),Xt=this._document.createElement("div"),Xt.id=rw,Xt.style.visibility="hidden",Xt.classList.add("cdk-visually-hidden"),this._document.body.appendChild(Xt)}}_deleteMessagesContainer(){Xt&&(Xt.remove(),Xt=null)}_removeCdkDescribedByReferenceIds(t){const i=Vl(t,"aria-describedby").filter(r=>0!=r.indexOf(sw));t.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(t,i){const r=Zn.get(i);(function MN(n,e,t){const i=Vl(n,e);i.some(r=>r.trim()==t.trim())||(i.push(t.trim()),n.setAttribute(e,i.join(" ")))})(t,"aria-describedby",r.messageElement.id),t.setAttribute(Hl,""),r.referenceCount++}_removeMessageReference(t,i){const r=Zn.get(i);r.referenceCount--,function IN(n,e,t){const r=Vl(n,e).filter(s=>s!=t.trim());r.length?n.setAttribute(e,r.join(" ")):n.removeAttribute(e)}(t,"aria-describedby",r.messageElement.id),t.removeAttribute(Hl)}_isElementDescribedByMessage(t,i){const r=Vl(t,"aria-describedby"),s=Zn.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(t,i){if(!this._isElementNode(t))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=t.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(t){return new(t||n)(v(se))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function jh(n,e){return"string"==typeof n?`${e||""}/${n}`:n}function ow(n){n.id||(n.id=`${sw}-${xN++}`)}function lw(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function cw(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const NN=new P("cdk-input-modality-detector-options"),LN={ignoreKeys:[18,17,224,91,16]},as=fl({passive:!0,capture:!0});let BN=(()=>{class n{constructor(t,i,r,s){this._platform=t,this._mostRecentTarget=null,this._modality=new hN(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=er(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(lw(o)?"keyboard":"mouse"),this._mostRecentTarget=er(o))},this._onTouchstart=o=>{cw(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=er(o))},this._options=Object.assign(Object.assign({},LN),s),this.modalityDetected=this._modality.pipe(nw(1)),this.modalityChanged=this.modalityDetected.pipe(function EN(n,e){return t=>t.lift(new CN(n,e))}()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,as),r.addEventListener("mousedown",this._onMousedown,as),r.addEventListener("touchstart",this._onTouchstart,as)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,as),document.removeEventListener("mousedown",this._onMousedown,as),document.removeEventListener("touchstart",this._onTouchstart,as))}}return n.\u0275fac=function(t){return new(t||n)(v(Fn),v(pe),v(se),v(NN,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const HN=new P("cdk-focus-monitor-default-options"),jl=fl({passive:!0,capture:!0});let dw=(()=>{class n{constructor(t,i,r,s,o){this._ngZone=t,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new b,this._rootNodeFocusAndBlurListener=a=>{const l=er(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(t,i=!1){const r=ns(t);if(!this._platform.isBrowser||1!==r.nodeType)return fn(null);const s=function ak(n){if(function ok(){if(null==oh){const n="undefined"!=typeof document?document.head:null;oh=!(!n||!n.createShadowRoot&&!n.attachShadow)}return oh}()){const e=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new b,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=ns(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const s=ns(t);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),s=er(t);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(t,i){this._ngZone.run(()=>t.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,jl),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,jl)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(pn(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,jl),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jl),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,s)=>{(s===t||r.checkChildren&&s.contains(t))&&i.push([s,r])}),i}}return n.\u0275fac=function(t){return new(t||n)(v(pe),v(Fn),v(BN),v(se,8),v(HN,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const hw="cdk-high-contrast-black-on-white",fw="cdk-high-contrast-white-on-black",zh="cdk-high-contrast-active";let pw=(()=>{class n{constructor(t,i){this._platform=t,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(zh),t.remove(hw),t.remove(fw),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(t.add(zh),t.add(hw)):2===i&&(t.add(zh),t.add(fw))}}}return n.\u0275fac=function(t){return new(t||n)(v(Fn),v(se))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jN=(()=>{class n{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(t){return new(t||n)(v(pw))},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[[sh,TN]]}),n})();const $N=new P("mat-sanity-checks",{providedIn:"root",factory:function zN(){return!0}});let Ai=(()=>{class n{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!ah()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(v(pw),v($N,8),v(se))},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[[Co],Co]}),n})();function UN(n){return class extends n{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=ll(e)}}}function mw(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const i=t||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function WN(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=ll(e)}}}class qN{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const _w={enterDuration:225,exitDuration:150},$h=fl({passive:!0}),yw=["mousedown","touchstart"],vw=["mouseup","mouseleave","touchend","touchcancel"];class YN{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=ns(i))}fadeInRipple(e,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},_w),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const o=i.radius||function ZN(n,e,t){const i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),a=e-r.left,l=t-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function QN(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new qN(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,r=Object.assign(Object.assign({},_w),e.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=ns(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(yw))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(vw),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=lw(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!cw(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,$h)})})}_removeTriggerEvents(){this._triggerElement&&(yw.forEach(e=>{this._triggerElement.removeEventListener(e,this,$h)}),this._pointerUpEventsRegistered&&vw.forEach(e=>{this._triggerElement.removeEventListener(e,this,$h)}))}}const XN=new P("mat-ripple-global-options");let bw=(()=>{class n{constructor(t,i,r,s,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new YN(this,i,t,r)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(E(Qe),E(pe),E(Fn),E(XN,8),E(Bl,8))},n.\u0275dir=je({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,i){2&t&&si("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),JN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[[Ai,sh],Ai]}),n})();const e1=["mat-button",""],t1=["*"],r1=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],s1=mw(UN(WN(class{constructor(n){this._elementRef=n}})));let o1=(()=>{class n extends s1{constructor(t,i,r){super(t),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of r1)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,i){t?this._focusMonitor.focusVia(this._getHostElement(),t,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(t){return new(t||n)(E(Qe),E(dw),E(Bl,8))},n.\u0275cmp=mi({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,i){if(1&t&&lo(bw,5),2&t){let r;ao(r=co())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,i){2&t&&(Tt("disabled",i.disabled||null),si("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Pr],attrs:e1,ngContentSelectors:t1,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,i){1&t&&(Sa(),be(0,"span",0),Ys(1),xe(),Ki(2,"span",1)(3,"span",2)),2&t&&($(2),si("mat-button-ripple-round",i.isRoundButton||i.isIconButton),j("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[bw],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),a1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[[JN,Ai],Ai]}),n})();function zl(n,e){return new J(t=>{const i=n.length;if(0===i)return void t.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=Zl(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>t.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&t.next(e?e.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),t.complete())}}))}})}function ui(){}function yn(n,e,t){return function(r){return r.lift(new c1(n,e,t))}}class c1{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new u1(e,this.nextOrObserver,this.error,this.complete))}}class u1 extends R{constructor(e,t,i,r){super(e),this._tapNext=ui,this._tapError=ui,this._tapComplete=ui,this._tapError=i||ui,this._tapComplete=r||ui,ut(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||ui,this._tapError=t.error||ui,this._tapComplete=t.complete||ui)}_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 ww(n){return function(t){const i=new d1(n),r=t.lift(i);return i.caught=r}}class d1{constructor(e){this.selector=e}call(e,t){return t.subscribe(new h1(e,this.selector,this.caught))}}class h1 extends vs{constructor(e,t,i){super(e),this.selector=t,this.caught=i}error(e){if(!this.isStopped){let t;try{t=this.selector(e,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new ys(this);this.add(i);const r=bs(t,i);r!==i&&this.add(r)}}}class p1{constructor(e){this.callback=e}call(e,t){return t.subscribe(new g1(e,this.callback))}}class g1 extends R{constructor(e,t){super(e),this.add(new N(t))}}class _1{}class Oi{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),s=r.toLowerCase(),o=t.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let i=e[t];const r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Oi?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Oi;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Oi?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":const s=e.value;if(s){let o=this.headers.get(t);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class y1{encodeKey(e){return Ew(e)}encodeValue(e){return Ew(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const b1=/%(\d[a-f0-9])/gi,w1={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Ew(n){return encodeURIComponent(n).replace(b1,(e,t)=>{var i;return null!==(i=w1[t])&&void 0!==i?i:e})}function Cw(n){return`${n}`}class Ri{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new y1,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function v1(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],l=t.get(o)||[];l.push(a),t.set(o,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const i=e.fromObject[t];this.map.set(t,Array.isArray(i)?i:[i])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(i=>{const r=e[i];Array.isArray(r)?r.forEach(s=>{t.push({param:i,value:s,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Ri({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(Cw(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let i=this.map.get(e.param)||[];const r=i.indexOf(Cw(e.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class E1{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function Dw(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function Sw(n){return"undefined"!=typeof Blob&&n instanceof Blob}function Tw(n){return"undefined"!=typeof FormData&&n instanceof FormData}class Io{constructor(e,t,i,r){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function C1(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Oi),this.context||(this.context=new E1),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+o}}else this.params=new Ri,this.urlWithParams=t}serializeBody(){return null===this.body?null:Dw(this.body)||Sw(this.body)||Tw(this.body)||function D1(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Ri?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Tw(this.body)?null:Sw(this.body)?this.body.type||null:Dw(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ri?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){var t;const i=e.method||this.method,r=e.url||this.url,s=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,l=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let c=e.headers||this.headers,u=e.params||this.params;const d=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((h,f)=>h.set(f,e.setHeaders[f]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new Io(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var ct=(()=>((ct=ct||{})[ct.Sent=0]="Sent",ct[ct.UploadProgress=1]="UploadProgress",ct[ct.ResponseHeader=2]="ResponseHeader",ct[ct.DownloadProgress=3]="DownloadProgress",ct[ct.Response=4]="Response",ct[ct.User=5]="User",ct))();class Uh extends class S1{constructor(e,t=200,i="OK"){this.headers=e.headers||new Oi,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(e={}){super(e),this.type=ct.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Uh({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function Wh(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Iw=(()=>{class n{constructor(t){this.handler=t}request(t,i,r={}){let s;if(t instanceof Io)s=t;else{let l,c;l=r.headers instanceof Oi?r.headers:new Oi(r.headers),r.params&&(c=r.params instanceof Ri?r.params:new Ri({fromObject:r.params})),s=new Io(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=fn(s).pipe(function m1(n,e){return Fo(n,e,1)}(l=>this.handler.handle(l)));if(t instanceof Io||"events"===r.observe)return o;const a=o.pipe(hl(l=>l instanceof Uh));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(O(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(O(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(O(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(O(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new Ri).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,Wh(r,i))}post(t,i,r={}){return this.request("POST",t,Wh(r,i))}put(t,i,r={}){return this.request("PUT",t,Wh(r,i))}}return n.\u0275fac=function(t){return new(t||n)(v(_1))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const M1=["*"];let $l;function xo(n){var e;return(null===(e=function I1(){if(void 0===$l&&($l=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&($l=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return $l}())||void 0===e?void 0:e.createHTML(n))||n}function xw(n){return Error(`Unable to find icon with the name "${n}"`)}function Aw(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Ow(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class or{constructor(e,t,i){this.url=e,this.svgText=t,this.options=i}}let Ul=(()=>{class n{constructor(t,i,r,s){this._httpClient=t,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(t,i,r){return this.addSvgIconInNamespace("",t,i,r)}addSvgIconLiteral(t,i,r){return this.addSvgIconLiteralInNamespace("",t,i,r)}addSvgIconInNamespace(t,i,r,s){return this._addSvgIconConfig(t,i,new or(r,null,s))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,r,s){const o=this._sanitizer.sanitize(ce.HTML,r);if(!o)throw Ow(r);const a=xo(o);return this._addSvgIconConfig(t,i,new or("",a,s))}addSvgIconSet(t,i){return this.addSvgIconSetInNamespace("",t,i)}addSvgIconSetLiteral(t,i){return this.addSvgIconSetLiteralInNamespace("",t,i)}addSvgIconSetInNamespace(t,i,r){return this._addSvgIconSetConfig(t,new or(i,null,r))}addSvgIconSetLiteralInNamespace(t,i,r){const s=this._sanitizer.sanitize(ce.HTML,i);if(!s)throw Ow(i);const o=xo(s);return this._addSvgIconSetConfig(t,new or("",o,r))}registerFontClassAlias(t,i=t){return this._fontCssClassesByAlias.set(t,i),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const i=this._sanitizer.sanitize(ce.RESOURCE_URL,t);if(!i)throw Aw(t);const r=this._cachedIconsByUrl.get(i);return r?fn(Wl(r)):this._loadSvgIconFromConfig(new or(t,null)).pipe(yn(s=>this._cachedIconsByUrl.set(i,s)),O(s=>Wl(s)))}getNamedSvgIcon(t,i=""){const r=Rw(i,t);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,t),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(t,o):sb(xw(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?fn(Wl(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(O(i=>Wl(i)))}_getSvgFromIconSetConfigs(t,i){const r=this._extractIconWithNameFromAnySet(t,i);return r?fn(r):function l1(...n){if(1===n.length){const e=n[0];if(Ve(e))return zl(e,null);if(Rt(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return zl(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return zl(n=1===n.length&&Ve(n[0])?n[0]:n,null).pipe(O(t=>e(...t)))}return zl(n,null)}(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(ww(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(ce.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),fn(null)})))).pipe(O(()=>{const o=this._extractIconWithNameFromAnySet(t,i);if(!o)throw xw(t);return o}))}_extractIconWithNameFromAnySet(t,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(t)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,t,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(yn(i=>t.svgText=i),O(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?fn(null):this._fetchIcon(t).pipe(yn(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,r){const s=t.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(xo("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(t){const i=this._document.createElement("DIV");i.innerHTML=t;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(t){const i=this._svgElementFromString(xo("<svg></svg>")),r=t.attributes;for(let s=0;s<r.length;s++){const{name:o,value:a}=r[s];"id"!==o&&i.setAttribute(o,a)}for(let s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&i.appendChild(t.childNodes[s].cloneNode(!0));return i}_setSvgAttributes(t,i){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),i&&i.viewBox&&t.setAttribute("viewBox",i.viewBox),t}_fetchIcon(t){var i;const{url:r,options:s}=t,o=null!==(i=null==s?void 0:s.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function x1(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==r)throw Error(`Cannot fetch icon from URL "${r}".`);const a=this._sanitizer.sanitize(ce.RESOURCE_URL,r);if(!a)throw Aw(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(O(u=>xo(u)),function f1(n){return e=>e.lift(new p1(n))}(()=>this._inProgressUrlFetches.delete(a)),vf());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(t,i,r){return this._svgIconConfigs.set(Rw(t,i),r),this}_addSvgIconSetConfig(t,i){const r=this._iconSetConfigs.get(t);return r?r.push(i):this._iconSetConfigs.set(t,[i]),this}_svgElementFromConfig(t){if(!t.svgElement){const i=this._svgElementFromString(t.svgText);this._setSvgAttributes(i,t.options),t.svgElement=i}return t.svgElement}_getIconConfigFromResolvers(t,i){for(let r=0;r<this._resolvers.length;r++){const s=this._resolvers[r](i,t);if(s)return O1(s)?new or(s.url,null,s.options):new or(s,null)}}}return n.\u0275fac=function(t){return new(t||n)(v(Iw,8),v(al),v(se,8),v(wi))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Wl(n){return n.cloneNode(!0)}function Rw(n,e){return n+":"+e}function O1(n){return!(!n.url||!n.options)}const R1=mw(class{constructor(n){this._elementRef=n}}),k1=new P("mat-icon-location",{providedIn:"root",factory:function P1(){const n=la(se),e=n?n.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),kw=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],F1=kw.map(n=>`[${n}]`).join(", "),N1=/^url\(['"]?#(.*?)['"]?\)$/;let L1=(()=>{class n extends R1{constructor(t,i,r,s,o){super(t),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=N.EMPTY,r||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=ll(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const i=this._cleanupFontValue(t);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const i=this._cleanupFontValue(t);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const i=t.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const i=t.querySelectorAll("style");for(let s=0;s<i.length;s++)i[s].textContent+=" ";const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let i=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=t.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),i&&t.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${t}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(t){const i=t.querySelectorAll(F1),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<i.length;s++)kw.forEach(o=>{const a=i[s],l=a.getAttribute(o),c=l?l.match(N1):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[i,r]=this._splitIconName(t);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(rs(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(t){return new(t||n)(E(Qe),E(Ul),function ra(n){return function jC(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const s=t[r];if(Qf(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(s===e)return t[r+1];r+=2}}}return null}(qe(),n)}("aria-hidden"),E(k1),E(wi))},n.\u0275cmp=mi({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,i){2&t&&(Tt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),si("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Pr],ngContentSelectors:M1,decls:1,vars:0,template:function(t,i){1&t&&(Sa(),Ys(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),B1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[[Ai],Ai]}),n})();class V1 extends R{notifyNext(e,t,i,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class H1 extends R{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 j1(n,e,t,i,r=new H1(n,t,i)){if(!r.closed)return e instanceof J?e.subscribe(r):Yl(e)(r)}const Pw={};class $1{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new U1(e,this.resultSelector))}}class U1 extends V1{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Pw),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(j1(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]===Pw?--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 Gh(...n){return function W1(){return _f(1)}()(fn(...n))}function qh(n,e=ih){return t=>t.lift(new G1(n,e))}class G1{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new q1(e,this.dueTime,this.scheduler))}}class q1 extends R{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(K1,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function K1(n){n.debouncedNext()}function Y1(...n){const e=n[n.length-1];return V(e)?(n.pop(),t=>Gh(n,t,e)):t=>Gh(n,t)}const Fw=new Set;let ls,Q1=(()=>{class n{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):X1}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function Z1(n){if(!Fw.has(n))try{ls||(ls=document.createElement("style"),ls.setAttribute("type","text/css"),document.head.appendChild(ls)),ls.sheet&&(ls.sheet.insertRule(`@media ${n} {body{ }}`,0),Fw.add(n))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return n.\u0275fac=function(t){return new(t||n)(v(Fn))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function X1(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let J1=(()=>{class n{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new b}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Nw(cl(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let s=function z1(...n){let e,t;return V(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Ve(n[0])&&(n=n[0]),Xl(n,t).lift(new $1(e))}(Nw(cl(t)).map(o=>this._registerQuery(o).observable));return s=Gh(s.pipe(rs(1)),s.pipe(nw(1),qh(0))),s.pipe(O(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),s={observable:new J(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Y1(i),O(({matches:o})=>({query:t,matches:o})),pn(this._destroySubject)),mql:i};return this._queries.set(t,s),s}}return n.\u0275fac=function(t){return new(t||n)(v(Q1),v(pe))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Nw(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}const tL={tooltipState:dP("state",[db("initial, void, hidden",Mi({opacity:0,transform:"scale(0)"})),db("visible",Mi({transform:"scale(1)"})),hb("* => visible",cb("200ms cubic-bezier(0, 0, 0.2, 1)",hP([Mi({opacity:0,transform:"scale(0)",offset:0}),Mi({opacity:.5,transform:"scale(0.99)",offset:.5}),Mi({opacity:1,transform:"scale(1)",offset:1})]))),hb("* => hidden",cb("100ms cubic-bezier(0, 0, 0.2, 1)",Mi({opacity:0})))])},Lw="tooltip-panel",Bw=fl({passive:!0}),Vw=new P("mat-tooltip-scroll-strategy"),sL={provide:Vw,deps:[ml],useFactory:function rL(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},oL=new P("mat-tooltip-default-options",{providedIn:"root",factory:function aL(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let lL=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h,f){this._overlay=t,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=s,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new b,this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(pn(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(t){var i;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=ll(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=Bv(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=Bv(t)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(pn(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{t.removeEventListener(i,r,Bw)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new Yv(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(pn(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return i.positionChanges.pipe(pn(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${Lw}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(pn(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(pn(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(pn(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!function vN(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const i=t.getConfig().positionStrategy,r=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),s.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),s.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={originX:"end",originY:"center"});const{x:s,y:o}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:s,originY:o}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={overlayX:"start",overlayY:"center"});const{x:s,y:o}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:s,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(rs(1),pn(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){const{overlayY:i,originX:r,originY:s}=t;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===s?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${Lw}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,Bw)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(t.clientX,t.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const i=this._elementRef.nativeElement,r=i.style;("on"===t||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===t||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(t){!function Sm(){throw new Error("invalid")}()},n.\u0275dir=je({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),cL=(()=>{class n extends lL{constructor(t,i,r,s,o,a,l,c,u,d,h,f){super(t,i,r,s,o,a,l,c,u,d,h,f),this._tooltipComponent=dL}}return n.\u0275fac=function(t){return new(t||n)(E(ml),E(Qe),E(ch),E(Yt),E(pe),E(Fn),E(AN),E(dw),E(Vw),E(lh,8),E(oL,8),E(se))},n.\u0275dir=je({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Pr]}),n})(),uL=(()=>{class n{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new b}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const i=t.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(t){return new(t||n)(E(ts))},n.\u0275dir=je({type:n}),n})(),dL=(()=>{class n extends uL{constructor(t,i){super(t),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(t){return new(t||n)(E(ts),E(J1))},n.\u0275cmp=mi({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,i){2&t&&Qs("zoom","visible"===i._visibility?1:null)},features:[Pr],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,i){if(1&t&&(be(0,"div",0),mt("@state.start",function(){return i._animationStart()})("@state.done",function(s){return i._animationDone(s)}),function ny(n,e){const t=oe();let i;const r=n+20;t.firstCreatePass?(i=function VI(n,e){if(e)for(let t=e.length-1;t>=0;t--){const i=e[t];if(n===i.name)return i}}(e,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(r,i.onDestroy)):i=t.data[r];const s=i.factory||(i.factory=ji(i.type)),o=pi(E);try{const a=ea(!1),l=s();return ea(a),function iT(n,e,t,i){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=i}(t,w(),r,l),l}finally{pi(o)}}(1,"async"),Xs(2),xe()),2&t){let r;si("mat-tooltip-handset",null==(r=iy(1,5,i._isHandset))?null:r.matches),j("ngClass",i.tooltipClass)("@state",i._visibility),$(2),qr(i.message)}},directives:[Ja],pipes:[Ev],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[tL.tooltipState]},changeDetection:0}),n})(),hL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({providers:[sL],imports:[[jN,Kd,jk,Ai],Ai,uh]}),n})();const fL=new J(ui);function Hw(n){return Boolean(n.parentElement&&"picture"===n.parentElement.nodeName.toLowerCase())}function Ao(n){return"img"===n.nodeName.toLowerCase()}function jw(n,e,t){return Ao(n)?t&&"srcset"in n?n.srcset=e:n.src=e:n.style.backgroundImage=`url('${e}')`,n}function Kh(n){return e=>{const t=e.parentElement.getElementsByTagName("source");for(let i=0;i<t.length;i++){const r=t[i].getAttribute(n);r&&("srcset"in t[i]?t[i].srcset=r:t[i].src=r)}}}const mL=Kh("defaultImage"),zw=Kh("lazyLoad"),_L=Kh("errorImage");function Yh(n){return(e,t,i)=>{Ao(e)&&Hw(e)&&n(e),t&&jw(e,t,i)}}const yL=Yh(mL),vL=Yh(zw),bL=Yh(_L);function $w(n,e){n.className=n.className.replace(e,"")}function Qh(n,e){n.className.includes(e)||(n.className+=` ${e}`)}class Uw extends class CL extends class wL{constructor(){this.navigator=function gL(){return"undefined"!=typeof window?window.navigator:void 0}()}setPlatformId(e){this.platformId=e}onDestroy(e){}onAttributeChange(e){}}{setup(e){yL(e.element,e.defaultImagePath,e.useSrcset),e.imagePath&&Qh(e.element,"ng-lazyloading"),function EL(n,e){return n.className&&n.className.includes(e)}(e.element,"ng-lazyloaded")&&$w(e.element,"ng-lazyloaded")}finally(e){Qh(e.element,"ng-lazyloaded"),$w(e.element,"ng-lazyloading")}loadImage(e){if(this.skipLazyLoading(e))return[e.imagePath];const{element:t,useSrcset:i,imagePath:r,decode:s}=e;let o;return Ao(t)&&Hw(t)?(o=t.parentNode.cloneNode(!0).getElementsByTagName("img")[0],zw(o),jw(o,r,i)):(o=new Image,Ao(t)&&t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),Ao(t)&&t.sizes&&(o.sizes=t.sizes),i&&"srcset"in o?o.srcset=r:o.src=r),s&&o.decode?o.decode().then(()=>r):new Promise((a,l)=>{o.onload=()=>a(r),o.onerror=()=>l(null)})}setErrorImage(e,t){const{element:i,useSrcset:r,errorImagePath:s}=t;bL(i,s,r),Qh(i,"ng-failed-lazyloaded")}setLoadedImage(e,t){const{element:i,useSrcset:r}=t;vL(i,e,r)}isDisabled(){return function aO(n){return"server"===n}(this.platformId)&&!this.isBot()}skipLazyLoading(e){return this.isBot(e)}isBot(e){var t;return!!(null===(t=this.navigator)||void 0===t?void 0:t.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(this.navigator.userAgent)}}{constructor(){super(...arguments),this.observers=new WeakMap,this.intersectionSubject=new b,this.uniqKey={}}getObservable(e){if(this.skipLazyLoading(e))return fn({isIntersecting:!0});if(e.customObservable)return e.customObservable;const t=e.scrollContainer||this.uniqKey,i={root:e.scrollContainer||null};e.offset&&(i.rootMargin=`${e.offset}px`);let r=this.observers.get(t);return r||(r=new IntersectionObserver(s=>this.loadingCallback(s),i),this.observers.set(t,r)),r.observe(e.element),J.create(s=>{const o=this.intersectionSubject.pipe(hl(a=>a.target===e.element)).subscribe(s);return()=>{o.unsubscribe(),r.unobserve(e.element)}})}isVisible(e){return e.isIntersecting}loadingCallback(e){e.forEach(t=>this.intersectionSubject.next(t))}}const Zh=new P("LazyLoadImageHooks");let SL=(()=>{class n{constructor(t,i,r,s){this.onStateChange=new lt,this.elementRef=t,this.ngZone=i,this.propertyChanges$=new ob,this.hooks=s,this.hooks.setPlatformId(r),this.uid=Math.random().toString(36).substr(2,9)}ngOnChanges(){!0===this.debug&&!this.debugSubscription&&(this.debugSubscription=this.onStateChange.subscribe(t=>console.log(t))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange,id:this.uid})}ngAfterContentInit(){if(this.hooks.isDisabled())return null;this.ngZone.runOutsideAngular(()=>{this.loadSubscription=this.propertyChanges$.pipe(yn(t=>this.hooks.onAttributeChange(t)),yn(t=>t.onStateChange.emit({reason:"setup"})),yn(t=>this.hooks.setup(t)),ph(t=>t.imagePath?this.hooks.getObservable(t).pipe(function DL(n,e){return t=>t.pipe(yn(i=>e.onStateChange.emit({reason:"observer-emit",data:i})),hl(i=>n.isVisible(i,e)),rs(1),yn(()=>e.onStateChange.emit({reason:"start-loading"})),Fo(()=>n.loadImage(e)),yn(()=>e.onStateChange.emit({reason:"mount-image"})),yn(i=>n.setLoadedImage(i,e)),yn(()=>e.onStateChange.emit({reason:"loading-succeeded"})),O(()=>!0),ww(i=>(e.onStateChange.emit({reason:"loading-failed",data:i}),n.setErrorImage(i,e),fn(!1))),yn(()=>{e.onStateChange.emit({reason:"finally"}),n.finally(e)}))}(this.hooks,t)):function pL(){return fL}())).subscribe({next:()=>null})})}ngOnDestroy(){var t,i;this.propertyChanges$.pipe(rs(1)).subscribe({next:r=>this.hooks.onDestroy(r)}).unsubscribe(),null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(i=this.debugSubscription)||void 0===i||i.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(E(Qe),E(pe),E(Ba),E(Zh))},n.\u0275dir=je({type:n,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange"},features:[zi]}),n})(),TL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({providers:[{provide:Zh,useClass:Uw}]}),n})();class vn{constructor(e,t,i,r){this.left=e,this.top=t,this.right=i,this.bottom=r}static fromElement(e){const{left:t,top:i,right:r,bottom:s}=e.getBoundingClientRect();return 0===t&&0===i&&0===r&&0===s?vn.empty:new vn(t,i,r,s)}static fromWindow(e){return new vn(0,0,e.innerWidth,e.innerHeight)}inflate(e){this.left-=e,this.top-=e,this.right+=e,this.bottom+=e}intersectsWith(e){return e.left<this.right&&this.left<e.right&&e.top<this.bottom&&this.top<e.bottom}getIntersectionWith(e){const t=Math.max(this.left,e.left),i=Math.max(this.top,e.top),r=Math.min(this.right,e.right),s=Math.min(this.bottom,e.bottom);return r>=t&&s>=i?new vn(t,i,r,s):vn.empty}}vn.empty=new vn(0,0,0,0);var Oo="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,ML=function(){for(var n=["Edge","Trident","Firefox"],e=0;e<n.length;e+=1)if(Oo&&navigator.userAgent.indexOf(n[e])>=0)return 1;return 0}(),OL=Oo&&window.Promise?function IL(n){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,n()}))}}:function xL(n){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,n()},ML))}};function Ww(n){return n&&"[object Function]"==={}.toString.call(n)}function ar(n,e){if(1!==n.nodeType)return[];var i=n.ownerDocument.defaultView.getComputedStyle(n,null);return e?i[e]:i}function Xh(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function Ro(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var e=ar(n);return/(auto|scroll|overlay)/.test(e.overflow+e.overflowY+e.overflowX)?n:Ro(Xh(n))}function Gw(n){return n&&n.referenceNode?n.referenceNode:n}var qw=Oo&&!(!window.MSInputMethodContext||!document.documentMode),Kw=Oo&&/MSIE 10/.test(navigator.userAgent);function us(n){return 11===n?qw:10===n?Kw:qw||Kw}function ds(n){if(!n)return document.documentElement;for(var e=us(10)?document.body:null,t=n.offsetParent||null;t===e&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;var i=t&&t.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===ar(t,"position")?ds(t):t:n?n.ownerDocument.documentElement:document.documentElement}function Jh(n){return null!==n.parentNode?Jh(n.parentNode):n}function Gl(n,e){if(!(n&&n.nodeType&&e&&e.nodeType))return document.documentElement;var t=n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=t?n:e,r=t?e:n,s=document.createRange();s.setStart(i,0),s.setEnd(r,0);var o=s.commonAncestorContainer;if(n!==o&&e!==o||i.contains(r))return function RL(n){var e=n.nodeName;return"BODY"!==e&&("HTML"===e||ds(n.firstElementChild)===n)}(o)?o:ds(o);var a=Jh(n);return a.host?Gl(a.host,e):Gl(n,Jh(e).host)}function hs(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",t="top"===e?"scrollTop":"scrollLeft",i=n.nodeName;if("BODY"===i||"HTML"===i){var r=n.ownerDocument.documentElement,s=n.ownerDocument.scrollingElement||r;return s[t]}return n[t]}function kL(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=hs(e,"top"),r=hs(e,"left"),s=t?-1:1;return n.top+=i*s,n.bottom+=i*s,n.left+=r*s,n.right+=r*s,n}function Yw(n,e){var t="x"===e?"Left":"Top",i="Left"===t?"Right":"Bottom";return parseFloat(n["border"+t+"Width"])+parseFloat(n["border"+i+"Width"])}function Qw(n,e,t,i){return Math.max(e["offset"+n],e["scroll"+n],t["client"+n],t["offset"+n],t["scroll"+n],us(10)?parseInt(t["offset"+n])+parseInt(i["margin"+("Height"===n?"Top":"Left")])+parseInt(i["margin"+("Height"===n?"Bottom":"Right")]):0)}function Zw(n){var e=n.body,t=n.documentElement,i=us(10)&&getComputedStyle(t);return{height:Qw("Height",e,t,i),width:Qw("Width",e,t,i)}}var PL=function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")},FL=function(){function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),fs=function(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n},bn=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n};function ki(n){return bn({},n,{right:n.left+n.width,bottom:n.top+n.height})}function ef(n){var e={};try{if(us(10)){e=n.getBoundingClientRect();var t=hs(n,"top"),i=hs(n,"left");e.top+=t,e.left+=i,e.bottom+=t,e.right+=i}else e=n.getBoundingClientRect()}catch(d){}var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===n.nodeName?Zw(n.ownerDocument):{},l=n.offsetWidth-(s.width||n.clientWidth||r.width),c=n.offsetHeight-(s.height||n.clientHeight||r.height);if(l||c){var u=ar(n);l-=Yw(u,"x"),c-=Yw(u,"y"),r.width-=l,r.height-=c}return ki(r)}function tf(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=us(10),r="HTML"===e.nodeName,s=ef(n),o=ef(e),a=Ro(n),l=ar(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);t&&r&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=ki({top:s.top-o.top-c,left:s.left-o.left-u,width:s.width,height:s.height});if(d.marginTop=0,d.marginLeft=0,!i&&r){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-h,d.bottom-=c-h,d.left-=u-f,d.right-=u-f,d.marginTop=h,d.marginLeft=f}return(i&&!t?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(d=kL(d,e)),d}function NL(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.ownerDocument.documentElement,i=tf(n,t),r=Math.max(t.clientWidth,window.innerWidth||0),s=Math.max(t.clientHeight,window.innerHeight||0),o=e?0:hs(t),a=e?0:hs(t,"left"),l={top:o-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:r,height:s};return ki(l)}function Xw(n){var e=n.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===ar(n,"position"))return!0;var t=Xh(n);return!!t&&Xw(t)}function Jw(n){if(!n||!n.parentElement||us())return document.documentElement;for(var e=n.parentElement;e&&"none"===ar(e,"transform");)e=e.parentElement;return e||document.documentElement}function nf(n,e,t,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},o=r?Jw(n):Gl(n,Gw(e));if("viewport"===i)s=NL(o,r);else{var a=void 0;"scrollParent"===i?"BODY"===(a=Ro(Xh(e))).nodeName&&(a=n.ownerDocument.documentElement):a="window"===i?n.ownerDocument.documentElement:i;var l=tf(a,o,r);if("HTML"!==a.nodeName||Xw(o))s=l;else{var c=Zw(n.ownerDocument),u=c.height,d=c.width;s.top+=l.top-l.marginTop,s.bottom=u+l.top,s.left+=l.left-l.marginLeft,s.right=d+l.left}}var h="number"==typeof(t=t||0);return s.left+=h?t:t.left||0,s.top+=h?t:t.top||0,s.right-=h?t:t.right||0,s.bottom-=h?t:t.bottom||0,s}function LL(n){return n.width*n.height}function eE(n,e,t,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===n.indexOf("auto"))return n;var o=nf(t,i,s,r),a={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},l=Object.keys(a).map(function(h){return bn({key:h},a[h],{area:LL(a[h])})}).sort(function(h,f){return f.area-h.area}),c=l.filter(function(h){return h.width>=t.clientWidth&&h.height>=t.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=n.split("-")[1];return u+(d?"-"+d:"")}function tE(n,e,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=i?Jw(e):Gl(e,Gw(t));return tf(t,r,i)}function nE(n){var t=n.ownerDocument.defaultView.getComputedStyle(n),i=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function ql(n){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(t){return e[t]})}function iE(n,e,t){t=t.split("-")[0];var i=nE(n),r={width:i.width,height:i.height},s=-1!==["right","left"].indexOf(t),o=s?"top":"left",a=s?"left":"top",l=s?"height":"width",c=s?"width":"height";return r[o]=e[o]+e[l]/2-i[l]/2,r[a]=t===a?e[a]-i[c]:e[ql(a)],r}function ko(n,e){return Array.prototype.find?n.find(e):n.filter(e)[0]}function rE(n,e,t){var i=void 0===t?n:n.slice(0,function BL(n,e,t){if(Array.prototype.findIndex)return n.findIndex(function(r){return r[e]===t});var i=ko(n,function(r){return r[e]===t});return n.indexOf(i)}(n,"name",t));return i.forEach(function(r){r.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=r.function||r.fn;r.enabled&&Ww(s)&&(e.offsets.popper=ki(e.offsets.popper),e.offsets.reference=ki(e.offsets.reference),e=s(e,r))}),e}function VL(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=tE(this.state,this.popper,this.reference,this.options.positionFixed),n.placement=eE(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),n.originalPlacement=n.placement,n.positionFixed=this.options.positionFixed,n.offsets.popper=iE(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",n=rE(this.modifiers,n),this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function sE(n,e){return n.some(function(t){return t.enabled&&t.name===e})}function rf(n){for(var e=[!1,"ms","Webkit","Moz","O"],t=n.charAt(0).toUpperCase()+n.slice(1),i=0;i<e.length;i++){var r=e[i],s=r?""+r+t:n;if(void 0!==document.body.style[s])return s}return null}function HL(){return this.state.isDestroyed=!0,sE(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[rf("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function oE(n){var e=n.ownerDocument;return e?e.defaultView:window}function aE(n,e,t,i){var r="BODY"===n.nodeName,s=r?n.ownerDocument.defaultView:n;s.addEventListener(e,t,{passive:!0}),r||aE(Ro(s.parentNode),e,t,i),i.push(s)}function jL(n,e,t,i){t.updateBound=i,oE(n).addEventListener("resize",t.updateBound,{passive:!0});var r=Ro(n);return aE(r,"scroll",t.updateBound,t.scrollParents),t.scrollElement=r,t.eventsEnabled=!0,t}function zL(){this.state.eventsEnabled||(this.state=jL(this.reference,0,this.state,this.scheduleUpdate))}function UL(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function $L(n,e){return oE(n).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}(this.reference,this.state))}function sf(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function af(n,e){Object.keys(e).forEach(function(t){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&sf(e[t])&&(i="px"),n.style[t]=e[t]+i})}var YL=Oo&&/Firefox/i.test(navigator.userAgent);function lE(n,e,t){var i=ko(n,function(a){return a.name===e}),r=!!i&&n.some(function(a){return a.name===t&&a.enabled&&a.order<i.order});if(!r){var s="`"+e+"`";console.warn("`"+t+"` modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return r}var cE=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],lf=cE.slice(3);function uE(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=lf.indexOf(n),i=lf.slice(t+1).concat(lf.slice(0,t));return e?i.reverse():i}var lB={shift:{order:100,enabled:!0,fn:function sB(n){var e=n.placement,t=e.split("-")[0],i=e.split("-")[1];if(i){var r=n.offsets,s=r.reference,o=r.popper,a=-1!==["bottom","top"].indexOf(t),l=a?"left":"top",c=a?"width":"height",u={start:fs({},l,s[l]),end:fs({},l,s[l]+s[c]-o[c])};n.offsets.popper=bn({},o,u[i])}return n}},offset:{order:200,enabled:!0,fn:function iB(n,e){var l,t=e.offset,r=n.offsets,s=r.popper,o=r.reference,a=n.placement.split("-")[0];return l=sf(+t)?[+t,0]:function nB(n,e,t,i){var r=[0,0],s=-1!==["right","left"].indexOf(i),o=n.split(/(\+|\-)/).map(function(u){return u.trim()}),a=o.indexOf(ko(o,function(u){return-1!==u.search(/,|\s/)}));o[a]&&-1===o[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[o.slice(0,a).concat([o[a].split(l)[0]]),[o[a].split(l)[1]].concat(o.slice(a+1))]:[o];return c=c.map(function(u,d){var h=(1===d?!s:s)?"height":"width",f=!1;return u.reduce(function(p,g){return""===p[p.length-1]&&-1!==["+","-"].indexOf(g)?(p[p.length-1]=g,f=!0,p):f?(p[p.length-1]+=g,f=!1,p):p.concat(g)},[]).map(function(p){return function tB(n,e,t,i){var r=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+r[1],o=r[2];return s?0===o.indexOf("%")?ki("%p"===o?t:i)[e]/100*s:"vh"===o||"vw"===o?("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s:s:n}(p,h,e,t)})}),c.forEach(function(u,d){u.forEach(function(h,f){sf(h)&&(r[d]+=h*("-"===u[f-1]?-1:1))})}),r}(t,s,o,a),"left"===a?(s.top+=l[0],s.left-=l[1]):"right"===a?(s.top+=l[0],s.left+=l[1]):"top"===a?(s.left+=l[0],s.top-=l[1]):"bottom"===a&&(s.left+=l[0],s.top+=l[1]),n.popper=s,n},offset:0},preventOverflow:{order:300,enabled:!0,fn:function rB(n,e){var t=e.boundariesElement||ds(n.instance.popper);n.instance.reference===t&&(t=ds(t));var i=rf("transform"),r=n.instance.popper.style,s=r.top,o=r.left,a=r[i];r.top="",r.left="",r[i]="";var l=nf(n.instance.popper,n.instance.reference,e.padding,t,n.positionFixed);r.top=s,r.left=o,r[i]=a,e.boundaries=l;var u=n.offsets.popper,d={primary:function(f){var p=u[f];return u[f]<l[f]&&!e.escapeWithReference&&(p=Math.max(u[f],l[f])),fs({},f,p)},secondary:function(f){var p="right"===f?"left":"top",g=u[p];return u[f]>l[f]&&!e.escapeWithReference&&(g=Math.min(u[p],l[f]-("right"===f?u.width:u.height))),fs({},p,g)}};return e.priority.forEach(function(h){var f=-1!==["left","top"].indexOf(h)?"primary":"secondary";u=bn({},u,d[f](h))}),n.offsets.popper=u,n},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function eB(n){var e=n.offsets,t=e.popper,i=e.reference,r=n.placement.split("-")[0],s=Math.floor,o=-1!==["top","bottom"].indexOf(r),a=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return t[a]<s(i[l])&&(n.offsets.popper[l]=s(i[l])-t[c]),t[l]>s(i[a])&&(n.offsets.popper[l]=s(i[a])),n}},arrow:{order:500,enabled:!0,fn:function ZL(n,e){var t;if(!lE(n.instance.modifiers,"arrow","keepTogether"))return n;var i=e.element;if("string"==typeof i){if(!(i=n.instance.popper.querySelector(i)))return n}else if(!n.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var r=n.placement.split("-")[0],s=n.offsets,o=s.popper,a=s.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=nE(i)[c];a[f]-p<o[d]&&(n.offsets.popper[d]-=o[d]-(a[f]-p)),a[d]+p>o[f]&&(n.offsets.popper[d]+=a[d]+p-o[f]),n.offsets.popper=ki(n.offsets.popper);var g=a[d]+a[c]/2-p/2,_=ar(n.instance.popper),y=parseFloat(_["margin"+u]),m=parseFloat(_["border"+u+"Width"]),C=g-n.offsets.popper[d]-y-m;return C=Math.max(Math.min(o[c]-p,C),0),n.arrowElement=i,n.offsets.arrow=(fs(t={},d,Math.round(C)),fs(t,h,""),t),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function JL(n,e){if(sE(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var t=nf(n.instance.popper,n.instance.reference,e.padding,e.boundariesElement,n.positionFixed),i=n.placement.split("-")[0],r=ql(i),s=n.placement.split("-")[1]||"",o=[];switch(e.behavior){case"flip":o=[i,r];break;case"clockwise":o=uE(i);break;case"counterclockwise":o=uE(i,!0);break;default:o=e.behavior}return o.forEach(function(a,l){if(i!==a||o.length===l+1)return n;i=n.placement.split("-")[0],r=ql(i);var c=n.offsets.popper,u=n.offsets.reference,d=Math.floor,h="left"===i&&d(c.right)>d(u.left)||"right"===i&&d(c.left)<d(u.right)||"top"===i&&d(c.bottom)>d(u.top)||"bottom"===i&&d(c.top)<d(u.bottom),f=d(c.left)<d(t.left),p=d(c.right)>d(t.right),g=d(c.top)<d(t.top),_=d(c.bottom)>d(t.bottom),y="left"===i&&f||"right"===i&&p||"top"===i&&g||"bottom"===i&&_,m=-1!==["top","bottom"].indexOf(i),K=!!e.flipVariations&&(m&&"start"===s&&f||m&&"end"===s&&p||!m&&"start"===s&&g||!m&&"end"===s&&_)||!!e.flipVariationsByContent&&(m&&"start"===s&&p||m&&"end"===s&&f||!m&&"start"===s&&_||!m&&"end"===s&&g);(h||y||K)&&(n.flipped=!0,(h||y)&&(i=o[l+1]),K&&(s=function XL(n){return"end"===n?"start":"start"===n?"end":n}(s)),n.placement=i+(s?"-"+s:""),n.offsets.popper=bn({},n.offsets.popper,iE(n.instance.popper,n.offsets.reference,n.placement)),n=rE(n.instance.modifiers,n,"flip"))}),n},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function aB(n){var e=n.placement,t=e.split("-")[0],i=n.offsets,r=i.popper,s=i.reference,o=-1!==["left","right"].indexOf(t),a=-1===["top","left"].indexOf(t);return r[o?"left":"top"]=s[t]-(a?r[o?"width":"height"]:0),n.placement=ql(e),n.offsets.popper=ki(r),n}},hide:{order:800,enabled:!0,fn:function oB(n){if(!lE(n.instance.modifiers,"hide","preventOverflow"))return n;var e=n.offsets.reference,t=ko(n.instance.modifiers,function(i){return"preventOverflow"===i.name}).boundaries;if(e.bottom<t.top||e.left>t.right||e.top>t.bottom||e.right<t.left){if(!0===n.hide)return n;n.hide=!0,n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1,n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function QL(n,e){var t=e.x,i=e.y,r=n.offsets.popper,s=ko(n.instance.modifiers,function(C){return"applyStyle"===C.name}).gpuAcceleration;void 0!==s&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var p,g,o=void 0!==s?s:e.gpuAcceleration,a=ds(n.instance.popper),l=ef(a),c={position:r.position},u=function KL(n,e){var t=n.offsets,i=t.popper,s=Math.round,o=Math.floor,a=function(y){return y},l=s(t.reference.width),c=s(i.width),u=-1!==["left","right"].indexOf(n.placement),d=-1!==n.placement.indexOf("-"),p=e?u||d||l%2==c%2?s:o:a,g=e?s:a;return{left:p(l%2==1&&c%2==1&&!d&&e?i.left-1:i.left),top:g(i.top),bottom:g(i.bottom),right:p(i.right)}}(n,window.devicePixelRatio<2||!YL),d="bottom"===t?"top":"bottom",h="right"===i?"left":"right",f=rf("transform");if(g="bottom"===d?"HTML"===a.nodeName?-a.clientHeight+u.bottom:-l.height+u.bottom:u.top,p="right"===h?"HTML"===a.nodeName?-a.clientWidth+u.right:-l.width+u.right:u.left,o&&f)c[f]="translate3d("+p+"px, "+g+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var y="right"===h?-1:1;c[d]=g*("bottom"===d?-1:1),c[h]=p*y,c.willChange=d+", "+h}return n.attributes=bn({},{"x-placement":n.placement},n.attributes),n.styles=bn({},c,n.styles),n.arrowStyles=bn({},n.offsets.arrow,n.arrowStyles),n},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function GL(n){return af(n.instance.popper,n.styles),function WL(n,e){Object.keys(e).forEach(function(t){!1!==e[t]?n.setAttribute(t,e[t]):n.removeAttribute(t)})}(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&af(n.arrowElement,n.arrowStyles),n},onLoad:function qL(n,e,t,i,r){var s=tE(r,e,n,t.positionFixed),o=eE(t.placement,s,e,n,t.modifiers.flip.boundariesElement,t.modifiers.flip.padding);return e.setAttribute("x-placement",o),af(e,{position:t.positionFixed?"fixed":"absolute"}),t},gpuAcceleration:void 0}},cB={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:lB},Kl=function(){function n(e,t){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};PL(this,n),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=OL(this.update.bind(this)),this.options=bn({},n.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(bn({},n.Defaults.modifiers,r.modifiers)).forEach(function(o){i.options.modifiers[o]=bn({},n.Defaults.modifiers[o]||{},r.modifiers?r.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return bn({name:o},i.options.modifiers[o])}).sort(function(o,a){return o.order-a.order}),this.modifiers.forEach(function(o){o.enabled&&Ww(o.onLoad)&&o.onLoad(i.reference,i.popper,i.options,o,i.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return FL(n,[{key:"update",value:function(){return VL.call(this)}},{key:"destroy",value:function(){return HL.call(this)}},{key:"enableEventListeners",value:function(){return zL.call(this)}},{key:"disableEventListeners",value:function(){return UL.call(this)}}]),n}();Kl.Utils=("undefined"!=typeof window?window:global).PopperUtils,Kl.placements=cE,Kl.Defaults=cB;const uB=Kl,dB=["popperViewRef"];function hB(n,e){1&n&&(be(0,"div",5),Ys(1),xe()),2&n&&j("innerHTML",ie().text,au)}function fB(n,e){1&n&&(be(0,"div",6),Ys(1,1),xe())}const dE=["*","*"];let lr=(()=>{class n{}return n.CLICK="click",n.HOVER="hover",n.MOUSEDOWN="mousedown",n.NONE="none",n})(),hE=(()=>{class n{}return n.Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.TopStart="top-start",n.BottomStart="bottom-start",n.LeftStart="left-start",n.RightStart="right-start",n.TopEnd="top-end",n.BottomEnd="bottom-end",n.LeftEnd="left-end",n.RightEnd="right-end",n.Auto="auto",n.AutoStart="auto-start",n.AutoEnd="auto-end",n})(),fE=(()=>{class n{constructor(t,i,r,s){this.elemRef=t,this.renderer=i,this.viewRef=r,this.CDR=s,this.popperOptions={disableAnimation:!1,disableDefaultStyling:!1,placement:hE.Auto,boundariesElement:"",trigger:lr.HOVER,positionFixed:!1,appendToBody:!1,popperModifiers:{}},this.isMouseOver=!1,this.onHidden=new lt,this.displayType="none",this.opacity=0,this.ariaHidden="true",this.arrowColor=null,this.state=!0}onMouseOver(){this.isMouseOver=!0}showOnLeave(){this.isMouseOver=!1,(this.popperOptions.trigger===lr.HOVER||this.popperOptions.hideOnMouseLeave)&&this.hide()}onDocumentResize(){this.update()}ngOnDestroy(){this.clean(),this.popperOptions.appendTo&&this.elemRef&&this.elemRef.nativeElement&&this.elemRef.nativeElement.parentNode&&(this.viewRef.detach(),this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement))}clean(){this.toggleVisibility(!1),this.popperInstance&&(this.popperInstance.disableEventListeners(),this.popperInstance.destroy())}show(){if(!this.referenceObject)return;const t=this.popperOptions.appendTo&&document.querySelector(this.popperOptions.appendTo);t&&this.elemRef.nativeElement.parentNode!==t&&(this.elemRef.nativeElement.parentNode&&this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement),t.appendChild(this.elemRef.nativeElement));let i={placement:this.popperOptions.placement,positionFixed:this.popperOptions.positionFixed,modifiers:{arrow:{element:this.popperViewRef.nativeElement.querySelector(".ngxp__arrow")}}};this.onUpdate&&(i.onUpdate=this.onUpdate);let r=this.popperOptions.boundariesElement&&document.querySelector(this.popperOptions.boundariesElement);i.modifiers&&r&&(i.modifiers.preventOverflow={boundariesElement:r}),i.modifiers&&void 0!==this.popperOptions.preventOverflow&&(i.modifiers.preventOverflow=i.modifiers.preventOverflow||{},i.modifiers.preventOverflow.enabled=this.popperOptions.preventOverflow,i.modifiers.preventOverflow.enabled||(i.modifiers.hide={enabled:!1})),this.determineArrowColor(),i.modifiers=Object.assign(i.modifiers,this.popperOptions.popperModifiers),this.popperInstance=new uB(this.referenceObject,this.popperViewRef.nativeElement,i),this.popperInstance.enableEventListeners(),this.scheduleUpdate(),this.toggleVisibility(!0),this.globalResize=this.renderer.listen("document","resize",this.onDocumentResize.bind(this))}determineArrowColor(){["background-color","backgroundColor"].some(t=>!(!this.popperOptions.styles||!this.popperOptions.styles.hasOwnProperty(t)||(this.arrowColor=this.popperOptions.styles[t],0)))}update(){this.popperInstance&&this.popperInstance.update()}scheduleUpdate(){this.popperInstance&&this.popperInstance.scheduleUpdate()}hide(){this.popperInstance&&this.popperInstance.destroy(),this.toggleVisibility(!1),this.onHidden.emit()}toggleVisibility(t){t?(this.opacity=1,this.displayType="block",this.ariaHidden="false",this.state=!0):(this.opacity=0,this.displayType="none",this.ariaHidden="true",this.state=!1),this.CDR.destroyed||this.CDR.detectChanges()}extractAppliedClassListExpr(t){if(!t||"string"!=typeof t)return null;try{return t.replace(/ /,"").split(",").reduce((i,r)=>(i[r]=!0,i),{})}catch(i){return null}}clearGlobalResize(){this.globalResize&&"function"==typeof this.globalResize&&this.globalResize()}}return n.\u0275fac=function(t){return new(t||n)(E(Qe),E(Ra),E(Yt),E(ts))},n.\u0275cmp=mi({type:n,selectors:[["popper-content"]],viewQuery:function(t,i){if(1&t&&lo(dB,5),2&t){let r;ao(r=co())&&(i.popperViewRef=r.first)}},hostBindings:function(t,i){1&t&&mt("mouseover",function(){return i.onMouseOver()})("mouseleave",function(){return i.showOnLeave()})},ngContentSelectors:dE,decls:5,vars:20,consts:[[3,"ngStyle","ngClass"],["popperViewRef",""],["class","ngxp__inner",3,"innerHTML",4,"ngIf"],["class","ngxp__inner",4,"ngIf"],[1,"ngxp__arrow",3,"ngClass"],[1,"ngxp__inner",3,"innerHTML"],[1,"ngxp__inner"]],template:function(t,i){1&t&&(Sa(dE),be(0,"div",0,1),fe(2,hB,2,1,"div",2),fe(3,fB,2,0,"div",3),Ki(4,"div",4),xe()),2&t&&(Qs("display",i.displayType)("opacity",i.opacity),si("ngxp__container",!i.popperOptions.disableDefaultStyling)("ngxp__animation",!i.popperOptions.disableAnimation),j("ngStyle",i.popperOptions.styles)("ngClass",i.extractAppliedClassListExpr(i.popperOptions.applyClass)),Tt("aria-hidden",i.ariaHidden)("aria-describedby",i.popperOptions.ariaDescribe||null)("role",i.popperOptions.ariaRole),$(2),j("ngIf",i.text),$(1),j("ngIf",!i.text),$(1),Qs("border-color",i.arrowColor),si("__force-arrow",i.arrowColor),j("ngClass",i.extractAppliedClassListExpr(i.popperOptions.applyArrowClass)))},directives:[Wd,Ja,Hd],styles:[".ngxp__container{display:none;position:absolute;border-radius:3px;border:1px solid grey;box-shadow:0 0 2px rgba(0,0,0,.5);padding:10px}.ngxp__container.ngxp__animation{-webkit-animation:150ms ease-out ngxp-fadeIn;animation:150ms ease-out ngxp-fadeIn}.ngxp__container>.ngxp__arrow{border-color:grey;width:0;height:0;border-style:solid;position:absolute;margin:5px}.ngxp__container[x-placement^=bottom],.ngxp__container[x-placement^=left],.ngxp__container[x-placement^=right],.ngxp__container[x-placement^=top]{display:block}.ngxp__container[x-placement^=top]{margin-bottom:5px}.ngxp__container[x-placement^=top]>.ngxp__arrow{border-width:5px 5px 0;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=top]>.ngxp__arrow.__force-arrow{border-right-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=bottom]{margin-top:5px}.ngxp__container[x-placement^=bottom]>.ngxp__arrow{border-width:0 5px 5px;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=bottom]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-right-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=right]{margin-left:5px}.ngxp__container[x-placement^=right]>.ngxp__arrow{border-width:5px 5px 5px 0;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=right]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=left]{margin-right:5px}.ngxp__container[x-placement^=left]>.ngxp__arrow{border-width:5px 0 5px 5px;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=left]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-right-color:transparent!important}@-webkit-keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}@keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}"],encapsulation:2,changeDetection:0}),n})();class Xe{constructor(e,t,i,r,s,o={}){this.viewContainerRef=e,this.changeDetectorRef=t,this.resolver=i,this.elementRef=r,this.renderer=s,this.popperDefaults=o,this.popperContentClass=fE,this.shown=!1,this.subscriptions=[],this.eventListeners=[],this.globalEventListeners=[],this.hideTimeout=0,this.timeoutAfterShow=0,this.popperOnShown=new lt,this.popperOnHidden=new lt,this.popperOnUpdate=new lt,Xe.baseOptions=Object.assign({},Xe.baseOptions,this.popperDefaults)}hideOnClickOutsideHandler(e){this.disabled||!this.hideOnClickOutside||e.srcElement&&e.srcElement===this.popperContent.elemRef.nativeElement||this.popperContent.elemRef.nativeElement.contains(e.srcElement)||this.scheduledHide(e,this.hideTimeout)}hideOnScrollHandler(e){this.disabled||!this.hideOnScroll||this.scheduledHide(e,this.hideTimeout)}applyTriggerListeners(){switch(this.showTrigger){case lr.CLICK:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"click",this.toggle.bind(this)));break;case lr.MOUSEDOWN:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mousedown",this.toggle.bind(this)));break;case lr.HOVER:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseenter",this.scheduledShow.bind(this,this.showDelay))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout)))}this.showTrigger!==lr.HOVER&&this.hideOnMouseLeave&&(this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout))))}static assignDefined(e,...t){for(const i of t)for(const r of Object.keys(i)){const s=i[r];void 0!==s&&(e[r]=s)}return e}ngOnInit(){if(this.hideOnClickOutside=void 0===this.hideOnClickOutside?this.closeOnClickOutside:this.hideOnClickOutside,"string"==typeof this.content){const t=this.content;this.popperContent=this.constructContent(),this.popperContent.text=t}else this.popperContent=this.content;const e=this.popperContent;e.referenceObject=this.getRefElement(),this.setContentProperties(e),this.setDefaults(),this.applyTriggerListeners(),this.showOnStart&&this.scheduledShow()}ngOnChanges(e){e.popperDisabled&&e.popperDisabled.currentValue&&this.hide(),e.content&&!e.content.firstChange&&"string"==typeof e.content.currentValue&&(this.popperContent.text=e.content.currentValue),e.applyClass&&!e.applyClass.firstChange&&"string"==typeof e.applyClass.currentValue&&(this.popperContent.popperOptions.applyClass=e.applyClass.currentValue),e.applyArrowClass&&!e.applyArrowClass.firstChange&&"string"==typeof e.applyArrowClass.currentValue&&(this.popperContent.popperOptions.applyArrowClass=e.applyArrowClass.currentValue)}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe&&e.unsubscribe()),this.subscriptions.length=0,this.clearEventListeners(),this.clearGlobalEventListeners(),clearTimeout(this.scheduledShowTimeout),clearTimeout(this.scheduledHideTimeout),this.popperContent&&this.popperContent.clean()}toggle(){this.disabled||(this.shown?this.scheduledHide(null,this.hideTimeout):this.scheduledShow())}show(){if(this.shown)return void this.overrideHideTimeout();this.shown=!0;const e=this.popperContent,t=this.getRefElement();e.referenceObject!==t&&(e.referenceObject=t),this.setContentProperties(e),e.show(),this.popperOnShown.emit(this),this.timeoutAfterShow>0&&this.scheduledHide(null,this.timeoutAfterShow),this.globalEventListeners.push(this.renderer.listen("document","touchend",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen("document","click",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen(this.getScrollParent(this.getRefElement()),"scroll",this.hideOnScrollHandler.bind(this)))}hide(){if(!this.disabled){if(!this.shown)return void this.overrideShowTimeout();this.shown=!1,this.popperContentRef?this.popperContentRef.instance.hide():this.popperContent.hide(),this.popperOnHidden.emit(this),this.clearGlobalEventListeners()}}scheduledShow(e=this.showDelay){this.disabled||(this.overrideHideTimeout(),this.scheduledShowTimeout=setTimeout(()=>{this.show(),this.applyChanges()},e))}scheduledHide(e=null,t=this.hideTimeout){this.disabled||(this.overrideShowTimeout(),this.scheduledHideTimeout=setTimeout(()=>{const i=e?e.toElement:null,r=!!this.popperContent.popperViewRef&&this.popperContent.popperViewRef.nativeElement;!r||r===i||r.contains(i)||this.content.isMouseOver||(this.hide(),this.applyChanges())},t))}getRefElement(){return this.targetElement||this.viewContainerRef.element.nativeElement}applyChanges(){this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()}setDefaults(){this.showDelay=void 0===this.showDelay?Xe.baseOptions.showDelay:this.showDelay,this.showTrigger=void 0===this.showTrigger?Xe.baseOptions.trigger:this.showTrigger,this.hideOnClickOutside=void 0===this.hideOnClickOutside?Xe.baseOptions.hideOnClickOutside:this.hideOnClickOutside,this.hideOnScroll=void 0===this.hideOnScroll?Xe.baseOptions.hideOnScroll:this.hideOnScroll,this.hideOnMouseLeave=void 0===this.hideOnMouseLeave?Xe.baseOptions.hideOnMouseLeave:this.hideOnMouseLeave,this.ariaRole=void 0===this.ariaRole?Xe.baseOptions.ariaRole:this.ariaRole,this.ariaDescribe=void 0===this.ariaDescribe?Xe.baseOptions.ariaDescribe:this.ariaDescribe,this.styles=void 0===this.styles?Object.assign({},Xe.baseOptions.styles):this.styles}clearEventListeners(){this.eventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.eventListeners.length=0}clearGlobalEventListeners(){this.globalEventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.globalEventListeners.length=0}overrideShowTimeout(){this.scheduledShowTimeout&&(clearTimeout(this.scheduledShowTimeout),this.scheduledHideTimeout=0)}overrideHideTimeout(){this.scheduledHideTimeout&&(clearTimeout(this.scheduledHideTimeout),this.scheduledHideTimeout=0)}constructContent(){const e=this.resolver.resolveComponentFactory(this.popperContentClass);return this.popperContentRef=this.viewContainerRef.createComponent(e),this.popperContentRef.instance}setContentProperties(e){e.popperOptions=Xe.assignDefined(e.popperOptions,Xe.baseOptions,{showDelay:this.showDelay,disableAnimation:this.disableAnimation,disableDefaultStyling:this.disableStyle,placement:this.placement,boundariesElement:this.boundariesElement,trigger:this.showTrigger,positionFixed:this.positionFixed,popperModifiers:this.popperModifiers,ariaDescribe:this.ariaDescribe,ariaRole:this.ariaRole,applyClass:this.applyClass,applyArrowClass:this.applyArrowClass,hideOnMouseLeave:this.hideOnMouseLeave,styles:this.styles,appendTo:this.appendTo,preventOverflow:this.preventOverflow}),e.onUpdate=this.onPopperUpdate.bind(this),this.subscriptions.push(e.onHidden.subscribe(this.hide.bind(this)))}getScrollParent(e){const i=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return e?"visible"!==i&&"hidden"!==i&&e.scrollHeight>=e.clientHeight?e:this.getScrollParent(e.parentNode)||document:null}onPopperUpdate(e){this.popperOnUpdate.emit(e)}}Xe.\u0275fac=function(e){return new(e||Xe)(E(Yt),E(ts),E(Di),E(Qe),E(Ra),E("popperDefaults"))},Xe.\u0275dir=je({type:Xe,selectors:[["","popper",""]],inputs:{hideTimeout:["popperTimeout","hideTimeout"],timeoutAfterShow:["popperTimeoutAfterShow","timeoutAfterShow"],hideOnClickOutside:["popperHideOnClickOutside","hideOnClickOutside"],showDelay:["popperDelay","showDelay"],showTrigger:["popperTrigger","showTrigger"],hideOnScroll:["popperHideOnScroll","hideOnScroll"],hideOnMouseLeave:["popperHideOnMouseLeave","hideOnMouseLeave"],ariaRole:["popperAriaRole","ariaRole"],ariaDescribe:["popperAriaDescribeBy","ariaDescribe"],styles:["popperStyles","styles"],content:["popper","content"],disabled:["popperDisabled","disabled"],placement:["popperPlacement","placement"],targetElement:["popperTarget","targetElement"],boundariesElement:["popperBoundaries","boundariesElement"],showOnStart:["popperShowOnStart","showOnStart"],closeOnClickOutside:["popperCloseOnClickOutside","closeOnClickOutside"],positionFixed:["popperPositionFixed","positionFixed"],popperModifiers:"popperModifiers",disableStyle:["popperDisableStyle","disableStyle"],disableAnimation:["popperDisableAnimation","disableAnimation"],applyClass:["popperApplyClass","applyClass"],applyArrowClass:["popperApplyArrowClass","applyArrowClass"],appendTo:["popperAppendTo","appendTo"],preventOverflow:["popperPreventOverflow","preventOverflow"]},outputs:{popperOnShown:"popperOnShown",popperOnHidden:"popperOnHidden",popperOnUpdate:"popperOnUpdate"},exportAs:["popper"],features:[zi]}),Xe.baseOptions={showDelay:0,placement:hE.Auto,hideOnClickOutside:!0,hideOnMouseLeave:!1,hideOnScroll:!1,showTrigger:lr.HOVER,appendTo:void 0,ariaRole:"popper",ariaDescribe:"",styles:{}};let pB=(()=>{class n{ngDoBootstrap(){}static forRoot(t={}){return{ngModule:n,providers:[{provide:"popperDefaults",useValue:t}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[[Kd]]}),n})();function gB(n,e){1&n&&qn(0)}function mB(n,e){if(1&n){const t=Kn();Mt(0),be(1,"button",7),mt("click",function(r){return ft(t),ie().emitClick(r)}),fe(2,gB,1,0,"ng-container",8),xe(),It()}if(2&n){const t=ie(),i=at(12),r=at(10);$(1),j("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Tt("aria-label",t.label+" raised button"),$(1),j("ngTemplateOutlet",r)}}function _B(n,e){1&n&&qn(0)}function yB(n,e){if(1&n){const t=Kn();Mt(0),be(1,"button",9),mt("click",function(r){return ft(t),ie().emitClick(r)}),fe(2,_B,1,0,"ng-container",8),xe(),It()}if(2&n){const t=ie(),i=at(12),r=at(10);$(1),j("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Tt("aria-label",t.label+" stroked button"),$(1),j("ngTemplateOutlet",r)}}function vB(n,e){1&n&&qn(0)}function bB(n,e){if(1&n){const t=Kn();Mt(0),be(1,"button",10),mt("click",function(r){return ft(t),ie().emitClick(r)}),fe(2,vB,1,0,"ng-container",8),xe(),It()}if(2&n){const t=ie(),i=at(12),r=at(10);$(1),j("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Tt("aria-label",t.label+" flat button"),$(1),j("ngTemplateOutlet",r)}}function wB(n,e){1&n&&qn(0)}function EB(n,e){if(1&n){const t=Kn();Mt(0),be(1,"button",11),mt("click",function(r){return ft(t),ie().emitClick(r)}),fe(2,wB,1,0,"ng-container",8),xe(),It()}if(2&n){const t=ie(),i=at(12),r=at(10);$(1),j("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Tt("aria-label",t.label+" icon button"),$(1),j("ngTemplateOutlet",r)}}function CB(n,e){1&n&&qn(0)}function DB(n,e){if(1&n){const t=Kn();Mt(0),be(1,"button",12),mt("click",function(r){return ft(t),ie().emitClick(r)}),fe(2,CB,1,0,"ng-container",8),xe(),It()}if(2&n){const t=ie(),i=at(12),r=at(10);$(1),j("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Tt("aria-label",t.label+" fab button"),$(1),j("ngTemplateOutlet",r)}}function SB(n,e){1&n&&qn(0)}function TB(n,e){if(1&n){const t=Kn();Mt(0),be(1,"button",13),mt("click",function(r){return ft(t),ie().emitClick(r)}),fe(2,SB,1,0,"ng-container",8),xe(),It()}if(2&n){const t=ie(),i=at(12),r=at(10);$(1),j("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Tt("aria-label",t.label+" mini fab button"),$(1),j("ngTemplateOutlet",r)}}function MB(n,e){1&n&&qn(0)}function IB(n,e){if(1&n){const t=Kn();Mt(0),be(1,"button",14),mt("click",function(r){return ft(t),ie().emitClick(r)}),fe(2,MB,1,0,"ng-container",8),xe(),It()}if(2&n){const t=ie(),i=at(12),r=at(10);$(1),j("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Tt("aria-label",t.label+" unstyled button"),$(1),j("ngTemplateOutlet",r)}}function xB(n,e){1&n&&qn(0)}function AB(n,e){if(1&n){const t=Kn();Mt(0),be(1,"button",15),mt("click",function(r){return ft(t),ie().emitClick(r)}),fe(2,xB,1,0,"ng-container",8),xe(),It()}if(2&n){const t=ie(),i=at(12),r=at(10);$(1),j("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup))("popperAppendTo","body"),Tt("aria-label",t.label+" basic button"),$(1),j("ngTemplateOutlet",r)}}function OB(n,e){if(1&n&&(be(0,"mat-icon",18),Xs(1),xe()),2&n){const t=ie(2);j("ngStyle",t.buttonIconStyle),$(1),qr(t.icon)}}function RB(n,e){if(1&n&&(be(0,"div"),Xs(1),xe()),2&n){const t=ie(2);$(1),qr(t.label||"Button")}}function kB(n,e){if(1&n&&(fe(0,OB,2,2,"mat-icon",16),fe(1,RB,2,1,"div",17)),2&n){const t=ie();j("ngIf",t.icon),$(1),j("ngIf",!t.icon)}}function PB(n,e){1&n&&Ki(0,"img",19),2&n&&j("lazyLoad",ie().imgUrl)}function FB(n,e){if(1&n&&(be(0,"div"),Xs(1),xe()),2&n){const t=ie();_t(t.popup.style),$(1),qr(t.popup.text)}}let pE=(()=>{class n{emitClick(t){this.onClick&&(t.stopPropagation(),this.onClick())}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=mi({type:n,selectors:[["drayman-button-internal"]],inputs:{onClick:"onClick",label:"label",view:"view",icon:"icon",tooltip:"tooltip",disabled:"disabled",imgUrl:"imgUrl",popup:"popup",buttonStyle:"buttonStyle",buttonIconStyle:"buttonIconStyle"},decls:15,vars:10,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["button",""],["thumbnailContent",""],["style","width: 150px; z-index: 1001;",3,"lazyLoad",4,"ngIf"],[3,"style",4,"ngIf"],["type","button","mat-raised-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],[4,"ngTemplateOutlet"],["type","button","mat-stroked-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-flat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-icon-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-mini-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","popperAppendTo","click"],[3,"ngStyle",4,"ngIf"],[4,"ngIf"],[3,"ngStyle"],[2,"width","150px","z-index","1001",3,"lazyLoad"]],template:function(t,i){1&t&&(Mt(0,0),fe(1,mB,3,7,"ng-container",1),fe(2,yB,3,7,"ng-container",1),fe(3,bB,3,7,"ng-container",1),fe(4,EB,3,7,"ng-container",1),fe(5,DB,3,7,"ng-container",1),fe(6,TB,3,7,"ng-container",1),fe(7,IB,3,7,"ng-container",1),fe(8,AB,3,8,"ng-container",2),It(),fe(9,kB,2,2,"ng-template",null,3,hy),be(11,"popper-content",null,4),fe(13,PB,1,1,"img",5),fe(14,FB,2,3,"div",6),xe()),2&t&&(j("ngSwitch",i.view),$(1),j("ngSwitchCase","raised"),$(1),j("ngSwitchCase","stroked"),$(1),j("ngSwitchCase","flat"),$(1),j("ngSwitchCase","icon"),$(1),j("ngSwitchCase","fab"),$(1),j("ngSwitchCase","miniFab"),$(1),j("ngSwitchCase","unstyled"),$(6),j("ngIf",i.imgUrl),$(1),j("ngIf",i.popup))},directives:[yo,Ud,o1,cL,Wd,Xe,wv,vv,Hd,L1,fE,SL],styles:[""]}),n})();"function"==typeof SuppressedError&&SuppressedError;class sV extends Uw{loadImage({imagePath:e}){return function gE(n,e,t,i){return new(t||(t=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):function r(s){return s instanceof t?s:new t(function(o){o(s)})}(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){const i=yield(yield fetch(e)).blob();if(i.size)return URL.createObjectURL(i)})}}let oV=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=ab(pE,{injector:this.injector});customElements.define("drayman-button",t)}}return n.\u0275fac=function(t){return new(t||n)(v(St))},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({providers:[{provide:Zh,useClass:sV},{provide:gl,useClass:ew}],imports:[[eh,Xb,a1,hL,B1,TL,pB.forRoot({disableDefaultStyling:!0,applyArrowClass:"hidden",showDelay:500,trigger:"hover",hideOnClickOutside:!1,styles:{position:"relative",background:"#fff",padding:"5px 5px 0 5px","z-index":"1001","border-radius":"2px","box-shadow":"0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)"},placement:"right"})]]}),n})();const aV=["container"];function lV(n,e){if(1&n&&(Mt(0),Ki(1,"div",8),It()),2&n){const t=ie().$implicit,i=ie().$implicit,r=ie();$(1),_t(i.hovered&&t.hoverStyle?t.hoverStyle:t.style),j("innerHTML",r.getSanitizedString(t.value),au)}}function cV(n,e){if(1&n&&(Mt(0),be(1,"div"),Ki(2,"drayman-button-internal",9),xe(),It()),2&n){const t=ie().$implicit,i=ie().$implicit,r=ie();$(1),_t(i.hovered&&t.hoverStyle?t.hoverStyle:t.style),$(1),j("label",t.value.label)("onClick",r.emitContentButtonClick.bind(r,i,t.value))("view",t.value.view)("icon",t.value.icon)("tooltip",t.value.tooltip)("disabled",t.value.disabled)("imgUrl",t.value.imgUrl)("popup",t.value.popup)("buttonStyle",t.value.buttonStyle)("options",t.value)}}function uV(n,e){if(1&n&&(Mt(0)(1,6),fe(2,lV,2,3,"ng-container",7),fe(3,cV,3,12,"ng-container",7),It()()),2&n){const t=e.$implicit;$(1),j("ngSwitch",t.type),$(1),j("ngSwitchCase","text"),$(1),j("ngSwitchCase","button")}}function dV(n,e){if(1&n){const t=Kn();be(0,"div",4),mt("mouseenter",function(){return ft(t).$implicit.hovered=!0})("contextmenu",function(r){const o=ft(t).$implicit;return ie().oncontextmenu(r,o)})("click",function(r){const o=ft(t).$implicit;return ie().emitCellClick(r,o)})("mousedown",function(r){const o=ft(t).$implicit;return ie().onMouseDown(r,o)})("mouseup",function(r){const o=ft(t).$implicit;return ie().onMouseUp(r,o)})("mouseover",function(r){const o=ft(t).$implicit;return ie().onMouseOver(r,o)})("mouseleave",function(r){const o=ft(t).$implicit;return ie().onMouseLeave(r,o),o.hovered=!1}),be(1,"div"),fe(2,uV,4,3,"ng-container",5),xe()()}if(2&n){const t=e.$implicit;_t(ie().getCellStyle(t)),Tt("ref",t.ref),$(1),_t(t.contentStyle),$(1),j("ngForOf",t.content)}}let hV=(()=>{class n{constructor(t,i){this.elementRef=t,this.sanitizer=i,this.selectedCells=[],this.scrollTo=({row:r})=>{this.cellHeight&&this.scrollable.scrollTo({top:r*this.cellHeight})},this.grid=[],this.scrollDirection="vertical",this.scrollbarWidth="narrow",this.resized$=new b,this.selectedCellsChanged$=new b,this._selectedCells=[],this.pendingSelectedCells=[],this.hoveredRow=-1}onWheel(t){"horizontal"===this.scrollDirection&&(t.preventDefault(),this.containerRef.nativeElement.scrollLeft+=t.deltaY)}get scrollbarWidthClass(){return"narrow"===this.scrollbarWidth?null:`scrollbar-${this.scrollbarWidth}`}getCellStyle(t){var i,r,s;const o=t.rowSpan?t.row+t.rowSpan:t.row+1,a=t.colSpan?t.col+t.colSpan:t.col+1;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.cellStyle),this.hoveredRow===t.row?this.rowHoverStyle:{}),[...this.pendingSelectedCells,...this._selectedCells].find(l=>l.selectionGroup===t.selectionGroup)?Object.assign({},null===(i=this.selectionMode)||void 0===i?void 0:i.similarGroupCellStyle):{}),[...this.pendingSelectedCells,...this._selectedCells].length&&![...this.pendingSelectedCells,...this._selectedCells].find(l=>l.selectionGroup===t.selectionGroup)?Object.assign({},null===(r=this.selectionMode)||void 0===r?void 0:r.otherGroupCellStyle):{}),[...this.pendingSelectedCells,...this._selectedCells].find(l=>l.row===t.row&&l.col===t.col)?Object.assign(Object.assign({},null===(s=this.selectionMode)||void 0===s?void 0:s.cellStyle),t.selectionCellStyle):{}),{gridArea:`${t.row+1}/${t.col+1}/${o+1}/${a+1}`})}ngOnDestroy(){}getSanitizedString(t){return this.sanitizer.bypassSecurityTrustHtml(t)}oncontextmenu(t,i){t.ctrlKey&&(t.preventDefault(),this.emitCellClick(t,i,!0))}emitCellClick(t,i,r=!1){var s,o,a;t.ctrlKey&&(t.preventDefault(),r=!0),(null===(s=this.selectionMode)||void 0===s?void 0:s.enabled)?this.pendingSelectedCells.length||(r?(this._selectedCells=[i],this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!0})):this._selectedCells.find(c=>c.row===i.row&&c.col===i.col)?(this._selectedCells=this._selectedCells.filter(c=>!(c.row===i.row&&c.col===i.col)),this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!1})):!i.disableSelect&&(!this._selectedCells.length||(null===(o=this._selectedCells[0])||void 0===o?void 0:o.selectionGroup)===i.selectionGroup)&&(this._selectedCells.push(i),this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!1}))):null===(a=this.onCellClick)||void 0===a||a.call(this,{cell:i})}onMouseLeave(t,i){this.hoveredRow=-1}onMouseDown(t,i){var r,s;((null===(r=this.selectionMode)||void 0===r?void 0:r.enabled)&&!this._selectedCells.length||(null===(s=this._selectedCells[0])||void 0===s?void 0:s.selectionGroup)===i.selectionGroup)&&(this.ctrl=t.ctrlKey,this.startSelectionCell=i)}onMouseUp(t,i){this.startSelectionCell=null,this.pendingSelectedCells.length&&(this._selectedCells=[...this.ctrl?[]:this._selectedCells,...this.pendingSelectedCells],this.pendingSelectedCells=[],this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!!this.ctrl}))}onMouseOver(t,i){if(this.hoveredRow=i.row,this.startSelectionCell){const r=Math.min(i.col,this.startSelectionCell.col),s=Math.max(i.col,this.startSelectionCell.col),o=Math.min(i.row,this.startSelectionCell.row),a=Math.max(i.row,this.startSelectionCell.row);this.pendingSelectedCells=this.grid.filter(l=>{var c;return!l.disableSelect&&l.col>=r&&l.col<=s&&l.row>=o&&l.row<=a&&l.selectionGroup===(null===(c=this.startSelectionCell)||void 0===c?void 0:c.selectionGroup)})}}onGridMouseLeave(t){this.startSelectionCell=null,this.pendingSelectedCells.length&&(this._selectedCells=[...this._selectedCells,...this.pendingSelectedCells],this.pendingSelectedCells=[],this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!1}))}emitContentButtonClick(t,i){var r;null===(r=this.onContentButtonClick)||void 0===r||r.call(this,{cell:t,button:i})}onResized(t){t.oldHeight&&t.oldWidth&&this.resized$.next()}ngAfterViewInit(){No(this.scrollable.elementScrolled(),this.resized$).pipe(qh(50)).subscribe(t=>{var i;null===(i=this.onScroll)||void 0===i||i.call(this,{currentCol:this.cellWidth?Math.floor(this.scrollable.measureScrollOffset("left")/this.cellWidth):0,visibleColCount:this.cellWidth?Math.ceil(this.scrollable.getElementRef().nativeElement.clientWidth/this.cellWidth):this.columnCount,currentRow:this.cellHeight?Math.floor(this.scrollable.measureScrollOffset("top")/this.cellHeight):0,visibleRowCount:this.cellHeight?Math.ceil(this.scrollable.getElementRef().nativeElement.clientHeight/this.cellHeight):this.rowCount})}),this.selectedCellsChanged$.pipe(qh(250)).subscribe(t=>{var i;null===(i=this.onSelectedCellsChange)||void 0===i||i.call(this,Object.assign(Object.assign({},t),{selectedCells:t.selectedCells.filter((r,s)=>t.selectedCells.findIndex(o=>o.row===r.row&&o.col===r.col)===s)}))})}ngOnInit(){}ngOnChanges(t){this.selectedCells&&(this._selectedCells=[...this.selectedCells])}get gridStyle(){const t=(this.cellHeight||0)*(this.rowCount||0);return{gridTemplateColumns:`repeat(${this.columnCount}, ${this.cellWidth?`${this.cellWidth}px`:"auto"})`,gridTemplateRows:`repeat(${this.rowCount}, ${this.cellHeight?`${this.cellHeight}px`:"autor"})`,width:this.cellWidth?this.columnCount*this.cellWidth+"px":"100%",height:t?`${t}px`:"100%",display:"grid",userSelect:"none"}}}return n.\u0275fac=function(t){return new(t||n)(E(Qe),E(al))},n.\u0275cmp=mi({type:n,selectors:[["drayman-grid-internal"]],viewQuery:function(t,i){if(1&t&&(lo(aV,5),lo(qv,5)),2&t){let r;ao(r=co())&&(i.containerRef=r.first),ao(r=co())&&(i.scrollable=r.first)}},hostBindings:function(t,i){1&t&&mt("wheel",function(s){return i.onWheel(s)})},inputs:{selectionMode:"selectionMode",selectedCells:"selectedCells",rowHoverStyle:"rowHoverStyle",onSelectedCellsChange:"onSelectedCellsChange",scrollTo:"scrollTo",onLoad:"onLoad",onContentButtonClick:"onContentButtonClick",onCellClick:"onCellClick",grid:"grid",scrollDirection:"scrollDirection",gridRef:"gridRef",onScroll:"onScroll",cellHeight:"cellHeight",cellWidth:"cellWidth",columnCount:"columnCount",rowCount:"rowCount",scrollbarWidth:"scrollbarWidth"},features:[zi],decls:4,vars:5,consts:[["cdkScrollable","",1,"wrapper",3,"ngClass","resized"],["container",""],[3,"mouseleave"],["tabindex","-1",3,"style","mouseenter","contextmenu","click","mousedown","mouseup","mouseover","mouseleave",4,"ngFor","ngForOf"],["tabindex","-1",3,"mouseenter","contextmenu","click","mousedown","mouseup","mouseover","mouseleave"],[4,"ngFor","ngForOf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"innerHTML"],[3,"label","onClick","view","icon","tooltip","disabled","imgUrl","popup","buttonStyle","options"]],template:function(t,i){1&t&&(be(0,"div",0,1),mt("resized",function(s){return i.onResized(s)}),be(2,"div",2),mt("mouseleave",function(s){return i.onGridMouseLeave(s)}),fe(3,dV,3,6,"div",3),xe()()),2&t&&(j("ngClass",i.scrollbarWidthClass),$(2),_t(i.gridStyle),Tt("ref",i.gridRef),$(1),j("ngForOf",i.grid))},directives:[qv,Ja,uN,dv,yo,Ud,pE],styles:[".wrapper[_ngcontent-%COMP%]{width:100%;height:100%;overflow:auto}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.scrollbar-medium[_ngcontent-%COMP%]::-webkit-scrollbar{width:14px;height:14px}.scrollbar-wide[_ngcontent-%COMP%]::-webkit-scrollbar{width:16px;height:16px}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f0f0f000}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#88888840}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#888888}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:window-inactive{background:var(--component-A-color)}"]}),n})(),fV=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=ab(hV,{injector:this.injector});customElements.define("drayman-grid",t)}}return n.\u0275fac=function(t){return new(t||n)(v(St))},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({providers:[{provide:gl,useClass:ew}],imports:[[eh,Xb,dh,dN,oV]]}),n})();(function Ux(){Hy=!1})(),SR().bootstrapModule(fV).catch(n=>console.error(n))})()})();
|