diff --git a/pipboyMESH/mesh_server.py b/pipboyMESH/mesh_server.py index becb7f0..211993f 100644 --- a/pipboyMESH/mesh_server.py +++ b/pipboyMESH/mesh_server.py @@ -11,6 +11,7 @@ import sys import asyncio from time import time from typing import List, Dict +import random #msh imports from transport_serial import SerialTransport @@ -195,7 +196,9 @@ class Servlet: @self.app.get(route + "/nodes/{id}") async def getNodeInfo(id: int): if id in self.nodes: - return self.nodes[id] + #print("found") + #print(self.nodes[id].__dict__) + return self.nodes[id].__dict__ else: raise HTTPException(404) @@ -210,10 +213,28 @@ class Servlet: @self.app.post(route + "/messages") #curl -X POST -d '{"txt":"test", "node_id":"xxxxxxxxxx"}' -H "Content-Type: application/json" http://127.0.0.1:8868/mesh/api/messages async def postMessage(msg: NewMessage): + magicpkg = { + "packet": { + "from": self.device.nid, + "to": PUB_CH, + "decoded": {"payload": msg.txt.encode()}, + "id": random.randint(1, 0x7FFFFFFF), + } + } + async def genNewMsg(from_radio): + msg = Message(from_radio) + self.message.append(msg) + await self.ws_update({"type":WS_TYPE_NEW, "event": WS_EVENT_MESSAGE, "data": msg.__dict__}) + self.lstChange["messages"] = time() + if msg.node_id: - return await self.device.sendMsgToDM(msg.txt, msg.node_id) + res = await self.device.sendMsgToDM(msg.txt, msg.node_id) + magicpkg["to"] = msg.node_id else: - return await self.device.sendMsgToChannel(msg.txt, msg.channel_id) + magicpkg["channel"] = msg.channel_id + res = await self.device.sendMsgToChannel(msg.txt, msg.channel_id) + + await genNewMsg(magicpkg) if __name__ == "__main__": parser = argparse.ArgumentParser() diff --git a/pipboyMESH/mesht_models.py b/pipboyMESH/mesht_models.py index dc37970..66a344b 100644 --- a/pipboyMESH/mesht_models.py +++ b/pipboyMESH/mesht_models.py @@ -46,7 +46,10 @@ class Channel: class Node: #aka node info def __init__(self, fr): self.num = fr["node_info"]["num"] - self.user = fr["node_info"].get("user", {}) + self.user = {} + self.user["id"] = fr["node_info"].get("user", {}).get("id", None) + self.user["short_name"] = fr["node_info"].get("user", {}).get("short_name", None) + self.user["long_name"] = fr["node_info"].get("user", {}).get("long_name", None) self.snr = fr["node_info"].get("snr", None) self.last_heard = fr["node_info"].get("last_heard", None) self.hops_away = fr["node_info"].get("hops_away", None) diff --git a/pipboyUI/dist/pipboy-ui/index.html b/pipboyUI/dist/pipboy-ui/index.html index ae4558c..53e78d9 100644 --- a/pipboyUI/dist/pipboy-ui/index.html +++ b/pipboyUI/dist/pipboy-ui/index.html @@ -7,9 +7,9 @@ - + - + \ No newline at end of file diff --git a/pipboyUI/dist/pipboy-ui/main.448a0ec1991b3365.js b/pipboyUI/dist/pipboy-ui/main.448a0ec1991b3365.js new file mode 100644 index 0000000..7b3e52f --- /dev/null +++ b/pipboyUI/dist/pipboy-ui/main.448a0ec1991b3365.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkpipboyUI=self.webpackChunkpipboyUI||[]).push([[179],{542:()=>{function ae(n){return"function"==typeof n}function Po(n){const e=n(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const pa=Po(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Dr(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class et{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(ae(i))try{i()}catch(o){t=o instanceof pa?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{hg(o)}catch(s){t=t??[],s instanceof pa?t=[...t,...s.errors]:t.push(s)}}if(t)throw new pa(t)}}add(t){var e;if(t&&t!==this)if(this.closed)hg(t);else{if(t instanceof et){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&Dr(e,t)}remove(t){const{_finalizers:e}=this;e&&Dr(e,t),t instanceof et&&t._removeParent(this)}}et.EMPTY=(()=>{const n=new et;return n.closed=!0,n})();const ug=et.EMPTY;function dg(n){return n instanceof et||n&&"closed"in n&&ae(n.remove)&&ae(n.add)&&ae(n.unsubscribe)}function hg(n){ae(n)?n():n.unsubscribe()}const Vi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ma={setTimeout(n,t,...e){const{delegate:i}=ma;return i?.setTimeout?i.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=ma;return(t?.clearTimeout||clearTimeout)(n)},delegate:void 0};function fg(n){ma.setTimeout(()=>{const{onUnhandledError:t}=Vi;if(!t)throw n;t(n)})}function ga(){}const eA=Su("C",void 0,void 0);function Su(n,t,e){return{kind:n,value:t,error:e}}let Bi=null;function _a(n){if(Vi.useDeprecatedSynchronousErrorHandling){const t=!Bi;if(t&&(Bi={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=Bi;if(Bi=null,e)throw i}}else n()}class ya extends et{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,dg(t)&&t.add(this)):this.destination=aA}static create(t,e,i){return new No(t,e,i)}next(t){this.isStopped?Au(function nA(n){return Su("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Au(function tA(n){return Su("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Au(eA,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const rA=Function.prototype.bind;function Mu(n,t){return rA.call(n,t)}class oA{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){va(i)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){va(i)}else va(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){va(e)}}}class No extends ya{constructor(t,e,i){let r;if(super(),ae(t)||!t)r={next:t??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&Vi.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&Mu(t.next,o),error:t.error&&Mu(t.error,o),complete:t.complete&&Mu(t.complete,o)}):r=t}this.destination=new oA(r)}}function va(n){Vi.useDeprecatedSynchronousErrorHandling?function iA(n){Vi.useDeprecatedSynchronousErrorHandling&&Bi&&(Bi.errorThrown=!0,Bi.error=n)}(n):fg(n)}function Au(n,t){const{onStoppedNotification:e}=Vi;e&&ma.setTimeout(()=>e(n,t))}const aA={closed:!0,next:ga,error:function sA(n){throw n},complete:ga},Iu="function"==typeof Symbol&&Symbol.observable||"@@observable";function mi(n){return n}function pg(n){return 0===n.length?mi:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}let _e=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function uA(n){return n&&n instanceof ya||function cA(n){return n&&ae(n.next)&&ae(n.error)&&ae(n.complete)}(n)&&dg(n)}(e)?e:new No(e,i,r);return _a(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=mg(i))((r,o)=>{const s=new No({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[Iu](){return this}pipe(...e){return pg(e)(this)}toPromise(e){return new(e=mg(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function mg(n){var t;return null!==(t=n??Vi.Promise)&&void 0!==t?t:Promise}const dA=Po(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ee=(()=>{class n extends _e{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Tu(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new dA}next(e){_a(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){_a(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){_a(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:o}=this;return i||r?ug:(this.currentObservers=null,o.push(e),new et(()=>{this.currentObservers=null,Dr(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new _e;return e.source=this,e}}return n.create=(t,e)=>new Tu(t,e),n})();class Tu extends ee{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)}error(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==i?i:ug}}function gg(n){return ae(n?.lift)}function Re(n){return t=>{if(gg(t))return t.lift(function(e){try{return n(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ye(n,t,e,i,r){return new hA(n,t,e,i,r)}class hA extends ya{constructor(t,e,i,r,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){t.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function $(n,t){return Re((e,i)=>{let r=0;e.subscribe(ye(i,o=>{i.next(n.call(t,o,r++))}))})}function gi(n){return this instanceof gi?(this.v=n,this):new gi(n)}function vg(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function s(f){return function(p){return Promise.resolve(p).then(f,d)}}),r[Symbol.asyncIterator]=function(){return this},r;function a(f,p){i[f]&&(r[f]=function(m){return new Promise(function(y,v){o.push([f,m,y,v])>1||l(f,m)})},p&&(r[f]=p(r[f])))}function l(f,p){try{!function c(f){f.value instanceof gi?Promise.resolve(f.value.v).then(u,d):h(o[0][2],f)}(i[f](p))}catch(m){h(o[0][3],m)}}function u(f){l("next",f)}function d(f){l("throw",f)}function h(f,p){f(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}function bg(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function Fu(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=n[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=n[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Pu=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Cg(n){return ae(n?.then)}function wg(n){return ae(n[Iu])}function Dg(n){return Symbol.asyncIterator&&ae(n?.[Symbol.asyncIterator])}function Eg(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Sg=function BA(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Mg(n){return ae(n?.[Sg])}function Ag(n){return vg(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:r}=yield gi(e.read());if(r)return yield gi(void 0);yield yield gi(i)}}finally{e.releaseLock()}})}function Ig(n){return ae(n?.getReader)}function xt(n){if(n instanceof _e)return n;if(null!=n){if(wg(n))return function HA(n){return new _e(t=>{const e=n[Iu]();if(ae(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(Pu(n))return function jA(n){return new _e(t=>{for(let e=0;e{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,fg)})}(n);if(Dg(n))return Tg(n);if(Mg(n))return function $A(n){return new _e(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(Ig(n))return function zA(n){return Tg(Ag(n))}(n)}throw Eg(n)}function Tg(n){return new _e(t=>{(function WA(n,t){var e,i,r,o;return function _g(n,t,e,i){return new(e||(e=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(u.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=bg(n);!(i=yield e.next()).done;)if(t.next(i.value),t.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function $n(n,t,e,i=0,r=!1){const o=t.schedule(function(){e(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(o),!r)return o}function tt(n,t,e=1/0){return ae(t)?tt((i,r)=>$((o,s)=>t(i,o,r,s))(xt(n(i,r))),e):("number"==typeof t&&(e=t),Re((i,r)=>function GA(n,t,e,i,r,o,s,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&t.complete()},f=m=>c{o&&t.next(m),c++;let y=!1;xt(e(m,u++)).subscribe(ye(t,v=>{r?.(v),o?f(v):t.next(v)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;l.length&&cp(v)):p(v)}h()}catch(v){t.error(v)}}))};return n.subscribe(ye(t,f,()=>{d=!0,h()})),()=>{a?.()}}(i,r,n,e)))}function Er(n=1/0){return tt(mi,n)}const zn=new _e(n=>n.complete());function xg(n){return n&&ae(n.schedule)}function Nu(n){return n[n.length-1]}function Rg(n){return ae(Nu(n))?n.pop():void 0}function Lo(n){return xg(Nu(n))?n.pop():void 0}function kg(n,t=0){return Re((e,i)=>{e.subscribe(ye(i,r=>$n(i,n,()=>i.next(r),t),()=>$n(i,n,()=>i.complete(),t),r=>$n(i,n,()=>i.error(r),t)))})}function Fg(n,t=0){return Re((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function Og(n,t){if(!n)throw new Error("Iterable cannot be null");return new _e(e=>{$n(e,t,()=>{const i=n[Symbol.asyncIterator]();$n(e,t,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Ge(n,t){return t?function eI(n,t){if(null!=n){if(wg(n))return function YA(n,t){return xt(n).pipe(Fg(t),kg(t))}(n,t);if(Pu(n))return function QA(n,t){return new _e(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(Cg(n))return function ZA(n,t){return xt(n).pipe(Fg(t),kg(t))}(n,t);if(Dg(n))return Og(n,t);if(Mg(n))return function XA(n,t){return new _e(e=>{let i;return $n(e,t,()=>{i=n[Sg](),$n(e,t,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void e.error(s)}o?e.complete():e.next(r)},0,!0)}),()=>ae(i?.return)&&i.return()})}(n,t);if(Ig(n))return function JA(n,t){return Og(Ag(n),t)}(n,t)}throw Eg(n)}(n,t):xt(n)}function Lu(...n){const t=Lo(n),e=function KA(n,t){return"number"==typeof Nu(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?xt(i[0]):Er(e)(Ge(i,t)):zn}function Pg(n={}){const{connector:t=(()=>new ee),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return o=>{let s,a,l,c=0,u=!1,d=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=l=void 0,u=d=!1},p=()=>{const m=s;f(),m?.unsubscribe()};return Re((m,y)=>{c++,!d&&!u&&h();const v=l=l??t();y.add(()=>{c--,0===c&&!d&&!u&&(a=Vu(p,r))}),v.subscribe(y),!s&&c>0&&(s=new No({next:D=>v.next(D),error:D=>{d=!0,h(),a=Vu(f,e,D),v.error(D)},complete:()=>{u=!0,h(),a=Vu(f,i),v.complete()}}),xt(m).subscribe(s))})(o)}}function Vu(n,t,...e){if(!0===t)return void n();if(!1===t)return;const i=new No({next:()=>{i.unsubscribe(),n()}});return t(...e).subscribe(i)}function ve(n){for(let t in n)if(n[t]===ve)return t;throw Error("Could not find renamed property on target object.")}function Bu(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function be(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(be).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Hu(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const tI=ve({__forward_ref__:ve});function De(n){return n.__forward_ref__=De,n.toString=function(){return be(this())},n}function U(n){return ju(n)?n():n}function ju(n){return"function"==typeof n&&n.hasOwnProperty(tI)&&n.__forward_ref__===De}class C extends Error{constructor(t,e){super(function ba(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function W(n){return"string"==typeof n?n:null==n?"":String(n)}function Ca(n,t){throw new C(-201,!1)}function Nt(n,t){null==n&&function me(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function S(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ce(n){return{providers:n.providers||[],imports:n.imports||[]}}function wa(n){return Ng(n,Da)||Ng(n,Vg)}function Ng(n,t){return n.hasOwnProperty(t)?n[t]:null}function Lg(n){return n&&(n.hasOwnProperty(Uu)||n.hasOwnProperty(uI))?n[Uu]:null}const Da=ve({\u0275prov:ve}),Uu=ve({\u0275inj:ve}),Vg=ve({ngInjectableDef:ve}),uI=ve({ngInjectorDef:ve});var L=(()=>((L=L||{})[L.Default=0]="Default",L[L.Host=1]="Host",L[L.Self=2]="Self",L[L.SkipSelf=4]="SkipSelf",L[L.Optional=8]="Optional",L))();let $u;function Jt(n){const t=$u;return $u=n,t}function Bg(n,t,e){const i=wa(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&L.Optional?null:void 0!==t?t:void Ca(be(n))}function _i(n){return{toString:n}.toString()}var hn=(()=>((hn=hn||{})[hn.OnPush=0]="OnPush",hn[hn.Default=1]="Default",hn))(),fn=(()=>{return(n=fn||(fn={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",fn;var n})();const Ee=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Sr={},he=[],Ea=ve({\u0275cmp:ve}),zu=ve({\u0275dir:ve}),Wu=ve({\u0275pipe:ve}),Hg=ve({\u0275mod:ve}),Gn=ve({\u0275fac:ve}),Vo=ve({__NG_ELEMENT_ID__:ve});let hI=0;function ue(n){return _i(()=>{const e=!0===n.standalone,i={},r={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:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===hn.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||he,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||fn.Emulated,id:"c"+hI++,styles:n.styles||he,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=$g(n.inputs,i),r.outputs=$g(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(jg).filter(Ug):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(bt).filter(Ug):null,r})}function jg(n){return ge(n)||vt(n)}function Ug(n){return null!==n}function fe(n){return _i(()=>({type:n.type,bootstrap:n.bootstrap||he,declarations:n.declarations||he,imports:n.imports||he,exports:n.exports||he,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function $g(n,t){if(null==n)return Sr;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const N=ue;function Rt(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function ge(n){return n[Ea]||null}function vt(n){return n[zu]||null}function bt(n){return n[Wu]||null}function Lt(n,t){const e=n[Hg]||null;if(!e&&!0===t)throw new Error(`Type ${be(n)} does not have '\u0275mod' property.`);return e}const Y=11;function kt(n){return Array.isArray(n)&&"object"==typeof n[1]}function mn(n){return Array.isArray(n)&&!0===n[1]}function Ku(n){return 0!=(8&n.flags)}function Ia(n){return 2==(2&n.flags)}function Ta(n){return 1==(1&n.flags)}function gn(n){return null!==n.template}function yI(n){return 0!=(256&n[2])}function zi(n,t){return n.hasOwnProperty(Gn)?n[Gn]:null}class CI{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Gg(n){return n.type.prototype.ngOnChanges&&(n.setInput=DI),wI}function wI(){const n=Kg(this),t=n?.current;if(t){const e=n.previous;if(e===Sr)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function DI(n,t,e,i){const r=Kg(n)||function EI(n,t){return n[qg]=t}(n,{previous:Sr,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new CI(l&&l.currentValue,t,s===Sr),n[i]=t}const qg="__ngSimpleChanges__";function Kg(n){return n[qg]||null}function qe(n){for(;Array.isArray(n);)n=n[0];return n}function xa(n,t){return qe(t[n])}function Bt(n,t){return qe(t[n.index])}function Ju(n,t){return n.data[t]}function xr(n,t){return n[t]}function Ht(n,t){const e=t[n];return kt(e)?e:e[0]}function Ra(n){return 64==(64&n[2])}function yi(n,t){return null==t?null:n[t]}function Yg(n){n[18]=0}function ed(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const z={lFrame:o_(null),bindingsEnabled:!0};function Qg(){return z.bindingsEnabled}function w(){return z.lFrame.lView}function se(){return z.lFrame.tView}function Rr(n){return z.lFrame.contextLView=n,n[8]}function kr(n){return z.lFrame.contextLView=null,n}function nt(){let n=Xg();for(;null!==n&&64===n.type;)n=n.parent;return n}function Xg(){return z.lFrame.currentTNode}function An(n,t){const e=z.lFrame;e.currentTNode=n,e.isParent=t}function td(){return z.lFrame.isParent}function nd(){z.lFrame.isParent=!1}function qn(){return z.lFrame.bindingIndex}function Fr(){return z.lFrame.bindingIndex++}function Kn(n){const t=z.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function BI(n,t){const e=z.lFrame;e.bindingIndex=e.bindingRootIndex=n,id(t)}function id(n){z.lFrame.currentDirectiveIndex=n}function rd(n){const t=z.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function n_(){return z.lFrame.currentQueryIndex}function od(n){z.lFrame.currentQueryIndex=n}function jI(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function i_(n,t,e){if(e&L.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&L.Host||(r=jI(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=z.lFrame=r_();return i.currentTNode=t,i.lView=n,!0}function sd(n){const t=r_(),e=n[1];z.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function r_(){const n=z.lFrame,t=null===n?null:n.child;return null===t?o_(n):t}function o_(n){const t={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=t),t}function s_(){const n=z.lFrame;return z.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const a_=s_;function ad(){const n=s_();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 wt(){return z.lFrame.selectedIndex}function vi(n){z.lFrame.selectedIndex=n}function Ne(){const n=z.lFrame;return Ju(n.tView,n.selectedIndex)}function ka(){z.lFrame.currentNamespace="svg"}function Fa(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class zo{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Na(n,t,e){let i=0;for(;it){s=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let ud=!0;function Va(n){const t=ud;return ud=n,t}let tT=0;const In={};function Go(n,t){const e=hd(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,dd(i.data,n),dd(t,null),dd(i.blueprint,null));const r=Ba(n,t),o=n.injectorIndex;if(h_(r)){const s=Or(r),a=Pr(r,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function dd(n,t){n.push(0,0,0,0,0,0,0,0,t)}function hd(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Ba(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=C_(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Ha(n,t,e){!function nT(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Vo)&&(i=e[Vo]),null==i&&(i=e[Vo]=tT++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:sT:t}(e);if("function"==typeof o){if(!i_(t,n,i))return i&L.Host?m_(r,0,i):g_(t,e,i,r);try{const s=o(i);if(null!=s||i&L.Optional)return s;Ca()}finally{a_()}}else if("number"==typeof o){let s=null,a=hd(n,t),l=-1,c=i&L.Host?t[16][6]:null;for((-1===a||i&L.SkipSelf)&&(l=-1===a?Ba(n,t):t[a+8],-1!==l&&b_(i,!1)?(s=t[1],a=Or(l),t=Pr(l,t)):a=-1);-1!==a;){const u=t[1];if(v_(o,a,u.data)){const d=rT(a,t,e,s,i,c);if(d!==In)return d}l=t[a+8],-1!==l&&b_(i,t[1].data[a+8]===c)&&v_(o,a,t)?(s=u,a=Or(l),t=Pr(l,t)):a=-1}}return r}function rT(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=ja(a,s,e,null==i?Ia(a)&&ud:i!=s&&0!=(3&a.type),r&L.Host&&o===a);return null!==u?qo(t,s,u,a):In}function ja(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f=l&&p.type===e)return f}if(r){const f=s[l];if(f&&gn(f)&&f.type===e)return l}return null}function qo(n,t,e,i){let r=n[e];const o=t.data;if(function ZI(n){return n instanceof zo}(r)){const s=r;s.resolving&&function nI(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new C(-200,`Circular dependency in DI detected for ${n}${e}`)}(function de(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():W(n)}(o[e]));const a=Va(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Jt(s.injectImpl):null;i_(n,i,L.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function KI(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=Gg(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&Jt(l),Va(a),s.resolving=!1,a_()}}return r}function v_(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[Gn]||fd(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[Gn]||fd(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function fd(n){return ju(n)?()=>{const t=fd(U(n));return t&&t()}:zi(n)}function C_(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}function Lr(n){return function iT(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function pd(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,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(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class E{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=S({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function jt(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?Yn(e,t):t(e))}function D_(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Ua(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Zo(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function dT(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function gd(n,t){const e=Ur(n,t);if(e>=0)return n[1|e]}function Ur(n,t){return function M_(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=n[o<t?r=o:i=o+1}return~(r<((Ft=Ft||{})[Ft.Important=1]="Important",Ft[Ft.DashCase=2]="DashCase",Ft))();const Ed=new Map;let HT=0;const Md="__ngContext__";function pt(n,t){kt(t)?(n[Md]=t[20],function UT(n){Ed.set(n[20],n)}(t)):n[Md]=t}function Id(n,t){return undefined(n,t)}function is(n){const t=n[3];return mn(t)?t[3]:t}function Td(n){return K_(n[13])}function xd(n){return K_(n[4])}function K_(n){for(;null!==n&&!mn(n);)n=n[4];return n}function Gr(n,t,e,i,r){if(null!=i){let o,s=!1;mn(i)?o=i:kt(i)&&(s=!0,i=i[0]);const a=qe(i);0===n&&null!==e?null==r?ey(t,e,a):Wi(t,e,a,r||null,!0):1===n&&null!==e?Wi(t,e,a,r||null,!0):2===n?function Ld(n,t,e){const i=qa(n,t);i&&function ux(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function fx(n,t,e,i,r){const o=e[7];o!==qe(e)&&Gr(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=Ua(n,10+t);!function nx(n,t){rs(n,t,t[Y],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function Q_(n,t){if(!(128&t[2])){const e=t[Y];e.destroyNode&&rs(n,t,e,3,null,null),function ox(n){let t=n[13];if(!t)return Od(n[1],n);for(;t;){let e=null;if(kt(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)kt(t)&&Od(t[1],t),t=t[3];null===t&&(t=n),kt(t)&&Od(t[1],t),e=t&&t[4]}t=e}}(t)}}function Od(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function cx(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;on,createScript:n=>n,createScriptURL:n=>n})}catch{}return Za}()?.createHTML(n)||n}function hy(n){return function Ud(){if(void 0===Qa&&(Qa=null,Ee.trustedTypes))try{Qa=Ee.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Qa}()?.createScriptURL(n)||n}class qi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class vx extends qi{getTypeName(){return"HTML"}}class bx extends qi{getTypeName(){return"Style"}}class Cx extends qi{getTypeName(){return"Script"}}class wx extends qi{getTypeName(){return"URL"}}class Dx extends qi{getTypeName(){return"ResourceURL"}}function $t(n){return n instanceof qi?n.changingThisBreaksApplicationSecurity:n}function Tn(n,t){const e=function Ex(n){return n instanceof qi&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}class xx{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Gi(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class Rx{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Gi(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Gi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0"),!0}endElement(t){const e=t.nodeName.toLowerCase();$d.hasOwnProperty(e)&&!py.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(yy(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Nx=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Lx=/([^\#-~ |!])/g;function yy(n){return n.replace(/&/g,"&").replace(Nx,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Lx,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Ja;function vy(n,t){let e=null;try{Ja=Ja||function fy(n){const t=new Rx(n);return function kx(){try{return!!(new window.DOMParser).parseFromString(Gi(""),"text/html")}catch{return!1}}()?new xx(t):t}(n);let i=t?String(t):"";e=Ja.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Ja.getInertBodyElement(i)}while(i!==o);return Gi((new Px).sanitizeChildren(Wd(e)||e))}finally{if(e){const i=Wd(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Wd(n){return"content"in n&&function Vx(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var pe=(()=>((pe=pe||{})[pe.NONE=0]="NONE",pe[pe.HTML=1]="HTML",pe[pe.STYLE=2]="STYLE",pe[pe.SCRIPT=3]="SCRIPT",pe[pe.URL=4]="URL",pe[pe.RESOURCE_URL=5]="RESOURCE_URL",pe))();function qd(n){const t=function ss(){const n=w();return n&&n[12]}();if(t)return hy(t.sanitize(pe.RESOURCE_URL,n)||"");if(Tn(n,"ResourceURL"))return hy($t(n));throw new C(904,!1)}const Kd=new E("ENVIRONMENT_INITIALIZER"),by=new E("INJECTOR",-1),Cy=new E("INJECTOR_DEF_TYPES");class wy{get(t,e=Qo){if(e===Qo){const i=new Error(`NullInjectorError: No provider for ${be(t)}!`);throw i.name="NullInjectorError",i}return e}}function Gx(...n){return{\u0275providers:Dy(0,n)}}function Dy(n,...t){const e=[],i=new Set;let r;return Yn(t,o=>{const s=o;Yd(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&Ey(r,e),e}function Ey(n,t){for(let e=0;e{t.push(o)})}}function Yd(n,t,e,i){if(!(n=U(n)))return!1;let r=null,o=Lg(n);const s=!o&&ge(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=Lg(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Yd(c,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Yn(o.imports,u=>{Yd(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&Ey(c,t)}if(!a){const c=zi(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:he},{provide:Cy,useValue:r,multi:!0},{provide:Kd,useValue:()=>_(r),multi:!0})}const l=o.providers;null==l||a||Yn(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}const qx=ve({provide:String,useValue:ve});function Zd(n){return null!==n&&"object"==typeof n&&qx in n}function Ki(n){return"function"==typeof n}const Qd=new E("Set Injector scope."),el={},Yx={};let Xd;function tl(){return void 0===Xd&&(Xd=new wy),Xd}class wi{}class Ay extends wi{constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,eh(t,s=>this.processProvider(s)),this.records.set(by,qr(void 0,this)),r.has("environment")&&this.records.set(wi,qr(void 0,this));const o=this.records.get(Qd);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Cy.multi,he,L.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=$r(this),i=Jt(void 0);try{return t()}finally{$r(e),Jt(i)}}get(t,e=Qo,i=L.Default){this.assertNotDestroyed();const r=$r(this),o=Jt(void 0);try{if(!(i&L.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function eR(n){return"function"==typeof n||"object"==typeof n&&n instanceof E}(t)&&wa(t);a=l&&this.injectableDefInScope(l)?qr(Jd(t),el):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&L.Self?tl():this.parent).get(t,e=i&L.Optional&&e===Qo?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[za]=s[za]||[]).unshift(be(t)),r)throw s;return function DT(n,t,e,i){const r=n[za];throw t[A_]&&r.unshift(t[A_]),n.message=function ET(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=be(t);if(Array.isArray(t))r=t.map(be).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):be(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(vT,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[za]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{Jt(o),$r(r)}}resolveInjectorInitializers(){const t=$r(this),e=Jt(void 0);try{const i=this.get(Kd.multi,he,L.Self);for(const r of i)r()}finally{$r(t),Jt(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(be(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(t){let e=Ki(t=U(t))?t:U(t&&t.provide);const i=function Qx(n){return Zd(n)?qr(void 0,n.useValue):qr(function Iy(n,t,e){let i;if(Ki(n)){const r=U(n);return zi(r)||Jd(r)}if(Zd(n))i=()=>U(n.useValue);else if(function My(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...vd(n.deps||[]));else if(function Sy(n){return!(!n||!n.useExisting)}(n))i=()=>_(U(n.useExisting));else{const r=U(n&&(n.useClass||n.provide));if(!function Xx(n){return!!n.deps}(n))return zi(r)||Jd(r);i=()=>new r(...vd(n.deps))}return i}(n),el)}(t);if(Ki(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=qr(void 0,el,!0),r.factory=()=>vd(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===el&&(e.value=Yx,e.value=e.factory()),"object"==typeof e.value&&e.value&&function Jx(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=U(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Jd(n){const t=wa(n),e=null!==t?t.factory:zi(n);if(null!==e)return e;if(n instanceof E)throw new C(204,!1);if(n instanceof Function)return function Zx(n){const t=n.length;if(t>0)throw Zo(t,"?"),new C(204,!1);const e=function lI(n){const t=n&&(n[Da]||n[Vg]);if(t){const e=function cI(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" 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 "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new C(204,!1)}function qr(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function tR(n){return!!n.\u0275providers}function eh(n,t){for(const e of n)Array.isArray(e)?eh(e,t):tR(e)?eh(e.\u0275providers,t):t(e)}class Ty{}class rR{resolveComponentFactory(t){throw function iR(n){const t=Error(`No component factory found for ${be(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Yi=(()=>{class n{}return n.NULL=new rR,n})();function oR(){return Kr(nt(),w())}function Kr(n,t){return new Fe(Bt(n,t))}let Fe=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=oR,n})();function sR(n){return n instanceof Fe?n.nativeElement:n}class as{}let lR=(()=>{class n{}return n.\u0275prov=S({token:n,providedIn:"root",factory:()=>null}),n})();class Zi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const cR=new Zi("14.3.0"),th={};function ih(n){return n.ngOriginalError}class Xn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&ih(t);for(;e&&ih(e);)e=ih(e);return e||null}}function Ry(n){return n.ownerDocument}function Jn(n){return n instanceof Function?n():n}function Fy(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const o=t.length;if(r+o===i||n.charCodeAt(r+o)<=32)return r}e=r+1}}const Oy="ng-template";function vR(n,t,e){let i=0;for(;io?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==Fy(f,c,0)||2&i&&c!==h){if(_n(i))return!1;s=!0}}}}else{if(!s&&!_n(i)&&!_n(l))return!1;if(s&&_n(l))continue;s=!1,i=l|1&i}}return _n(i)||s}function _n(n){return 0==(1&n)}function wR(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!_n(s)&&(t+=Ly(o,r),r=""),i=s,o=o||!_n(i);e++}return""!==r&&(t+=Ly(o,r)),t}const G={};function O(n){Vy(se(),w(),wt()+n,!1)}function Vy(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&Oa(t,o,e)}else{const o=n.preOrderHooks;null!==o&&Pa(t,o,0,e)}vi(e)}function Uy(n,t=null,e=null,i){const r=$y(n,t,e,i);return r.resolveInjectorInitializers(),r}function $y(n,t=null,e=null,i,r=new Set){const o=[e||he,Gx(n)];return i=i||("object"==typeof n?void 0:be(n)),new Ay(o,t||tl(),i||null,r)}let Oe=(()=>{class n{static create(e,i){if(Array.isArray(e))return Uy({name:""},i,e,"");{const r=e.name??"";return Uy({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=Qo,n.NULL=new wy,n.\u0275prov=S({token:n,providedIn:"any",factory:()=>_(by)}),n.__NG_ELEMENT_ID__=-1,n})();function g(n,t=L.Default){const e=w();return null===e?_(n,t):__(nt(),e,U(n),t)}function il(){throw new Error("invalid")}function rl(n,t){return n<<17|t<<2}function yn(n){return n>>17&32767}function lh(n){return 2|n}function ei(n){return(131068&n)>>2}function ch(n,t){return-131069&n|t<<2}function uh(n){return 1|n}function sv(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&Vy(n,t,22,!1),e(i,r)}finally{vi(o)}}function bh(n,t,e){!Qg()||(function pk(n,t,e,i){const r=e.directiveStart,o=e.directiveEnd;n.firstCreatePass||Go(e,t),pt(i,t);const s=e.initialInputs;for(let a=r;a0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function mv(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function gv(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function yk(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&Sh(e)}}function Sh(n){for(let i=Td(n);null!==i;i=xd(i))for(let r=10;r0&&Sh(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&Sh(r)}}function Sk(n,t){const e=Ht(t,n),i=e[1];(function Mk(n,t){for(let e=t.length;e-1&&(Fd(t,i),Ua(e,i))}this._attachedToViewContainer=!1}Q_(this._lView[1],this._lView)}onDestroy(t){uv(this._lView[1],this._lView,null,t)}markForCheck(){Mh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){ul(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function rx(n,t){rs(n,t,t[Y],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t}}class Ak extends ls{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;ul(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class Th extends Yi{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=ge(t);return new cs(e,this.ngModule)}}function Ev(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class Tk{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){const r=this.injector.get(t,th,i);return r!==th||e===th?r:this.parentInjector.get(t,e,i)}}class cs extends Ty{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function IR(n){return n.map(AR).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Ev(this.componentDef.inputs)}get outputs(){return Ev(this.componentDef.outputs)}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof wi?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new Tk(t,o):t,a=s.get(as,null);if(null===a)throw new C(407,!1);const l=s.get(lR,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function lk(n,t,e){return n.selectRootElement(t,e===fn.ShadowDom)}(c,i,this.componentDef.encapsulation):kd(c,u,function Ik(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(u)),h=this.componentDef.onPush?288:272,f=wh(0,null,null,1,0,null,null,null,null,null),p=al(null,f,null,h,null,null,a,c,l,s,null);let m,y;sd(p);try{const v=function kk(n,t,e,i,r,o){const s=e[1];e[22]=n;const l=Qr(s,22,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(dl(l,c,!0),null!==n&&(Na(r,n,c),null!==l.classes&&Bd(r,n,l.classes),null!==l.styles&&ly(r,n,l.styles)));const u=i.createRenderer(n,t),d=al(e,cv(t),null,t.onPush?32:16,e[22],l,i,u,o||null,null,null);return s.firstCreatePass&&(Ha(Go(l,e),s,t.type),gv(s,l),_v(l,e.length,1)),cl(e,d),e[22]=d}(d,this.componentDef,p,a,c);if(d)if(i)Na(c,d,["ng-version",cR.full]);else{const{attrs:D,classes:b}=function TR(n){const t=[],e=[];let i=1,r=2;for(;i0&&Bd(c,d,b.join(" "))}if(y=Ju(f,22),void 0!==e){const D=y.projection=[];for(let b=0;b=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=La(r.hostAttrs,e=La(e,r.hostAttrs))}}(i)}function xh(n){return n===Sr?{}:n===he?[]:n}function Nk(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function Lk(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function Vk(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let fl=null;function Qi(){if(!fl){const n=Ee.Symbol;if(n&&n.iterator)fl=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(qe(X[i.index])):i.index;let M=null;if(!a&&l&&(M=function Zk(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,r,i.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=o,M.__ngLastListenerFn__=o,f=!1;else{o=Bv(i,t,d,o,!1);const X=e.listen(v,r,o);h.push(o,X),u&&u.push(r,b,D,D+1)}}else o=Bv(i,t,d,o,!1);const p=i.outputs;let m;if(f&&null!==p&&(m=p[r])){const y=m.length;if(y)for(let v=0;v0;)t=t[15],n--;return t}(n,z.lFrame.contextLView))[8]}(n)}function Qk(n,t){let e=null;const i=function DR(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r=0}function Ji(n,t,e){return vn(n,t,e,!1),Ji}function $e(n,t){return vn(n,t,null,!0),$e}function vn(n,t,e,i){const r=w(),o=se(),s=Kn(2);o.firstUpdatePass&&function ib(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[wt()],s=function nb(n,t){return t>=n.expandoStartIndex}(n,e);(function ab(n,t){return 0!=(n.flags&(t?16:32))})(o,i)&&null===t&&!s&&(t=!1),t=function cF(n,t,e,i){const r=rd(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=fs(e=Hh(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=Hh(r,n,t,e,i),null===o){let l=function uF(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==ei(i))return n[yn(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=Hh(null,n,t,l[1],i),l=fs(l,t.attrs,i),function dF(n,t,e,i){n[yn(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function hF(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=yn(n[a+1]);n[i+1]=rl(h,a),0!==h&&(n[h+1]=ch(n[h+1],i)),n[a+1]=function KR(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=rl(a,0),0!==a&&(n[a+1]=ch(n[a+1],i)),a=i;else n[i+1]=rl(l,0),0===a?a=i:n[l+1]=ch(n[l+1],i),l=i;c&&(n[i+1]=lh(n[i+1])),Yv(n,u,i,!0),Yv(n,u,i,!1),function Jk(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&Ur(o,t)>=0&&(e[i+1]=uh(e[i+1]))}(t,u,n,i,o),s=rl(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}(o,n,s,i),t!==G&&mt(r,s,t)&&function ob(n,t,e,i,r,o,s,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];gl(function Xy(n){return 1==(1&n)}(c)?sb(l,t,e,r,ei(c),s):void 0)||(gl(o)||function Qy(n){return 2==(2&n)}(c)&&(o=sb(l,null,e,r,a,s)),function px(n,t,e,i,r){if(t)r?n.addClass(e,i):n.removeClass(e,i);else{let o=-1===i.indexOf("-")?void 0:Ft.DashCase;null==r?n.removeStyle(e,i,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=Ft.Important),n.setStyle(e,i,r,o))}}(i,s,xa(wt(),e),r,o))}(o,o.data[wt()],r,r[Y],n,r[s+1]=function mF(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=be($t(n)))),n}(t,e),i,s)}function Hh(n,t,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===G&&(h=d?he:void 0);let f=d?gd(h,i):u===i?h:void 0;if(c&&!gl(f)&&(f=gd(l,i)),gl(f)&&(a=f,s))return a;const p=n[r+1];r=s?yn(p):ei(p)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=gd(l,i))}return a}function gl(n){return void 0!==n}function ie(n,t=""){const e=w(),i=se(),r=n+22,o=i.firstCreatePass?Qr(i,r,1,t,null):i.data[r],s=e[r]=function Rd(n,t){return n.createText(t)}(e[Y],t);Ka(i,e,s,o),An(o,!1)}function Te(n){return On("",n,""),Te}function On(n,t,e){const i=w(),r=function eo(n,t,e,i){return mt(n,Fr(),e)?t+W(e)+i:G}(i,n,t,e);return r!==G&&ti(i,wt(),r),On}function jh(n,t,e,i,r,o,s){const a=w(),l=no(a,n,t,e,i,r,o,s);return l!==G&&ti(a,wt(),l),jh}function Uh(n,t,e,i,r,o,s,a,l){const c=w(),u=io(c,n,t,e,i,r,o,s,a,l);return u!==G&&ti(c,wt(),u),Uh}function $h(n,t,e){const i=w();return mt(i,Fr(),t)&&zt(se(),Ne(),i,n,t,i[Y],e,!0),$h}function _l(n,t,e){const i=w();if(mt(i,Fr(),t)){const o=se(),s=Ne();zt(o,s,i,n,t,wv(rd(o.data),s,i),e,!0)}return _l}const er=void 0;var PF=["en",[["a","p"],["AM","PM"],er],[["AM","PM"],er,er],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],er,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],er,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",er,"{1} 'at' {0}",er],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function OF(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let uo={};function Et(n){const t=function NF(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=Eb(t);if(e)return e;const i=t.split("-")[0];if(e=Eb(i),e)return e;if("en"===i)return PF;throw new C(701,!1)}function Eb(n){return n in uo||(uo[n]=Ee.ng&&Ee.ng.common&&Ee.ng.common.locales&&Ee.ng.common.locales[n]),uo[n]}var T=(()=>((T=T||{})[T.LocaleId=0]="LocaleId",T[T.DayPeriodsFormat=1]="DayPeriodsFormat",T[T.DayPeriodsStandalone=2]="DayPeriodsStandalone",T[T.DaysFormat=3]="DaysFormat",T[T.DaysStandalone=4]="DaysStandalone",T[T.MonthsFormat=5]="MonthsFormat",T[T.MonthsStandalone=6]="MonthsStandalone",T[T.Eras=7]="Eras",T[T.FirstDayOfWeek=8]="FirstDayOfWeek",T[T.WeekendRange=9]="WeekendRange",T[T.DateFormat=10]="DateFormat",T[T.TimeFormat=11]="TimeFormat",T[T.DateTimeFormat=12]="DateTimeFormat",T[T.NumberSymbols=13]="NumberSymbols",T[T.NumberFormats=14]="NumberFormats",T[T.CurrencyCode=15]="CurrencyCode",T[T.CurrencySymbol=16]="CurrencySymbol",T[T.CurrencyName=17]="CurrencyName",T[T.Currencies=18]="Currencies",T[T.Directionality=19]="Directionality",T[T.PluralCase=20]="PluralCase",T[T.ExtraData=21]="ExtraData",T))();const ho="en-US";let Sb=ho;class tr{}class Qb{}class Xb extends tr{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Th(this);const i=Lt(t);this._bootstrapComponents=Jn(i.bootstrap),this._r3Injector=$y(t,e,[{provide:tr,useValue:this},{provide:Yi,useValue:this.componentFactoryResolver}],be(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Zh extends Qb{constructor(t){super(),this.moduleType=t}create(t){return new Xb(this.moduleType,t)}}class PO extends tr{constructor(t,e,i){super(),this.componentFactoryResolver=new Th(this),this.instance=null;const r=new Ay([...t,{provide:tr,useValue:this},{provide:Yi,useValue:this.componentFactoryResolver}],e||tl(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function wl(n,t,e=null){return new PO(n,t,e).injector}let NO=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=Dy(0,e.type),r=i.length>0?wl([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=S({token:n,providedIn:"environment",factory:()=>new n(_(wi))}),n})();function Jb(n){n.getStandaloneInjector=t=>t.get(NO).getOrCreateStandaloneInjector(n)}function aC(n,t,e,i,r,o,s){const a=t+e;return Xi(n,a,r,o)?function Rn(n,t,e){return n[t]=e}(n,a+2,s?i.call(s,r,o):i(r,o)):function vs(n,t){const e=n[t];return e===G?void 0:e}(n,a+2)}function Xh(n,t){const e=se();let i;const r=n+22;e.firstCreatePass?(i=function tP(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=zi(i.type)),s=Jt(g);try{const a=Va(!1),l=o();return Va(a),function qk(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,w(),r,l),l}finally{Jt(s)}}function Jh(n,t,e,i){const r=n+22,o=w(),s=xr(o,r);return function bs(n,t){return n[1].data[t].pure}(o,r)?aC(o,function Ct(){const n=z.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}(),t,s.transform,e,i,s):s.transform(e,i)}function ef(n){return t=>{setTimeout(n,void 0,t)}}const xe=class sP extends ee{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),s=i;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=ef(o),r&&(r=ef(r)),s&&(s=ef(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof et&&t.add(a),a}};function aP(){return this._results[Qi()]()}class tf{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Qi(),i=tf.prototype;i[e]||(i[e]=aP)}get changes(){return this._changes||(this._changes=new xe)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=jt(t);(this._changesDetected=!function cT(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=uP,n})();const lP=Cn,cP=class extends lP{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=al(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),vh(i,r,t),new ls(r)}};function uP(){return Dl(nt(),w())}function Dl(n,t){return 4&n.type?new cP(t,n,Kr(n,t)):null}let on=(()=>{class n{}return n.__NG_ELEMENT_ID__=dP,n})();function dP(){return fC(nt(),w())}const hP=on,dC=class extends hP{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Kr(this._hostTNode,this._hostLView)}get injector(){return new Nr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ba(this._hostTNode,this._hostLView);if(h_(t)){const e=Pr(t,this._hostLView),i=Or(t);return new Nr(e[1].data[i+8],e)}return new Nr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=hC(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=t.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(t,e,i,r,o){const s=t&&!function Yo(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?t:new cs(ge(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(wi,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function RI(n){return mn(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new dC(d,d[6],d[3]);h.detach(h.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function sx(n,t,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=t),i0)i.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let d=10;d{class n{constructor(e){this.appInits=e,this.resolve=Sl,this.reject=Sl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(_(Ml,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ds=new E("AppId",{providedIn:"root",factory:function LC(){return`${mf()}${mf()}${mf()}`}});function mf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const VC=new E("Platform Initializer"),Il=new E("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),BC=new E("appBootstrapListener"),rr=new E("AnimationModuleType");let jP=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Pn=new E("LocaleId",{providedIn:"root",factory:()=>Ie(Pn,L.Optional|L.SkipSelf)||function UP(){return typeof $localize<"u"&&$localize.locale||ho}()});class zP{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let gf=(()=>{class n{compileModuleSync(e){return new Zh(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Jn(Lt(e).declarations).reduce((s,a)=>{const l=ge(a);return l&&s.push(new cs(l)),s},[]);return new zP(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const qP=(()=>Promise.resolve(0))();function _f(n){typeof Zone>"u"?qP.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class te{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xe(!1),this.onMicrotaskEmpty=new xe(!1),this.onStable=new xe(!1),this.onError=new xe(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function KP(){let n=Ee.requestAnimationFrame,t=Ee.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function QP(n){const t=()=>{!function ZP(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Ee,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,vf(n),n.isCheckStableRunning=!0,yf(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),vf(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return UC(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),$C(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return UC(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),$C(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,vf(n),yf(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!te.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(te.isInAngularZone())throw new C(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,YP,Sl,Sl);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const YP={};function yf(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 vf(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function UC(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function $C(n){n._nesting--,yf(n)}class XP{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xe,this.onMicrotaskEmpty=new xe,this.onStable=new xe,this.onError=new xe}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const zC=new E(""),Tl=new E("");let wf,bf=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,wf||(function JP(n){wf=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{te.assertNotInAngularZone(),_f(()=>{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())_f(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,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(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(_(te),_(Cf),_(Tl))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),Cf=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return wf?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Si=null;const WC=new E("AllowMultipleToken"),Df=new E("PlatformDestroyListeners");class GC{constructor(t,e){this.name=t,this.token=e}}function KC(n,t,e=[]){const i=`Platform: ${t}`,r=new E(i);return(o=[])=>{let s=Ef();if(!s||s.injector.get(WC,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function nN(n){if(Si&&!Si.get(WC,!1))throw new C(400,!1);Si=n;const t=n.get(ZC);(function qC(n){const t=n.get(VC,null);t&&t.forEach(e=>e())})(n)}(function YC(n=[],t){return Oe.create({name:t,providers:[{provide:Qd,useValue:"platform"},{provide:Df,useValue:new Set([()=>Si=null])},...n]})}(a,i))}return function rN(n){const t=Ef();if(!t)throw new C(401,!1);return t}()}}function Ef(){return Si?.get(ZC)??null}let ZC=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function XC(n,t){let e;return e="noop"===n?new XP:("zone.js"===n?void 0:n)||new te(t),e}(i?.ngZone,function QC(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:te,useValue:r}];return r.run(()=>{const s=Oe.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(Xn,null);if(!l)throw new C(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{xl(this._modules,a),c.unsubscribe()})}),function JC(n,t,e){try{const i=e();return hs(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(Al);return c.runInitializers(),c.donePromise.then(()=>(function Mb(n){Nt(n,"Expected localeId to be defined"),"string"==typeof n&&(Sb=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Pn,ho)||ho),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=ew({},i);return function eN(n,t,e){const i=new Zh(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(mo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new C(403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new C(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Df,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(_(Oe))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function ew(n,t){return Array.isArray(t)?t.reduce(ew,n):{...n,...t}}let mo=(()=>{class n{constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new _e(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new _e(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{te.assertNotInAngularZone(),_f(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{te.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Lu(o,s.pipe(Pg()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof Ty;if(!this._injector.get(Al).done)throw!r&&function Mr(n){const t=ge(n)||vt(n)||bt(n);return null!==t&&t.standalone}(e),new C(405,false);let s;s=r?e:this._injector.get(Yi).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function tN(n){return n.isBoundToModule}(s)?void 0:this._injector.get(tr),c=s.create(Oe.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(zC,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),xl(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;xl(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(BC,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>xl(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new C(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(_(te),_(wi),_(Xn))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function xl(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let nw=!0,or=(()=>{class n{}return n.__NG_ELEMENT_ID__=aN,n})();function aN(n){return function lN(n,t,e){if(Ia(n)&&!e){const i=Ht(n.index,t);return new ls(i,i)}return 47&n.type?new ls(t[16],t):null}(nt(),w(),16==(16&n))}class aw{constructor(){}supports(t){return us(t)}create(t){return new pN(t)}}const fN=(n,t)=>t;class pN{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||fN}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new mN(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new lw),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new lw),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class mN{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class gN{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class lw{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new gN,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function cw(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||dw()),deps:[[n,new zr,new Ci]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new C(901,!1)}}return n.\u0275prov=S({token:n,providedIn:"root",factory:dw}),n})();const CN=KC(null,"core",[]);let wN=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(_(mo))},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({}),n})(),Ol=null;function Nn(){return Ol}const q=new E("DocumentToken");let Tf=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:function(){return function MN(){return _(fw)}()},providedIn:"platform"}),n})();const AN=new E("Location Initialized");let fw=(()=>{class n extends Tf{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Nn().getBaseHref(this._doc)}onPopState(e){const i=Nn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Nn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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(e){this.location.pathname=e}pushState(e,i,r){pw()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){pw()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(_(q))},n.\u0275prov=S({token:n,factory:function(){return function IN(){return new fw(_(q))}()},providedIn:"platform"}),n})();function pw(){return!!window.history.pushState}function xf(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function mw(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function ri(n){return n&&"?"!==n[0]?"?"+n:n}let ar=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:function(){return Ie(_w)},providedIn:"root"}),n})();const gw=new E("appBaseHref");let _w=(()=>{class n extends ar{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Ie(q).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return xf(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+ri(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+ri(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+ri(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(_(Tf),_(gw,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),TN=(()=>{class n extends ar{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=xf(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+ri(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+ri(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(_(Tf),_(gw,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),Ss=(()=>{class n{constructor(e){this._subject=new xe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=mw(yw(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+ri(i))}normalize(e){return n.stripTrailingSlash(function RN(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,yw(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ri(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ri(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=ri,n.joinWithSlash=xf,n.stripTrailingSlash=mw,n.\u0275fac=function(e){return new(e||n)(_(ar))},n.\u0275prov=S({token:n,factory:function(){return function xN(){return new Ss(_(ar))}()},providedIn:"root"}),n})();function yw(n){return n.replace(/\/index.html$/,"")}var ze=(()=>((ze=ze||{})[ze.Format=0]="Format",ze[ze.Standalone=1]="Standalone",ze))(),re=(()=>((re=re||{})[re.Narrow=0]="Narrow",re[re.Abbreviated=1]="Abbreviated",re[re.Wide=2]="Wide",re[re.Short=3]="Short",re))(),Le=(()=>((Le=Le||{})[Le.Short=0]="Short",Le[Le.Medium=1]="Medium",Le[Le.Long=2]="Long",Le[Le.Full=3]="Full",Le))(),V=(()=>((V=V||{})[V.Decimal=0]="Decimal",V[V.Group=1]="Group",V[V.List=2]="List",V[V.PercentSign=3]="PercentSign",V[V.PlusSign=4]="PlusSign",V[V.MinusSign=5]="MinusSign",V[V.Exponential=6]="Exponential",V[V.SuperscriptingExponent=7]="SuperscriptingExponent",V[V.PerMille=8]="PerMille",V[V.Infinity=9]="Infinity",V[V.NaN=10]="NaN",V[V.TimeSeparator=11]="TimeSeparator",V[V.CurrencyDecimal=12]="CurrencyDecimal",V[V.CurrencyGroup=13]="CurrencyGroup",V))();function Pl(n,t){return an(Et(n)[T.DateFormat],t)}function Nl(n,t){return an(Et(n)[T.TimeFormat],t)}function Ll(n,t){return an(Et(n)[T.DateTimeFormat],t)}function sn(n,t){const e=Et(n),i=e[T.NumberSymbols][t];if(typeof i>"u"){if(t===V.CurrencyDecimal)return e[T.NumberSymbols][V.Decimal];if(t===V.CurrencyGroup)return e[T.NumberSymbols][V.Group]}return i}function bw(n){if(!n[T.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[T.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function an(n,t){for(let e=t;e>-1;e--)if(typeof n[e]<"u")return n[e];throw new Error("Locale data API: locale data undefined")}function kf(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const zN=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ms={},WN=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var at=(()=>((at=at||{})[at.Short=0]="Short",at[at.ShortGMT=1]="ShortGMT",at[at.Long=2]="Long",at[at.Extended=3]="Extended",at))(),H=(()=>((H=H||{})[H.FullYear=0]="FullYear",H[H.Month=1]="Month",H[H.Date=2]="Date",H[H.Hours=3]="Hours",H[H.Minutes=4]="Minutes",H[H.Seconds=5]="Seconds",H[H.FractionalSeconds=6]="FractionalSeconds",H[H.Day=7]="Day",H))(),Q=(()=>((Q=Q||{})[Q.DayPeriods=0]="DayPeriods",Q[Q.Days=1]="Days",Q[Q.Months=2]="Months",Q[Q.Eras=3]="Eras",Q))();function GN(n,t,e,i){let r=function t1(n){if(Dw(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[r,o=1,s=1]=n.split("-").map(a=>+a);return Vl(r,o-1,s)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let i;if(i=n.match(zN))return function n1(n){const t=new Date(0);let e=0,i=0;const r=n[8]?t.setUTCFullYear:t.setFullYear,o=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),i=Number(n[9]+n[11])),r.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));const s=Number(n[4]||0)-e,a=Number(n[5]||0)-i,l=Number(n[6]||0),c=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return o.call(t,s,a,l,c),t}(i)}const t=new Date(n);if(!Dw(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=oi(e,t)||t;let a,s=[];for(;t;){if(a=WN.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;t=u}}let l=r.getTimezoneOffset();i&&(l=ww(i,l),r=function e1(n,t,e){const i=e?-1:1,r=n.getTimezoneOffset();return function JN(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,i*(ww(t,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const d=function XN(n){if(Of[n])return Of[n];let t;switch(n){case"G":case"GG":case"GGG":t=Ae(Q.Eras,re.Abbreviated);break;case"GGGG":t=Ae(Q.Eras,re.Wide);break;case"GGGGG":t=Ae(Q.Eras,re.Narrow);break;case"y":t=Ze(H.FullYear,1,0,!1,!0);break;case"yy":t=Ze(H.FullYear,2,0,!0,!0);break;case"yyy":t=Ze(H.FullYear,3,0,!1,!0);break;case"yyyy":t=Ze(H.FullYear,4,0,!1,!0);break;case"Y":t=Ul(1);break;case"YY":t=Ul(2,!0);break;case"YYY":t=Ul(3);break;case"YYYY":t=Ul(4);break;case"M":case"L":t=Ze(H.Month,1,1);break;case"MM":case"LL":t=Ze(H.Month,2,1);break;case"MMM":t=Ae(Q.Months,re.Abbreviated);break;case"MMMM":t=Ae(Q.Months,re.Wide);break;case"MMMMM":t=Ae(Q.Months,re.Narrow);break;case"LLL":t=Ae(Q.Months,re.Abbreviated,ze.Standalone);break;case"LLLL":t=Ae(Q.Months,re.Wide,ze.Standalone);break;case"LLLLL":t=Ae(Q.Months,re.Narrow,ze.Standalone);break;case"w":t=Ff(1);break;case"ww":t=Ff(2);break;case"W":t=Ff(1,!0);break;case"d":t=Ze(H.Date,1);break;case"dd":t=Ze(H.Date,2);break;case"c":case"cc":t=Ze(H.Day,1);break;case"ccc":t=Ae(Q.Days,re.Abbreviated,ze.Standalone);break;case"cccc":t=Ae(Q.Days,re.Wide,ze.Standalone);break;case"ccccc":t=Ae(Q.Days,re.Narrow,ze.Standalone);break;case"cccccc":t=Ae(Q.Days,re.Short,ze.Standalone);break;case"E":case"EE":case"EEE":t=Ae(Q.Days,re.Abbreviated);break;case"EEEE":t=Ae(Q.Days,re.Wide);break;case"EEEEE":t=Ae(Q.Days,re.Narrow);break;case"EEEEEE":t=Ae(Q.Days,re.Short);break;case"a":case"aa":case"aaa":t=Ae(Q.DayPeriods,re.Abbreviated);break;case"aaaa":t=Ae(Q.DayPeriods,re.Wide);break;case"aaaaa":t=Ae(Q.DayPeriods,re.Narrow);break;case"b":case"bb":case"bbb":t=Ae(Q.DayPeriods,re.Abbreviated,ze.Standalone,!0);break;case"bbbb":t=Ae(Q.DayPeriods,re.Wide,ze.Standalone,!0);break;case"bbbbb":t=Ae(Q.DayPeriods,re.Narrow,ze.Standalone,!0);break;case"B":case"BB":case"BBB":t=Ae(Q.DayPeriods,re.Abbreviated,ze.Format,!0);break;case"BBBB":t=Ae(Q.DayPeriods,re.Wide,ze.Format,!0);break;case"BBBBB":t=Ae(Q.DayPeriods,re.Narrow,ze.Format,!0);break;case"h":t=Ze(H.Hours,1,-12);break;case"hh":t=Ze(H.Hours,2,-12);break;case"H":t=Ze(H.Hours,1);break;case"HH":t=Ze(H.Hours,2);break;case"m":t=Ze(H.Minutes,1);break;case"mm":t=Ze(H.Minutes,2);break;case"s":t=Ze(H.Seconds,1);break;case"ss":t=Ze(H.Seconds,2);break;case"S":t=Ze(H.FractionalSeconds,1);break;case"SS":t=Ze(H.FractionalSeconds,2);break;case"SSS":t=Ze(H.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Hl(at.Short);break;case"ZZZZZ":t=Hl(at.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Hl(at.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Hl(at.Long);break;default:return null}return Of[n]=t,t}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Vl(n,t,e){const i=new Date(0);return i.setFullYear(n,t,e),i.setHours(0,0,0),i}function oi(n,t){const e=function kN(n){return Et(n)[T.LocaleId]}(n);if(Ms[e]=Ms[e]||{},Ms[e][t])return Ms[e][t];let i="";switch(t){case"shortDate":i=Pl(n,Le.Short);break;case"mediumDate":i=Pl(n,Le.Medium);break;case"longDate":i=Pl(n,Le.Long);break;case"fullDate":i=Pl(n,Le.Full);break;case"shortTime":i=Nl(n,Le.Short);break;case"mediumTime":i=Nl(n,Le.Medium);break;case"longTime":i=Nl(n,Le.Long);break;case"fullTime":i=Nl(n,Le.Full);break;case"short":const r=oi(n,"shortTime"),o=oi(n,"shortDate");i=Bl(Ll(n,Le.Short),[r,o]);break;case"medium":const s=oi(n,"mediumTime"),a=oi(n,"mediumDate");i=Bl(Ll(n,Le.Medium),[s,a]);break;case"long":const l=oi(n,"longTime"),c=oi(n,"longDate");i=Bl(Ll(n,Le.Long),[l,c]);break;case"full":const u=oi(n,"fullTime"),d=oi(n,"fullDate");i=Bl(Ll(n,Le.Full),[u,d])}return i&&(Ms[e][t]=i),i}function Bl(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,i){return null!=t&&i in t?t[i]:e})),n}function Dn(n,t,e="-",i,r){let o="";(n<0||r&&n<=0)&&(r?n=1-n:(n=-n,o=e));let s=String(n);for(;s.length0||a>-e)&&(a+=e),n===H.Hours)0===a&&-12===e&&(a=12);else if(n===H.FractionalSeconds)return function qN(n,t){return Dn(n,3).substring(0,t)}(a,t);const l=sn(s,V.MinusSign);return Dn(a,t,l,i,r)}}function Ae(n,t,e=ze.Format,i=!1){return function(r,o){return function YN(n,t,e,i,r,o){switch(e){case Q.Months:return function PN(n,t,e){const i=Et(n),o=an([i[T.MonthsFormat],i[T.MonthsStandalone]],t);return an(o,e)}(t,r,i)[n.getMonth()];case Q.Days:return function ON(n,t,e){const i=Et(n),o=an([i[T.DaysFormat],i[T.DaysStandalone]],t);return an(o,e)}(t,r,i)[n.getDay()];case Q.DayPeriods:const s=n.getHours(),a=n.getMinutes();if(o){const c=function BN(n){const t=Et(n);return bw(t),(t[T.ExtraData][2]||[]).map(i=>"string"==typeof i?kf(i):[kf(i[0]),kf(i[1])])}(t),u=function HN(n,t,e){const i=Et(n);bw(i);const o=an([i[T.ExtraData][0],i[T.ExtraData][1]],t)||[];return an(o,e)||[]}(t,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[f,p]=h,m=s>=f.hours&&a>=f.minutes,y=s0?Math.floor(r/60):Math.ceil(r/60);switch(n){case at.Short:return(r>=0?"+":"")+Dn(s,2,o)+Dn(Math.abs(r%60),2,o);case at.ShortGMT:return"GMT"+(r>=0?"+":"")+Dn(s,1,o);case at.Long:return"GMT"+(r>=0?"+":"")+Dn(s,2,o)+":"+Dn(Math.abs(r%60),2,o);case at.Extended:return 0===i?"Z":(r>=0?"+":"")+Dn(s,2,o)+":"+Dn(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${n}"`)}}}function Cw(n){return Vl(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function Ff(n,t=!1){return function(e,i){let r;if(t){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=Cw(e),s=function QN(n){const t=Vl(n,0,1).getDay();return Vl(n,0,1+(t<=4?4:11)-t)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return Dn(r,n,sn(i,V.MinusSign))}}function Ul(n,t=!1){return function(e,i){return Dn(Cw(e).getFullYear(),n,sn(i,V.MinusSign),t)}}const Of={};function ww(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function Dw(n){return n instanceof Date&&!isNaN(n.valueOf())}function Aw(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}class _1{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,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 Ln=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new _1(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),xw(a,r)}});for(let r=0,o=i.length;r{xw(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(g(on),g(Cn),g(Fl))},n.\u0275dir=N({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function xw(n,t){n.context.$implicit=t.item}let zl=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new v1,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Rw("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Rw("ngIfElse",e),this._elseTemplateRef=e,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(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(g(on),g(Cn))},n.\u0275dir=N({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class v1{constructor(){this.$implicit=null,this.ngIf=null}}function Rw(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${be(t)}'.`)}class Hf{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Wl=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==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(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new Hf(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(g(on),g(Cn),g(Wl,9))},n.\u0275dir=N({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})();const F1=new E("DATE_PIPE_DEFAULT_TIMEZONE");let jf=(()=>{class n{constructor(e,i){this.locale=e,this.defaultTimezone=i}transform(e,i="mediumDate",r,o){if(null==e||""===e||e!=e)return null;try{return GN(e,i,o||this.locale,r??this.defaultTimezone??void 0)}catch(s){throw function En(n,t){return new C(2100,!1)}()}}}return n.\u0275fac=function(e){return new(e||n)(g(Pn,16),g(F1,24))},n.\u0275pipe=Rt({name:"date",type:n,pure:!0,standalone:!0}),n})(),Gl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({}),n})();const Pw="browser";let K1=(()=>{class n{}return n.\u0275prov=S({token:n,providedIn:"root",factory:()=>new Y1(_(q),window)}),n})();class Y1{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function Z1(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Nw(this.window.history)||Nw(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Nw(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class Lw{}class Gf extends class DL extends class SN{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function EN(n){Ol||(Ol=n)}(new Gf)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function EL(){return Ts=Ts||document.querySelector("base"),Ts?Ts.getAttribute("href"):null}();return null==e?null:function SL(n){Yl=Yl||document.createElement("a"),Yl.setAttribute("href",n);const t=Yl.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Ts=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Aw(document.cookie,t)}}let Yl,Ts=null;const Uw=new E("TRANSITION_ID"),AL=[{provide:Ml,useFactory:function ML(n,t,e){return()=>{e.get(Al).donePromise.then(()=>{const i=Nn(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const Zl=new E("EventManagerPlugins");let Ql=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),xs=(()=>{class n extends zw{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(Ww),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ww))}}return n.\u0275fac=function(e){return new(e||n)(_(q))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();function Ww(n){Nn().remove(n)}const qf={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/"},Kf=/%COMP%/g;function Xl(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Jl=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Yf(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case fn.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new PL(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case fn.ShadowDom:return new NL(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Xl(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(_(Ql),_(xs),_(Ds))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class Yf{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(qf[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(Zw(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(Zw(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=qf[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=qf[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(Ft.DashCase|Ft.Important)?t.style.setProperty(e,i,r&Ft.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Ft.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Kw(i)):this.eventManager.addEventListener(t,e,Kw(i))}}function Zw(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class PL extends Yf{constructor(t,e,i,r){super(t),this.component=i;const o=Xl(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function kL(n){return"_ngcontent-%COMP%".replace(Kf,n)}(r+"-"+i.id),this.hostAttr=function FL(n){return"_nghost-%COMP%".replace(Kf,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class NL extends Yf{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Xl(r.id,r.styles,[]);for(let s=0;s{class n extends $w{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(_(q))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const Qw=["alt","control","meta","shift"],VL={"\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"},BL={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let HL=(()=>{class n extends $w{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Nn().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),Qw.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=VL[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Qw.forEach(s=>{s!==r&&(0,BL[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{n.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(_(q))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const zL=KC(CN,"browser",[{provide:Il,useValue:Pw},{provide:VC,useValue:function jL(){Gf.makeCurrent()},multi:!0},{provide:q,useFactory:function $L(){return function yx(n){jd=n}(document),document},deps:[]}]),eD=new E(""),tD=[{provide:Tl,useClass:class IL{addToWindow(t){Ee.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},Ee.getAllAngularTestabilities=()=>t.getAllTestabilities(),Ee.getAllAngularRootElements=()=>t.getAllRootElements(),Ee.frameworkStabilizers||(Ee.frameworkStabilizers=[]),Ee.frameworkStabilizers.push(i=>{const r=Ee.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?Nn().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:zC,useClass:bf,deps:[te,Cf,Tl]},{provide:bf,useClass:bf,deps:[te,Cf,Tl]}],nD=[{provide:Qd,useValue:"root"},{provide:Xn,useFactory:function UL(){return new Xn},deps:[]},{provide:Zl,useClass:LL,multi:!0,deps:[q,te,Il]},{provide:Zl,useClass:HL,multi:!0,deps:[q]},{provide:Jl,useClass:Jl,deps:[Ql,xs,Ds]},{provide:as,useExisting:Jl},{provide:zw,useExisting:xs},{provide:xs,useClass:xs,deps:[q]},{provide:Ql,useClass:Ql,deps:[Zl,te]},{provide:Lw,useClass:TL,deps:[]},[]];let iD=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:Ds,useValue:e.appId},{provide:Uw,useExisting:Ds},AL]}}}return n.\u0275fac=function(e){return new(e||n)(_(eD,12))},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({providers:[...nD,...tD],imports:[Gl,wN]}),n})(),rD=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(_(q))},n.\u0275prov=S({token:n,factory:function(e){let i=null;return i=e?new e:function GL(){return new rD(_(q))}(),i},providedIn:"root"}),n})();typeof window<"u"&&window;let ec=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:function(e){let i=null;return i=e?new(e||n):_(aD),i},providedIn:"root"}),n})(),aD=(()=>{class n extends ec{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case pe.NONE:return i;case pe.HTML:return Tn(i,"HTML")?$t(i):vy(this._doc,String(i)).toString();case pe.STYLE:return Tn(i,"Style")?$t(i):i;case pe.SCRIPT:if(Tn(i,"Script"))return $t(i);throw new Error("unsafe value used in a script context");case pe.URL:return Tn(i,"URL")?$t(i):Xa(String(i));case pe.RESOURCE_URL:if(Tn(i,"ResourceURL"))return $t(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 ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function Sx(n){return new vx(n)}(e)}bypassSecurityTrustStyle(e){return function Mx(n){return new bx(n)}(e)}bypassSecurityTrustScript(e){return function Ax(n){return new Cx(n)}(e)}bypassSecurityTrustUrl(e){return function Ix(n){return new wx(n)}(e)}bypassSecurityTrustResourceUrl(e){return function Tx(n){return new Dx(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(_(q))},n.\u0275prov=S({token:n,factory:function(e){let i=null;return i=e?new e:function JL(n){return new aD(n.get(q))}(_(Oe)),i},providedIn:"root"}),n})();function k(...n){return Ge(n,Lo(n))}class ut extends ee{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:i}=this;if(t)throw e;return this._throwIfClosed(),i}next(t){super.next(this._value=t)}}const tc=Po(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:eV}=Array,{getPrototypeOf:tV,prototype:nV,keys:iV}=Object;function lD(n){if(1===n.length){const t=n[0];if(eV(t))return{args:t,keys:null};if(function rV(n){return n&&"object"==typeof n&&tV(n)===nV}(t)){const e=iV(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}const{isArray:oV}=Array;function Xf(n){return $(t=>function sV(n,t){return oV(t)?n(...t):n(t)}(n,t))}function cD(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function Jf(...n){const t=Lo(n),e=Rg(n),{args:i,keys:r}=lD(n);if(0===i.length)return Ge([],t);const o=new _e(function aV(n,t,e=mi){return i=>{uD(t,()=>{const{length:r}=n,o=new Array(r);let s=r,a=r;for(let l=0;l{const c=Ge(n[l],t);let u=!1;c.subscribe(ye(i,d=>{o[l]=d,u||(u=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,t,r?s=>cD(r,s):mi));return e?o.pipe(Xf(e)):o}function uD(n,t,e){n?$n(e,n,t):t()}function Rs(...n){return function lV(){return Er(1)}()(Ge(n,Lo(n)))}function nc(n){return new _e(t=>{xt(n()).subscribe(t)})}function go(n,t){const e=ae(n)?n:()=>n,i=r=>r.error(e());return new _e(t?r=>t.schedule(i,0,r):i)}function ep(){return Re((n,t)=>{let e=null;n._refCount++;const i=ye(t,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),t.unsubscribe()});n.subscribe(i),i.closed||(e=n.connect())})}class dD extends _e{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,gg(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new et;const e=this.getSubject();t.add(this.source.subscribe(ye(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),t.closed&&(this._connection=null,t=et.EMPTY)}return t}refCount(){return ep()(this)}}function Vn(n,t){return Re((e,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();e.subscribe(ye(i,l=>{r?.unsubscribe();let c=0;const u=o++;xt(n(l,u)).subscribe(r=ye(i,d=>i.next(t?t(l,d,u,c++):d),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function Mt(n){return n<=0?()=>zn:Re((t,e)=>{let i=0;t.subscribe(ye(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}function ic(...n){const t=Lo(n);return Re((e,i)=>{(t?Rs(n,e,t):Rs(n,e)).subscribe(i)})}function At(n,t){return Re((e,i)=>{let r=0;e.subscribe(ye(i,o=>n.call(t,o,r++)&&i.next(o)))})}function rc(n){return Re((t,e)=>{let i=!1;t.subscribe(ye(e,r=>{i=!0,e.next(r)},()=>{i||e.next(n),e.complete()}))})}function hD(n=cV){return Re((t,e)=>{let i=!1;t.subscribe(ye(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(n())))})}function cV(){return new tc}function Ai(n,t){const e=arguments.length>=2;return i=>i.pipe(n?At((r,o)=>n(r,o,i)):mi,Mt(1),e?rc(t):hD(()=>new tc))}function Ii(n,t){return ae(t)?tt(n,t,1):tt(n,1)}function Qe(n,t,e){const i=ae(n)||t||e?{next:n,error:t,complete:e}:n;return i?Re((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(ye(o,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),o.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):mi}function si(n){return Re((t,e)=>{let o,i=null,r=!1;i=t.subscribe(ye(e,void 0,void 0,s=>{o=xt(n(s,si(n)(t))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function uV(n,t,e,i,r){return(o,s)=>{let a=e,l=t,c=0;o.subscribe(ye(s,u=>{const d=c++;l=a?n(l,u,d):(a=!0,u),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function fD(n,t){return Re(uV(n,t,arguments.length>=2,!0))}function tp(n){return n<=0?()=>zn:Re((t,e)=>{let i=[];t.subscribe(ye(e,r=>{i.push(r),n{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function pD(n,t){const e=arguments.length>=2;return i=>i.pipe(n?At((r,o)=>n(r,o,i)):mi,tp(1),e?rc(t):hD(()=>new tc))}function mD(n){return $(()=>n)}function oc(n){return Re((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}const J="primary",ks=Symbol("RouteTitle");class hV{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function _o(n){return new hV(n)}function fV(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[o]===r)}return n===t}function _D(n){return Array.prototype.concat.apply([],n)}function yD(n){return n.length>0?n[n.length-1]:null}function dt(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function Ti(n){return Nh(n)?n:hs(n)?Ge(Promise.resolve(n)):k(n)}const gV={exact:function CD(n,t,e){if(!cr(n.segments,t.segments)||!sc(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!CD(n.children[i],t.children[i],e))return!1;return!0},subset:wD},vD={exact:function _V(n,t){return Bn(n,t)},subset:function yV(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>gD(n[e],t[e]))},ignored:()=>!0};function bD(n,t,e){return gV[e.paths](n.root,t.root,e.matrixParams)&&vD[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function wD(n,t,e){return DD(n,t,t.segments,e)}function DD(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!cr(r,e)||t.hasChildren()||!sc(r,e,i))}if(n.segments.length===e.length){if(!cr(n.segments,e)||!sc(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!wD(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!!(cr(n.segments,r)&&sc(n.segments,r,i)&&n.children[J])&&DD(n.children[J],t,o,i)}}function sc(n,t,e){return t.every((i,r)=>vD[e](n[r].parameters,i.parameters))}class lr{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_o(this.queryParams)),this._queryParamMap}toString(){return CV.serialize(this)}}class ne{constructor(t,e){this.segments=t,this.children=e,this.parent=null,dt(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ac(this)}}class Fs{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=_o(this.parameters)),this._parameterMap}toString(){return AD(this)}}function cr(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}let ED=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:function(){return new ip},providedIn:"root"}),n})();class ip{parse(t){const e=new xV(t);return new lr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Os(t.root,!0)}`,i=function EV(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${lc(e)}=${lc(r)}`).join("&"):`${lc(e)}=${lc(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${i}${"string"==typeof t.fragment?`#${function wV(n){return encodeURI(n)}(t.fragment)}`:""}`}}const CV=new ip;function ac(n){return n.segments.map(t=>AD(t)).join("/")}function Os(n,t){if(!n.hasChildren())return ac(n);if(t){const e=n.children[J]?Os(n.children[J],!1):"",i=[];return dt(n.children,(r,o)=>{o!==J&&i.push(`${o}:${Os(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function bV(n,t){let e=[];return dt(n.children,(i,r)=>{r===J&&(e=e.concat(t(i,r)))}),dt(n.children,(i,r)=>{r!==J&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===J?[Os(n.children[J],!1)]:[`${r}:${Os(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[J]?`${ac(n)}/${e[0]}`:`${ac(n)}/(${e.join("//")})`}}function SD(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lc(n){return SD(n).replace(/%3B/gi,";")}function rp(n){return SD(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function cc(n){return decodeURIComponent(n)}function MD(n){return cc(n.replace(/\+/g,"%20"))}function AD(n){return`${rp(n.path)}${function DV(n){return Object.keys(n).map(t=>`;${rp(t)}=${rp(n[t])}`).join("")}(n.parameters)}`}const SV=/^[^\/()?;=#]+/;function uc(n){const t=n.match(SV);return t?t[0]:""}const MV=/^[^=?&#]+/,IV=/^[^&#]+/;class xV{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ne([],{}):new ne([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[J]=new ne(t,e)),i}parseSegment(){const t=uc(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(t),new Fs(cc(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=uc(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=uc(this.remaining);r&&(i=r,this.capture(i))}t[cc(e)]=cc(i)}parseQueryParam(t){const e=function AV(n){const t=n.match(MV);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function TV(n){const t=n.match(IV);return t?t[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=MD(e),o=MD(i);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=uc(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new C(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=J);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[J]:new ne([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new C(4011,!1)}}function op(n){return n.segments.length>0?new ne([],{[J]:n}):n}function dc(n){const t={};for(const i of Object.keys(n.children)){const o=dc(n.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function RV(n){if(1===n.numberOfChildren&&n.children[J]){const t=n.children[J];return new ne(n.segments.concat(t.segments),t.children)}return n}(new ne(n.segments,t))}function ur(n){return n instanceof lr}function OV(n,t,e,i,r){if(0===e.length)return yo(t.root,t.root,t.root,i,r);const o=function xD(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new TD(!0,0,n);let t=0,e=!1;const i=n.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return dt(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new TD(e,t,i)}(e);return o.toRoot()?yo(t.root,t.root,new ne([],{}),i,r):function s(l){const c=function NV(n,t,e,i){if(n.isAbsolute)return new vo(t.root,!0,0);if(-1===i)return new vo(e,e===t.root,0);return function RD(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new C(4005,!1);r=i.segments.length}return new vo(i,!1,r-o)}(e,i+(Ps(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,t,n.snapshot?._urlSegment,l),u=c.processChildren?Ls(c.segmentGroup,c.index,o.commands):ap(c.segmentGroup,c.index,o.commands);return yo(t.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}function Ps(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Ns(n){return"object"==typeof n&&null!=n&&n.outlets}function yo(n,t,e,i,r){let s,o={};i&&dt(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===t?e:ID(n,t,e);const a=op(dc(s));return new lr(a,o,r)}function ID(n,t,e){const i={};return dt(n.children,(r,o)=>{i[o]=r===t?e:ID(r,t,e)}),new ne(n.segments,i)}class TD{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Ps(i[0]))throw new C(4003,!1);const r=i.find(Ns);if(r&&r!==yD(i))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class vo{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function ap(n,t,e){if(n||(n=new ne([],{})),0===n.segments.length&&n.hasChildren())return Ls(n,t,e);const i=function VV(n,t,e){let i=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=n.segments[r],a=e[i];if(Ns(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!FD(l,c,s))return o;i+=2}else{if(!FD(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=ap(n.children[s],t,o))}),dt(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new ne(n.segments,r)}}function lp(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=lp(new ne([],{}),0,e))}),t}function kD(n){const t={};return dt(n,(e,i)=>t[i]=`${e}`),t}function FD(n,t,e){return n==e.path&&Bn(t,e.parameters)}class ai{constructor(t,e){this.id=t,this.url=e}}class cp extends ai{constructor(t,e,i="imperative",r=null){super(t,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class dr extends ai{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class hc extends ai{constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class OD extends ai{constructor(t,e,i,r){super(t,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class HV extends ai{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jV extends ai{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class UV extends ai{constructor(t,e,i,r,o){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class $V extends ai{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zV extends ai{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class WV{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class GV{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class qV{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class KV{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class YV{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ZV{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class PD{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class ND{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=up(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=up(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=dp(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return dp(t,this._root).map(e=>e.value)}}function up(n,t){if(n===t.value)return t;for(const e of t.children){const i=up(n,e);if(i)return i}return null}function dp(n,t){if(n===t.value)return[t];for(const e of t.children){const i=dp(n,e);if(i.length)return i.unshift(t),i}return[]}class li{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function bo(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class LD extends ND{constructor(t,e){super(t),this.snapshot=e,hp(this,t)}toString(){return this.snapshot.toString()}}function VD(n,t){const e=function XV(n,t){const s=new fc([],{},{},"",{},J,t,null,n.root,-1,{});return new HD("",new li(s,[]))}(n,t),i=new ut([new Fs("",{})]),r=new ut({}),o=new ut({}),s=new ut({}),a=new ut(""),l=new Wt(i,r,s,a,o,J,t,e.root);return l.snapshot=e.root,new LD(new li(l,[]),e)}class Wt{constructor(t,e,i,r,o,s,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe($(c=>c[ks]))??k(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe($(t=>_o(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe($(t=>_o(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function BD(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function JV(n){return n.reduce((t,e)=>({params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class fc{constructor(t,e,i,r,o,s,a,l,c,u,d,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.[ks],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=h??u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=_o(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_o(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class HD extends ND{constructor(t,e){super(e),this.url=t,hp(this,e)}toString(){return jD(this._root)}}function hp(n,t){t.value._routerState=n,t.children.forEach(e=>hp(n,e))}function jD(n){const t=n.children.length>0?` { ${n.children.map(jD).join(", ")} } `:"";return`${n.value}${t}`}function fp(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Bn(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),Bn(t.params,e.params)||n.params.next(e.params),function pV(n,t){if(n.length!==t.length)return!1;for(let e=0;eBn(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||pp(n.parent,t.parent))}function Vs(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function tB(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return Vs(n,i,r);return Vs(n,i)})}(n,t,e);return new li(i,r)}{if(n.shouldAttach(t.value)){const o=n.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Vs(n,a)),s}}const i=function nB(n){return new Wt(new ut(n.url),new ut(n.params),new ut(n.queryParams),new ut(n.fragment),new ut(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(o=>Vs(n,o));return new li(i,r)}}const mp="ngNavigationCancelingError";function UD(n,t){const{redirectTo:e,navigationBehaviorOptions:i}=ur(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=$D(!1,0,t);return r.url=e,r.navigationBehaviorOptions=i,r}function $D(n,t,e){const i=new Error("NavigationCancelingError: "+(n||""));return i[mp]=!0,i.cancellationCode=t,e&&(i.url=e),i}function zD(n){return WD(n)&&ur(n.url)}function WD(n){return n&&n[mp]}class iB{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Bs,this.attachRef=null}}let Bs=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new iB,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const pc=!1;let hr=(()=>{class n{constructor(e,i,r,o,s){this.parentContexts=e,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new xe,this.deactivateEvents=new xe,this.attachEvents=new xe,this.detachEvents=new xe,this.name=r||J,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,pc);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,pc);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,pc);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new C(4013,pc);this._activatedRoute=e;const r=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new rB(e,a,r.injector);if(i&&function oB(n){return!!n.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(g(Bs),g(on),Lr("name"),g(or),g(wi))},n.\u0275dir=N({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),n})();class rB{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Wt?this.route:t===Bs?this.childContexts:this.parent.get(t,e)}}let gp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ue({type:n,selectors:[["ng-component"]],standalone:!0,features:[Jb],decls:1,vars:0,template:function(e,i){1&e&>(0,"router-outlet")},dependencies:[hr],encapsulation:2}),n})();function GD(n,t){return n.providers&&!n._injector&&(n._injector=wl(n.providers,t,`Route: ${n.path}`)),n._injector??t}function yp(n){const t=n.children&&n.children.map(yp),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==J&&(e.component=gp),e}function ln(n){return n.outlet||J}function qD(n,t){const e=n.filter(i=>ln(i)===t);return e.push(...n.filter(i=>ln(i)!==t)),e}function Hs(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class uB{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),fp(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=bo(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),dt(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=bo(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=bo(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=bo(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new ZV(o.value.snapshot))}),t.children.length&&this.forwardEvent(new KV(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(fp(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),fp(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=Hs(r.snapshot),l=a?.get(Yi)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,i)}}class KD{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class mc{constructor(t,e){this.component=t,this.route=e}}function dB(n,t,e){const i=n._root;return js(i,t?t._root:null,e,[i.value])}function Co(n,t){const e=Symbol(),i=t.get(n,e);return i===e?"function"!=typeof n||function aI(n){return null!==wa(n)}(n)?t.get(n):n:i}function js(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=bo(t);return n.children.forEach(s=>{(function fB(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function pB(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!cr(n.url,t.url);case"pathParamsOrQueryParamsChange":return!cr(n.url,t.url)||!Bn(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!pp(n,t)||!Bn(n.queryParams,t.queryParams);default:return!pp(n,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new KD(i)):(o.data=s.data,o._resolvedData=s._resolvedData),js(n,t,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new mc(a.outlet.component,s))}else s&&Us(t,a,r),r.canActivateChecks.push(new KD(i)),js(n,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),dt(o,(s,a)=>Us(s,e.getContext(a),r)),r}function Us(n,t,e){const i=bo(n),r=n.value;dt(i,(o,s)=>{Us(o,r.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new mc(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function $s(n){return"function"==typeof n}function vp(n){return n instanceof tc||"EmptyError"===n?.name}const gc=Symbol("INITIAL_VALUE");function wo(){return Vn(n=>Jf(n.map(t=>t.pipe(Mt(1),ic(gc)))).pipe($(t=>{for(const e of t)if(!0!==e){if(e===gc)return gc;if(!1===e||e instanceof lr)return e}return!0}),At(t=>t!==gc),Mt(1)))}function YD(n){return function lA(...n){return pg(n)}(Qe(t=>{if(ur(t))throw UD(0,t)}),$(t=>!0===t))}const bp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ZD(n,t,e,i,r){const o=Cp(n,t,e);return o.matched?function RB(n,t,e,i){const r=t.canMatch;return r&&0!==r.length?k(r.map(s=>{const a=Co(s,n);return Ti(function bB(n){return n&&$s(n.canMatch)}(a)?a.canMatch(t,e):n.runInContext(()=>a(t,e)))})).pipe(wo(),YD()):k(!0)}(i=GD(t,i),t,e).pipe($(s=>!0===s?o:{...bp})):k(o)}function Cp(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...bp}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||fV)(e,n,t);if(!r)return{...bp};const o={};dt(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function _c(n,t,e,i,r="corrected"){if(e.length>0&&function OB(n,t,e){return e.some(i=>yc(n,t,i)&&ln(i)!==J)}(n,e,i)){const s=new ne(t,function FB(n,t,e,i){const r={};r[J]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&ln(o)!==J){const s=new ne([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,r[ln(o)]=s}return r}(n,t,i,new ne(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function PB(n,t,e){return e.some(i=>yc(n,t,i))}(n,e,i)){const s=new ne(n.segments,function kB(n,t,e,i,r,o){const s={};for(const a of i)if(yc(n,e,a)&&!r[ln(a)]){const l=new ne([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:t.length,s[ln(a)]=l}return{...r,...s}}(n,t,e,i,n.children,r));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}const o=new ne(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function yc(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function QD(n,t,e,i){return!!(ln(n)===i||i!==J&&yc(t,e,n))&&("**"===n.path||Cp(t,n,e).matched)}function XD(n,t,e){return 0===t.length&&!n.children[e]}const vc=!1;class bc{constructor(t){this.segmentGroup=t||null}}class JD{constructor(t){this.urlTree=t}}function zs(n){return go(new bc(n))}function eE(n){return go(new JD(n))}class BB{constructor(t,e,i,r,o){this.injector=t,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const t=_c(this.urlTree.root,[],[],this.config).segmentGroup,e=new ne(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,J).pipe($(o=>this.createUrlTree(dc(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(si(o=>{if(o instanceof JD)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof bc?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,J).pipe($(r=>this.createUrlTree(dc(r),t.queryParams,t.fragment))).pipe(si(r=>{throw r instanceof bc?this.noMatchError(r):r}))}noMatchError(t){return new C(4002,vc)}createUrlTree(t,e,i){const r=op(t);return new lr(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe($(o=>new ne([],o))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Ge(r).pipe(Ii(o=>{const s=i.children[o],a=qD(e,o);return this.expandSegmentGroup(t,a,s,o).pipe($(l=>({segment:l,outlet:o})))}),fD((o,s)=>(o[s.outlet]=s.segment,o),{}),pD())}expandSegment(t,e,i,r,o,s){return Ge(i).pipe(Ii(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,o,s).pipe(si(c=>{if(c instanceof bc)return k(null);throw c}))),Ai(a=>!!a),si((a,l)=>{if(vp(a))return XD(e,r,o)?k(new ne([],{})):zs(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,o,s,a){return QD(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s):zs(e):zs(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?eE(o):this.lineralizeSegments(i,o).pipe(tt(s=>{const a=new ne(s,{});return this.expandSegment(t,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Cp(e,r,o);if(!a)return zs(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?eE(d):this.lineralizeSegments(r,d).pipe(tt(h=>this.expandSegment(t,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(t,e,i,r,o){return"**"===i.path?(t=GD(i,t),i.loadChildren?(i._loadedRoutes?k({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(t,i)).pipe($(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new ne(r,{})))):k(new ne(r,{}))):ZD(e,i,r,t).pipe(Vn(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(t=i._injector??t,i,r).pipe(tt(u=>{const d=u.injector??t,h=u.routes,{segmentGroup:f,slicedSegments:p}=_c(e,a,l,h),m=new ne(f.segments,f.children);if(0===p.length&&m.hasChildren())return this.expandChildren(d,h,m).pipe($(b=>new ne(a,b)));if(0===h.length&&0===p.length)return k(new ne(a,{}));const y=ln(i)===o;return this.expandSegment(d,m,h,p,y?J:o,!0).pipe($(D=>new ne(a.concat(D.segments),D.children)))})):zs(e)))}getChildConfig(t,e,i){return e.children?k({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?k({routes:e._loadedRoutes,injector:e._loadedInjector}):function xB(n,t,e,i){const r=t.canLoad;return void 0===r||0===r.length?k(!0):k(r.map(s=>{const a=Co(s,n);return Ti(function gB(n){return n&&$s(n.canLoad)}(a)?a.canLoad(t,e):n.runInContext(()=>a(t,e)))})).pipe(wo(),YD())}(t,e,i).pipe(tt(r=>r?this.configLoader.loadChildren(t,e).pipe(Qe(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function LB(n){return go($D(vc,3))}())):k({routes:[],injector:t})}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return k(i);if(r.numberOfChildren>1||!r.children[J])return go(new C(4e3,vc));r=r.children[J]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreateUrlTree(t,e,i,r){const o=this.createSegmentGroup(t,e.root,i,r);return new lr(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return dt(t,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(t,e,i,r){const o=this.createSegments(t,e.segments,i,r);let s={};return dt(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,i,r)}),new ne(o,s)}createSegments(t,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new C(4001,vc);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}class jB{}class zB{constructor(t,e,i,r,o,s,a,l){this.injector=t,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const t=_c(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,J).pipe($(e=>{if(null===e)return null;const i=new fc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},J,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new li(i,e),o=new HD(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const e=t.value,i=BD(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,e,i):this.processSegment(t,e,i,i.segments,r)}processChildren(t,e,i){return Ge(Object.keys(i.children)).pipe(Ii(r=>{const o=i.children[r],s=qD(e,r);return this.processSegmentGroup(t,s,o,r)}),fD((r,o)=>r&&o?(r.push(...o),r):null),function dV(n,t=!1){return Re((e,i)=>{let r=0;e.subscribe(ye(i,o=>{const s=n(o,r++);(s||t)&&i.next(o),!s&&i.complete()}))})}(r=>null!==r),rc(null),pD(),$(r=>{if(null===r)return null;const o=tE(r);return function WB(n){n.sort((t,e)=>t.value.outlet===J?-1:e.value.outlet===J?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(t,e,i,r,o){return Ge(e).pipe(Ii(s=>this.processSegmentAgainstRoute(s._injector??t,s,i,r,o)),Ai(s=>!!s),si(s=>{if(vp(s))return XD(i,r,o)?k([]):k(null);throw s}))}processSegmentAgainstRoute(t,e,i,r,o){if(e.redirectTo||!QD(e,i,r,o))return k(null);let s;if("**"===e.path){const a=r.length>0?yD(r).parameters:{},l=iE(i)+r.length;s=k({snapshot:new fc(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,oE(e),ln(e),e.component??e._loadedComponent??null,e,nE(i),l,sE(e),l),consumedSegments:[],remainingSegments:[]})}else s=ZD(i,e,r,t).pipe($(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=iE(i)+l.length;return{snapshot:new fc(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,oE(e),ln(e),e.component??e._loadedComponent??null,e,nE(i),d,sE(e),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(Vn(a=>{if(null===a)return k(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;t=e._injector??t;const d=e._loadedInjector??t,h=function GB(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:p}=_c(i,c,u,h.filter(y=>void 0===y.redirectTo),this.relativeLinkResolution);if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe($(y=>null===y?null:[new li(l,y)]));if(0===h.length&&0===p.length)return k([new li(l,[])]);const m=ln(e)===o;return this.processSegment(d,h,f,p,m?J:o).pipe($(y=>null===y?null:[new li(l,y)]))}))}}function qB(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function tE(n){const t=[],e=new Set;for(const i of n){if(!qB(i)){t.push(i);continue}const r=t.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=tE(i.children);t.push(new li(i.value,r))}return t.filter(i=>!e.has(i))}function nE(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function iE(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function oE(n){return n.data||{}}function sE(n){return n.resolve||{}}function aE(n){return"string"==typeof n.title||null===n.title}function wp(n){return Vn(t=>{const e=n(t);return e?Ge(e).pipe($(()=>t)):k(t)})}let lE=(()=>{class n{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===J);return i}getResolvedTitleForRoute(e){return e.data[ks]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:function(){return Ie(cE)},providedIn:"root"}),n})(),cE=(()=>{class n extends lE{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return n.\u0275fac=function(e){return new(e||n)(_(rD))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class t2{}class r2 extends class n2{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const wc=new E("",{providedIn:"root",factory:()=>({})}),Dp=new E("ROUTES");let Ep=(()=>{class n{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return k(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Ti(e.loadComponent()).pipe(Qe(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),oc(()=>{this.componentLoaders.delete(e)})),r=new dD(i,()=>new ee).pipe(ep());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return k({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe($(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=_D(l.get(Dp,[],L.Self|L.Optional)));return{routes:c.map(yp),injector:l}}),oc(()=>{this.childrenLoaders.delete(i)})),s=new dD(o,()=>new ee).pipe(ep());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Ti(e()).pipe(tt(i=>i instanceof Qb||Array.isArray(i)?k(i):Ge(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(_(Oe),_(gf))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class s2{}class a2{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function l2(n){throw n}function c2(n,t,e){return t.parse("/")}const u2={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},d2={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function dE(){const n=Ie(ED),t=Ie(Bs),e=Ie(Ss),i=Ie(Oe),r=Ie(gf),o=Ie(Dp,{optional:!0})??[],s=Ie(wc,{optional:!0})??{},a=Ie(cE),l=Ie(lE,{optional:!0}),c=Ie(s2,{optional:!0}),u=Ie(t2,{optional:!0}),d=new Ue(null,n,t,e,i,r,_D(o));return c&&(d.urlHandlingStrategy=c),u&&(d.routeReuseStrategy=u),d.titleStrategy=l??a,function h2(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(t.canceledNavigationResolution=n.canceledNavigationResolution)}(s,d),d}let Ue=(()=>{class n{constructor(e,i,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ee,this.errorHandler=l2,this.malformedUriErrorHandler=c2,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>k(void 0),this.urlHandlingStrategy=new a2,this.routeReuseStrategy=new r2,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(Ep),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new GV(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new WV(h)),this.ngModule=s.get(tr),this.console=s.get(jP);const d=s.get(te);this.isNgZoneEnabled=d instanceof te&&te.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function mV(){return new lr(new ne([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=VD(this.currentUrlTree,this.rootComponentType),this.transitions=new ut({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(At(r=>0!==r.id),$(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Vn(r=>{let o=!1,s=!1;return k(r).pipe(Qe(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Vn(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return hE(a.source)&&(this.browserUrlTree=a.extractedUrl),k(a).pipe(Vn(d=>{const h=this.transitions.getValue();return i.next(new cp(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?zn:Promise.resolve(d)}),function HB(n,t,e,i){return Vn(r=>function VB(n,t,e,i,r){return new BB(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe($(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Qe(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},r.urlAfterRedirects=d.urlAfterRedirects}),function YB(n,t,e,i,r,o){return tt(s=>function $B(n,t,e,i,r,o,s="emptyOnly",a="legacy"){return new zB(n,t,e,i,r,s,a,o).recognize().pipe(Vn(l=>null===l?function UB(n){return new _e(t=>t.error(n))}(new jB):k(l)))}(n,t,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe($(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Qe(d=>{if(r.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const f=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(f,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new HV(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:f,source:p,restoredState:m,extras:y}=a,v=new cp(h,this.serializeUrl(f),p,m);i.next(v);const D=VD(f,this.rootComponentType).snapshot;return k(r={...a,targetSnapshot:D,urlAfterRedirects:f,extras:{...y,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),zn}),Qe(a=>{const l=new jV(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),$(a=>r={...a,guards:dB(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function wB(n,t){return tt(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?k({...e,guardsResult:!0}):function DB(n,t,e,i){return Ge(n).pipe(tt(r=>function TB(n,t,e,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?k(o.map(a=>{const l=Hs(t)??r,c=Co(a,l);return Ti(function vB(n){return n&&$s(n.canDeactivate)}(c)?c.canDeactivate(n,t,e,i):l.runInContext(()=>c(n,t,e,i))).pipe(Ai())})).pipe(wo()):k(!0)}(r.component,r.route,e,t,i)),Ai(r=>!0!==r,!0))}(s,i,r,n).pipe(tt(a=>a&&function mB(n){return"boolean"==typeof n}(a)?function EB(n,t,e,i){return Ge(t).pipe(Ii(r=>Rs(function MB(n,t){return null!==n&&t&&t(new qV(n)),k(!0)}(r.route.parent,i),function SB(n,t){return null!==n&&t&&t(new YV(n)),k(!0)}(r.route,i),function IB(n,t,e){const i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function hB(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(s)).filter(s=>null!==s).map(s=>nc(()=>k(s.guards.map(l=>{const c=Hs(s.node)??e,u=Co(l,c);return Ti(function yB(n){return n&&$s(n.canActivateChild)}(u)?u.canActivateChild(i,n):c.runInContext(()=>u(i,n))).pipe(Ai())})).pipe(wo())));return k(o).pipe(wo())}(n,r.path,e),function AB(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return k(!0);const r=i.map(o=>nc(()=>{const s=Hs(t)??e,a=Co(o,s);return Ti(function _B(n){return n&&$s(n.canActivate)}(a)?a.canActivate(t,n):s.runInContext(()=>a(t,n))).pipe(Ai())}));return k(r).pipe(wo())}(n,r.route,e))),Ai(r=>!0!==r,!0))}(i,o,n,t):k(a)),$(a=>({...e,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Qe(a=>{if(r.guardsResult=a.guardsResult,ur(a.guardsResult))throw UD(0,a.guardsResult);const l=new UV(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),At(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),wp(a=>{if(a.guards.canActivateChecks.length)return k(a).pipe(Qe(l=>{const c=new $V(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Vn(l=>{let c=!1;return k(l).pipe(function ZB(n,t){return tt(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return k(e);let o=0;return Ge(r).pipe(Ii(s=>function QB(n,t,e,i){const r=n.routeConfig,o=n._resolve;return void 0!==r?.title&&!aE(r)&&(o[ks]=r.title),function XB(n,t,e,i){const r=function JB(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return k({});const o={};return Ge(r).pipe(tt(s=>function e2(n,t,e,i){const r=Hs(t)??i,o=Co(n,r);return Ti(o.resolve?o.resolve(t,e):r.runInContext(()=>o(t,e)))}(n[s],t,e,i).pipe(Ai(),Qe(a=>{o[s]=a}))),tp(1),mD(o),si(s=>vp(s)?zn:go(s)))}(o,n,t,i).pipe($(s=>(n._resolvedData=s,n.data=BD(n,e).resolve,r&&aE(r)&&(n.data[ks]=r.title),null)))}(s.route,i,n,t)),Qe(()=>o++),tp(1),tt(s=>o===r.length?k(e):zn))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Qe({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Qe(l=>{const c=new zV(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),wp(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(Qe(d=>{c.component=d}),$(()=>{})));for(const d of c.children)u.push(...l(d));return u};return Jf(l(a.targetSnapshot.root)).pipe(rc(),Mt(1))}),wp(()=>this.afterPreactivation()),$(a=>{const l=function eB(n,t,e){const i=Vs(n,t._root,e?e._root:void 0);return new LD(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),Qe(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>$(i=>(new uB(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Qe({next(){o=!0},complete(){o=!0}}),oc(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),si(a=>{if(s=!0,WD(a)){zD(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new hc(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),zD(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||hE(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new OD(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return zn}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},o=e.state?.navigationId?e.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(yp),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),OV(c,this.currentUrlTree,e,d,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=ur(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function f2(n){for(let t=0;t{const o=e[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new dr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,f)=>{a=h,l=f});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),d=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:u,targetPageId:d,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i,r){const o=new hc(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){il()},n.\u0275prov=S({token:n,factory:function(){return dE()},providedIn:"root"}),n})();function hE(n){return"imperative"!==n}class fE{}let g2=(()=>{class n{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(At(e=>e instanceof dr),Ii(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=wl(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Ge(r).pipe(Er())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):k(null);const o=r.pipe(tt(s=>null===s?k(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?Ge([o,this.loader.loadComponent(i)]).pipe(Er()):o})}}return n.\u0275fac=function(e){return new(e||n)(_(Ue),_(gf),_(wi),_(fE),_(Ep))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ap=new E("");let pE=(()=>{class n{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof cp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof dr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof PD&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new PD(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){il()},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();function Do(n,t){return{\u0275kind:n,\u0275providers:t}}function Ip(n){return[{provide:Dp,multi:!0,useValue:n}]}function gE(){const n=Ie(Oe);return t=>{const e=n.get(mo);if(t!==e.components[0])return;const i=n.get(Ue),r=n.get(_E);1===n.get(Tp)&&i.initialNavigation(),n.get(yE,null,L.Optional)?.setUpPreloading(),n.get(Ap,null,L.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.unsubscribe())}}const _E=new E("",{factory:()=>new ee}),Tp=new E("",{providedIn:"root",factory:()=>1});const yE=new E("");function b2(n){return Do(0,[{provide:yE,useExisting:g2},{provide:fE,useExisting:n}])}const vE=new E("ROUTER_FORROOT_GUARD"),C2=[Ss,{provide:ED,useClass:ip},{provide:Ue,useFactory:dE},Bs,{provide:Wt,useFactory:function mE(n){return n.routerState.root},deps:[Ue]},Ep];function w2(){return new GC("Router",Ue)}let bE=(()=>{class n{constructor(e){}static forRoot(e,i){return{ngModule:n,providers:[C2,[],Ip(e),{provide:vE,useFactory:M2,deps:[[Ue,new Ci,new zr]]},{provide:wc,useValue:i||{}},i?.useHash?{provide:ar,useClass:TN}:{provide:ar,useClass:_w},{provide:Ap,useFactory:()=>{const n=Ie(Ue),t=Ie(K1),e=Ie(wc);return e.scrollOffset&&t.setOffset(e.scrollOffset),new pE(n,t,e)}},i?.preloadingStrategy?b2(i.preloadingStrategy).\u0275providers:[],{provide:GC,multi:!0,useFactory:w2},i?.initialNavigation?A2(i):[],[{provide:CE,useFactory:gE},{provide:BC,multi:!0,useExisting:CE}]]}}static forChild(e){return{ngModule:n,providers:[Ip(e)]}}}return n.\u0275fac=function(e){return new(e||n)(_(vE,8))},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({imports:[gp]}),n})();function M2(n){return"guarded"}function A2(n){return["disabled"===n.initialNavigation?Do(3,[{provide:Ml,multi:!0,useFactory:()=>{const t=Ie(Ue);return()=>{t.setUpLocationChangeListener()}}},{provide:Tp,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?Do(2,[{provide:Tp,useValue:0},{provide:Ml,multi:!0,deps:[Oe],useFactory:t=>{const e=t.get(AN,Promise.resolve());let i=!1;return()=>e.then(()=>new Promise(o=>{const s=t.get(Ue),a=t.get(_E);(function r(o){t.get(Ue).events.pipe(At(a=>a instanceof dr||a instanceof hc||a instanceof OD),$(a=>a instanceof dr||a instanceof hc&&(0===a.code||1===a.code)&&null),At(a=>null!==a),Mt(1)).subscribe(()=>{o()})})(()=>{o(!0),i=!0}),s.afterPreactivation=()=>(o(!0),i||a.closed?k(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const CE=new E("");let Mc=(()=>{class n{constructor(e,i){this.route=e,this.router=i,this.navs=[]}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}ngOnInit(){throw new Error("need impl")}isActiveHeader(e){const i=this.route.firstChild?.component?.name==e.component;return i&&(this.currentNav=e),i}selectHeader(e,i=[]){i.push(...e.path.split("/")),this.router.navigate(i)}choiceHeader(e){if(null!=this.currentNav){const i=this.navs.indexOf(this.currentNav);switch(e){case"KeyQ":this.selectHeader(i-1<0?this.navs[this.navs.length-1]:this.navs[i-1]);break;case"KeyE":this.selectHeader(i+1>=this.navs.length?this.navs[0]:this.navs[i+1])}}}}return n.\u0275fac=function(e){return new(e||n)(g(Wt),g(Ue))},n.\u0275cmp=ue({type:n,selectors:[["abs-navs-header"]],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),wE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ue({type:n,selectors:[["app-status-lower-header"]],decls:2,vars:0,template:function(e,i){1&e&&(F(0,"p"),ie(1,"status"),R())},encapsulation:2}),n})(),Eo=(()=>{class n{}return n.UNKNOWN=0,n.RESERVED=1,n.SYSSTATS=2,n.SPACESTATS=3,n.WIFI=4,n})(),xp=(()=>{class n{}return n.UNKNOWN=0,n.SELF=1,n.EXTERNAL=2,n})();class Ac{static getRandom(t,e){return Math.random()*(e-t)+t}static getRandomRound(t,e){return Math.round(this.getRandom(t,e))}}let DE=(()=>{class n{constructor(){this.events=new ut("{}"),console.log("random data to ws create"),setInterval(()=>{this.events.next(JSON.stringify({event:Eo.SYSSTATS,device:xp.SELF,data:{cpu:Ac.getRandom(0,99.9),mem:Ac.getRandom(0,400)}})),this.events.next(JSON.stringify({event:Eo.SPACESTATS,device:xp.SELF,data:{free:Ac.getRandom(0,40),total:50,format:"GB"}})),this.events.next(JSON.stringify({event:Eo.WIFI,device:xp.SELF,data:1==Ac.getRandomRound(1,2)?{state:"Connected",ap:"nyk",ip:"192.168.1.2"}:{state:"Disconnected",ap:"",ip:""}}))},1e3)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function T2(n,t){if(1&n){const e=lo();F(0,"p",6),ot("click",function(){const o=Rr(e).$implicit;return kr(we().selectHeader(o))}),ie(1),R()}if(2&n){const e=t.$implicit;$e("inactiveHeader",!we().isActiveHeader(e)),O(1),Te(e.name)}}let Rp,EE=(()=>{class n extends Mc{constructor(e,i,r){super(e,i),this.ws=r,this.cpu=0,this.mem=0,this.wifi="",super.navs=[{name:"status",path:"status",action:()=>{},component:wE.name},{name:"2",path:"2",action:()=>{},component:""},{name:"3",path:"3",action:()=>{},component:""}]}ngOnInit(){this.ws.events.pipe($(e=>JSON.parse(e))).subscribe(e=>{e.event==Eo.SYSSTATS&&(this.cpu=Math.round(e.data.cpu),this.mem=Math.round(e.data.mem)),e.event==Eo.WIFI&&(this.wifi=e.data.ip?`${e.data.state} to ${e.data.ap} (${e.data.ip})`:e.data.state)})}}return n.\u0275fac=function(e){return new(e||n)(g(Wt),g(Ue),g(DE))},n.\u0275cmp=ue({type:n,selectors:[["app-stats-header"]],features:[B],decls:14,vars:4,consts:[[2,"display","flex","align-items","center","justify-content","flex-start","padding-left","45px"],["style","text-transform: uppercase;font-weight: bold; margin-bottom: 0; margin-top: 5px; padding-left: 5px",3,"inactiveHeader","click",4,"ngFor","ngForOf"],[1,"footer"],[2,"display","flex","justify-content","space-between","height","100%"],[1,"footer-text",2,"width","19.5%"],[1,"footer-text",2,"width","60%"],[2,"text-transform","uppercase","font-weight","bold","margin-bottom","0","margin-top","5px","padding-left","5px",3,"click"]],template:function(e,i){1&e&&(F(0,"div",0),Me(1,T2,2,3,"p",1),R(),gt(2,"router-outlet"),F(3,"div",2)(4,"div",3)(5,"div",4)(6,"span"),ie(7),R()(),F(8,"div",5)(9,"span"),ie(10),R()(),F(11,"div",4)(12,"span"),ie(13),R()()()()),2&e&&(O(1),Ce("ngForOf",i.navs),O(6),On("CPU ",i.cpu,"%"),O(3),Te(i.wifi),O(3),On("MEM ",i.mem,"MB"))},dependencies:[Ln,hr],encapsulation:2}),n})();try{Rp=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Rp=!1}let Ws,fr,kp,Gt=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function q1(n){return n===Pw}(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&&!Rp)&&typeof CSS<"u"&&!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(e){return new(e||n)(_(Il))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ic(n){return function x2(){if(null==Ws&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ws=!0}))}finally{Ws=Ws||!1}return Ws}()?n:!!n.capture}function R2(){if(null==fr){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return fr=!1,fr;if("scrollBehavior"in document.documentElement.style)fr=!0;else{const n=Element.prototype.scrollTo;fr=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return fr}function ME(n){if(function k2(){if(null==kp){const n=typeof document<"u"?document.head:null;kp=!(!n||!n.createShadowRoot&&!n.attachShadow)}return kp}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Fp(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function pr(n){return n.composedPath?n.composedPath()[0]:n.target}function Op(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function IE(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function TE(n){return At((t,e)=>n<=e)}function B2(n,t){return n===t}function xc(n){return Re((t,e)=>{xt(n).subscribe(ye(e,()=>e.complete(),ga)),!e.closed&&t.subscribe(e)})}function Pp(n){return null!=n&&"false"!=`${n}`}function Np(n,t=0){return function H2(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function Rc(n){return Array.isArray(n)?n:[n]}function Xe(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Mo(n){return n instanceof Fe?n.nativeElement:n}let j2=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({providers:[j2]}),n})();class U2 extends et{constructor(t,e){super()}schedule(t,e=0){return this}}const kc={setInterval(n,t,...e){const{delegate:i}=kc;return i?.setInterval?i.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=kc;return(t?.clearInterval||clearInterval)(n)},delegate:void 0};class Lp extends U2{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var i;if(this.closed)return this;this.state=t;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(t,e,i=0){return kc.setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&kc.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Dr(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const Vp={now:()=>(Vp.delegate||Date).now(),delegate:void 0};class Gs{constructor(t,e=Gs.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}Gs.now=Vp.now;class Bp extends Gs{constructor(t,e=Gs.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let i;this._active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const Fc=new Bp(Lp),$2=Fc,RE=new Set;let Ao,W2=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):q2}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function G2(n){if(!RE.has(n))try{Ao||(Ao=document.createElement("style"),Ao.setAttribute("type","text/css"),document.head.appendChild(Ao)),Ao.sheet&&(Ao.sheet.insertRule(`@media ${n} {body{ }}`,0),RE.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(_(Gt))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function q2(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let Hp=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new ee}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return kE(Rc(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=Jf(kE(Rc(e)).map(s=>this._registerQuery(s).observable));return o=Rs(o.pipe(Mt(1)),o.pipe(TE(1),function z2(n,t=Fc){return Re((e,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=o;o=null,i.next(c)}};function l(){const c=s+n,u=t.now();if(u{o=c,s=t.now(),r||(r=t.schedule(l,n),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}(0))),o.pipe($(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new _e(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(ic(i),$(({matches:s})=>({query:e,matches:s})),xc(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(_(W2),_(te))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function kE(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}let Oc=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function X2(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function Q2(n){try{return n.frameElement}catch{return null}}(function sH(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===NE(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=NE(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function rH(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function oH(n){return!function eH(n){return function nH(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function J2(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function tH(n){return function iH(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||PE(n))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(_(Gt))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function PE(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function NE(n){if(!PE(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class aH{constructor(t,e,i,r,o=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(t),!!i}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let i=0;i=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Mt(1)).subscribe(t)}}let jp=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new aH(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(_(Oc),_(te),_(q))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function LE(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function VE(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const lH=new E("cdk-input-modality-detector-options"),cH={ignoreKeys:[18,17,224,91,16]},Io=Ic({passive:!0,capture:!0});let uH=(()=>{class n{constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new ut(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=pr(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(LE(s)?"keyboard":"mouse"),this._mostRecentTarget=pr(s))},this._onTouchstart=s=>{VE(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=pr(s))},this._options={...cH,...o},this.modalityDetected=this._modality.pipe(TE(1)),this.modalityChanged=this.modalityDetected.pipe(function V2(n,t=mi){return n=n??B2,Re((e,i)=>{let r,o=!0;e.subscribe(ye(i,s=>{const a=t(s);(o||!n(r,a))&&(o=!1,r=a,i.next(s))}))})}()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Io),r.addEventListener("mousedown",this._onMousedown,Io),r.addEventListener("touchstart",this._onTouchstart,Io)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Io),document.removeEventListener("mousedown",this._onMousedown,Io),document.removeEventListener("touchstart",this._onTouchstart,Io))}}return n.\u0275fac=function(e){return new(e||n)(_(Gt),_(te),_(q),_(lH,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const dH=new E("liveAnnouncerElement",{providedIn:"root",factory:function hH(){return null}}),fH=new E("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let HE=(()=>{class n{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[o,s]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==s&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o{class n{constructor(e,i,r,o,s){this._ngZone=e,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 ee,this._rootNodeFocusAndBlurListener=a=>{for(let c=pr(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=s?.detectionMode||0}monitor(e,i=!1){const r=Mo(e);if(!this._platform.isBrowser||1!==r.nodeType)return k(null);const o=ME(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new ee,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Mo(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=Mo(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=pr(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Pc),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Pc)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(xc(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.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,Pc),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Pc),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let s=0;s{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Ie(Hp).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Up,jE,UE),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(Up,jE):2===i&&e.add(Up,UE)}}}return n.\u0275fac=function(e){return new(e||n)(_(Gt),_(q))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mH=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(_($E))},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({imports:[xE]}),n})();const gH=["addListener","removeListener"],_H=["addEventListener","removeEventListener"],yH=["on","off"];function $p(n,t,e,i){if(ae(e)&&(i=e,e=void 0),i)return $p(n,t,e).pipe(Xf(i));const[r,o]=function CH(n){return ae(n.addEventListener)&&ae(n.removeEventListener)}(n)?_H.map(s=>a=>n[s](t,a,e)):function vH(n){return ae(n.addListener)&&ae(n.removeListener)}(n)?gH.map(zE(n,t)):function bH(n){return ae(n.on)&&ae(n.off)}(n)?yH.map(zE(n,t)):[];if(!r&&Pu(n))return tt(s=>$p(s,t,e))(xt(n));if(!r)throw new TypeError("Invalid event target");return new _e(s=>{const a=(...l)=>s.next(1o(a)})}function zE(n,t){return e=>i=>n[e](t,i)}const qs={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=qs;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=t(o=>{e=void 0,n(o)});return new et(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:t}=qs;return(t?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:t}=qs;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};new class DH extends Bp{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class wH extends Lp{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=qs.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(qs.cancelAnimationFrame(e),t._scheduled=void 0)}});let zp,SH=1;const Lc={};function WE(n){return n in Lc&&(delete Lc[n],!0)}const MH={setImmediate(n){const t=SH++;return Lc[t]=!0,zp||(zp=Promise.resolve()),zp.then(()=>WE(t)&&n()),t},clearImmediate(n){WE(n)}},{setImmediate:AH,clearImmediate:IH}=MH,Vc={setImmediate(...n){const{delegate:t}=Vc;return(t?.setImmediate||AH)(...n)},clearImmediate(n){const{delegate:t}=Vc;return(t?.clearImmediate||IH)(n)},delegate:void 0};new class xH extends Bp{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class TH extends Lp{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Vc.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Vc.clearImmediate(e),t._scheduled=void 0)}});function GE(n=0,t,e=$2){let i=-1;return null!=t&&(xg(t)?e=t:i=t),new _e(r=>{let o=function FH(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function qE(n,t=Fc){return function kH(n){return Re((t,e)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const c=r;r=null,e.next(c)}s&&e.complete()},l=()=>{o=null,s&&e.complete()};t.subscribe(ye(e,c=>{i=!0,r=c,o||xt(n(c)).subscribe(o=ye(e,a,l))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>GE(n,t))}const OH=new E("cdk-dir-doc",{providedIn:"root",factory:function PH(){return Ie(q)}}),NH=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Wp=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new xe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function LH(n){const t=n?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?NH.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(_(OH,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ks=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({}),n})(),BH=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new ee,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new _e(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(qE(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):k()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(At(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Mo(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>$p(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(_(te),_(Gt),_(q,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Gp=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new ee,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(qE(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(_(Gt),_(te),_(q,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),KE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({}),n})(),YE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({imports:[Ks,KE,Ks,KE]}),n})();class qp{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Ys extends qp{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class Kp extends qp{constructor(t,e,i,r){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class jH extends qp{constructor(t){super(),this.element=t instanceof Fe?t.nativeElement:t}}class Bc{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Ys?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Kp?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof jH?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class UH extends Bc{constructor(t,e,i,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector||Oe.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=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Zs=(()=>{class n extends Bc{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new xe,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(g(Yi),g(on),g(q))},n.\u0275dir=N({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[B]}),n})(),Qs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({}),n})();const ZE=R2();class $H{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Xe(-this._previousScrollPosition.left),t.style.top=Xe(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),ZE&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ZE&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class zH{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class QE{enable(){}disable(){}attach(){}}function Yp(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function XE(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class WH{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Yp(e,[{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 GH=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new QE,this.close=s=>new zH(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new $H(this._viewportRuler,this._document),this.reposition=s=>new WH(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(_(BH),_(Gp),_(te),_(q))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Zp{constructor(t){if(this.scrollStrategy=new QE,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class qH{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let JE=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(_(q))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),KH=(()=>{class n extends JE{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(e){super.add(e),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(e){return new(e||n)(_(q),_(te,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),YH=(()=>{class n extends JE{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=pr(o)},this._clickListener=o=>{const s=pr(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;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(s)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(o)):d.next(o)}}}add(e){if(super.add(e),!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 e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(_(q),_(Gt),_(te,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hc=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Op()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(d),this._backdropTransitionendHandler=d=>{this._disposeBackdrop(d.target)},this._keydownEvents=new ee,this._outsidePointerEvents=new ee,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(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Mt(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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._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),this._host?.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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Xe(this._config.width),t.height=Xe(this._config.height),t.minWidth=Xe(this._config.minWidth),t.minHeight=Xe(this._config.minHeight),t.maxWidth=Xe(this._config.maxWidth),t.maxHeight=Xe(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,i){const r=Rc(e||[]).filter(o=>!!o);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(xc(Lu(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()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const e0="cdk-overlay-connected-position-bounding-box",ZH=/([A-Za-z%]+)$/;class QH{constructor(t,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,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 ee,this._resizeSubscription=et.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(e0),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),u=this._getOverlayFit(c,e,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?o.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(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(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&mr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(e0),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,o;if("center"==i.originX)r=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?s:a}return e.left<0&&(r-=e.left),o="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(t,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,i,r){const o=n0(e);let{x:s,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+o.height-i.height,p=this._subtractOverflows(o.width,0-s,s+o.width-i.width),m=this._subtractOverflows(o.height,h,f),y=p*m;return{visibleArea:y,isCompletelyWithinViewport:o.width*o.height===y,fitsInViewportVertically:m===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,s=t0(this._overlayRef.getConfig().minHeight),a=t0(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=o;return(t.fitsInViewportVertically||null!=s&&s<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=n0(e),o=this._viewportRect,s=Math.max(t.x+r.width-o.width,0),a=Math.max(t.y+r.height-o.height,0),l=Math.max(o.top-i.top-t.y,0),c=Math.max(o.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=o.width?c||-s:t.xp&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-p/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const f=Math.min(i.right-t.x+i.left,t.x),p=this._lastBoundingBoxSize.width;u=2*f,d=t.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-p/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:o}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!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 o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=Xe(i.height),r.top=Xe(i.top),r.bottom=Xe(i.bottom),r.width=Xe(i.width),r.left=Xe(i.left),r.right=Xe(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Xe(o)),s&&(r.maxWidth=Xe(s))}this._lastBoundingBoxSize=i,mr(this._boundingBox.style,r)}_resetBoundingBoxStyles(){mr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){mr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();mr(i,this._getExactOverlayY(e,t,u)),mr(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=Xe(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=Xe(s.maxWidth):o&&(i.maxWidth="")),mr(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Xe(o.y),r}_getExactOverlayX(t,e,i){let s,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Xe(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:XE(t,i),isOriginOutsideView:Yp(t,i),isOverlayClipped:XE(e,i),isOverlayOutsideView:Yp(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?t.offsetX??this._offsetX:t.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Rc(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof Fe)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function mr(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function t0(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(ZH);return e&&"px"!==e?null:parseFloat(t)}return n||null}function n0(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 r0="cdk-global-overlay-wrapper";class XH{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(r0),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,d=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",p="",m="";l?m="flex-start":"center"===u?(m="center",h?p=d:f=d):h?"left"===u||"end"===u?(m="flex-end",f=d):("right"===u||"start"===u)&&(m="flex-start",p=d):"left"===u||"start"===u?(m="flex-start",f=d):("right"===u||"end"===u)&&(m="flex-end",p=d),t.position=this._cssPosition,t.marginLeft=l?"0":f,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":p,e.justifyContent=m,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(r0),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let JH=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new XH}flexibleConnectedTo(e){return new QH(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(_(Gp),_(q),_(Gt),_(Hc))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ej=0,xi=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,f){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new Zp(e);return s.direction=s.direction||this._directionality.value,new Xs(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+ej++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(mo)),new UH(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(_(GH),_(Hc),_(Yi),_(JH),_(KH),_(Oe),_(te),_(q),_(Wp),_(Ss),_(YH),_(rr,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const ij={provide:new E("cdk-connected-overlay-scroll-strategy"),deps:[xi],useFactory:function nj(n){return()=>n.scrollStrategies.reposition()}};let Qp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({providers:[xi,ij],imports:[Ks,Qs,YE,YE]}),n})();function rj(n,t){}class jc{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let o0=(()=>{class n extends Bc{constructor(e,i,r,o,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const d=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),d},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const r=Fp(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=Fp();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Fp())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(g(Fe),g(jp),g(q,8),g(jc),g(Oc),g(te),g(Xs),g(Nc))},n.\u0275cmp=ue({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,i){if(1&e&&Cs(Zs,7),2&e){let r;nr(r=ir())&&(i._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,i){2&e&&rt("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[B],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&Me(0,rj,0,0,"ng-template",0)},dependencies:[Zs],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class Xp{constructor(t,e){this.overlayRef=t,this.config=e,this.closed=new ee,this.disableClose=e.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!IE(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(t,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),i.next(t),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(t="",e=""){return this.overlayRef.updateSize({width:t,height:e}),this}addPanelClass(t){return this.overlayRef.addPanelClass(t),this}removePanelClass(t){return this.overlayRef.removePanelClass(t),this}}const s0=new E("DialogScrollStrategy"),oj=new E("DialogData"),sj=new E("DefaultDialogConfig"),lj={provide:s0,deps:[xi],useFactory:function aj(n){return()=>n.scrollStrategies.block()}};let cj=0,a0=(()=>{class n{constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ee,this._afterOpenedAtThisLevel=new ee,this._ariaHiddenElements=new Map,this.afterAllClosed=nc(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ic(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,i){(i={...this._defaultOptions||new jc,...i}).id=i.id||"cdk-dialog-"+cj++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new Xp(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(e,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){Jp(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){Jp(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),Jp(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new Zp({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){const o=r.injector||r.viewContainerRef?.injector,s=[{provide:jc,useValue:r},{provide:Xp,useValue:i},{provide:Xs,useValue:e}];let a;r.container?"function"==typeof r.container?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=o0;const l=new Ys(a,r.viewContainerRef,Oe.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof Cn){const s=this._createInjector(o,i,r,void 0);let a={$implicit:o.data,dialogRef:i};o.templateContext&&(a={...a,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new Kp(e,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new Ys(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentInstance=a.instance}}_createInjector(e,i,r,o){const s=e.injector||e.viewContainerRef?.injector,a=[{provide:oj,useValue:e.data},{provide:Xp,useValue:i}];return e.providers&&("function"==typeof e.providers?a.push(...e.providers(i,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(Wp,null,L.Optional))&&a.push({provide:Wp,useValue:{value:e.direction,change:k()}}),Oe.create({parent:s||o,providers:a})}_removeOpenDialog(e,i){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){const o=i[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(_(xi),_(Oe),_(sj,8),_(n,12),_(Hc),_(s0))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();function Jp(n,t){let e=n.length;for(;e--;)t(n[e])}let uj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({providers:[a0,lj],imports:[Qp,Qs,mH,Qs]}),n})();const hj=new E("mat-sanity-checks",{providedIn:"root",factory:function dj(){return!0}});let It=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Op()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(_($E),_(hj,8),_(q))},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({imports:[Ks,Ks]}),n})();function fj(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Pp(t)}}}function em(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||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 pj(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Pp(t)}}}let gj=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class _j{constructor(t,e,i,r=!1){this._renderer=t,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const u0={enterDuration:225,exitDuration:150},tm=Ic({passive:!0}),d0=["mousedown","touchstart"],h0=["mouseup","mouseleave","touchend","touchcancel"];class vj{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Mo(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...u0,...i.animation};i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function bj(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),f=d.transitionDuration,p="none"===d.transitionProperty||"0s"===f||"0s, 0s"===f,m=new _j(this,u,i,p);u.style.transform="scale3d(1, 1, 1)",m.state=0,i.persistent||(this._mostRecentTransientRipple=m);let y=null;return!p&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const v=()=>this._finishRippleTransition(m),D=()=>this._destroyRipple(m);u.addEventListener("transitionend",v),u.addEventListener("transitioncancel",D),y={onTransitionEnd:v,onTransitionCancel:D}}),this._activeRipples.set(m,y),(p||!c)&&this._finishRippleTransition(m),m}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i={...u0,...t.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",t.state=2,(t._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Mo(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(d0))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(h0),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){0===t.state?this._startFadeOutTransition(t):2===t.state&&this._destroyRipple(t)}_startFadeOutTransition(t){const e=t===this._mostRecentTransientRipple,{persistent:i}=t.config;t.state=1,!i&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){const e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=3,null!==e&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel)),t.element.remove()}_onMousedown(t){const e=LE(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,tm)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(d0.forEach(t=>{this._triggerElement.removeEventListener(t,this,tm)}),this._pointerUpEventsRegistered&&h0.forEach(t=>{this._triggerElement.removeEventListener(t,this,tm)}))}}const Cj=new E("mat-ripple-global-options");let f0=(()=>{class n{constructor(e,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new vj(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,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:{...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(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(g(Fe),g(te),g(Gt),g(Cj,8),g(rr,8))},n.\u0275dir=N({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&$e("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})(),wj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({imports:[It,It]}),n})();class p0{}const ci="*";function nm(n,t){return{type:7,name:n,definitions:t,options:{}}}function ea(n,t=null){return{type:4,styles:t,timings:n}}function m0(n,t=null){return{type:3,steps:n,options:t}}function g0(n,t=null){return{type:2,steps:n,options:t}}function Sn(n){return{type:6,styles:n,offset:null}}function ta(n,t,e){return{type:0,name:n,styles:t,options:e}}function na(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function _0(n=null){return{type:9,options:n}}function y0(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function v0(n){Promise.resolve().then(n)}class ia{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){v0(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class b0{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?v0(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function Ej(n,t){}const To={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Sj={dialogContainer:nm("dialogContainer",[ta("void, exit",Sn({opacity:0,transform:"scale(0.7)"})),ta("enter",Sn({transform:"none"})),na("* => enter",m0([ea("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Sn({transform:"none",opacity:1})),y0("@*",_0(),{optional:!0})]),To),na("* => void, * => exit",m0([ea("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Sn({opacity:0})),y0("@*",_0(),{optional:!0})]),To)])};class Uc{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=To.params.enterAnimationDuration,this.exitAnimationDuration=To.params.exitAnimationDuration}}let Mj=(()=>{class n extends o0{constructor(e,i,r,o,s,a,l,c){super(e,i,r,o,s,a,l,c),this._animationStateChanged=new xe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return n.\u0275fac=function(e){return new(e||n)(g(Fe),g(jp),g(q,8),g(Uc),g(Oc),g(te),g(Xs),g(Nc))},n.\u0275cmp=ue({type:n,selectors:[["ng-component"]],features:[B],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),Aj=(()=>{class n extends Mj{constructor(e,i,r,o,s,a,l,c,u){super(e,i,r,o,s,a,l,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?this._openAnimationDone(i):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:i})}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||To.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||To.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(g(Fe),g(jp),g(q,8),g(Uc),g(Oc),g(te),g(Xs),g(or),g(Nc))},n.\u0275cmp=ue({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,i){1&e&&ml("@dialogContainer.start",function(o){return i._onAnimationStart(o)})("@dialogContainer.done",function(o){return i._onAnimationDone(o)}),2&e&&($h("id",i._config.id),rt("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),_l("@dialogContainer",i._getAnimationState()))},features:[B],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&Me(0,Ej,0,0,"ng-template",0)},dependencies:[Zs],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Sj.dialogContainer]}}),n})();class C0{constructor(t,e,i){this._ref=t,this._containerInstance=i,this._afterOpened=new ee,this._beforeClosed=new ee,this._state=0,this.disableClose=e.disableClose,this.id=t.id,i._animationStateChanged.pipe(At(r=>"opened"===r.state),Mt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(At(r=>"closed"===r.state),Mt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Lu(this.backdropClick(),this.keydownEvents().pipe(At(r=>27===r.keyCode&&!this.disableClose&&!IE(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function Ij(n,t,e){n._closeInteractionType=t,n.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(At(e=>"closing"===e.state),Mt(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(t){let e=this._ref.config.positionStrategy;return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(t="",e=""){return this._ref.updateSize(t,e),this}addPanelClass(t){return this._ref.addPanelClass(t),this}removePanelClass(t){return this._ref.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const w0=new E("MatDialogData"),Tj=new E("mat-dialog-default-options"),D0=new E("mat-dialog-scroll-strategy"),Rj={provide:D0,deps:[xi],useFactory:function xj(n){return()=>n.scrollStrategies.block()}};let kj=0,Fj=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this._overlay=e,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ee,this._afterOpenedAtThisLevel=new ee,this._idPrefix="mat-dialog-",this.afterAllClosed=nc(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ic(void 0))),this._scrollStrategy=a,this._dialog=i.get(a0)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){let r;(i={...this._defaultOptions||new Uc,...i}).id=i.id||`${this._idPrefix}${kj++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(e,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Uc,useValue:i},{provide:jc,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){il()},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),$c=(()=>{class n extends Fj{constructor(e,i,r,o,s,a,l,c){super(e,i,o,a,l,s,C0,Aj,w0,c)}}return n.\u0275fac=function(e){return new(e||n)(_(xi),_(Oe),_(Ss,8),_(Tj,8),_(D0),_(n,12),_(Hc),_(rr,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),rm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=N({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),Oj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({providers:[$c,Rj],imports:[uj,Qp,Qs,It,It]}),n})(),ui=(()=>{class n{constructor(){this.keys=new ut("")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),om=(()=>{class n{constructor(e,i,r,o){this.data=e,this.ref=i,this.sanitazer=r,this.io=o}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}ngOnInit(){this.sub=this.io.keys.subscribe(e=>{"Enter"==e&&this.ref.close()})}}return n.\u0275fac=function(e){return new(e||n)(g(w0),g(C0),g(ec),g(ui))},n.\u0275cmp=ue({type:n,selectors:[["app-abs-app"]],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),Pj=(()=>{class n extends om{constructor(){super(...arguments),this.clockTxt="",this.inverval=null}ngOnInit(){super.ngOnInit(),this.genClock(),null==this.inverval&&(this.inverval=setInterval(()=>{this.genClock()},1e3))}genClock(){this.clockTxt=(new Date).toLocaleTimeString()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ke(n)))(i||n)}}(),n.\u0275cmp=ue({type:n,selectors:[["app-clock-app"]],features:[B],decls:4,vars:1,consts:[["mat-dialog-content",""],[2,"display","flex","justify-content","center"],[2,"font-family","TechMono, sans-serif","font-size","60px"]],template:function(e,i){1&e&&(F(0,"div",0)(1,"div",1)(2,"p",2),ie(3),R()()()),2&e&&(O(3),Te(i.clockTxt))},dependencies:[rm],encapsulation:2}),n})(),Nj=(()=>{class n extends om{constructor(){super(...arguments),this.content={}}ngOnInit(){super.ngOnInit(),this.content.url=this.sanitazer.bypassSecurityTrustResourceUrl(this.data.url)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ke(n)))(i||n)}}(),n.\u0275cmp=ue({type:n,selectors:[["iframe-opener"]],features:[B],decls:2,vars:1,consts:[["mat-dialog-content",""],["width","100%","height","100%",3,"src"]],template:function(e,i){1&e&&(F(0,"div",0),gt(1,"iframe",1),R()),2&e&&(O(1),Ce("src",i.content.url,qd))},dependencies:[rm]}),n})();const Lj=["menuItem"];let zc=(()=>{class n{constructor(){this.elements=[],this.elementsRight=[],this.currentSide="LEFT"}isSelected(e){const i=e==this.selected;if(i&&this.menuItems&&null!=this.selected){const r=this.menuItems.toArray(),o=this.elements.indexOf(this.selected);-1!==o&&r[o]&&r[o].nativeElement.scrollIntoView({behavior:"smooth",block:"center"})}return i}choiceItem(e){switch(this.currentSide){case"LEFT":return this.choiceLeft(e);case"RIGHT":return this.choiceRight(e)}}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}choiceLeft(e){if("LEFT"!=this.currentSide)return!1;let i=null==this.selected?0:this.elements.indexOf(this.selected);switch(e){case"KeyS":return i+1>=this.elements.length&&(i=-1),this.selected=this.elements[i+1],!0;case"KeyW":return i-1<0&&(i=this.elements.length),this.selected=this.elements[i-1],!0;case"Enter":return null!=this.selected&&this.selected.action(),!1}return!1}choiceRight(e){if("RIGHT"!=this.currentSide)return!1;let i=null==this.selectedRight?0:this.elementsRight.indexOf(this.selectedRight);switch(e){case"KeyS":return i+1>=this.elementsRight.length&&(i=-1),this.selectedRight=this.elementsRight[i+1],!0;case"KeyW":return i-1<0&&(i=this.elementsRight.length),this.selectedRight=this.elementsRight[i-1],!0;case"Enter":return null!=this.selectedRight&&this.selectedRight.action(),!1}return!1}ngOnInit(){throw new Error("need impl")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ue({type:n,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&Cs(Lj,5),2&e){let r;nr(r=ir())&&(i.menuItems=r)}},decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})();function Vj(n,t){if(1&n&&(F(0,"p",5),ie(1),R()),2&n){const e=t.$implicit,i=t.index,r=we().index,o=we();Ji("text-transform",o.caps?"uppercase":""),$e("keyboard_current",o.isCurrentKey(r,i)),O(1),Te(e)}}function Bj(n,t){if(1&n&&(F(0,"div",3),Me(1,Vj,2,5,"p",4),R()),2&n){const e=t.$implicit;O(1),Ce("ngForOf",e)}}let E0=(()=>{class n extends om{constructor(){super(...arguments),this.keyboard=[],this.keyboards={ru:["\u0439\u0446\u0443\u043a\u0435\u043d\u0433\u0448\u0449\u0437\u0445\u044a".split(""),"\u0444\u044b\u0432\u0430\u043f\u0440\u043e\u043b\u0434\u0436\u044d".split(""),"\u044f\u0447\u0441\u043c\u0438\u0442\u044c\u0431\u044e.,".split("")],en:["qwertyuiop[]".split(""),"asdfghjkl;'\"".split(""),"zxcvbnm,./".split("")]},this.current="ru",this.text="",this.caps=!1,this.x=0,this.y=0}isCurrentKey(e,i){return e==this.x&&i==this.y}createKeyboard(){this.x=0,this.y=0,this.keyboard=[],this.keyboard.push("1234567890-=".split("").concat(["<--"])),this.keyboards[this.current].forEach(e=>{this.keyboard.push(e)}),this.keyboard.push(["change","caps","space","wipe","exit","save"])}closeKeyboard(e=!1){this.ref.close(e?this.text:null)}ngOnInit(){this.createKeyboard(),this.sub=this.io.keys.subscribe(e=>{switch(e){case"KeyW":return this.x<=0&&(this.x=this.keyboard.length),this.x--,void(this.keyboard[this.x].length=this.keyboard.length-1&&(this.x=-1),this.x++,this.keyboard[this.x].length=this.keyboard[this.x].length-1&&(this.y=-1),this.y++;break;case"Enter":{const i=this.keyboard[this.x][this.y];switch(i){case"change":switch(this.current){case"en":this.current="ru";break;case"ru":this.current="en"}this.createKeyboard();break;case"caps":this.caps=!this.caps;break;case"wipe":this.text="";break;case"space":this.text+=" ";break;case"exit":this.closeKeyboard();break;case"save":this.closeKeyboard(!0);break;case"<--":this.text=this.text.slice(0,-1);break;default:this.text+=this.caps?i.toUpperCase():i}break}}})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ke(n)))(i||n)}}(),n.\u0275cmp=ue({type:n,selectors:[["app-keyboard"]],features:[B],decls:7,vars:2,consts:[["mat-dialog-content",""],[2,"display","flex","justify-content","center","height","150px","word-break","break-all","align-items","center","border","1px solid rgb(0 242 0 / 30%)"],["style","display: flex; flex-direction: row; justify-content: space-between",4,"ngFor","ngForOf"],[2,"display","flex","flex-direction","row","justify-content","space-between"],["class","keyboard_key",3,"keyboard_current","text-transform",4,"ngFor","ngForOf"],[1,"keyboard_key"]],template:function(e,i){1&e&&(F(0,"div",0)(1,"div")(2,"div",1)(3,"p"),ie(4),R()(),F(5,"div"),Me(6,Bj,2,1,"div",2),R()()()),2&e&&(O(4),Te(i.text),O(2),Ce("ngForOf",i.keyboard))},dependencies:[Ln,rm],encapsulation:2}),n})(),Wc=(()=>{class n{constructor(e){this.dialog=e,this.inApp=!1}openApp(e,i={}){return this.inApp=!0,this.dialog.open(e,{width:"100%",height:"100%",disableClose:!0,data:i}).afterClosed()}openKeyboard(){return this.openApp(E0)}}return n.\u0275fac=function(e){return new(e||n)(_($c))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class M0{}class A0{}class di{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof di?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new di;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof di?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Hj{encodeKey(t){return I0(t)}encodeValue(t){return I0(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const Uj=/%(\d[a-f0-9])/gi,$j={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function I0(n){return encodeURIComponent(n).replace(Uj,(t,e)=>$j[e]??t)}function Gc(n){return`${n}`}class Ri{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Hj,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function jj(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(Gc):[Gc(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Ri({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Gc(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(Gc(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class zj{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function T0(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function x0(n){return typeof Blob<"u"&&n instanceof Blob}function R0(n){return typeof FormData<"u"&&n instanceof FormData}class ra{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function Wj(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,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new di),this.context||(this.context=new zj),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((d,h)=>d.set(h,t.setParams[h]),c)),new ra(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var Je=(()=>((Je=Je||{})[Je.Sent=0]="Sent",Je[Je.UploadProgress=1]="UploadProgress",Je[Je.ResponseHeader=2]="ResponseHeader",Je[Je.DownloadProgress=3]="DownloadProgress",Je[Je.Response=4]="Response",Je[Je.User=5]="User",Je))();class sm{constructor(t,e=200,i="OK"){this.headers=t.headers||new di,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class am extends sm{constructor(t={}){super(t),this.type=Je.ResponseHeader}clone(t={}){return new am({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class qc extends sm{constructor(t={}){super(t),this.type=Je.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new qc({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class k0 extends sm{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function lm(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Kc=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof ra)o=e;else{let l,c;l=r.headers instanceof di?r.headers:new di(r.headers),r.params&&(c=r.params instanceof Ri?r.params:new Ri({fromObject:r.params})),o=new ra(e,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 s=k(o).pipe(Ii(l=>this.handler.handle(l)));if(e instanceof ra||"events"===r.observe)return s;const a=s.pipe(At(l=>l instanceof qc));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe($(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($(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($(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe($(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Ri).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,lm(r,i))}post(e,i,r={}){return this.request("POST",e,lm(r,i))}put(e,i,r={}){return this.request("PUT",e,lm(r,i))}}return n.\u0275fac=function(e){return new(e||n)(_(M0))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class F0{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const O0=new E("HTTP_INTERCEPTORS");let qj=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const Kj=/^\)\]\}',?\n/;let P0=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new _e(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,p)=>r.setRequestHeader(f,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const f=r.statusText||"OK",p=new di(r.getAllResponseHeaders()),m=function Yj(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new am({headers:p,status:r.status,statusText:f,url:m}),s},l=()=>{let{headers:f,status:p,statusText:m,url:y}=a(),v=null;204!==p&&(v=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=v?200:0);let D=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof v){const b=v;v=v.replace(Kj,"");try{v=""!==v?JSON.parse(v):null}catch(M){v=b,D&&(D=!1,v={error:M,text:v})}}D?(i.next(new qc({body:v,headers:f,status:p,statusText:m,url:y||void 0})),i.complete()):i.error(new k0({error:v,headers:f,status:p,statusText:m,url:y||void 0}))},c=f=>{const{url:p}=a(),m=new k0({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(m)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let p={type:Je.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===e.responseType&&!!r.responseText&&(p.partialText=r.responseText),i.next(p)},h=f=>{let p={type:Je.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:Je.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(_(Lw))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const cm=new E("XSRF_COOKIE_NAME"),um=new E("XSRF_HEADER_NAME");class N0{}let Zj=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Aw(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(_(q),_(Il),_(cm))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),dm=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(_(N0),_(um))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),Qj=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(O0,[]);this.chain=i.reduceRight((r,o)=>new F0(r,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(_(A0),_(Oe))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),Xj=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:dm,useClass:qj}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:cm,useValue:e.cookieName}:[],e.headerName?{provide:um,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({providers:[dm,{provide:O0,useExisting:dm,multi:!0},{provide:N0,useClass:Zj},{provide:cm,useValue:"XSRF-TOKEN"},{provide:um,useValue:"X-XSRF-TOKEN"}]}),n})(),Jj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({providers:[Kc,{provide:M0,useClass:Qj},P0,{provide:A0,useExisting:P0}],imports:[Xj.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})();const eU=["*"];let Yc;function oa(n){return function tU(){if(void 0===Yc&&(Yc=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(Yc=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Yc}()?.createHTML(n)||n}function L0(n){return Error(`Unable to find icon with the name "${n}"`)}function V0(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function B0(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class gr{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Zc=(()=>{class n{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,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","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new gr(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const s=this._sanitizer.sanitize(pe.HTML,r);if(!s)throw B0(r);const a=oa(s);return this._addSvgIconConfig(e,i,new gr("",a,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new gr(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(pe.HTML,i);if(!o)throw B0(i);const s=oa(o);return this._addSvgIconSetConfig(e,new gr("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(pe.RESOURCE_URL,e);if(!i)throw V0(e);const r=this._cachedIconsByUrl.get(i);return r?k(Qc(r)):this._loadSvgIconFromConfig(new gr(e,null)).pipe(Qe(o=>this._cachedIconsByUrl.set(i,o)),$(o=>Qc(o)))}getNamedSvgIcon(e,i=""){const r=H0(i,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):go(L0(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?k(Qc(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe($(i=>Qc(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?k(r):function S0(...n){const t=Rg(n),{args:e,keys:i}=lD(n),r=new _e(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(i?cD(i,a):a),o.complete())}))}});return t?r.pipe(Xf(t)):r}(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(si(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(pe.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),k(null)})))).pipe($(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw L0(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Qe(i=>e.svgText=i),$(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?k(null):this._fetchIcon(e).pipe(Qe(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString(oa(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(oa("")),r=e.attributes;for(let o=0;ooa(c)),oc(()=>this._inProgressUrlFetches.delete(s)),Pg());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(H0(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}}),j0=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],cU=j0.map(n=>`[${n}]`).join(", "),uU=/^url\(['"]?#(.*?)['"]?\)$/;let U0=(()=>{class n extends oU{constructor(e,i,r,o,s,a){super(e),this._iconRegistry=i,this._location=o,this._errorHandler=s,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=et.EMPTY,a&&(a.color&&(this.color=this.defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Pp(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(cU),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],l=a.getAttribute(s),c=l?l.match(uU):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:s,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Mt(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(g(Fe),g(Zc),Lr("aria-hidden"),g(aU),g(Xn),g(sU,8))},n.\u0275cmp=ue({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&(rt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),$e("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:[B],ngContentSelectors:eU,decls:1,vars:0,template:function(e,i){1&e&&(Lh(),Vh(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),n})(),dU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({imports:[It,It]}),n})();function hU(n,t){if(1&n&&(F(0,"div")(1,"p",6),ie(2),R()()),2&n){const e=t.$implicit;$e("menu-selected",e==we().selected),O(2),Te(e.name)}}function fU(n,t){if(1&n&&(F(0,"mat-icon",7),ie(1),R()),2&n){const e=we();O(1),Te(e.selected.icon)}}let $0=(()=>{class n extends zc{constructor(e,i,r){super(),this.dialog=e,this.io=i,this.apps=r,this.elements=[{name:"Clock",action:()=>{this.openApp(Pj)},matIcon:!0,icon:"access_time",about:"\u0417\u0430\u0431\u044b\u0442\u044b\u0435 \u0447\u0430\u0441\u044b \u0441\u0430\u043c\u043e\u0433\u043e \u0442\u043e\u0434\u0434\u0430 \u0433\u043e\u0432\u0430\u0440\u0434\u0430. \u041e\u043d \u0437\u0430\u0431\u044b\u043b \u0438\u0445 \u0432 \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u0442\u043d\u043e\u0439 \u0438\u0433\u0440\u0435 \u043a\u0430\u043b\u043b\u0430\u0443\u044276."},{name:"KeyboardTest",action:()=>{this.openApp(E0)},matIcon:!0,icon:"help",about:"Keyboard input test"},{name:"Rick Roll",action:()=>{this.openApp(Nj,{url:"https://youtu.be/dQw4w9WgXcQ?output=embed"})},matIcon:!0,icon:"record_voice_over",about:"\u041d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043b\u0443\u0447\u0448\u0435 \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0440\u0438\u043a\u0440\u043e\u043b\u043b\u0430"}],this.selected=this.elements[0]}createSub(){this.sub=this.io.keys.subscribe(e=>{this.apps.inApp||super.choiceItem(e)})}ngOnInit(){this.createSub()}openApp(e,i={}){this.apps.inApp=!0,this.dialog.open(e,{width:"100%",height:"100%",disableClose:!0,data:i}).afterClosed().subscribe(()=>this.apps.inApp=!1)}}return n.\u0275fac=function(e){return new(e||n)(g($c),g(ui),g(Wc))},n.\u0275cmp=ue({type:n,selectors:[["app-inventory-apps-component"]],features:[B],decls:9,vars:3,consts:[[2,"display","flex","flex-direction","row","justify-content","center","height","84%"],[2,"width","45%"],[3,"menu-selected",4,"ngFor","ngForOf"],[2,"width","45%","display","flex","flex-direction","column"],[2,"text-align","center"],["class","rotating-image","style","font-size: 100px; height: 100px; width: 100px",4,"ngIf"],[2,"margin","0 0"],[1,"rotating-image",2,"font-size","100px","height","100px","width","100px"]],template:function(e,i){1&e&&(F(0,"div",0)(1,"div",1),Me(2,hU,3,3,"div",2),R(),F(3,"div",3)(4,"div",4),Me(5,fU,2,1,"mat-icon",5),R(),F(6,"div")(7,"p"),ie(8),R()()()()),2&e&&(O(2),Ce("ngForOf",i.elements),O(3),Ce("ngIf",i.selected.matIcon),O(3),Te(i.selected.about))},dependencies:[Ln,zl,U0],encapsulation:2}),n})(),z0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ue({type:n,selectors:[["app-inventory-custom"]],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})();function pU(n,t){if(1&n){const e=lo();F(0,"p",7),ot("click",function(){const o=Rr(e).$implicit;return kr(we().selectHeader(o))}),ie(1),R()}if(2&n){const e=t.$implicit;$e("inactiveHeader",!we().isActiveHeader(e)),O(1),Te(e.name)}}let W0=(()=>{class n extends Mc{constructor(e,i,r,o,s){super(e,i),this.ws=r,this.io=o,this.apps=s,this.free=0,this.total=0,this.format="",this.path="inventory",super.navs=[{name:"apps",path:"apps",action:()=>{},component:$0.name},{name:"custom",path:"custom",action:()=>{},component:z0.name}]}selectHeader(e){super.selectHeader(e,[this.path])}ngOnInit(){this.ws.events.pipe($(e=>JSON.parse(e))).subscribe(e=>{e.event==Eo.SPACESTATS&&(this.free=Math.round(e.data.free),this.total=Math.round(e.data.total),this.format=e.data.format)}),this.sub=this.io.keys.subscribe(e=>{this.apps.inApp||super.choiceHeader(e)})}}return n.\u0275fac=function(e){return new(e||n)(g(Wt),g(Ue),g(DE),g(ui),g(Wc))},n.\u0275cmp=ue({type:n,selectors:[["app-inv-header"]],features:[B],decls:15,vars:4,consts:[[2,"display","flex","align-items","center","justify-content","flex-start","padding-left","45px"],["style","text-transform: uppercase;font-weight: bold; margin-bottom: 0; margin-top: 5px; padding-left: 5px",3,"inactiveHeader","click",4,"ngFor","ngForOf"],[2,"padding-top","2.5%"],[1,"footer"],[2,"display","flex","justify-content","space-between","height","100%"],[1,"footer-text",2,"width","19.5%"],[1,"footer-text",2,"width","60%"],[2,"text-transform","uppercase","font-weight","bold","margin-bottom","0","margin-top","5px","padding-left","5px",3,"click"]],template:function(e,i){1&e&&(F(0,"div",0),Me(1,pU,2,3,"p",1),R(),F(2,"div",2),gt(3,"router-outlet"),R(),F(4,"div",3)(5,"div",4)(6,"div",5)(7,"span"),ie(8),R()(),F(9,"div",5)(10,"span"),ie(11,"\u0445\u0437 \u0447\u0442\u043e \u0442\u0443\u0442 \u043d\u0430\u0434\u043e"),R()(),F(12,"div",6)(13,"span"),ie(14,"nigger"),R()()()()),2&e&&(O(1),Ce("ngForOf",i.navs),O(7),jh("",i.free,"/",i.total,"",i.format,""))},dependencies:[Ln,hr],encapsulation:2}),n})(),G0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ue({type:n,selectors:[["app-map-header"]],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),q0=(()=>{class n{constructor(){this.name="",this.volume=.5,this.tracks=[],this.player=new Audio,this.player.addEventListener("ended",()=>{let e=this.tracks.pop();e&&this.playThis(e.src,e.name)})}playThis(e,i){this.player.src=e,this.player.volume=this.volume,this.name=i,this.player.play()}stop(){this.player.pause()}volumeUp(){this.volume>.9||(this.volume=this.volume+.1,this.player.volume=this.volume)}volumeDown(){this.volume<.1||(this.volume=this.volume-.1,this.player.volume=this.volume)}getVolume(){return Math.round(100*this.volume)}getTime(){return this.player.duration?this.player.duration<60?"0:"+Math.floor(this.player.currentTime)+" / 0:"+Math.floor(this.player.duration):Math.floor(this.player.currentTime)+" / "+Math.floor(this.player.duration):"0:00 / 0:00"}getName(){return this.name?"\u0421\u0435\u0439\u0447\u0430\u0441 \u0438\u0433\u0440\u0430\u0435\u0442: "+this.name:"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0438\u0433\u0440\u0430\u0435\u0442"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function mU(n,t){if(1&n&&(F(0,"div")(1,"p",6),ie(2),R()()),2&n){const e=t.$implicit,i=we();$e("menu-selected",e==i.selected&&"LEFT"==i.currentSide),O(2),Te(e.name)}}function gU(n,t){if(1&n&&(F(0,"div")(1,"p",6),ie(2),R()()),2&n){const e=t.$implicit,i=we();$e("menu-selected",e==i.selectedRight&&"RIGHT"==i.currentSide),O(2),Te(e.name)}}let _U=(()=>{class n extends zc{constructor(e,i){super(),this.player=e,this.io=i,this.elements=[{name:"niggers",src:"../../../../assets/music/pvz.mp3",action:()=>{this.play()}}],this.selected=this.elements[0],this.elementsRight=[{name:"STOP",action:()=>this.player.stop()},{name:"Volume UP",action:()=>this.player.volumeUp()},{name:"Volume DOWN",action:()=>this.player.volumeDown()}],this.selectedRight=this.elementsRight[0]}ngOnInit(){this.sub=this.io.keys.subscribe(e=>{switch(e){case"KeyA":this.currentSide="LEFT";break;case"KeyD":this.currentSide="RIGHT";break;default:super.choiceItem(e)}})}play(){this.player.playThis(this.selected.src,this.selected.name)}}return n.\u0275fac=function(e){return new(e||n)(g(q0),g(ui))},n.\u0275cmp=ue({type:n,selectors:[["app-radio"]],features:[B],decls:8,vars:2,consts:[[2,"display","flex","flex-direction","row","justify-content","center","height","81%","padding-top","7%"],[2,"width","45%"],[3,"menu-selected",4,"ngFor","ngForOf"],[2,"width","45%","display","flex","flex-direction","column"],[2,"text-align","center"],[1,"rotating-image",2,"font-size","100px","height","100px","width","100px"],[2,"margin","0 0"]],template:function(e,i){1&e&&(F(0,"div",0)(1,"div",1),Me(2,mU,3,3,"div",2),R(),F(3,"div",3)(4,"div",4)(5,"mat-icon",5),ie(6,"audiotrack"),R()(),Me(7,gU,3,3,"div",2),R()()),2&e&&(O(2),Ce("ngForOf",i.elements),O(5),Ce("ngForOf",i.elementsRight))},dependencies:[Ln,U0],encapsulation:2}),n})(),K0=(()=>{class n{constructor(e){this.player=e}}return n.\u0275fac=function(e){return new(e||n)(g(q0))},n.\u0275cmp=ue({type:n,selectors:[["app-radio-header"]],decls:12,vars:3,consts:[[1,"footer"],[2,"display","flex","justify-content","space-between","height","100%"],[1,"footer-text",2,"width","65%"],[1,"footer-text",2,"width","9.5%","text-align","center"],[1,"footer-text",2,"width","24.5%","text-align","right"]],template:function(e,i){1&e&&(gt(0,"app-radio"),F(1,"div",0)(2,"div",1)(3,"div",2)(4,"span"),ie(5),R()(),F(6,"div",3)(7,"span"),ie(8),R()(),F(9,"div",4)(10,"span"),ie(11),R()()()()),2&e&&(O(5),Te(i.player.getName()),O(3),On("",i.player.getVolume()," %"),O(3),Te(i.player.getTime()))},dependencies:[_U],encapsulation:2}),n})();class hm extends ee{constructor(t=1/0,e=1/0,i=Vp){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){const{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;e||(i.push(t),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;sJSON.parse(n.data),serializer:n=>JSON.stringify(n)};class fm extends Tu{constructor(t,e){if(super(),this._socket=null,t instanceof _e)this.destination=e,this.source=t;else{const i=this._config=Object.assign({},yU);if(this._output=new ee,"string"==typeof t)i.url=t;else for(const r in t)t.hasOwnProperty(r)&&(i[r]=t[r]);if(!i.WebSocketCtor&&WebSocket)i.WebSocketCtor=WebSocket;else if(!i.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new hm}}lift(t){const e=new fm(this._config,this.destination);return e.operator=t,e.source=this,e}_resetState(){this._socket=null,this.source||(this.destination=new hm),this._output=new ee}multiplex(t,e,i){const r=this;return new _e(o=>{try{r.next(t())}catch(a){o.error(a)}const s=r.subscribe({next:a=>{try{i(a)&&o.next(a)}catch(l){o.error(l)}},error:a=>o.error(a),complete:()=>o.complete()});return()=>{try{r.next(e())}catch(a){o.error(a)}s.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:t,protocol:e,url:i,binaryType:r}=this._config,o=this._output;let s=null;try{s=e?new t(i,e):new t(i),this._socket=s,r&&(this._socket.binaryType=r)}catch(l){return void o.error(l)}const a=new et(()=>{this._socket=null,s&&1===s.readyState&&s.close()});s.onopen=l=>{const{_socket:c}=this;if(!c)return s.close(),void this._resetState();const{openObserver:u}=this._config;u&&u.next(l);const d=this.destination;this.destination=ya.create(h=>{if(1===s.readyState)try{const{serializer:f}=this._config;s.send(f(h))}catch(f){this.destination.error(f)}},h=>{const{closingObserver:f}=this._config;f&&f.next(void 0),h&&h.code?s.close(h.code,h.reason):o.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),this._resetState()},()=>{const{closingObserver:h}=this._config;h&&h.next(void 0),s.close(),this._resetState()}),d&&d instanceof hm&&a.add(d.subscribe(this.destination))},s.onerror=l=>{this._resetState(),o.error(l)},s.onclose=l=>{s===this._socket&&this._resetState();const{closeObserver:c}=this._config;c&&c.next(l),l.wasClean?o.complete():o.error(l)},s.onmessage=l=>{try{const{deserializer:c}=this._config;o.next(c(l))}catch(c){o.error(c)}}}_subscribe(t){const{source:e}=this;return e?e.subscribe(t):(this._socket||this._connectSocket(),this._output.subscribe(t),t.add(()=>{const{_socket:i}=this;0===this._output.observers.length&&(i&&(1===i.readyState||0===i.readyState)&&i.close(),this._resetState())}),t)}unsubscribe(){const{_socket:t}=this;t&&(1===t.readyState||0===t.readyState)&&t.close(),this._resetState(),super.unsubscribe()}}function Y0(n,t){return t?e=>Rs(t.pipe(Mt(1),function wU(){return Re((n,t)=>{n.subscribe(ye(t,ga))})}()),e.pipe(Y0(n))):tt((e,i)=>n(e,i).pipe(Mt(1),mD(e)))}const X0=4294967295;let pm=(()=>{class n{constructor(e){this.http=e,this.meshRoute="mesh/api",this.channels=[],this.channelChange=new ut(0),this.nodes=[],this.nodesChange=new ut(0),this.messagesChange=new ut({}),this.messages=[],this.state=0,this.meshId=0,this.connect()}getNodeInfo(e){return this.http.get(`${this.meshRoute}/nodes/${e}`)}getNodeName(e){return this.nodes.filter(r=>r.id==e).map(r=>r.name).pop()||"Unknown"}getMsgTo(e){return e.to==X0?this.channels.filter(r=>r.index==e.channel).map(r=>r.name).pop()??"CH_U":"DM"}sendMessage(e,i=null,r=0){return this.http.post(`${this.meshRoute}/messages`,{txt:e,node_id:i,channel_id:r})}getMyMesh(){if(0==this.meshId)return{name:"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e",id:0};{let e=this.nodes.filter(i=>i.id==this.meshId);return e.length>0?e.pop():{name:"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e",id:0}}}connect(){this.socket$=function bU(n){return new fm(n)}(`ws://${location.host}/mesh/ws`).pipe(function CU(n){return Re((t,e)=>{let i,o,r=!1;const s=()=>{i=t.subscribe(ye(e,void 0,void 0,a=>{o||(o=new ee,n(o).subscribe(ye(e,()=>i?s():r=!0))),o&&o.next(a)})),r&&(i.unsubscribe(),i=null,r=!1,s())};s()})}(e=>e.pipe(Qe(i=>{console.log("WebSocket error, reconnecting...",i),this.state=5}),function DU(n,t=Fc){const e=GE(n,t);return Y0(()=>e)}(3e3)))),this.socket$.subscribe(e=>{switch(e.event){case 3:this.messages.push(e.data),this.messagesChange.next(e.data);break;case 4:this.meshId=e.data;break;case 1:{const i=e.data,r=this.nodes.filter(o=>o.id==i.id);if(0==r.length)this.nodes.push(i);else{let o=this.nodes.indexOf(r[0]);this.nodes[o]=i}this.nodesChange.next((new Date).getTime());break}case 2:this.state=e.data;break;case 0:{const i=e.data,r=this.channels.filter(o=>o.index==i.index);if(0==r.length)this.channels.push(i);else{let o=this.channels.indexOf(r[0]);this.channels[o]=i}this.channelChange.next((new Date).getTime());break}}})}}return n.\u0275fac=function(e){return new(e||n)(_(Kc))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),J0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ue({type:n,selectors:[["app-mesh-my-node"]],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})();const FU=["mat-button",""],OU=["*"],NU=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],LU=em(fj(pj(class{constructor(n){this._elementRef=n}})));let VU=(()=>{class n extends LU{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const o of NU)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);e.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(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(g(Fe),g(Nc),g(rr,8))},n.\u0275cmp=ue({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(e,i){if(1&e&&Cs(f0,5),2&e){let r;nr(r=ir())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(rt("disabled",i.disabled||null),$e("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[B],attrs:FU,ngContentSelectors:OU,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(e,i){1&e&&(Lh(),F(0,"span",0),Vh(1),R(),gt(2,"span",1)(3,"span",2)),2&e&&(O(2),$e("mat-button-ripple-round",i.isRoundButton||i.isIconButton),Ce("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[f0],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:rgba(0,0,0,0);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:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),n})(),eS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({imports:[wj,It,It]}),n})();function BU(n,t){if(1&n){const e=lo();F(0,"div",2)(1,"button",3),ot("click",function(){return Rr(e),kr(we().action())}),ie(2),R()()}if(2&n){const e=we();O(2),Te(e.data.action)}}function HU(n,t){}const tS=new E("MatSnackBarData");class Xc{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const jU=Math.pow(2,31)-1;class mm{constructor(t,e){this._overlayRef=e,this._afterDismissed=new ee,this._afterOpened=new ee,this._onAction=new ee,this._dismissedByAction=!1,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,jU))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let UU=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return n.\u0275fac=function(e){return new(e||n)(g(mm),g(tS))},n.\u0275cmp=ue({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(F(0,"span",0),ie(1),R(),Me(2,BU,3,1,"div",1)),2&e&&(O(1),Te(i.data.message),O(1),Ce("ngIf",i.hasAction))},dependencies:[zl,VU],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),n})();const $U={snackBarState:nm("state",[ta("void, hidden",Sn({transform:"scale(0.8)",opacity:0})),ta("visible",Sn({transform:"scale(1)",opacity:1})),na("* => visible",ea("150ms cubic-bezier(0, 0, 0.2, 1)")),na("* => void, * => hidden",ea("75ms cubic-bezier(0.4, 0.0, 1, 1)",Sn({opacity:0})))])};let zU=(()=>{class n extends Bc{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new ee,this._onExit=new ee,this._onEnter=new ee,this._animationState="void",this.attachDomPortal=a=>{this._assertNotAttached();const l=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),l},this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Mt(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return n.\u0275fac=function(e){return new(e||n)(g(te),g(Fe),g(or),g(Gt),g(Xc))},n.\u0275dir=N({type:n,viewQuery:function(e,i){if(1&e&&Cs(Zs,7),2&e){let r;nr(r=ir())&&(i._portalOutlet=r.first)}},features:[B]}),n})(),WU=(()=>{class n extends zU{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ke(n)))(i||n)}}(),n.\u0275cmp=ue({type:n,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&ml("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&_l("@state",i._animationState)},features:[B],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(F(0,"div",0),Me(1,HU,0,0,"ng-template",1),R(),gt(2,"div")),2&e&&(O(2),rt("aria-live",i._live)("role",i._role))},dependencies:[Zs],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[$U.snackBarState]}}),n})(),nS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({imports:[Qp,Qs,Gl,eS,It,It]}),n})();const iS=new E("mat-snack-bar-default-options",{providedIn:"root",factory:function GU(){return new Xc}});let qU=(()=>{class n{constructor(e,i,r,o,s,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const o=Oe.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Xc,useValue:i}]}),s=new Ys(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r={...new Xc,...this._defaultConfig,...i},o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new mm(s,o);if(e instanceof Cn){const l=new Kp(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(l)}else{const l=this._createInjector(r,a),c=new Ys(e,void 0,l),u=s.attachComponentPortal(c);a.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(xc(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new Zp;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,a=!s&&"center"!==e.horizontalPosition;return s?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return Oe.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:mm,useValue:i},{provide:tS,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(_(xi),_(HE),_(Oe),_(Hp),_(n,12),_(iS))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),rS=(()=>{class n extends qU{constructor(e,i,r,o,s,a){super(e,i,r,o,s,a),this.simpleSnackBarComponent=UU,this.snackBarContainerComponent=WU,this.handsetCssClass="mat-snack-bar-handset"}}return n.\u0275fac=function(e){return new(e||n)(_(xi),_(HE),_(Oe),_(Hp),_(n,12),_(iS))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:nS}),n})();function KU(n,t){if(1&n&&(ka(),gt(0,"circle",4)),2&n){const e=we(),i=kh(1);Ji("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),rt("r",e._getCircleRadius())}}function YU(n,t){if(1&n&&(ka(),gt(0,"circle",4)),2&n){const e=we(),i=kh(1);Ji("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),rt("r",e._getCircleRadius())}}const QU=em(class{constructor(n){this._elementRef=n}},"primary"),XU=new E("mat-progress-spinner-default-options",{providedIn:"root",factory:function JU(){return{diameter:100}}});class hi extends QU{constructor(t,e,i,r,o,s,a,l){super(t),this._document=i,this._diameter=100,this._value=0,this._resizeSubscription=et.EMPTY,this.mode="determinate";const c=hi._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(i.head)||c.set(i.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!o&&!o._forceAnimations,"mat-spinner"===t.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),o&&(o.color&&(this.color=this.defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth)),e.isBrowser&&e.SAFARI&&a&&s&&l&&(this._resizeSubscription=a.change(150).subscribe(()=>{"indeterminate"===this.mode&&l.run(()=>s.markForCheck())}))}get diameter(){return this._diameter}set diameter(t){this._diameter=Np(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Np(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Np(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=ME(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(t){const e=50*(t.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const t=this._styleRoot,e=this._diameter,i=hi._diameters;let r=i.get(t);if(!r||!r.has(e)){const o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),t.appendChild(o),r||(r=new Set,i.set(t,r)),r.add(e)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}hi._diameters=new WeakMap,hi.\u0275fac=function(t){return new(t||hi)(g(Fe),g(Gt),g(q,8),g(rr,8),g(XU),g(or),g(Gp),g(te))},hi.\u0275cmp=ue({type:hi,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(rt("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Ji("width",e.diameter,"px")("height",e.diameter,"px"),$e("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[B],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(ka(),F(0,"svg",0,1),Me(2,KU,1,11,"circle",2),Me(3,YU,1,9,"circle",3),R()),2&t&&(Ji("width",e.diameter,"px")("height",e.diameter,"px"),Ce("ngSwitch","indeterminate"===e.mode),rt("viewBox",e._getViewBox()),O(2),Ce("ngSwitchCase",!0),O(1),Ce("ngSwitchCase",!1))},dependencies:[Wl,kw],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let t$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({imports:[It,Gl,It]}),n})();function n$(n,t){if(1&n&&(F(0,"div",null,8)(2,"p",9),ie(3),R()()),2&n){const e=t.$implicit,i=we();$e("menu-selected",i.isSelected(e)&&"LEFT"==i.currentSide),O(3),Te(e.name)}}function i$(n,t){if(1&n&&(F(0,"p",9),ie(1),R()),2&n){const e=we(2);O(1),On("SNR: ",null==e.nodeInfo?null:e.nodeInfo.snr," dB")}}function r$(n,t){if(1&n&&(F(0,"p",9),ie(1),R()),2&n){const e=we(2);O(1),On("Hops: ",null==e.nodeInfo?null:e.nodeInfo.hops_away,"")}}function o$(n,t){if(1&n&&(F(0,"p",9),ie(1),Xh(2,"date"),R()),2&n){const e=we(2);O(1),On("\u041f\u043e\u044f\u0432\u043b\u044f\u043b\u0441\u044f: ",Jh(2,1,null==e.nodeInfo?null:e.nodeInfo.last_heard,"HH:mm dd/MM"),"")}}function s$(n,t){if(1&n&&(F(0,"div",10),Me(1,i$,2,1,"p",11),Me(2,r$,2,1,"p",11),Me(3,o$,3,4,"p",11),R()),2&n){const e=we();O(1),Ce("ngIf",null==e.nodeInfo?null:e.nodeInfo.snr),O(1),Ce("ngIf",null==e.nodeInfo?null:e.nodeInfo.hops_away),O(1),Ce("ngIf",null==e.nodeInfo?null:e.nodeInfo.last_heard)}}function a$(n,t){1&n&>(0,"mat-spinner")}function l$(n,t){if(1&n&&(F(0,"div")(1,"p",9),ie(2),R()()),2&n){const e=t.$implicit,i=we();$e("menu-selected",e==i.selectedRight&&"RIGHT"==i.currentSide),O(2),Te(e.name)}}let oS=(()=>{class n extends zc{constructor(e,i,r,o,s){super(),this.io=e,this.meshtastic=i,this.dialog=r,this.apps=o,this.snack=s,this.loading=!1,this.elementsRight=[{name:"\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c",action:()=>{this.apps.openKeyboard().subscribe(a=>{a&&this.meshtastic.sendMessage(a,this.nodeInfo?.num).subscribe(l=>{this.snack.open("\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e",void 0,{duration:2e3})}),this.apps.inApp=!1})}},{name:"\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f",action:()=>{}},{name:"\u0422\u0440\u0430\u0441\u0438\u0440\u043e\u0432\u043a\u0430*",action:()=>{}}],this.selectedRight=this.elementsRight[0]}createSub(){this.sub=this.io.keys.subscribe(e=>{if(!this.apps.inApp)switch(e){case"KeyA":this.currentSide="LEFT";break;case"KeyD":this.currentSide="RIGHT";break;default:super.choiceItem(e)&&this.updateNodeInfo()}})}updateNodeInfo(){this.selected&&(this.loading=!0,this.meshtastic.getNodeInfo(this.selected.id).subscribe(e=>{this.nodeInfo=e,this.loading=!1}))}ngOnInit(){this.createSub(),this.elements=this.meshtastic.nodes,this.meshtastic.nodesChange.subscribe(e=>{this.elements=this.meshtastic.nodes,null==this.selected&&(this.selected=this.elements[0],this.updateNodeInfo())})}}return n.\u0275fac=function(e){return new(e||n)(g(ui),g(pm),g($c),g(Wc),g(rS))},n.\u0275cmp=ue({type:n,selectors:[["app-mesh-list-node"]],features:[B],decls:9,vars:4,consts:[[2,"display","flex","flex-direction","row","justify-content","center","height","84%"],["id","nodes",2,"width","45%","overflow-y","hidden","height","230px","scroll-behavior","smooth"],[3,"menu-selected",4,"ngFor","ngForOf"],[2,"width","2.5%","display","flex","flex-direction","column"],["id","info",2,"width","45%","display","flex","flex-direction","column"],[1,"secondary-color",2,"text-align","center","height","125px","margin-bottom","10px"],["style","display: flex; flex-direction: column",4,"ngIf"],[4,"ngIf"],["menuItem",""],[2,"margin","0 0"],[2,"display","flex","flex-direction","column"],["style","margin: 0 0",4,"ngIf"]],template:function(e,i){1&e&&(F(0,"div",0)(1,"div",1),Me(2,n$,4,3,"div",2),R(),gt(3,"div",3),F(4,"div",4)(5,"div",5),Me(6,s$,4,3,"div",6),Me(7,a$,1,0,"mat-spinner",7),R(),Me(8,l$,3,3,"div",2),R()()),2&e&&(O(2),Ce("ngForOf",i.elements),O(4),Ce("ngIf",!i.loading),O(1),Ce("ngIf",i.loading),O(1),Ce("ngForOf",i.elementsRight))},dependencies:[Ln,zl,hi,jf],encapsulation:2}),n})();function c$(n,t){if(1&n&&(F(0,"div",5,6)(2,"p",7),ie(3),Xh(4,"date"),R(),F(5,"p",8),ie(6),R()()),2&n){const e=t.$implicit,i=we();$e("menu-selected",i.isSelected(e)&&"LEFT"==i.currentSide),O(3),Uh(" ",i.meshtastic.getNodeName(e.fr0m)," ",i.meshtastic.getMsgTo(e)," ",Jh(4,7,e.rx_time,"HH:mm:ss dd/MM")," [",e.hop_limit,"]"),O(3),Te(e.msg)}}function u$(n,t){if(1&n&&(F(0,"div",9)(1,"p",8),ie(2),R()()),2&n){const e=t.$implicit,i=we();$e("menu-selected",e==i.selectedRight&&"RIGHT"==i.currentSide),O(2),Te(e.name)}}let _m=(()=>{class n extends zc{constructor(e,i,r,o){super(),this.io=e,this.meshtastic=i,this.apps=r,this.route=o,this.elementsRight=[{name:"Reply to DM",action:()=>{}},{name:"Reply",action:()=>{}}],this.selectedRight=this.elementsRight[0]}ngOnInit(){this.route.params.subscribe(e=>{this.currentIndex=e.index;let i=()=>{};i="-1"===e.index?()=>this.elements=this.meshtastic.messages:()=>this.elements=this.meshtastic.messages.filter(r=>r.to==X0&&r.channel==parseInt(e.index)),i(),this.meshtastic.messagesChange.subscribe(r=>{r&&i()}),this.elements&&(this.selected=this.elements[this.elements.length])}),this.createSub()}createSub(){this.sub=this.io.keys.subscribe(e=>{if(!this.apps.inApp)switch(e){case"KeyA":this.currentSide="LEFT";break;case"KeyD":this.currentSide="RIGHT";break;default:super.choiceItem(e)}})}}return n.\u0275fac=function(e){return new(e||n)(g(ui),g(pm),g(Wc),g(Wt))},n.\u0275cmp=ue({type:n,selectors:[["app-mesh-messages"]],features:[B],decls:5,vars:2,consts:[[2,"display","flex","flex-direction","column","align-items","center","justify-content","center","height","84%"],["id","msgs",2,"width","95%","overflow-y","hidden","height","200px","scroll-behavior","smooth"],["class","secondary-color","style","margin-bottom: 5px;",3,"menu-selected",4,"ngFor","ngForOf"],[2,"width","95%","height","30px","align-items","center","display","flex","flex-direction","row","justify-content","center"],["style","margin-left: 2%; margin-right: 2%",3,"menu-selected",4,"ngFor","ngForOf"],[1,"secondary-color",2,"margin-bottom","5px"],["menuItem",""],[2,"margin","0 0","font-size","10px"],[2,"margin","0 0"],[2,"margin-left","2%","margin-right","2%"]],template:function(e,i){1&e&&(F(0,"div",0)(1,"div",1),Me(2,c$,7,10,"div",2),R(),F(3,"div",3),Me(4,u$,3,3,"div",4),R()()),2&e&&(O(2),Ce("ngForOf",i.elements),O(2),Ce("ngForOf",i.elementsRight))},dependencies:[Ln,jf],encapsulation:2}),n})();function d$(n,t){if(1&n){const e=lo();F(0,"p",8),ot("click",function(){const o=Rr(e).$implicit;return kr(we().selectHeader(o))}),ie(1),R()}if(2&n){const e=t.$implicit;$e("inactiveHeader",!we().isActiveHeader(e)),O(1),Te(e.name)}}let sS=(()=>{class n extends Mc{constructor(e,i,r,o,s){super(i,r),this.meshtastic=e,this.io=o,this.snack=s,this.path="mesh",this.meshtastic.channelChange.subscribe(a=>{let l=[{name:"my",path:"my",action:()=>{},component:J0.name},{name:"list",path:"list",action:()=>{},component:oS.name},{name:"messages",path:"messages/-1",action:()=>{},component:_m.name}];l.push(...this.meshtastic.channels.map(c=>({name:`${c.name}`,path:`messages/${c.index}`,action:()=>{},component:_m.name}))),console.log(l),super.navs=l})}isActiveHeader(e){let i=this.route.firstChild?.component?.name==e.component;if(this.route.firstChild?.snapshot.params){const r=e.path.split("/");r.length>1&&(i=i&&this.route.firstChild?.snapshot.params.index==r[1])}return i&&(this.currentNav=e),i}getMeshState(){switch(this.meshtastic.state){case 0:return"\u041d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d";case 1:return"\u041e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438";case 2:return"\u0414\u043e\u0441\u0442\u0443\u043f\u0435\u043d";case 3:return"\u041e\u0448\u0438\u0431\u043a\u0430 \u043c\u043e\u0434\u0443\u043b\u044f";case 4:return"\u041f\u0435\u0440\u0435\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435";case 5:return"\u041e\u0448\u0438\u0431\u043a\u0430 \u0432\u0435\u0431\u0441\u043e\u043a\u0435\u0442\u0430";default:return"\u0425\u0443\u0439 \u0437\u043d\u0430\u0435\u0442"}}selectHeader(e){super.selectHeader(e,[this.path])}ngOnInit(){this.meshtastic.messagesChange.subscribe(e=>{if(e.fr0m==this.meshtastic.meshId)return;const i=this.meshtastic.getNodeName(e.fr0m);this.snack.open(`${i}: ${e.msg}`,void 0,{duration:2e3})}),this.sub=this.io.keys.subscribe(e=>{super.choiceHeader(e)})}}return n.\u0275fac=function(e){return new(e||n)(g(pm),g(Wt),g(Ue),g(ui),g(rS))},n.\u0275cmp=ue({type:n,selectors:[["app-meshtastic-header"]],features:[B],decls:15,vars:4,consts:[[2,"display","flex","align-items","center","justify-content","flex-start","padding-left","45px"],["style","text-transform: uppercase;font-weight: bold; margin-bottom: 0; margin-top: 5px; padding-left: 5px",3,"inactiveHeader","click",4,"ngFor","ngForOf"],[2,"padding-top","2.5%"],[1,"footer"],[2,"display","flex","justify-content","space-between","height","100%"],[1,"footer-text",2,"width","30%"],[1,"footer-text",2,"width","49%"],[1,"footer-text",2,"width","20%"],[2,"text-transform","uppercase","font-weight","bold","margin-bottom","0","margin-top","5px","padding-left","5px",3,"click"]],template:function(e,i){1&e&&(F(0,"div",0),Me(1,d$,2,3,"p",1),R(),F(2,"div",2),gt(3,"router-outlet"),R(),F(4,"div",3)(5,"div",4)(6,"div",5)(7,"span"),ie(8),R()(),F(9,"div",6)(10,"span"),ie(11),R()(),F(12,"div",7)(13,"span"),ie(14),R()()()()),2&e&&(O(1),Ce("ngForOf",i.navs),O(7),Te(i.getMeshState()),O(3),Te(i.meshtastic.getMyMesh().name),O(3),On("",i.meshtastic.nodes.length," nodes"))},dependencies:[Ln,hr],encapsulation:2}),n})();function h$(n,t){if(1&n){const e=lo();F(0,"p",2),ot("click",function(){const o=Rr(e).$implicit;return kr(we().selectHeader(o))}),ie(1),R()}if(2&n){const e=t.$implicit;$e("activeHeader",we().isActiveHeader(e))("baseActiveHeader",!0),O(1),Te(e.name)}}const f$=[{path:"",component:(()=>{class n extends Mc{constructor(e,i,r){super(e,i),this.io=r,super.navs=[{name:"stat",path:"stats",action:()=>{},component:EE.name},{name:"inv",path:"inventory",action:()=>{},component:W0.name},{name:"map",path:"map",action:()=>{},component:G0.name},{name:"radio",path:"radio",action:()=>{},component:K0.name},{name:"mesh",path:"mesh",action:()=>{},component:sS.name}]}ngOnInit(){this.sub=this.io.keys.subscribe(e=>{if(null!=this.currentNav&&e.startsWith("Digit")&&6==e.length){let i=Number.parseInt(e.replace("Digit",""))-1;this.navs[i]&&this.selectHeader(this.navs[i])}})}}return n.\u0275fac=function(e){return new(e||n)(g(Wt),g(Ue),g(ui))},n.\u0275cmp=ue({type:n,selectors:[["ui"]],features:[B],decls:3,vars:1,consts:[[2,"display","flex","align-items","center","justify-content","space-evenly","border-bottom","1px solid rgb(0, 242, 0)"],[3,"activeHeader","baseActiveHeader","click",4,"ngFor","ngForOf"],[3,"click"]],template:function(e,i){1&e&&(F(0,"div",0),Me(1,h$,2,5,"p",1),R(),gt(2,"router-outlet")),2&e&&(O(1),Ce("ngForOf",i.navs))},dependencies:[Ln,hr],encapsulation:2}),n})(),children:[{path:"",redirectTo:"stats",pathMatch:"full"},{path:"stats",component:EE,children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",component:wE}]},{path:"inventory",component:W0,children:[{path:"",redirectTo:"apps",pathMatch:"full"},{path:"apps",component:$0},{path:"custom",component:z0}]},{path:"data",component:(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ue({type:n,selectors:[["app-data-header"]],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})()},{path:"map",component:G0},{path:"radio",component:K0},{path:"mesh",component:sS,children:[{path:"",redirectTo:"my",pathMatch:"full"},{path:"my",component:J0},{path:"list",component:oS},{path:"messages/:index",component:_m}]}]}];let p$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({imports:[bE.forRoot(f$),bE]}),n})(),m$=(()=>{class n{constructor(e){this.io=e}pressKeys(e){this.io.keys.next(e.code),this.io.keys.next("")}}return n.\u0275fac=function(e){return new(e||n)(g(ui))},n.\u0275cmp=ue({type:n,selectors:[["app-root"]],hostBindings:function(e,i){1&e&&ot("keypress",function(o){return i.pressKeys(o)},0,Ry)},decls:1,vars:0,template:function(e,i){1&e&>(0,"router-outlet")},dependencies:[hr]}),n})();function aS(n){return new C(3e3,!1)}function Z$(){return typeof window<"u"&&typeof window.document<"u"}function ym(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ki(n){switch(n.length){case 0:return new ia;case 1:return n[0];default:return new b0(n)}}function lS(n,t,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,m)=>{let y=m,v=p;if("offset"!==m)switch(y=t.normalizePropertyName(y,s),v){case"!":v=r.get(m);break;case ci:v=o.get(m);break;default:v=t.normalizeStyleValue(m,y,v,s)}f.set(y,v)}),h||a.push(f),c=f,l=d}),s.length)throw function V$(n){return new C(3502,!1)}();return a}function vm(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&bm(e,"start",n)));break;case"done":n.onDone(()=>i(e&&bm(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&bm(e,"destroy",n)))}}function bm(n,t,e){const o=Cm(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function Cm(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function qt(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function cS(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let wm=(n,t)=>!1,uS=(n,t,e)=>[],dS=null;function Dm(n){const t=n.parentNode||n.host;return t===dS?null:t}(ym()||typeof Element<"u")&&(Z$()?(dS=(()=>document.documentElement)(),wm=(n,t)=>{for(;t;){if(t===n)return!0;t=Dm(t)}return!1}):wm=(n,t)=>n.contains(t),uS=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let _r=null,hS=!1;const fS=wm,pS=uS;let mS=(()=>{class n{validateStyleProperty(e){return function X$(n){_r||(_r=function J$(){return typeof document<"u"?document.body:null}()||{},hS=!!_r.style&&"WebkitAppearance"in _r.style);let t=!0;return _r.style&&!function Q$(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in _r.style,!t&&hS&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in _r.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return fS(e,i)}getParentElement(e){return Dm(e)}query(e,i,r){return pS(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new ia(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),Em=(()=>{class n{}return n.NOOP=new mS,n})();const Sm="ng-enter",Jc="ng-leave",eu="ng-trigger",tu=".ng-trigger",_S="ng-animating",Mm=".ng-animating";function fi(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Am(parseFloat(t[1]),t[2])}function Am(n,t){return"s"===t?1e3*n:n}function nu(n,t,e){return n.hasOwnProperty("duration")?n:function nz(n,t,e){let r,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(aS()),{duration:0,delay:0,easing:""};r=Am(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=Am(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function g$(){return new C(3100,!1)}()),a=!0),o<0&&(t.push(function _$(){return new C(3101,!1)}()),a=!0),a&&t.splice(l,0,aS())}return{duration:r,delay:o,easing:s}}(n,t,e)}function sa(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function yS(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function Fi(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function bS(n,t,e){return e?t+":"+e+";":""}function CS(n){let t="";for(let e=0;e{const o=Tm(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),ym()&&CS(n))}function yr(n,t){n.style&&(t.forEach((e,i)=>{const r=Tm(i);n.style[r]=""}),ym()&&CS(n))}function aa(n){return Array.isArray(n)?1==n.length?n[0]:g0(n):n}const Im=new RegExp("{{\\s*(.+?)\\s*}}","g");function wS(n){let t=[];if("string"==typeof n){let e;for(;e=Im.exec(n);)t.push(e[1]);Im.lastIndex=0}return t}function la(n,t,e){const i=n.toString(),r=i.replace(Im,(o,s)=>{let a=t[s];return null==a&&(e.push(function v$(n){return new C(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function iu(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const oz=/-+([a-z0-9])/g;function Tm(n){return n.replace(oz,(...t)=>t[1].toUpperCase())}function sz(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Kt(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function b$(n){return new C(3004,!1)}()}}function DS(n,t){return window.getComputedStyle(n)[t]}function hz(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function fz(n,t,e){if(":"==n[0]){const l=function pz(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function F$(n){return new C(3015,!1)}()),t;const r=i[1],o=i[2],s=i[3];t.push(ES(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(ES(s,r))}(i,e,t)):e.push(n),e}const au=new Set(["true","1"]),lu=new Set(["false","0"]);function ES(n,t){const e=au.has(n)||lu.has(n),i=au.has(t)||lu.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?au.has(n):lu.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?au.has(t):lu.has(t)),s&&a}}const mz=new RegExp("s*:selfs*,?","g");function xm(n,t,e,i){return new gz(n).build(t,e,i)}class gz{constructor(t){this._driver=t}build(t,e,i){const r=new vz(e);return this._resetContextStyleTimingState(r),Kt(this,aa(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function w$(){return new C(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function D$(){return new C(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{wS(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(iu(o.values()),e.errors.push(function E$(n,t){return new C(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Kt(this,aa(t.animation),e);return{type:1,matchers:hz(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:vr(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Kt(this,i,e)),options:vr(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=Kt(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:vr(t.options)}}visitAnimate(t,e){const i=function Cz(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Rm(nu(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Rm(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=nu(e,t);return Rm(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:Sn({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Sn(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===ci?i.push(a):e.errors.push(new C(3002,!1)):i.push(yS(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function M$(n,t,e,i,r){return new C(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function rz(n,t,e){const i=t.params||{},r=wS(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function y$(n){return new C(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function A$(){return new C(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(v=>{const D=this._makeStyleAst(v,e);let b=null!=D.offset?D.offset:function bz(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(D.styles),M=0;return null!=b&&(o++,M=D.offset=b),l=l||M<0||M>1,a=a||M0&&o{const b=h>0?D==f?1:h*D:s[D],M=b*y;e.currentTime=p+m.delay+M,m.duration=M,this._validateStyleAst(v,e),v.offset=b,i.styles.push(v)}),i}visitReference(t,e){return{type:8,animation:Kt(this,aa(t.animation),e),options:vr(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:vr(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:vr(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function _z(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(mz,"")),n=n.replace(/@\*/g,tu).replace(/@\w+/g,e=>tu+"-"+e.slice(1)).replace(/:animating/g,Mm),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,qt(e.collectedStyles,e.currentQuerySelector,new Map);const a=Kt(this,aa(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:vr(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function R$(){return new C(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:nu(t.timings,e.errors,!0);return{type:12,animation:Kt(this,aa(t.animation),e),timings:i,options:null}}}class vz{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function vr(n){return n?(n=sa(n)).params&&(n.params=function yz(n){return n?sa(n):null}(n.params)):n={},n}function Rm(n,t,e){return{duration:n,delay:t,easing:e}}function km(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class cu{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Ez=new RegExp(":enter","g"),Mz=new RegExp(":leave","g");function Fm(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new Az).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class Az{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new cu;const d=new Om(t,e,c,r,o,u,[]);d.options=l;const h=l.delay?fi(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),Kt(this,i,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const y=f[m];if(y.element===e){p=y;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[km(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(const r of t){const o=r?.delay;if(o){const s="number"==typeof o?o:fi(la(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?fi(i.duration):null,a=null!=i.delay?fi(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Kt(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=uu);const s=fi(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Kt(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?fi(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),Kt(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return nu(e.params?la(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?fi(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=uu);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),Kt(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Kt(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const uu={};class Om{constructor(t,e,i,r,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=uu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new du(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=fi(i.duration)),null!=i.delay&&(r.delay=fi(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=la(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new Om(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=uu,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},o=new Iz(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(Ez,"."+this._enterClassName)).replace(Mz,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function k$(n){return new C(3014,!1)}()),a}}class du{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new du(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||ci),this._currentKeyframe.set(e,ci);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function Tz(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,ci)}else Fi(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=la(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??ci),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Fi(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?t.add(d):u===ci&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=t.size?iu(t.values()):[],s=e.size?iu(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return km(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class Iz extends du{constructor(t,e,i,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Fi(t[0]);l.set("offset",0),o.push(l);const c=Fi(t[0]);c.set("offset",AS(a)),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=Fi(t[d]);const f=h.get("offset");h.set("offset",AS((e+f*i)/s)),o.push(h)}i=s,e=0,r="",t=o}return km(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function AS(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class Pm{}const xz=new Set(["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"]);class Rz extends Pm{normalizePropertyName(t,e){return Tm(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(xz.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function C$(n,t){return new C(3005,!1)}())}return s+o}}function IS(n,t,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Nm={};class TS{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function kz(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||Nm,p=this.buildStyles(i,a&&a.params||Nm,d),m=l&&l.params||Nm,y=this.buildStyles(r,m,d),v=new Set,D=new Map,b=new Map,M="void"===r,X={params:Fz(m,h),delay:this.ast.options?.delay},oe=u?[]:Fm(t,e,this.ast.animation,o,s,p,y,X,c,d);let Ve=0;if(oe.forEach(Zt=>{Ve=Math.max(Zt.duration+Zt.delay,Ve)}),d.length)return IS(e,this._triggerName,i,r,M,p,y,[],[],D,b,Ve,d);oe.forEach(Zt=>{const Qt=Zt.element,ko=qt(D,Qt,new Set);Zt.preStyleProps.forEach(Mn=>ko.add(Mn));const pi=qt(b,Qt,new Set);Zt.postStyleProps.forEach(Mn=>pi.add(Mn)),Qt!==e&&v.add(Qt)});const Yt=iu(v.values());return IS(e,this._triggerName,i,r,M,p,y,oe,Yt,D,b,Ve)}}function Fz(n,t){const e=sa(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class Oz{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=sa(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=la(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class Nz{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new Oz(r.style,r.options&&r.options.params||{},i))}),xS(this.states,"true","1"),xS(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new TS(t,r,this.states))}),this.fallbackTransition=function Lz(n,t,e){return new TS(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function xS(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const Vz=new cu;class Bz{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],o=xm(this._driver,e,i,[]);if(i.length)throw function B$(n){return new C(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=lS(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=Fm(this._driver,e,o,Sm,Jc,new Map,new Map,i,Vz,r),s.forEach(u=>{const d=qt(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function H$(){return new C(3300,!1)}()),s=[]),r.length)throw function j$(n){return new C(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,ci))})});const c=ki(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function U$(n){return new C(3301,!1)}();return e}listen(t,e,i,r){const o=Cm(e,"","","");return vm(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const RS="ng-animate-queued",Lm="ng-animate-disabled",zz=[],kS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Wz={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},cn="__ng_removed";class Vm{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function Yz(n){return n??null}(i?t.value:t),i){const o=sa(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const ca="void",Bm=new Vm(ca);class Gz{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,un(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function $$(n,t){return new C(3302,!1)}();if(null==i||0==i.length)throw function z$(n){return new C(3303,!1)}();if(!function Zz(n){return"start"==n||"done"==n}(i))throw function W$(n,t){return new C(3400,!1)}();const o=qt(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=qt(this._engine.statesByElement,t,new Map);return a.has(e)||(un(t,eu),un(t,eu+"-"+e),a.set(e,Bm)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function G$(n){return new C(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new Hm(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(un(t,eu),un(t,eu+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new Vm(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=Bm),c.value!==ca&&l.value===c.value){if(!function Jz(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{yr(t,y),Hn(t,v)})}return}const h=qt(this._engine.playersByElement,t,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,t,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(un(t,RS),s.onStart(()=>{xo(t,RS)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const y=this._engine.playersByElement.get(t);if(y){let v=y.indexOf(s);v>=0&&y.splice(v,1)}}),this.players.push(s),h.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,tu,!0);i.forEach(r=>{if(r[cn])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(t,c,ca,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&ki(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||Bm,u=new Vm(ca),d=new Hm(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[cn];(!o||o===kS)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){un(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=Cm(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,vm(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class qz{constructor(t,e,i){this.bodyNode=t,this.driver=e,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,o)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new Gz(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(hu(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!hu(e))return;const o=e[cn];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),un(t,Lm)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),xo(t,Lm))}removeNode(t,e,i,r){if(hu(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[cn]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return hu(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,tu,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Mm,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return ki(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[cn];if(e&&e.setForRemoval){if(t[cn]=kS,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(Lm)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];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;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?ki(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function q$(n){return new C(3402,!1)}()}_flushAnimations(t,e){const i=new cu,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(x=>{u.add(x);const P=this.driver.query(x,".ng-animate-queued",!0);for(let j=0;j{const j=Sm+m++;p.set(P,j),x.forEach(le=>un(le,j))});const y=[],v=new Set,D=new Set;for(let x=0;xv.add(le)):D.add(P))}const b=new Map,M=PS(h,Array.from(v));M.forEach((x,P)=>{const j=Jc+m++;b.set(P,j),x.forEach(le=>un(le,j))}),t.push(()=>{f.forEach((x,P)=>{const j=p.get(P);x.forEach(le=>xo(le,j))}),M.forEach((x,P)=>{const j=b.get(P);x.forEach(le=>xo(le,j))}),y.forEach(x=>{this.processLeaveNode(x)})});const X=[],oe=[];for(let x=this._namespaceList.length-1;x>=0;x--)this._namespaceList[x].drainQueuedTransitions(e).forEach(j=>{const le=j.player,ct=j.element;if(X.push(le),this.collectedEnterElements.length){const yt=ct[cn];if(yt&&yt.setForMove){if(yt.previousTriggersValues&&yt.previousTriggersValues.has(j.triggerName)){const wr=yt.previousTriggersValues.get(j.triggerName),dn=this.statesByElement.get(j.element);if(dn&&dn.has(j.triggerName)){const Eu=dn.get(j.triggerName);Eu.value=wr,dn.set(j.triggerName,Eu)}}return void le.destroy()}}const Un=!d||!this.driver.containsElement(d,ct),Xt=b.get(ct),Li=p.get(ct),Be=this._buildInstruction(j,i,Li,Xt,Un);if(Be.errors&&Be.errors.length)return void oe.push(Be);if(Un)return le.onStart(()=>yr(ct,Be.fromStyles)),le.onDestroy(()=>Hn(ct,Be.toStyles)),void r.push(le);if(j.isFallbackTransition)return le.onStart(()=>yr(ct,Be.fromStyles)),le.onDestroy(()=>Hn(ct,Be.toStyles)),void r.push(le);const JM=[];Be.timelines.forEach(yt=>{yt.stretchStartingKeyframe=!0,this.disabledNodes.has(yt.element)||JM.push(yt)}),Be.timelines=JM,i.append(ct,Be.timelines),s.push({instruction:Be,player:le,element:ct}),Be.queriedElements.forEach(yt=>qt(a,yt,[]).push(le)),Be.preStyleProps.forEach((yt,wr)=>{if(yt.size){let dn=l.get(wr);dn||l.set(wr,dn=new Set),yt.forEach((Eu,cg)=>dn.add(cg))}}),Be.postStyleProps.forEach((yt,wr)=>{let dn=c.get(wr);dn||c.set(wr,dn=new Set),yt.forEach((Eu,cg)=>dn.add(cg))})});if(oe.length){const x=[];oe.forEach(P=>{x.push(function K$(n,t){return new C(3505,!1)}())}),X.forEach(P=>P.destroy()),this.reportError(x)}const Ve=new Map,Yt=new Map;s.forEach(x=>{const P=x.element;i.has(P)&&(Yt.set(P,P),this._beforeAnimationBuild(x.player.namespaceId,x.instruction,Ve))}),r.forEach(x=>{const P=x.element;this._getPreviousPlayers(P,!1,x.namespaceId,x.triggerName,null).forEach(le=>{qt(Ve,P,[]).push(le),le.destroy()})});const Zt=y.filter(x=>LS(x,l,c)),Qt=new Map;OS(Qt,this.driver,D,c,ci).forEach(x=>{LS(x,l,c)&&Zt.push(x)});const pi=new Map;f.forEach((x,P)=>{OS(pi,this.driver,new Set(x),l,"!")}),Zt.forEach(x=>{const P=Qt.get(x),j=pi.get(x);Qt.set(x,new Map([...Array.from(P?.entries()??[]),...Array.from(j?.entries()??[])]))});const Mn=[],Fo=[],Oo={};s.forEach(x=>{const{element:P,player:j,instruction:le}=x;if(i.has(P)){if(u.has(P))return j.onDestroy(()=>Hn(P,le.toStyles)),j.disabled=!0,j.overrideTotalTime(le.totalTime),void r.push(j);let ct=Oo;if(Yt.size>1){let Xt=P;const Li=[];for(;Xt=Xt.parentNode;){const Be=Yt.get(Xt);if(Be){ct=Be;break}Li.push(Xt)}Li.forEach(Be=>Yt.set(Be,ct))}const Un=this._buildAnimation(j.namespaceId,le,Ve,o,pi,Qt);if(j.setRealPlayer(Un),ct===Oo)Mn.push(j);else{const Xt=this.playersByElement.get(ct);Xt&&Xt.length&&(j.parentPlayer=ki(Xt)),r.push(j)}}else yr(P,le.fromStyles),j.onDestroy(()=>Hn(P,le.toStyles)),Fo.push(j),u.has(P)&&r.push(j)}),Fo.forEach(x=>{const P=o.get(x.element);if(P&&P.length){const j=ki(P);x.setRealPlayer(j)}}),r.forEach(x=>{x.parentPlayer?x.syncPlayerEvents(x.parentPlayer):x.destroy()});for(let x=0;x!Un.destroyed);ct.length?Qz(this,P,ct):this.processLeaveNode(P)}return y.length=0,Mn.forEach(x=>{this.players.push(x),x.onDone(()=>{x.destroy();const P=this.players.indexOf(x);this.players.splice(P,1)}),x.play()}),Mn}elementContainsData(t,e){let i=!1;const r=e[cn];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==ca;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=qt(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}yr(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const m=p.element;u.add(m);const y=m[cn];if(y&&y.removedBeforeQueried)return new ia(p.duration,p.delay);const v=m!==l,D=function Xz(n){const t=[];return NS(n,t),t}((i.get(m)||zz).map(Ve=>Ve.getRealPlayer())).filter(Ve=>!!Ve.element&&Ve.element===m),b=o.get(m),M=s.get(m),X=lS(0,this._normalizer,0,p.keyframes,b,M),oe=this._buildPlayer(p,X,D);if(p.subTimeline&&r&&d.add(m),v){const Ve=new Hm(t,a,m);Ve.setRealPlayer(oe),c.push(Ve)}return oe});c.forEach(p=>{qt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function Kz(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>un(p,_S));const f=ki(h);return f.onDestroy(()=>{u.forEach(p=>xo(p,_S)),Hn(l,e.toStyles)}),d.forEach(p=>{qt(r,p,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new ia(t.duration,t.delay)}}class Hm{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new ia,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>vm(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){qt(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function hu(n){return n&&1===n.nodeType}function FS(n,t){const e=n.style.display;return n.style.display=t??"none",e}function OS(n,t,e,i,r){const o=[];e.forEach(l=>o.push(FS(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=t.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[cn]=Wz,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>FS(l,o[a++])),s}function PS(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function un(n,t){n.classList?.add(t)}function xo(n,t){n.classList?.remove(t)}function Qz(n,t,e){ki(e).onDone(()=>n.processLeaveNode(t))}function NS(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class fu{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new qz(t,e,i),this._timelineEngine=new Bz(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=xm(this._driver,o,l,[]);if(l.length)throw function L$(n,t){return new C(3404,!1)}();a=function Pz(n,t,e){return new Nz(n,t,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,s]=cS(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=cS(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let t3=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Hn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Hn(this._element,this._initialStyles),this._endStyles&&(Hn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(yr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(yr(this._element,this._endStyles),this._endStyles=null),Hn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function jm(n){let t=null;return n.forEach((e,i)=>{(function n3(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class VS{constructor(t,e,i,r){this.element=t,this.keyframes=e,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._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:DS(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class r3{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return fS(t,e)}getParentElement(t){return Dm(t)}query(t,e,i){return pS(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof VS);(function az(n,t){return 0===n||0===t})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let d=function iz(n){return n.length?n[0]instanceof Map?n:n.map(t=>yS(t)):[]}(e).map(f=>Fi(f));d=function lz(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,DS(n,a)))}}return t}(t,d,c);const h=function e3(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=jm(t[0]),t.length>1&&(i=jm(t[t.length-1]))):t instanceof Map&&(e=jm(t)),e||i?new t3(n,e,i):null}(t,d);return new VS(t,d,l,h)}}let o3=(()=>{class n extends p0{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:fn.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?g0(e):e;return BS(this._renderer,null,i,"register",[r]),new s3(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(_(as),_(q))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class s3 extends class Dj{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new a3(this._id,t,e||{},this._renderer)}}class a3{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return BS(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function BS(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const HS="@.disabled";let l3=(()=>{class n{constructor(e,i,r){this.delegate=e,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=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new jS("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new c3(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(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(e){return new(e||n)(_(as),_(fu),_(te))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class jS{constructor(t,e,i,r){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==HS?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class c3 extends jS{constructor(t,e,i,r,o){super(e,i,r,o),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==HS?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function u3(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function d3(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}const US=[{provide:p0,useClass:o3},{provide:Pm,useFactory:function f3(){return new Rz}},{provide:fu,useClass:(()=>{class n extends fu{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(_(q),_(Em),_(Pm),_(mo))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})()},{provide:as,useFactory:function p3(n,t,e){return new l3(n,t,e)},deps:[Jl,fu,te]}],Um=[{provide:Em,useFactory:()=>new r3},{provide:rr,useValue:"BrowserAnimations"},...US],$S=[{provide:Em,useClass:mS},{provide:rr,useValue:"NoopAnimations"},...US];let m3=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?$S:Um}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({providers:Um,imports:[iD]}),n})(),zS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({}),n})(),WS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({imports:[Gl,It,xE,It]}),n})(),b3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({providers:[gj],imports:[zS,WS,It,zS,WS]}),n})(),PM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({}),n})(),v8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({imports:[PM]}),n})(),b8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n}),n.\u0275inj=ce({imports:[v8]}),n})(),w8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=fe({type:n,bootstrap:[m$]}),n.\u0275inj=ce({imports:[iD,Jj,p$,m3,Oj,b3,b8,eS,dU,t$,nS]}),n})();(function sN(){nw=!1})(),zL().bootstrapModule(w8).catch(n=>console.error(n))}},ae=>{ae(ae.s=542)}]); \ No newline at end of file diff --git a/pipboyUI/dist/pipboy-ui/main.8cbe3e37e9415df2.js b/pipboyUI/dist/pipboy-ui/main.8cbe3e37e9415df2.js deleted file mode 100644 index 5851d58..0000000 --- a/pipboyUI/dist/pipboy-ui/main.8cbe3e37e9415df2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkpipboyUI=self.webpackChunkpipboyUI||[]).push([[179],{923:()=>{function oe(n){return"function"==typeof n}function So(n){const t=n(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const ia=So(n=>function(t){n(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function gr(n,e){if(n){const t=n.indexOf(e);0<=t&&n.splice(t,1)}}class et{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(oe(i))try{i()}catch(o){e=o instanceof ia?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{Pm(o)}catch(s){e=e??[],s instanceof ia?e=[...e,...s.errors]:e.push(s)}}if(e)throw new ia(e)}}add(e){var t;if(e&&e!==this)if(this.closed)Pm(e);else{if(e instanceof et){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&gr(t,e)}remove(e){const{_finalizers:t}=this;t&&gr(t,e),e instanceof et&&e._removeParent(this)}}et.EMPTY=(()=>{const n=new et;return n.closed=!0,n})();const Fm=et.EMPTY;function Om(n){return n instanceof et||n&&"closed"in n&&oe(n.remove)&&oe(n.add)&&oe(n.unsubscribe)}function Pm(n){oe(n)?n():n.unsubscribe()}const Pi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ra={setTimeout(n,e,...t){const{delegate:i}=ra;return i?.setTimeout?i.setTimeout(n,e,...t):setTimeout(n,e,...t)},clearTimeout(n){const{delegate:e}=ra;return(e?.clearTimeout||clearTimeout)(n)},delegate:void 0};function Nm(n){ra.setTimeout(()=>{const{onUnhandledError:e}=Pi;if(!e)throw n;e(n)})}function oa(){}const gM=iu("C",void 0,void 0);function iu(n,e,t){return{kind:n,value:e,error:t}}let Ni=null;function sa(n){if(Pi.useDeprecatedSynchronousErrorHandling){const e=!Ni;if(e&&(Ni={errorThrown:!1,error:null}),n(),e){const{errorThrown:t,error:i}=Ni;if(Ni=null,t)throw i}}else n()}class aa extends et{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Om(e)&&e.add(this)):this.destination=DM}static create(e,t,i){return new Mo(e,t,i)}next(e){this.isStopped?ou(function yM(n){return iu("N",n,void 0)}(e),this):this._next(e)}error(e){this.isStopped?ou(function _M(n){return iu("E",void 0,n)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?ou(gM,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const bM=Function.prototype.bind;function ru(n,e){return bM.call(n,e)}class CM{constructor(e){this.partialObserver=e}next(e){const{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(i){la(i)}}error(e){const{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(i){la(i)}else la(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){la(t)}}}class Mo extends aa{constructor(e,t,i){let r;if(super(),oe(e)||!e)r={next:e??void 0,error:t??void 0,complete:i??void 0};else{let o;this&&Pi.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&ru(e.next,o),error:e.error&&ru(e.error,o),complete:e.complete&&ru(e.complete,o)}):r=e}this.destination=new CM(r)}}function la(n){Pi.useDeprecatedSynchronousErrorHandling?function vM(n){Pi.useDeprecatedSynchronousErrorHandling&&Ni&&(Ni.errorThrown=!0,Ni.error=n)}(n):Nm(n)}function ou(n,e){const{onStoppedNotification:t}=Pi;t&&ra.setTimeout(()=>t(n,e))}const DM={closed:!0,next:oa,error:function wM(n){throw n},complete:oa},su="function"==typeof Symbol&&Symbol.observable||"@@observable";function ui(n){return n}function Lm(n){return 0===n.length?ui:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}let be=(()=>{class n{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const o=function MM(n){return n&&n instanceof aa||function SM(n){return n&&oe(n.next)&&oe(n.error)&&oe(n.complete)}(n)&&Om(n)}(t)?t:new Mo(t,i,r);return sa(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=Vm(i))((r,o)=>{const s=new Mo({next:a=>{try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[su](){return this}pipe(...t){return Lm(t)(this)}toPromise(t){return new(t=Vm(t))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=e=>new n(e),n})();function Vm(n){var e;return null!==(e=n??Pi.Promise)&&void 0!==e?e:Promise}const AM=So(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ae=(()=>{class n extends be{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new au(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new AM}next(t){sa(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){sa(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){sa(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:r,observers:o}=this;return i||r?Fm:(this.currentObservers=null,o.push(t),new et(()=>{this.currentObservers=null,gr(o,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:o}=this;i?t.error(r):o&&t.complete()}asObservable(){const t=new be;return t.source=this,t}}return n.create=(e,t)=>new au(e,t),n})();class au extends ae{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,e)}error(e){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,e)}complete(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)}_subscribe(e){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==i?i:Fm}}function Bm(n){return oe(n?.lift)}function Ae(n){return e=>{if(Bm(e))return e.lift(function(t){try{return n(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ge(n,e,t,i,r){return new IM(n,e,t,i,r)}class IM extends aa{constructor(e,t,i,r,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){e.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function B(n,e){return Ae((t,i)=>{let r=0;t.subscribe(ge(i,o=>{i.next(n.call(e,o,r++))}))})}function di(n){return this instanceof di?(this.v=n,this):new di(n)}function Um(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(n,e||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function s(f){return function(p){return Promise.resolve(p).then(f,d)}}),r[Symbol.asyncIterator]=function(){return this},r;function a(f,p){i[f]&&(r[f]=function(m){return new Promise(function(_,b){o.push([f,m,_,b])>1||l(f,m)})},p&&(r[f]=p(r[f])))}function l(f,p){try{!function c(f){f.value instanceof di?Promise.resolve(f.value.v).then(u,d):h(o[0][2],f)}(i[f](p))}catch(m){h(o[0][3],m)}}function u(f){l("next",f)}function d(f){l("throw",f)}function h(f,p){f(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}function $m(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=function du(n){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&n[e],i=0;if(t)return t.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=n[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=n[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const fu=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function zm(n){return oe(n?.then)}function Wm(n){return oe(n[su])}function Gm(n){return Symbol.asyncIterator&&oe(n?.[Symbol.asyncIterator])}function qm(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Km=function tA(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Ym(n){return oe(n?.[Km])}function Zm(n){return Um(this,arguments,function*(){const t=n.getReader();try{for(;;){const{value:i,done:r}=yield di(t.read());if(r)return yield di(void 0);yield yield di(i)}}finally{t.releaseLock()}})}function Qm(n){return oe(n?.getReader)}function Mt(n){if(n instanceof be)return n;if(null!=n){if(Wm(n))return function nA(n){return new be(e=>{const t=n[su]();if(oe(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(fu(n))return function iA(n){return new be(e=>{for(let t=0;t{n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Nm)})}(n);if(Gm(n))return Xm(n);if(Ym(n))return function oA(n){return new be(e=>{for(const t of n)if(e.next(t),e.closed)return;e.complete()})}(n);if(Qm(n))return function sA(n){return Xm(Zm(n))}(n)}throw qm(n)}function Xm(n){return new be(e=>{(function aA(n,e){var t,i,r,o;return function Hm(n,e,t,i){return new(t||(t=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):function r(o){return o instanceof t?o:new t(function(s){s(o)})}(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){try{for(t=$m(n);!(i=yield t.next()).done;)if(e.next(i.value),e.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}e.complete()})})(n,e).catch(t=>e.error(t))})}function Hn(n,e,t,i=0,r=!1){const o=e.schedule(function(){t(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(o),!r)return o}function Ke(n,e,t=1/0){return oe(e)?Ke((i,r)=>B((o,s)=>e(i,o,r,s))(Mt(n(i,r))),t):("number"==typeof e&&(t=e),Ae((i,r)=>function lA(n,e,t,i,r,o,s,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&e.complete()},f=m=>c{o&&e.next(m),c++;let _=!1;Mt(t(m,u++)).subscribe(ge(e,b=>{r?.(b),o?f(b):e.next(b)},()=>{_=!0},void 0,()=>{if(_)try{for(c--;l.length&&cp(b)):p(b)}h()}catch(b){e.error(b)}}))};return n.subscribe(ge(e,f,()=>{d=!0,h()})),()=>{a?.()}}(i,r,n,t)))}function _r(n=1/0){return Ke(ui,n)}const jn=new be(n=>n.complete());function Jm(n){return n&&oe(n.schedule)}function pu(n){return n[n.length-1]}function eg(n){return oe(pu(n))?n.pop():void 0}function Ao(n){return Jm(pu(n))?n.pop():void 0}function tg(n,e=0){return Ae((t,i)=>{t.subscribe(ge(i,r=>Hn(i,n,()=>i.next(r),e),()=>Hn(i,n,()=>i.complete(),e),r=>Hn(i,n,()=>i.error(r),e)))})}function ng(n,e=0){return Ae((t,i)=>{i.add(n.schedule(()=>t.subscribe(i),e))})}function ig(n,e){if(!n)throw new Error("Iterable cannot be null");return new be(t=>{Hn(t,e,()=>{const i=n[Symbol.asyncIterator]();Hn(t,e,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function He(n,e){return e?function gA(n,e){if(null!=n){if(Wm(n))return function dA(n,e){return Mt(n).pipe(ng(e),tg(e))}(n,e);if(fu(n))return function fA(n,e){return new be(t=>{let i=0;return e.schedule(function(){i===n.length?t.complete():(t.next(n[i++]),t.closed||this.schedule())})})}(n,e);if(zm(n))return function hA(n,e){return Mt(n).pipe(ng(e),tg(e))}(n,e);if(Gm(n))return ig(n,e);if(Ym(n))return function pA(n,e){return new be(t=>{let i;return Hn(t,e,()=>{i=n[Km](),Hn(t,e,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void t.error(s)}o?t.complete():t.next(r)},0,!0)}),()=>oe(i?.return)&&i.return()})}(n,e);if(Qm(n))return function mA(n,e){return ig(Zm(n),e)}(n,e)}throw qm(n)}(n,e):Mt(n)}function mu(...n){const e=Ao(n),t=function uA(n,e){return"number"==typeof pu(n)?n.pop():e}(n,1/0),i=n;return i.length?1===i.length?Mt(i[0]):_r(t)(He(i,e)):jn}function rg(n={}){const{connector:e=(()=>new ae),resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return o=>{let s,a,l,c=0,u=!1,d=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=l=void 0,u=d=!1},p=()=>{const m=s;f(),m?.unsubscribe()};return Ae((m,_)=>{c++,!d&&!u&&h();const b=l=l??e();_.add(()=>{c--,0===c&&!d&&!u&&(a=gu(p,r))}),b.subscribe(_),!s&&c>0&&(s=new Mo({next:D=>b.next(D),error:D=>{d=!0,h(),a=gu(f,t,D),b.error(D)},complete:()=>{u=!0,h(),a=gu(f,i),b.complete()}}),Mt(m).subscribe(s))})(o)}}function gu(n,e,...t){if(!0===e)return void n();if(!1===e)return;const i=new Mo({next:()=>{i.unsubscribe(),n()}});return e(...t).subscribe(i)}function _e(n){for(let e in n)if(n[e]===_e)return e;throw Error("Could not find renamed property on target object.")}function _u(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function ye(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ye).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 yu(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const _A=_e({__forward_ref__:_e});function Ce(n){return n.__forward_ref__=Ce,n.toString=function(){return ye(this())},n}function V(n){return vu(n)?n():n}function vu(n){return"function"==typeof n&&n.hasOwnProperty(_A)&&n.__forward_ref__===Ce}class C extends Error{constructor(e,t){super(function ca(n,e){return`NG0${Math.abs(n)}${e?": "+e.trim():""}`}(e,t)),this.code=e}}function z(n){return"string"==typeof n?n:null==n?"":String(n)}function ua(n,e){throw new C(-201,!1)}function Ft(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 S(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function pe(n){return{providers:n.providers||[],imports:n.imports||[]}}function da(n){return og(n,ha)||og(n,ag)}function og(n,e){return n.hasOwnProperty(e)?n[e]:null}function sg(n){return n&&(n.hasOwnProperty(bu)||n.hasOwnProperty(MA))?n[bu]:null}const ha=_e({\u0275prov:_e}),bu=_e({\u0275inj:_e}),ag=_e({ngInjectableDef:_e}),MA=_e({ngInjectorDef:_e});var F=(()=>((F=F||{})[F.Default=0]="Default",F[F.Host=1]="Host",F[F.Self=2]="Self",F[F.SkipSelf=4]="SkipSelf",F[F.Optional=8]="Optional",F))();let Cu;function Yt(n){const e=Cu;return Cu=n,e}function lg(n,e,t){const i=da(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&F.Optional?null:void 0!==e?e:void ua(ye(n))}function hi(n){return{toString:n}.toString()}var cn=(()=>((cn=cn||{})[cn.OnPush=0]="OnPush",cn[cn.Default=1]="Default",cn))(),un=(()=>{return(n=un||(un={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",un;var n})();const we=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),yr={},ce=[],fa=_e({\u0275cmp:_e}),wu=_e({\u0275dir:_e}),Du=_e({\u0275pipe:_e}),cg=_e({\u0275mod:_e}),$n=_e({\u0275fac:_e}),Io=_e({__NG_ELEMENT_ID__:_e});let IA=0;function me(n){return hi(()=>{const t=!0===n.standalone,i={},r={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:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===cn.OnPush,directiveDefs:null,pipeDefs:null,standalone:t,dependencies:t&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||ce,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||un.Emulated,id:"c"+IA++,styles:n.styles||ce,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=hg(n.inputs,i),r.outputs=hg(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(ug).filter(dg):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(mt).filter(dg):null,r})}function ug(n){return fe(n)||pt(n)}function dg(n){return null!==n}function ve(n){return hi(()=>({type:n.type,bootstrap:n.bootstrap||ce,declarations:n.declarations||ce,imports:n.imports||ce,exports:n.exports||ce,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function hg(n,e){if(null==n)return yr;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),t[r]=i,e&&(e[r]=o)}return t}const P=me;function fe(n){return n[fa]||null}function pt(n){return n[wu]||null}function mt(n){return n[Du]||null}function Ot(n,e){const t=n[cg]||null;if(!t&&!0===e)throw new Error(`Type ${ye(n)} does not have '\u0275mod' property.`);return t}const q=11;function It(n){return Array.isArray(n)&&"object"==typeof n[1]}function hn(n){return Array.isArray(n)&&!0===n[1]}function Mu(n){return 0!=(8&n.flags)}function _a(n){return 2==(2&n.flags)}function ya(n){return 1==(1&n.flags)}function fn(n){return null!==n.template}function OA(n){return 0!=(256&n[2])}function ji(n,e){return n.hasOwnProperty($n)?n[$n]:null}class LA{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function mg(n){return n.type.prototype.ngOnChanges&&(n.setInput=BA),VA}function VA(){const n=_g(this),e=n?.current;if(e){const t=n.previous;if(t===yr)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function BA(n,e,t,i){const r=_g(n)||function HA(n,e){return n[gg]=e}(n,{previous:yr,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[t],l=s[a];o[a]=new LA(l&&l.currentValue,e,s===yr),n[i]=e}const gg="__ngSimpleChanges__";function _g(n){return n[gg]||null}function je(n){for(;Array.isArray(n);)n=n[0];return n}function va(n,e){return je(e[n])}function Nt(n,e){return je(e[n.index])}function Ru(n,e){return n.data[e]}function Lt(n,e){const t=e[n];return It(t)?t:t[0]}function ba(n){return 64==(64&n[2])}function fi(n,e){return null==e?null:n[e]}function yg(n){n[18]=0}function ku(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const j={lFrame:Ig(null),bindingsEnabled:!0};function bg(){return j.bindingsEnabled}function w(){return j.lFrame.lView}function ie(){return j.lFrame.tView}function Fo(n){return j.lFrame.contextLView=n,n[8]}function Oo(n){return j.lFrame.contextLView=null,n}function Ye(){let n=Cg();for(;null!==n&&64===n.type;)n=n.parent;return n}function Cg(){return j.lFrame.currentTNode}function En(n,e){const t=j.lFrame;t.currentTNode=n,t.isParent=e}function Fu(){return j.lFrame.isParent}function Ou(){j.lFrame.isParent=!1}function Er(){return j.lFrame.bindingIndex++}function Wn(n){const e=j.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function tI(n,e){const t=j.lFrame;t.bindingIndex=t.bindingRootIndex=n,Pu(e)}function Pu(n){j.lFrame.currentDirectiveIndex=n}function Nu(n){const e=j.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}function Sg(){return j.lFrame.currentQueryIndex}function Lu(n){j.lFrame.currentQueryIndex=n}function iI(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function Mg(n,e,t){if(t&F.SkipSelf){let r=e,o=n;for(;!(r=r.parent,null!==r||t&F.Host||(r=iI(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;e=r,n=o}const i=j.lFrame=Ag();return i.currentTNode=e,i.lView=n,!0}function Vu(n){const e=Ag(),t=n[1];j.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function Ag(){const n=j.lFrame,e=null===n?null:n.child;return null===e?Ig(n):e}function Ig(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 Tg(){const n=j.lFrame;return j.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const xg=Tg;function Bu(){const n=Tg();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 _t(){return j.lFrame.selectedIndex}function pi(n){j.lFrame.selectedIndex=n}function xe(){const n=j.lFrame;return Ru(n.tView,n.selectedIndex)}function Ca(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t=i)break}else e[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===e){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class No{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function Ea(n,e,t){let i=0;for(;ie){s=o-1;break}}}for(;o>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let Uu=!0;function Ma(n){const e=Uu;return Uu=n,e}let yI=0;const Sn={};function Vo(n,e){const t=zu(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,$u(i.data,n),$u(e,null),$u(i.blueprint,null));const r=Aa(n,e),o=n.injectorIndex;if(Pg(r)){const s=Sr(r),a=Mr(r,e),l=a[1].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=r,o}function $u(n,e){n.push(0,0,0,0,0,0,0,0,e)}function zu(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function Aa(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;for(;null!==r;){if(i=zg(r),null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function Ia(n,e,t){!function vI(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Io)&&(i=t[Io]),null==i&&(i=t[Io]=yI++);const r=255&i;e.data[n+(r>>5)]|=1<=0?255&e:DI:e}(t);if("function"==typeof o){if(!Mg(e,n,i))return i&F.Host?Vg(r,0,i):Bg(e,t,i,r);try{const s=o(i);if(null!=s||i&F.Optional)return s;ua()}finally{xg()}}else if("number"==typeof o){let s=null,a=zu(n,e),l=-1,c=i&F.Host?e[16][6]:null;for((-1===a||i&F.SkipSelf)&&(l=-1===a?Aa(n,e):e[a+8],-1!==l&&$g(i,!1)?(s=e[1],a=Sr(l),e=Mr(l,e)):a=-1);-1!==a;){const u=e[1];if(Ug(o,a,u.data)){const d=CI(a,e,t,s,i,c);if(d!==Sn)return d}l=e[a+8],-1!==l&&$g(i,e[1].data[a+8]===c)&&Ug(o,a,e)?(s=u,a=Sr(l),e=Mr(l,e)):a=-1}}return r}function CI(n,e,t,i,r,o){const s=e[1],a=s.data[n+8],u=Ta(a,s,t,null==i?_a(a)&&Uu:i!=s&&0!=(3&a.type),r&F.Host&&o===a);return null!==u?Bo(e,s,u,a):Sn}function Ta(n,e,t,i,r){const o=n.providerIndexes,s=e.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f=l&&p.type===t)return f}if(r){const f=s[l];if(f&&fn(f)&&f.type===t)return l}return null}function Bo(n,e,t,i){let r=n[t];const o=e.data;if(function fI(n){return n instanceof No}(r)){const s=r;s.resolving&&function yA(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new C(-200,`Circular dependency in DI detected for ${n}${t}`)}(function le(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():z(n)}(o[t]));const a=Ma(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Yt(s.injectImpl):null;Mg(n,i,F.Default);try{r=n[t]=s.factory(void 0,o,n,i),e.firstCreatePass&&t>=i.directiveStart&&function dI(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(i){const s=mg(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o))}(t,o[t],e)}finally{null!==l&&Yt(l),Ma(a),s.resolving=!1,xg()}}return r}function Ug(n,e,t){return!!(t[e+(n>>5)]&1<{const e=n.prototype.constructor,t=e[$n]||Wu(e),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[$n]||Wu(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Wu(n){return vu(n)?()=>{const e=Wu(V(n));return e&&e()}:ji(n)}function zg(n){const e=n[1],t=e.type;return 2===t?e.declTNode:1===t?n[6]:null}function Ir(n){return function bI(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{const i=function Gu(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(xr)?l[xr]:Object.defineProperty(l,xr,{value:[]})[xr];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class E{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=S({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Vt(n,e){void 0===e&&(e=n);for(let t=0;tArray.isArray(t)?Gn(t,e):e(t))}function Gg(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function xa(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Uo(n,e){const t=[];for(let i=0;i=0?n[1|i]=t:(i=~i,function II(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 Ku(n,e){const t=Fr(n,e);if(t>=0)return n[1|t]}function Fr(n,e){return function Yg(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const o=i+(r-i>>1),s=n[o<e?r=o:i=o+1}return~(r<((Tt=Tt||{})[Tt.Important=1]="Important",Tt[Tt.DashCase=2]="DashCase",Tt))();const nd=new Map;let iT=0;const rd="__ngContext__";function ut(n,e){It(e)?(n[rd]=e[20],function oT(n){nd.set(n[20],n)}(e)):n[rd]=e}function sd(n,e){return undefined(n,e)}function Yo(n){const e=n[3];return hn(e)?e[3]:e}function ad(n){return __(n[13])}function ld(n){return __(n[4])}function __(n){for(;null!==n&&!hn(n);)n=n[4];return n}function Lr(n,e,t,i,r){if(null!=i){let o,s=!1;hn(i)?o=i:It(i)&&(s=!0,i=i[0]);const a=je(i);0===n&&null!==t?null==r?D_(e,t,a):Ui(e,t,a,r||null,!0):1===n&&null!==t?Ui(e,t,a,r||null,!0):2===n?function md(n,e,t){const i=Pa(n,e);i&&function AT(n,e,t,i){n.removeChild(e,t,i)}(n,i,e,t)}(e,a,s):3===n&&e.destroyNode(a),null!=o&&function xT(n,e,t,i,r){const o=t[7];o!==je(t)&&Lr(e,n,i,o,r);for(let a=10;a0&&(n[t-1][4]=i[4]);const o=xa(n,10+e);!function vT(n,e){Zo(n,e,e[q],2,null,null),e[0]=null,e[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function b_(n,e){if(!(128&e[2])){const t=e[q];t.destroyNode&&Zo(n,e,t,3,null,null),function wT(n){let e=n[13];if(!e)return hd(n[1],n);for(;e;){let t=null;if(It(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)It(e)&&hd(e[1],e),e=e[3];null===e&&(e=n),It(e)&&hd(e[1],e),t=e&&e[4]}e=t}}(e)}}function hd(n,e){if(!(128&e[2])){e[2]&=-65,e[2]|=128,function MT(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=t[o+1]];t[o].call(s)}if(null!==i){for(let o=r+1;on,createScript:n=>n,createScriptURL:n=>n})}catch{}return Va}()?.createHTML(n)||n}function P_(n){return function bd(){if(void 0===Ba&&(Ba=null,we.trustedTypes))try{Ba=we.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Ba}()?.createScriptURL(n)||n}class zi{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class NT extends zi{getTypeName(){return"HTML"}}class LT extends zi{getTypeName(){return"Style"}}class VT extends zi{getTypeName(){return"Script"}}class BT extends zi{getTypeName(){return"URL"}}class HT extends zi{getTypeName(){return"ResourceURL"}}function Ht(n){return n instanceof zi?n.changingThisBreaksApplicationSecurity:n}function Mn(n,e){const t=function jT(n){return n instanceof zi&&n.getTypeName()||null}(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}class qT{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+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{return null}}}class KT{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"),!0}endElement(e){const t=e.nodeName.toLowerCase();Cd.hasOwnProperty(t)&&!L_.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(j_(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 JT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ex=/([^\#-~ |!])/g;function j_(n){return n.replace(/&/g,"&").replace(JT,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(ex,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let ja;function U_(n,e){let t=null;try{ja=ja||function N_(n){const e=new KT(n);return function YT(){try{return!!(new window.DOMParser).parseFromString($i(""),"text/html")}catch{return!1}}()?new qT(e):e}(n);let i=e?String(e):"";t=ja.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=t.innerHTML,t=ja.getInertBodyElement(i)}while(i!==o);return $i((new XT).sanitizeChildren(Dd(t)||t))}finally{if(t){const i=Dd(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Dd(n){return"content"in n&&function tx(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ue=(()=>((ue=ue||{})[ue.NONE=0]="NONE",ue[ue.HTML=1]="HTML",ue[ue.STYLE=2]="STYLE",ue[ue.SCRIPT=3]="SCRIPT",ue[ue.URL=4]="URL",ue[ue.RESOURCE_URL=5]="RESOURCE_URL",ue))();function Sd(n){const e=function Xo(){const n=w();return n&&n[12]}();if(e)return P_(e.sanitize(ue.RESOURCE_URL,n)||"");if(Mn(n,"ResourceURL"))return P_(Ht(n));throw new C(904,!1)}const Md=new E("ENVIRONMENT_INITIALIZER"),$_=new E("INJECTOR",-1),z_=new E("INJECTOR_DEF_TYPES");class W_{get(e,t=$o){if(t===$o){const i=new Error(`NullInjectorError: No provider for ${ye(e)}!`);throw i.name="NullInjectorError",i}return t}}function cx(...n){return{\u0275providers:G_(0,n)}}function G_(n,...e){const t=[],i=new Set;let r;return Gn(e,o=>{const s=o;Ad(s,t,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&q_(r,t),t}function q_(n,e){for(let t=0;t{e.push(o)})}}function Ad(n,e,t,i){if(!(n=V(n)))return!1;let r=null,o=sg(n);const s=!o&&fe(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=sg(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Ad(c,e,t,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Gn(o.imports,u=>{Ad(u,e,t,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&q_(c,e)}if(!a){const c=ji(r)||(()=>new r);e.push({provide:r,useFactory:c,deps:ce},{provide:z_,useValue:r,multi:!0},{provide:Md,useValue:()=>y(r),multi:!0})}const l=o.providers;null==l||a||Gn(l,u=>{e.push(u)})}}return r!==n&&void 0!==n.providers}const ux=_e({provide:String,useValue:_e});function Id(n){return null!==n&&"object"==typeof n&&ux in n}function Wi(n){return"function"==typeof n}const Td=new E("Set Injector scope."),Ua={},hx={};let xd;function $a(){return void 0===xd&&(xd=new W_),xd}class _i{}class Z_ extends _i{constructor(e,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,kd(e,s=>this.processProvider(s)),this.records.set($_,Vr(void 0,this)),r.has("environment")&&this.records.set(_i,Vr(void 0,this));const o=this.records.get(Td);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(z_.multi,ce,F.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();for(const e of this._onDestroyHooks)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(e){this._onDestroyHooks.push(e)}runInContext(e){this.assertNotDestroyed();const t=Or(this),i=Yt(void 0);try{return e()}finally{Or(t),Yt(i)}}get(e,t=$o,i=F.Default){this.assertNotDestroyed();const r=Or(this),o=Yt(void 0);try{if(!(i&F.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function _x(n){return"function"==typeof n||"object"==typeof n&&n instanceof E}(e)&&da(e);a=l&&this.injectableDefInScope(l)?Vr(Rd(e),Ua):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&F.Self?$a():this.parent).get(e,t=i&F.Optional&&t===$o?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[ka]=s[ka]||[]).unshift(ye(e)),r)throw s;return function HI(n,e,t,i){const r=n[ka];throw e[Zg]&&r.unshift(e[Zg]),n.message=function jI(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=ye(e);if(Array.isArray(e))r=e.map(ye).join(" -> ");else if("object"==typeof e){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):ye(a)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(NI,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[ka]=null,n}(s,e,"R3InjectorError",this.source)}throw s}finally{Yt(o),Or(r)}}resolveInjectorInitializers(){const e=Or(this),t=Yt(void 0);try{const i=this.get(Md.multi,ce,F.Self);for(const r of i)r()}finally{Or(e),Yt(t)}}toString(){const e=[],t=this.records;for(const i of t.keys())e.push(ye(i));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(e){let t=Wi(e=V(e))?e:V(e&&e.provide);const i=function px(n){return Id(n)?Vr(void 0,n.useValue):Vr(function Q_(n,e,t){let i;if(Wi(n)){const r=V(n);return ji(r)||Rd(r)}if(Id(n))i=()=>V(n.useValue);else if(function Y_(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Qu(n.deps||[]));else if(function K_(n){return!(!n||!n.useExisting)}(n))i=()=>y(V(n.useExisting));else{const r=V(n&&(n.useClass||n.provide));if(!function mx(n){return!!n.deps}(n))return ji(r)||Rd(r);i=()=>new r(...Qu(n.deps))}return i}(n),Ua)}(e);if(Wi(e)||!0!==e.multi)this.records.get(t);else{let r=this.records.get(t);r||(r=Vr(void 0,Ua,!0),r.factory=()=>Qu(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,i)}hydrate(e,t){return t.value===Ua&&(t.value=hx,t.value=t.factory()),"object"==typeof t.value&&t.value&&function gx(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=V(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function Rd(n){const e=da(n),t=null!==e?e.factory:ji(n);if(null!==t)return t;if(n instanceof E)throw new C(204,!1);if(n instanceof Function)return function fx(n){const e=n.length;if(e>0)throw Uo(e,"?"),new C(204,!1);const t=function EA(n){const e=n&&(n[ha]||n[ag]);if(e){const t=function SA(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 C(204,!1)}function Vr(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function yx(n){return!!n.\u0275providers}function kd(n,e){for(const t of n)Array.isArray(t)?kd(t,e):yx(t)?kd(t.\u0275providers,e):e(t)}class X_{}class Cx{resolveComponentFactory(e){throw function bx(n){const e=Error(`No component factory found for ${ye(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let Gi=(()=>{class n{}return n.NULL=new Cx,n})();function wx(){return Br(Ye(),w())}function Br(n,e){return new $e(Nt(n,e))}let $e=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=wx,n})();function Dx(n){return n instanceof $e?n.nativeElement:n}class Jo{}let Sx=(()=>{class n{}return n.\u0275prov=S({token:n,providedIn:"root",factory:()=>null}),n})();class qi{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Mx=new qi("14.3.0"),Fd={};function Pd(n){return n.ngOriginalError}class Yn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Pd(e);for(;t&&Pd(t);)t=Pd(t);return t||null}}function ey(n){return n.ownerDocument}function Zn(n){return n instanceof Function?n():n}function ny(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 o=e.length;if(r+o===i||n.charCodeAt(r+o)<=32)return r}t=r+1}}const iy="ng-template";function Nx(n,e,t){let i=0;for(;io?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==ny(f,c,0)||2&i&&c!==h){if(pn(i))return!1;s=!0}}}}else{if(!s&&!pn(i)&&!pn(l))return!1;if(s&&pn(l))continue;s=!1,i=l|1&i}}return pn(i)||s}function pn(n){return 0==(1&n)}function Bx(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let o=!1;for(;r-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!pn(s)&&(e+=sy(o,r),r=""),i=s,o=o||!pn(i);t++}return""!==r&&(e+=sy(o,r)),e}const W={};function X(n){ay(ie(),w(),_t()+n,!1)}function ay(n,e,t,i){if(!i)if(3==(3&e[2])){const o=n.preOrderCheckHooks;null!==o&&wa(e,o,t)}else{const o=n.preOrderHooks;null!==o&&Da(e,o,0,t)}pi(t)}function dy(n,e=null,t=null,i){const r=hy(n,e,t,i);return r.resolveInjectorInitializers(),r}function hy(n,e=null,t=null,i,r=new Set){const o=[t||ce,cx(n)];return i=i||("object"==typeof n?void 0:ye(n)),new Z_(o,e||$a(),i||null,r)}let Qe=(()=>{class n{static create(t,i){if(Array.isArray(t))return dy({name:""},i,t,"");{const r=t.name??"";return dy({name:r},t.parent,t.providers,r)}}}return n.THROW_IF_NOT_FOUND=$o,n.NULL=new W_,n.\u0275prov=S({token:n,providedIn:"any",factory:()=>y($_)}),n.__NG_ELEMENT_ID__=-1,n})();function g(n,e=F.Default){const t=w();return null===t?y(n,e):Hg(Ye(),t,V(n),e)}function Wa(){throw new Error("invalid")}function Ga(n,e){return n<<17|e<<2}function mn(n){return n>>17&32767}function Hd(n){return 2|n}function Qn(n){return(131068&n)>>2}function jd(n,e){return-131069&n|e<<2}function Ud(n){return 1|n}function Ty(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i22&&ay(n,e,22,!1),t(i,r)}finally{pi(o)}}function Xd(n,e,t){!bg()||(function RR(n,e,t,i){const r=t.directiveStart,o=t.directiveEnd;n.firstCreatePass||Vo(t,e),ut(i,e);const s=t.initialInputs;for(let a=r;a0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function Vy(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function By(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function PR(n,e,t){if(t){if(e.exportAs)for(let i=0;i0&&ih(t)}}function ih(n){for(let i=ad(n);null!==i;i=ld(i))for(let r=10;r0&&ih(o)}const t=n[1].components;if(null!==t)for(let i=0;i0&&ih(r)}}function UR(n,e){const t=Lt(e,n),i=t[1];(function $R(n,e){for(let t=e.length;t-1&&(dd(e,i),xa(t,i))}this._attachedToViewContainer=!1}b_(this._lView[1],this._lView)}onDestroy(e){Fy(this._lView[1],this._lView,null,e)}markForCheck(){rh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Xa(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function CT(n,e){Zo(n,e,e[q],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=e}}class zR extends es{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;Xa(e[1],e,e[8],!1)}checkNoChanges(){}get context(){return null}}class ah extends Gi{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=fe(e);return new ts(t,this.ngModule)}}function qy(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class GR{constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,i){const r=this.injector.get(e,Fd,i);return r!==Fd||t===Fd?r:this.parentInjector.get(e,t,i)}}class ts extends X_{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function Wx(n){return n.map(zx).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return qy(this.componentDef.inputs)}get outputs(){return qy(this.componentDef.outputs)}create(e,t,i,r){let o=(r=r||this.ngModule)instanceof _i?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new GR(e,o):e,a=s.get(Jo,null);if(null===a)throw new C(407,!1);const l=s.get(Sx,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function SR(n,e,t){return n.selectRootElement(e,t===un.ShadowDom)}(c,i,this.componentDef.encapsulation):ud(c,u,function WR(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(u)),h=this.componentDef.onPush?288:272,f=eh(0,null,null,1,0,null,null,null,null,null),p=Ya(null,f,null,h,null,null,a,c,l,s,null);let m,_;Vu(p);try{const b=function YR(n,e,t,i,r,o){const s=t[1];t[22]=n;const l=Ur(s,22,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(Ja(l,c,!0),null!==n&&(Ea(r,n,c),null!==l.classes&&_d(r,n,l.classes),null!==l.styles&&R_(r,n,l.styles)));const u=i.createRenderer(n,e),d=Ya(t,ky(e),null,e.onPush?32:16,t[22],l,i,u,o||null,null,null);return s.firstCreatePass&&(Ia(Vo(l,t),s,e.type),By(s,l),Hy(l,t.length,1)),Qa(t,d),t[22]=d}(d,this.componentDef,p,a,c);if(d)if(i)Ea(c,d,["ng-version",Mx.full]);else{const{attrs:D,classes:v}=function Gx(n){const e=[],t=[];let i=1,r=2;for(;i0&&_d(c,d,v.join(" "))}if(_=Ru(f,22),void 0!==t){const D=_.projection=[];for(let v=0;v=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Sa(r.hostAttrs,t=Sa(t,r.hostAttrs))}}(i)}function lh(n){return n===yr?{}:n===ce?[]:n}function JR(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function ek(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,o)=>{e(i,r,o),t(i,r,o)}:e}function tk(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let tl=null;function Ki(){if(!tl){const n=we.Symbol;if(n&&n.iterator)tl=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;ta(je(Y[i.index])):i.index;let I=null;if(!a&&l&&(I=function pk(n,e,t,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,e,r,i.index)),null!==I)(I.__ngLastListenerFn__||I).__ngNextListenerFn__=o,I.__ngLastListenerFn__=o,f=!1;else{o=lv(i,e,d,o,!1);const Y=t.listen(b,r,o);h.push(o,Y),u&&u.push(r,v,D,D+1)}}else o=lv(i,e,d,o,!1);const p=i.outputs;let m;if(f&&null!==p&&(m=p[r])){const _=m.length;if(_)for(let b=0;b<_;b+=2){const ne=e[m[b]][m[b+1]].subscribe(o),ke=h.length;h.push(o,ne),u&&u.push(r,i.index,ke,-(ke+1))}}}function av(n,e,t,i){try{return!1!==t(i)}catch(r){return Gy(n,r),!1}}function lv(n,e,t,i,r){return function o(s){if(s===Function)return i;rh(2&n.flags?Lt(n.index,e):e);let l=av(e,0,i,s),c=o.__ngNextListenerFn__;for(;c;)l=av(e,0,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function rt(n=1){return function rI(n){return(j.lFrame.contextLView=function oI(n,e){for(;n>0;)e=e[15],n--;return e}(n,j.lFrame.contextLView))[8]}(n)}function mk(n,e){let t=null;const i=function Hx(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=0}function gh(n,e,t){return _n(n,e,t,!1),gh}function Ct(n,e){return _n(n,e,null,!0),Ct}function _n(n,e,t,i){const r=w(),o=ie(),s=Wn(2);o.firstUpdatePass&&function Iv(n,e,t,i){const r=n.data;if(null===r[t+1]){const o=r[_t()],s=function Av(n,e){return e>=n.expandoStartIndex}(n,t);(function kv(n,e){return 0!=(n.flags&(e?16:32))})(o,i)&&null===e&&!s&&(e=!1),e=function Ak(n,e,t,i){const r=Nu(n);let o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=ss(t=_h(null,n,e,t,i),e.attrs,i),o=null);else{const s=e.directiveStylingLast;if(-1===s||n[s]!==r)if(t=_h(r,n,e,t,i),null===o){let l=function Ik(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==Qn(i))return n[mn(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=_h(null,n,e,l[1],i),l=ss(l,e.attrs,i),function Tk(n,e,t,i){n[mn(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else o=function xk(n,e,t){let i;const r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=mn(n[a+1]);n[i+1]=Ga(h,a),0!==h&&(n[h+1]=jd(n[h+1],i)),n[a+1]=function dR(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=Ga(a,0),0!==a&&(n[a+1]=jd(n[a+1],i)),a=i;else n[i+1]=Ga(l,0),0===a?a=i:n[l+1]=jd(n[l+1],i),l=i;c&&(n[i+1]=Hd(n[i+1])),bv(n,u,i,!0),bv(n,u,i,!1),function _k(n,e,t,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof e&&Fr(o,e)>=0&&(t[i+1]=Ud(t[i+1]))}(e,u,n,i,o),s=Ga(a,l),o?e.classBindings=s:e.styleBindings=s}(r,o,e,t,s,i)}}(o,n,s,i),e!==W&&dt(r,s,e)&&function xv(n,e,t,i,r,o,s,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];il(function Cy(n){return 1==(1&n)}(c)?Rv(l,e,t,r,Qn(c),s):void 0)||(il(o)||function by(n){return 2==(2&n)}(c)&&(o=Rv(l,null,t,r,a,s)),function RT(n,e,t,i,r){if(e)r?n.addClass(t,i):n.removeClass(t,i);else{let o=-1===i.indexOf("-")?void 0:Tt.DashCase;null==r?n.removeStyle(t,i,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=Tt.Important),n.setStyle(t,i,r,o))}}(i,s,va(_t(),t),r,o))}(o,o.data[_t()],r,r[q],n,r[s+1]=function Fk(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=ye(Ht(n)))),n}(e,t),i,s)}function _h(n,e,t,i,r){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===W&&(h=d?ce:void 0);let f=d?Ku(h,i):u===i?h:void 0;if(c&&!il(f)&&(f=Ku(l,i)),il(f)&&(a=f,s))return a;const p=n[r+1];r=s?mn(p):Qn(p)}if(null!==e){let l=o?e.residualClasses:e.residualStyles;null!=l&&(a=Ku(l,i))}return a}function il(n){return void 0!==n}function he(n,e=""){const t=w(),i=ie(),r=n+22,o=i.firstCreatePass?Ur(i,r,1,e,null):i.data[r],s=t[r]=function cd(n,e){return n.createText(e)}(t[q],e);Na(i,t,s,o),En(o,!1)}function Pe(n){return Zi("",n,""),Pe}function Zi(n,e,t){const i=w(),r=function Wr(n,e,t,i){return dt(n,Er(),t)?e+z(t)+i:W}(i,n,e,t);return r!==W&&Xn(i,_t(),r),Zi}function yh(n,e,t,i,r,o,s){const a=w(),l=qr(a,n,e,t,i,r,o,s);return l!==W&&Xn(a,_t(),l),yh}function vh(n,e,t){const i=w();return dt(i,Er(),e)&&jt(ie(),xe(),i,n,e,i[q],t,!0),vh}function bh(n,e,t){const i=w();if(dt(i,Er(),e)){const o=ie(),s=xe();jt(o,s,i,n,e,Wy(Nu(o.data),s,i),t,!0)}return bh}const to="en-US";let Qv=to;class Xi{}class Db{}class Eb extends Xi{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ah(this);const i=Ot(e);this._bootstrapComponents=Zn(i.bootstrap),this._r3Injector=hy(e,t,[{provide:Xi,useValue:this},{provide:Gi,useValue:this.componentFactoryResolver}],ye(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Ah extends Db{constructor(e){super(),this.moduleType=e}create(e){return new Eb(this.moduleType,e)}}class JF extends Xi{constructor(e,t,i){super(),this.componentFactoryResolver=new ah(this),this.instance=null;const r=new Z_([...e,{provide:Xi,useValue:this},{provide:Gi,useValue:this.componentFactoryResolver}],t||$a(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function ll(n,e,t=null){return new JF(n,e,t).injector}let eO=(()=>{class n{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t.id)){const i=G_(0,t.type),r=i.length>0?ll([i],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t.id,r)}return this.cachedInjectors.get(t.id)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=S({token:n,providedIn:"environment",factory:()=>new n(y(_i))}),n})();function Sb(n){n.getStandaloneInjector=e=>e.get(eO).getOrCreateStandaloneInjector(n)}function Th(n){return e=>{setTimeout(n,void 0,e)}}const Me=class MO extends ae{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){let r=e,o=t||(()=>null),s=i;if(e&&"object"==typeof e){const l=e;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Th(o),r&&(r=Th(r)),s&&(s=Th(s)));const a=super.subscribe({next:r,error:o,complete:s});return e instanceof et&&e.add(a),a}};function AO(){return this._results[Ki()]()}class xh{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=Ki(),i=xh.prototype;i[t]||(i[t]=AO)}get changes(){return this._changes||(this._changes=new Me)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const i=this;i.dirty=!1;const r=Vt(e);(this._changesDetected=!function MI(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=xO,n})();const IO=Rn,TO=class extends IO{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e,t){const i=this._declarationTContainer.tViews,r=Ya(this._declarationLView,i,e,16,null,i.declTNode,null,null,null,null,t||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),Qd(i,r,e),new es(r)}};function xO(){return cl(Ye(),w())}function cl(n,e){return 4&n.type?new TO(e,n,Br(n,e)):null}let en=(()=>{class n{}return n.__NG_ELEMENT_ID__=RO,n})();function RO(){return Bb(Ye(),w())}const kO=en,Lb=class extends kO{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return Br(this._hostTNode,this._hostLView)}get injector(){return new Ar(this._hostTNode,this._hostLView)}get parentInjector(){const e=Aa(this._hostTNode,this._hostLView);if(Pg(e)){const t=Mr(e,this._hostLView),i=Sr(e);return new Ar(t[1].data[i+8],t)}return new Ar(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Vb(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=e.createEmbeddedView(t||{},o);return this.insert(s,r),s}createComponent(e,t,i,r,o){const s=e&&!function jo(n){return"function"==typeof n}(e);let a;if(s)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?e:new ts(fe(e)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(_i,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function qA(n){return hn(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new Lb(d,d[6],d[3]);h.detach(h.indexOf(e))}}const o=this._adjustIndex(t),s=this._lContainer;!function DT(n,e,t,i){const r=10+i,o=t.length;i>0&&(t[r-1][4]=e),i0)i.push(s[a/2]);else{const c=o[a+1],u=e[-l];for(let d=10;d{class n{constructor(t){this.appInits=t,this.resolve=dl,this.reject=dl,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{o.subscribe({complete:a,error:l})});t.push(s)}}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(hl,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _s=new E("AppId",{providedIn:"root",factory:function cC(){return`${$h()}${$h()}${$h()}`}});function $h(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const uC=new E("Platform Initializer"),zh=new E("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),dC=new E("appBootstrapListener"),pl=new E("AnimationModuleType");let aP=(()=>{class n{log(t){console.log(t)}warn(t){console.warn(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const kn=new E("LocaleId",{providedIn:"root",factory:()=>Se(kn,F.Optional|F.SkipSelf)||function lP(){return typeof $localize<"u"&&$localize.locale||to}()});class uP{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}let Wh=(()=>{class n{compileModuleSync(t){return new Ah(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),o=Zn(Ot(t).declarations).reduce((s,a)=>{const l=fe(a);return l&&s.push(new ts(l)),s},[]);return new uP(i,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const fP=(()=>Promise.resolve(0))();function Gh(n){typeof Zone>"u"?fP.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class re{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Me(!1),this.onMicrotaskEmpty=new Me(!1),this.onStable=new Me(!1),this.onError=new Me(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}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 pP(){let n=we.requestAnimationFrame,e=we.cancelAnimationFrame;if(typeof Zone<"u"&&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 _P(n){const e=()=>{!function gP(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(we,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Kh(n),n.isCheckStableRunning=!0,qh(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Kh(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,o,s,a)=>{try{return pC(n),t.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&e(),mC(n)}},onInvoke:(t,i,r,o,s,a,l)=>{try{return pC(n),t.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),mC(n)}},onHasTask:(t,i,r,o)=>{t.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Kh(n),qh(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,i,r,o)=>(t.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!re.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(re.isInAngularZone())throw new C(909,!1)}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,mP,dl,dl);try{return o.runTask(s,t,i)}finally{o.cancelTask(s)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const mP={};function qh(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 Kh(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function pC(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function mC(n){n._nesting--,qh(n)}class yP{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Me,this.onMicrotaskEmpty=new Me,this.onStable=new Me,this.onError=new Me}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)}}const gC=new E(""),ml=new E("");let Qh,Yh=(()=>{class n{constructor(t,i,r){this._ngZone=t,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Qh||(function vP(n){Qh=n}(r),r.addToWindow(i)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{re.assertNotInAngularZone(),Gh(()=>{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())Gh(()=>{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 o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:o,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}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(y(re),y(Zh),y(ml))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),Zh=(()=>{class n{constructor(){this._applications=new Map}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 Qh?.findTestabilityInTree(this,t,i)??null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),bi=null;const _C=new E("AllowMultipleToken"),Xh=new E("PlatformDestroyListeners");class yC{constructor(e,t){this.name=e,this.token=t}}function bC(n,e,t=[]){const i=`Platform: ${e}`,r=new E(i);return(o=[])=>{let s=Jh();if(!s||s.injector.get(_C,!1)){const a=[...t,...o,{provide:r,useValue:!0}];n?n(a):function wP(n){if(bi&&!bi.get(_C,!1))throw new C(400,!1);bi=n;const e=n.get(wC);(function vC(n){const e=n.get(uC,null);e&&e.forEach(t=>t())})(n)}(function CC(n=[],e){return Qe.create({name:e,providers:[{provide:Td,useValue:"platform"},{provide:Xh,useValue:new Set([()=>bi=null])},...n]})}(a,i))}return function EP(n){const e=Jh();if(!e)throw new C(401,!1);return e}()}}function Jh(){return bi?.get(wC)??null}let wC=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const r=function EC(n,e){let t;return t="noop"===n?new yP:("zone.js"===n?void 0:n)||new re(e),t}(i?.ngZone,function DC(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:re,useValue:r}];return r.run(()=>{const s=Qe.create({providers:o,parent:this.injector,name:t.moduleType.name}),a=t.create(s),l=a.injector.get(Yn,null);if(!l)throw new C(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{gl(this._modules,a),c.unsubscribe()})}),function SC(n,e,t){try{const i=t();return os(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(fl);return c.runInitializers(),c.donePromise.then(()=>(function Xv(n){Ft(n,"Expected localeId to be defined"),"string"==typeof n&&(Qv=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(kn,to)||to),this._moduleDoBootstrap(a),a))})})}bootstrapModule(t,i=[]){const r=MC({},i);return function bP(n,e,t){const i=new Ah(t);return Promise.resolve(i)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(t){const i=t.injector.get(ro);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new C(403,!1);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 C(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(Xh,null);t&&(t.forEach(i=>i()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(y(Qe))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function MC(n,e){return Array.isArray(e)?e.reduce(MC,n):{...n,...e}}let ro=(()=>{class n{constructor(t,i,r){this._zone=t,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new be(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new be(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{re.assertNotInAngularZone(),Gh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{re.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=mu(o,s.pipe(rg()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,i){const r=t instanceof X_;if(!this._injector.get(fl).done)throw!r&&function vr(n){const e=fe(n)||pt(n)||mt(n);return null!==e&&e.standalone}(t),new C(405,false);let s;s=r?t:this._injector.get(Gi).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function CP(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Xi),c=s.create(Qe.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(gC,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),gl(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new C(101,!1);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;gl(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(dC,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>gl(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new C(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(t){return new(t||n)(y(re),y(_i),y(Yn))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function gl(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let IC=!0,ys=(()=>{class n{}return n.__NG_ELEMENT_ID__=AP,n})();function AP(n){return function IP(n,e,t){if(_a(n)&&!t){const i=Lt(n.index,e);return new es(i,i)}return 47&n.type?new es(e[16],e):null}(Ye(),w(),16==(16&n))}class FC{constructor(){}supports(e){return ns(e)}create(e){return new OP(e)}}const FP=(n,e)=>e;class OP{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||FP}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,o=null;for(;t||i;){const s=!i||t&&t.currentIndex{s=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,a,s,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,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 o;return null===e?o=this._itTail:(o=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,o,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):e=this._addAfter(new PP(t,i),o,r),e}_verifyReinsertion(e,t,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?e=this._reinsertAfter(o,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,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._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 OC),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 OC),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 PP{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 NP{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 OC{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new NP,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 PC(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i{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||LC()),deps:[[n,new Pr,new gi]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new C(901,!1)}}return n.\u0275prov=S({token:n,providedIn:"root",factory:LC}),n})();const jP=bC(null,"core",[]);let UP=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(y(ro))},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({}),n})(),bl=null;function Fn(){return bl}const Q=new E("DocumentToken");let sf=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(){return function GP(){return y(BC)}()},providedIn:"platform"}),n})();const qP=new E("Location Initialized");let BC=(()=>{class n extends sf{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Fn().getBaseHref(this._doc)}onPopState(t){const i=Fn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=Fn().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){HC()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){HC()?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(Q))},n.\u0275prov=S({token:n,factory:function(){return function KP(){return new BC(y(Q))}()},providedIn:"platform"}),n})();function HC(){return!!window.history.pushState}function af(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 jC(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 ti(n){return n&&"?"!==n[0]?"?"+n:n}let er=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(){return Se($C)},providedIn:"root"}),n})();const UC=new E("appBaseHref");let $C=(()=>{class n extends er{constructor(t,i){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Se(Q).location?.origin??""}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 af(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+ti(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,o){const s=this.prepareExternalUrl(r+ti(o));this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){const s=this.prepareExternalUrl(r+ti(o));this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return n.\u0275fac=function(t){return new(t||n)(y(sf),y(UC,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),YP=(()=>{class n extends er{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=i&&(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}path(t=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=af(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,r,o){let s=this.prepareExternalUrl(r+ti(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){let s=this.prepareExternalUrl(r+ti(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return n.\u0275fac=function(t){return new(t||n)(y(sf),y(UC,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),bs=(()=>{class n{constructor(t){this._subject=new Me,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._baseHref=jC(zC(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+ti(i))}normalize(t){return n.stripTrailingSlash(function QP(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,zC(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._locationStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ti(i)),r)}replaceState(t,i="",r=null){this._locationStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ti(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_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=ti,n.joinWithSlash=af,n.stripTrailingSlash=jC,n.\u0275fac=function(t){return new(t||n)(y(er))},n.\u0275prov=S({token:n,factory:function(){return function ZP(){return new bs(y(er))}()},providedIn:"root"}),n})();function zC(n){return n.replace(/\/index.html$/,"")}class LN{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 ii=(()=>{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,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new LN(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),tw(a,r)}});for(let r=0,o=i.length;r{tw(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(g(en),g(Rn),g(vl))},n.\u0275dir=P({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function tw(n,e){n.context.$implicit=e.item}let nw=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new BN,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){iw("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){iw("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)(g(en),g(Rn))},n.\u0275dir=P({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class BN{constructor(){this.$implicit=null,this.ngIf=null}}function iw(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${ye(e)}'.`)}let sw=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({}),n})();const aw="browser";let _1=(()=>{class n{}return n.\u0275prov=S({token:n,providedIn:"root",factory:()=>new y1(y(Q),window)}),n})();class y1{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const t=function v1(n,e){const t=n.getElementById(e)||n.getElementsByName(e)[0];if(t)return t;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),i=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=lw(this.window.history)||lw(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function lw(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class Df extends class q1 extends class WP{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function zP(n){bl||(bl=n)}(new Df)}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 K1(){return Es=Es||document.querySelector("base"),Es?Es.getAttribute("href"):null}();return null==t?null:function Y1(n){kl=kl||document.createElement("a"),kl.setAttribute("href",n);const e=kl.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){Es=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function ON(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,o]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}(document.cookie,e)}}let kl,Es=null;const fw=new E("TRANSITION_ID"),Q1=[{provide:hl,useFactory:function Z1(n,e,t){return()=>{t.get(fl).donePromise.then(()=>{const i=Fn(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const Fl=new E("EventManagerPlugins");let Ol=(()=>{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 o=0;o{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=S({token:n,factory:n.\u0275fac}),n})(),Ss=(()=>{class n extends mw{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}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(gw),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(gw))}}return n.\u0275fac=function(t){return new(t||n)(y(Q))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();function gw(n){Fn().remove(n)}const Ef={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/"},Sf=/%COMP%/g;function Pl(n,e,t){for(let i=0;i{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Nl=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Mf(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case un.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new oL(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case un.ShadowDom:return new sL(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=Pl(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(Ol),y(Ss),y(_s))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class Mf{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(Ef[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){(Cw(e)?e.content:e).appendChild(t)}insertBefore(e,t,i){e&&(Cw(e)?e.content: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 o=Ef[r];o?e.setAttributeNS(o,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=Ef[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&(Tt.DashCase|Tt.Important)?e.style.setProperty(t,i,r&Tt.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&Tt.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,vw(i)):this.eventManager.addEventListener(e,t,vw(i))}}function Cw(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class oL extends Mf{constructor(e,t,i,r){super(e),this.component=i;const o=Pl(r+"-"+i.id,i.styles,[]);t.addStyles(o),this.contentAttr=function nL(n){return"_ngcontent-%COMP%".replace(Sf,n)}(r+"-"+i.id),this.hostAttr=function iL(n){return"_nghost-%COMP%".replace(Sf,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 sL extends Mf{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 o=Pl(r.id,r.styles,[]);for(let s=0;s{class n extends pw{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(Q))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const ww=["alt","control","meta","shift"],lL={"\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"},cL={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let uL=(()=>{class n extends pw{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Fn().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),ww.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(t,i){let r=lL[t.key]||t.key,o="";return i.indexOf("code.")>-1&&(r=t.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),ww.forEach(s=>{s!==r&&(0,cL[s])(t)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(t,i,r){return o=>{n.matchEventFullKeyCode(o,t)&&r.runGuarded(()=>i(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(y(Q))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const pL=bC(jP,"browser",[{provide:zh,useValue:aw},{provide:uC,useValue:function dL(){Df.makeCurrent()},multi:!0},{provide:Q,useFactory:function fL(){return function PT(n){vd=n}(document),document},deps:[]}]),Sw=new E(""),Mw=[{provide:ml,useClass:class X1{addToWindow(e){we.getAngularTestability=(i,r=!0)=>{const o=e.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},we.getAllAngularTestabilities=()=>e.getAllTestabilities(),we.getAllAngularRootElements=()=>e.getAllRootElements(),we.frameworkStabilizers||(we.frameworkStabilizers=[]),we.frameworkStabilizers.push(i=>{const r=we.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,i){return null==t?null:e.getTestability(t)??(i?Fn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null)}},deps:[]},{provide:gC,useClass:Yh,deps:[re,Zh,ml]},{provide:Yh,useClass:Yh,deps:[re,Zh,ml]}],Aw=[{provide:Td,useValue:"root"},{provide:Yn,useFactory:function hL(){return new Yn},deps:[]},{provide:Fl,useClass:aL,multi:!0,deps:[Q,re,zh]},{provide:Fl,useClass:uL,multi:!0,deps:[Q]},{provide:Nl,useClass:Nl,deps:[Ol,Ss,_s]},{provide:Jo,useExisting:Nl},{provide:mw,useExisting:Ss},{provide:Ss,useClass:Ss,deps:[Q]},{provide:Ol,useClass:Ol,deps:[Fl,re]},{provide:class b1{},useClass:J1,deps:[]},[]];let Iw=(()=>{class n{constructor(t){}static withServerTransition(t){return{ngModule:n,providers:[{provide:_s,useValue:t.appId},{provide:fw,useExisting:_s},Q1]}}}return n.\u0275fac=function(t){return new(t||n)(y(Sw,12))},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({providers:[...Aw,...Mw],imports:[sw,UP]}),n})(),Tw=(()=>{class n{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return n.\u0275fac=function(t){return new(t||n)(y(Q))},n.\u0275prov=S({token:n,factory:function(t){let i=null;return i=t?new t:function gL(){return new Tw(y(Q))}(),i},providedIn:"root"}),n})();typeof window<"u"&&window;let Ll=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(t){let i=null;return i=t?new(t||n):y(kw),i},providedIn:"root"}),n})(),kw=(()=>{class n extends Ll{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case ue.NONE:return i;case ue.HTML:return Mn(i,"HTML")?Ht(i):U_(this._doc,String(i)).toString();case ue.STYLE:return Mn(i,"Style")?Ht(i):i;case ue.SCRIPT:if(Mn(i,"Script"))return Ht(i);throw new Error("unsafe value used in a script context");case ue.URL:return Mn(i,"URL")?Ht(i):Ha(String(i));case ue.RESOURCE_URL:if(Mn(i,"ResourceURL"))return Ht(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 UT(n){return new NT(n)}(t)}bypassSecurityTrustStyle(t){return function $T(n){return new LT(n)}(t)}bypassSecurityTrustScript(t){return function zT(n){return new VT(n)}(t)}bypassSecurityTrustUrl(t){return function WT(n){return new BT(n)}(t)}bypassSecurityTrustResourceUrl(t){return function GT(n){return new HT(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(y(Q))},n.\u0275prov=S({token:n,factory:function(t){let i=null;return i=t?new t:function DL(n){return new kw(n.get(Q))}(y(Qe)),i},providedIn:"root"}),n})();function R(...n){return He(n,Ao(n))}class ot extends ae{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){const{hasError:e,thrownError:t,_value:i}=this;if(e)throw t;return this._throwIfClosed(),i}next(e){super.next(this._value=e)}}const Vl=So(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:EL}=Array,{getPrototypeOf:SL,prototype:ML,keys:AL}=Object;function Fw(n){if(1===n.length){const e=n[0];if(EL(e))return{args:e,keys:null};if(function IL(n){return n&&"object"==typeof n&&SL(n)===ML}(e)){const t=AL(e);return{args:t.map(i=>e[i]),keys:t}}}return{args:n,keys:null}}const{isArray:TL}=Array;function Tf(n){return B(e=>function xL(n,e){return TL(e)?n(...e):n(e)}(n,e))}function Ow(n,e){return n.reduce((t,i,r)=>(t[i]=e[r],t),{})}function xf(...n){const e=Ao(n),t=eg(n),{args:i,keys:r}=Fw(n);if(0===i.length)return He([],e);const o=new be(function RL(n,e,t=ui){return i=>{Pw(e,()=>{const{length:r}=n,o=new Array(r);let s=r,a=r;for(let l=0;l{const c=He(n[l],e);let u=!1;c.subscribe(ge(i,d=>{o[l]=d,u||(u=!0,a--),a||i.next(t(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,e,r?s=>Ow(r,s):ui));return t?o.pipe(Tf(t)):o}function Pw(n,e,t){n?Hn(t,n,e):e()}function Ms(...n){return function kL(){return _r(1)}()(He(n,Ao(n)))}function Bl(n){return new be(e=>{Mt(n()).subscribe(e)})}function oo(n,e){const t=oe(n)?n:()=>n,i=r=>r.error(t());return new be(e?r=>e.schedule(i,0,r):i)}function Rf(){return Ae((n,e)=>{let t=null;n._refCount++;const i=ge(e,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(t=null);const r=n._connection,o=t;t=null,r&&(!o||r===o)&&r.unsubscribe(),e.unsubscribe()});n.subscribe(i),i.closed||(t=n.connect())})}class Nw extends be{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Bm(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new et;const t=this.getSubject();e.add(this.source.subscribe(ge(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),e.closed&&(this._connection=null,e=et.EMPTY)}return e}refCount(){return Rf()(this)}}function On(n,e){return Ae((t,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();t.subscribe(ge(i,l=>{r?.unsubscribe();let c=0;const u=o++;Mt(n(l,u)).subscribe(r=ge(i,d=>i.next(e?e(l,d,u,c++):d),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function Rt(n){return n<=0?()=>jn:Ae((e,t)=>{let i=0;e.subscribe(ge(t,r=>{++i<=n&&(t.next(r),n<=i&&t.complete())}))})}function Hl(...n){const e=Ao(n);return Ae((t,i)=>{(e?Ms(n,t,e):Ms(n,t)).subscribe(i)})}function Et(n,e){return Ae((t,i)=>{let r=0;t.subscribe(ge(i,o=>n.call(e,o,r++)&&i.next(o)))})}function jl(n){return Ae((e,t)=>{let i=!1;e.subscribe(ge(t,r=>{i=!0,t.next(r)},()=>{i||t.next(n),t.complete()}))})}function Lw(n=FL){return Ae((e,t)=>{let i=!1;e.subscribe(ge(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(n())))})}function FL(){return new Vl}function wi(n,e){const t=arguments.length>=2;return i=>i.pipe(n?Et((r,o)=>n(r,o,i)):ui,Rt(1),t?jl(e):Lw(()=>new Vl))}function Di(n,e){return oe(e)?Ke(n,e,1):Ke(n,1)}function Ge(n,e,t){const i=oe(n)||e||t?{next:n,error:e,complete:t}:n;return i?Ae((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(ge(o,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),o.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):ui}function ri(n){return Ae((e,t)=>{let o,i=null,r=!1;i=e.subscribe(ge(t,void 0,void 0,s=>{o=Mt(n(s,ri(n)(e))),i?(i.unsubscribe(),i=null,o.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(t))})}function OL(n,e,t,i,r){return(o,s)=>{let a=t,l=e,c=0;o.subscribe(ge(s,u=>{const d=c++;l=a?n(l,u,d):(a=!0,u),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function Vw(n,e){return Ae(OL(n,e,arguments.length>=2,!0))}function kf(n){return n<=0?()=>jn:Ae((e,t)=>{let i=[];e.subscribe(ge(t,r=>{i.push(r),n{for(const r of i)t.next(r);t.complete()},void 0,()=>{i=null}))})}function Bw(n,e){const t=arguments.length>=2;return i=>i.pipe(n?Et((r,o)=>n(r,o,i)):ui,kf(1),t?jl(e):Lw(()=>new Vl))}function Hw(n){return B(()=>n)}function Ul(n){return Ae((e,t)=>{try{e.subscribe(t)}finally{t.add(n)}})}const J="primary",As=Symbol("RouteTitle");class NL{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function so(n){return new NL(n)}function LL(n,e,t){const i=t.path.split("/");if(i.length>n.length||"full"===t.pathMatch&&(e.hasChildren()||i.lengthi[o]===r)}return n===e}function Uw(n){return Array.prototype.concat.apply([],n)}function $w(n){return n.length>0?n[n.length-1]:null}function st(n,e){for(const t in n)n.hasOwnProperty(t)&&e(n[t],t)}function Ei(n){return fh(n)?n:os(n)?He(Promise.resolve(n)):R(n)}const HL={exact:function Gw(n,e,t){if(!nr(n.segments,e.segments)||!$l(n.segments,e.segments,t)||n.numberOfChildren!==e.numberOfChildren)return!1;for(const i in e.children)if(!n.children[i]||!Gw(n.children[i],e.children[i],t))return!1;return!0},subset:qw},zw={exact:function jL(n,e){return Pn(n,e)},subset:function UL(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(t=>jw(n[t],e[t]))},ignored:()=>!0};function Ww(n,e,t){return HL[t.paths](n.root,e.root,t.matrixParams)&&zw[t.queryParams](n.queryParams,e.queryParams)&&!("exact"===t.fragment&&n.fragment!==e.fragment)}function qw(n,e,t){return Kw(n,e,e.segments,t)}function Kw(n,e,t,i){if(n.segments.length>t.length){const r=n.segments.slice(0,t.length);return!(!nr(r,t)||e.hasChildren()||!$l(r,t,i))}if(n.segments.length===t.length){if(!nr(n.segments,t)||!$l(n.segments,t,i))return!1;for(const r in e.children)if(!n.children[r]||!qw(n.children[r],e.children[r],i))return!1;return!0}{const r=t.slice(0,n.segments.length),o=t.slice(n.segments.length);return!!(nr(n.segments,r)&&$l(n.segments,r,i)&&n.children[J])&&Kw(n.children[J],e,o,i)}}function $l(n,e,t){return e.every((i,r)=>zw[t](n[r].parameters,i.parameters))}class tr{constructor(e,t,i){this.root=e,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=so(this.queryParams)),this._queryParamMap}toString(){return WL.serialize(this)}}class ee{constructor(e,t){this.segments=e,this.children=t,this.parent=null,st(t,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return zl(this)}}class Is{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=so(this.parameters)),this._parameterMap}toString(){return Xw(this)}}function nr(n,e){return n.length===e.length&&n.every((t,i)=>t.path===e[i].path)}let Yw=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(){return new Of},providedIn:"root"}),n})();class Of{parse(e){const t=new eV(e);return new tr(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){const t=`/${Ts(e.root,!0)}`,i=function KL(n){const e=Object.keys(n).map(t=>{const i=n[t];return Array.isArray(i)?i.map(r=>`${Wl(t)}=${Wl(r)}`).join("&"):`${Wl(t)}=${Wl(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(e.queryParams);return`${t}${i}${"string"==typeof e.fragment?`#${function GL(n){return encodeURI(n)}(e.fragment)}`:""}`}}const WL=new Of;function zl(n){return n.segments.map(e=>Xw(e)).join("/")}function Ts(n,e){if(!n.hasChildren())return zl(n);if(e){const t=n.children[J]?Ts(n.children[J],!1):"",i=[];return st(n.children,(r,o)=>{o!==J&&i.push(`${o}:${Ts(r,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function zL(n,e){let t=[];return st(n.children,(i,r)=>{r===J&&(t=t.concat(e(i,r)))}),st(n.children,(i,r)=>{r!==J&&(t=t.concat(e(i,r)))}),t}(n,(i,r)=>r===J?[Ts(n.children[J],!1)]:[`${r}:${Ts(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[J]?`${zl(n)}/${t[0]}`:`${zl(n)}/(${t.join("//")})`}}function Zw(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Wl(n){return Zw(n).replace(/%3B/gi,";")}function Pf(n){return Zw(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Gl(n){return decodeURIComponent(n)}function Qw(n){return Gl(n.replace(/\+/g,"%20"))}function Xw(n){return`${Pf(n.path)}${function qL(n){return Object.keys(n).map(e=>`;${Pf(e)}=${Pf(n[e])}`).join("")}(n.parameters)}`}const YL=/^[^\/()?;=#]+/;function ql(n){const e=n.match(YL);return e?e[0]:""}const ZL=/^[^=?&#]+/,XL=/^[^&#]+/;class eV{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ee([],{}):new ee([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(i[J]=new ee(e,t)),i}parseSegment(){const e=ql(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(e),new Is(Gl(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=ql(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const r=ql(this.remaining);r&&(i=r,this.capture(i))}e[Gl(t)]=Gl(i)}parseQueryParam(e){const t=function QL(n){const e=n.match(ZL);return e?e[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const s=function JL(n){const e=n.match(XL);return e?e[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=Qw(t),o=Qw(i);if(e.hasOwnProperty(r)){let s=e[r];Array.isArray(s)||(s=[s],e[r]=s),s.push(o)}else e[r]=o}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=ql(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new C(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=J);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[J]:new ee([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new C(4011,!1)}}function Nf(n){return n.segments.length>0?new ee([],{[J]:n}):n}function Kl(n){const e={};for(const i of Object.keys(n.children)){const o=Kl(n.children[i]);(o.segments.length>0||o.hasChildren())&&(e[i]=o)}return function tV(n){if(1===n.numberOfChildren&&n.children[J]){const e=n.children[J];return new ee(n.segments.concat(e.segments),e.children)}return n}(new ee(n.segments,e))}function ir(n){return n instanceof tr}function rV(n,e,t,i,r){if(0===t.length)return ao(e.root,e.root,e.root,i,r);const o=function tD(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new eD(!0,0,n);let e=0,t=!1;const i=n.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return st(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?e++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new eD(t,e,i)}(t);return o.toRoot()?ao(e.root,e.root,new ee([],{}),i,r):function s(l){const c=function sV(n,e,t,i){if(n.isAbsolute)return new lo(e.root,!0,0);if(-1===i)return new lo(t,t===e.root,0);return function nD(n,e,t){let i=n,r=e,o=t;for(;o>r;){if(o-=r,i=i.parent,!i)throw new C(4005,!1);r=i.segments.length}return new lo(i,!1,r-o)}(t,i+(xs(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,e,n.snapshot?._urlSegment,l),u=c.processChildren?ks(c.segmentGroup,c.index,o.commands):Vf(c.segmentGroup,c.index,o.commands);return ao(e.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}function xs(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Rs(n){return"object"==typeof n&&null!=n&&n.outlets}function ao(n,e,t,i,r){let s,o={};i&&st(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===e?t:Jw(n,e,t);const a=Nf(Kl(s));return new tr(a,o,r)}function Jw(n,e,t){const i={};return st(n.children,(r,o)=>{i[o]=r===e?t:Jw(r,e,t)}),new ee(n.segments,i)}class eD{constructor(e,t,i){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=i,e&&i.length>0&&xs(i[0]))throw new C(4003,!1);const r=i.find(Rs);if(r&&r!==$w(i))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class lo{constructor(e,t,i){this.segmentGroup=e,this.processChildren=t,this.index=i}}function Vf(n,e,t){if(n||(n=new ee([],{})),0===n.segments.length&&n.hasChildren())return ks(n,e,t);const i=function lV(n,e,t){let i=0,r=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=t.length)return o;const s=n.segments[r],a=t[i];if(Rs(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!rD(l,c,s))return o;i+=2}else{if(!rD(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,e,t),r=t.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=Vf(n.children[s],e,o))}),st(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new ee(n.segments,r)}}function Bf(n,e,t){const i=n.segments.slice(0,e);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=Bf(new ee([],{}),0,t))}),e}function iD(n){const e={};return st(n,(t,i)=>e[i]=`${t}`),e}function rD(n,e,t){return n==t.path&&Pn(e,t.parameters)}class oi{constructor(e,t){this.id=e,this.url=t}}class Hf extends oi{constructor(e,t,i="imperative",r=null){super(e,t),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class rr extends oi{constructor(e,t,i){super(e,t),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Yl extends oi{constructor(e,t,i,r){super(e,t),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class oD extends oi{constructor(e,t,i,r){super(e,t),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class uV extends oi{constructor(e,t,i,r){super(e,t),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dV extends oi{constructor(e,t,i,r){super(e,t),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hV extends oi{constructor(e,t,i,r,o){super(e,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class fV extends oi{constructor(e,t,i,r){super(e,t),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pV extends oi{constructor(e,t,i,r){super(e,t),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mV{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class gV{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _V{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yV{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vV{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bV{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sD{constructor(e,t,i){this.routerEvent=e,this.position=t,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class aD{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=jf(e,this._root);return t?t.children.map(i=>i.value):[]}firstChild(e){const t=jf(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Uf(e,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return Uf(e,this._root).map(t=>t.value)}}function jf(n,e){if(n===e.value)return e;for(const t of e.children){const i=jf(n,t);if(i)return i}return null}function Uf(n,e){if(n===e.value)return[e];for(const t of e.children){const i=Uf(n,t);if(i.length)return i.unshift(e),i}return[]}class si{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function co(n){const e={};return n&&n.children.forEach(t=>e[t.value.outlet]=t),e}class lD extends aD{constructor(e,t){super(e),this.snapshot=t,$f(this,e)}toString(){return this.snapshot.toString()}}function cD(n,e){const t=function wV(n,e){const s=new Zl([],{},{},"",{},J,e,null,n.root,-1,{});return new dD("",new si(s,[]))}(n,e),i=new ot([new Is("",{})]),r=new ot({}),o=new ot({}),s=new ot({}),a=new ot(""),l=new rn(i,r,s,a,o,J,e,t.root);return l.snapshot=t.root,new lD(new si(l,[]),t)}class rn{constructor(e,t,i,r,o,s,a,l){this.url=e,this.params=t,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(B(c=>c[As]))??R(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(B(e=>so(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(B(e=>so(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function uD(n,e="emptyOnly"){const t=n.pathFromRoot;let i=0;if("always"!==e)for(i=t.length-1;i>=1;){const r=t[i],o=t[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function DV(n){return n.reduce((e,t)=>({params:{...e.params,...t.params},data:{...e.data,...t.data},resolve:{...t.data,...e.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(i))}class Zl{constructor(e,t,i,r,o,s,a,l,c,u,d,h){this.url=e,this.params=t,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.[As],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=h??u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=so(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=so(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dD extends aD{constructor(e,t){super(t),this.url=e,$f(this,t)}toString(){return hD(this._root)}}function $f(n,e){e.value._routerState=n,e.children.forEach(t=>$f(n,t))}function hD(n){const e=n.children.length>0?` { ${n.children.map(hD).join(", ")} } `:"";return`${n.value}${e}`}function zf(n){if(n.snapshot){const e=n.snapshot,t=n._futureSnapshot;n.snapshot=t,Pn(e.queryParams,t.queryParams)||n.queryParams.next(t.queryParams),e.fragment!==t.fragment&&n.fragment.next(t.fragment),Pn(e.params,t.params)||n.params.next(t.params),function VL(n,e){if(n.length!==e.length)return!1;for(let t=0;tPn(t.parameters,e[i].parameters))}(n.url,e.url);return t&&!(!n.parent!=!e.parent)&&(!n.parent||Wf(n.parent,e.parent))}function Fs(n,e,t){if(t&&n.shouldReuseRoute(e.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=e.value;const r=function SV(n,e,t){return e.children.map(i=>{for(const r of t.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return Fs(n,i,r);return Fs(n,i)})}(n,e,t);return new si(i,r)}{if(n.shouldAttach(e.value)){const o=n.retrieve(e.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Fs(n,a)),s}}const i=function MV(n){return new rn(new ot(n.url),new ot(n.params),new ot(n.queryParams),new ot(n.fragment),new ot(n.data),n.outlet,n.component,n)}(e.value),r=e.children.map(o=>Fs(n,o));return new si(i,r)}}const Gf="ngNavigationCancelingError";function fD(n,e){const{redirectTo:t,navigationBehaviorOptions:i}=ir(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=pD(!1,0,e);return r.url=t,r.navigationBehaviorOptions=i,r}function pD(n,e,t){const i=new Error("NavigationCancelingError: "+(n||""));return i[Gf]=!0,i.cancellationCode=e,t&&(i.url=t),i}function mD(n){return gD(n)&&ir(n.url)}function gD(n){return n&&n[Gf]}class AV{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Os,this.attachRef=null}}let Os=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(t,i){const r=this.getOrCreateContext(t);r.outlet=i,this.contexts.set(t,r)}onChildOutletDestroyed(t){const i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);return i||(i=new AV,this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ql=!1;let or=(()=>{class n{constructor(t,i,r,o,s){this.parentContexts=t,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Me,this.deactivateEvents=new Me,this.attachEvents=new Me,this.detachEvents=new Me,this.name=r||J,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,Ql);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,Ql);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,Ql);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new C(4013,Ql);this._activatedRoute=t;const r=this.location,s=t._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new IV(t,a,r.injector);if(i&&function TV(n){return!!n.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(t){return new(t||n)(g(Os),g(en),Ir("name"),g(ys),g(_i))},n.\u0275dir=P({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),n})();class IV{constructor(e,t,i){this.route=e,this.childContexts=t,this.parent=i}get(e,t){return e===rn?this.route:e===Os?this.childContexts:this.parent.get(e,t)}}let qf=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=me({type:n,selectors:[["ng-component"]],standalone:!0,features:[Sb],decls:1,vars:0,template:function(t,i){1&t&&gn(0,"router-outlet")},dependencies:[or],encapsulation:2}),n})();function _D(n,e){return n.providers&&!n._injector&&(n._injector=ll(n.providers,e,`Route: ${n.path}`)),n._injector??e}function Yf(n){const e=n.children&&n.children.map(Yf),t=e?{...n,children:e}:{...n};return!t.component&&!t.loadComponent&&(e||t.loadChildren)&&t.outlet&&t.outlet!==J&&(t.component=qf),t}function on(n){return n.outlet||J}function yD(n,e){const t=n.filter(i=>on(i)===e);return t.push(...n.filter(i=>on(i)!==e)),t}function Ps(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class OV{constructor(e,t,i,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=i,this.forwardEvent=r}activate(e){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,e),zf(this.futureState.root),this.activateChildRoutes(t,i,e)}deactivateChildRoutes(e,t,i){const r=co(t);e.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),st(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(e,t,i){const r=e.value,o=t?t.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,i);else o&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const i=t.getContext(e.value.outlet),r=i&&e.value.component?i.children:t,o=co(e);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,t){const i=t.getContext(e.value.outlet),r=i&&e.value.component?i.children:t,o=co(e);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(e,t,i){const r=co(t);e.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new bV(o.value.snapshot))}),e.children.length&&this.forwardEvent(new yV(e.value.snapshot))}activateRoutes(e,t,i){const r=e.value,o=t?t.value:null;if(zf(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),zf(a.route.value),this.activateChildRoutes(e,null,s.children)}else{const a=Ps(r.snapshot),l=a?.get(Gi)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,i)}}class vD{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Xl{constructor(e,t){this.component=e,this.route=t}}function PV(n,e,t){const i=n._root;return Ns(i,e?e._root:null,t,[i.value])}function uo(n,e){const t=Symbol(),i=e.get(n,t);return i===t?"function"!=typeof n||function DA(n){return null!==da(n)}(n)?e.get(n):n:i}function Ns(n,e,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=co(e);return n.children.forEach(s=>{(function LV(n,e,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=e?e.value:null,a=t?t.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function VV(n,e,t){if("function"==typeof t)return t(n,e);switch(t){case"pathParamsChange":return!nr(n.url,e.url);case"pathParamsOrQueryParamsChange":return!nr(n.url,e.url)||!Pn(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Wf(n,e)||!Pn(n.queryParams,e.queryParams);default:return!Wf(n,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new vD(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Ns(n,e,o.component?a?a.children:null:t,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Xl(a.outlet.component,s))}else s&&Ls(e,a,r),r.canActivateChecks.push(new vD(i)),Ns(n,null,o.component?a?a.children:null:t,i,r)})(s,o[s.value.outlet],t,i.concat([s.value]),r),delete o[s.value.outlet]}),st(o,(s,a)=>Ls(s,t.getContext(a),r)),r}function Ls(n,e,t){const i=co(n),r=n.value;st(i,(o,s)=>{Ls(o,r.component?e?e.children.getContext(s):null:e,t)}),t.canDeactivateChecks.push(new Xl(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}function Vs(n){return"function"==typeof n}function Zf(n){return n instanceof Vl||"EmptyError"===n?.name}const Jl=Symbol("INITIAL_VALUE");function ho(){return On(n=>xf(n.map(e=>e.pipe(Rt(1),Hl(Jl)))).pipe(B(e=>{for(const t of e)if(!0!==t){if(t===Jl)return Jl;if(!1===t||t instanceof tr)return t}return!0}),Et(e=>e!==Jl),Rt(1)))}function bD(n){return function EM(...n){return Lm(n)}(Ge(e=>{if(ir(e))throw fD(0,e)}),B(e=>!0===e))}const Qf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function CD(n,e,t,i,r){const o=Xf(n,e,t);return o.matched?function tB(n,e,t,i){const r=e.canMatch;return r&&0!==r.length?R(r.map(s=>{const a=uo(s,n);return Ei(function zV(n){return n&&Vs(n.canMatch)}(a)?a.canMatch(e,t):n.runInContext(()=>a(e,t)))})).pipe(ho(),bD()):R(!0)}(i=_D(e,i),e,t).pipe(B(s=>!0===s?o:{...Qf})):R(o)}function Xf(n,e,t){if(""===e.path)return"full"===e.pathMatch&&(n.hasChildren()||t.length>0)?{...Qf}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const r=(e.matcher||LL)(t,n,e);if(!r)return{...Qf};const o={};st(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:t.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function ec(n,e,t,i,r="corrected"){if(t.length>0&&function rB(n,e,t){return t.some(i=>tc(n,e,i)&&on(i)!==J)}(n,t,i)){const s=new ee(e,function iB(n,e,t,i){const r={};r[J]=i,i._sourceSegment=n,i._segmentIndexShift=e.length;for(const o of t)if(""===o.path&&on(o)!==J){const s=new ee([],{});s._sourceSegment=n,s._segmentIndexShift=e.length,r[on(o)]=s}return r}(n,e,i,new ee(t,n.children)));return s._sourceSegment=n,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===t.length&&function oB(n,e,t){return t.some(i=>tc(n,e,i))}(n,t,i)){const s=new ee(n.segments,function nB(n,e,t,i,r,o){const s={};for(const a of i)if(tc(n,t,a)&&!r[on(a)]){const l=new ee([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:e.length,s[on(a)]=l}return{...r,...s}}(n,e,t,i,n.children,r));return s._sourceSegment=n,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:t}}const o=new ee(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:t}}function tc(n,e,t){return(!(n.hasChildren()||e.length>0)||"full"!==t.pathMatch)&&""===t.path}function wD(n,e,t,i){return!!(on(n)===i||i!==J&&tc(e,t,n))&&("**"===n.path||Xf(e,n,t).matched)}function DD(n,e,t){return 0===e.length&&!n.children[t]}const nc=!1;class ic{constructor(e){this.segmentGroup=e||null}}class ED{constructor(e){this.urlTree=e}}function Bs(n){return oo(new ic(n))}function SD(n){return oo(new ED(n))}class cB{constructor(e,t,i,r,o){this.injector=e,this.configLoader=t,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const e=ec(this.urlTree.root,[],[],this.config).segmentGroup,t=new ee(e.segments,e.children);return this.expandSegmentGroup(this.injector,this.config,t,J).pipe(B(o=>this.createUrlTree(Kl(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(ri(o=>{if(o instanceof ED)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof ic?this.noMatchError(o):o}))}match(e){return this.expandSegmentGroup(this.injector,this.config,e.root,J).pipe(B(r=>this.createUrlTree(Kl(r),e.queryParams,e.fragment))).pipe(ri(r=>{throw r instanceof ic?this.noMatchError(r):r}))}noMatchError(e){return new C(4002,nc)}createUrlTree(e,t,i){const r=Nf(e);return new tr(r,t,i)}expandSegmentGroup(e,t,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(e,t,i).pipe(B(o=>new ee([],o))):this.expandSegment(e,i,t,i.segments,r,!0)}expandChildren(e,t,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return He(r).pipe(Di(o=>{const s=i.children[o],a=yD(t,o);return this.expandSegmentGroup(e,a,s,o).pipe(B(l=>({segment:l,outlet:o})))}),Vw((o,s)=>(o[s.outlet]=s.segment,o),{}),Bw())}expandSegment(e,t,i,r,o,s){return He(i).pipe(Di(a=>this.expandSegmentAgainstRoute(e,t,i,a,r,o,s).pipe(ri(c=>{if(c instanceof ic)return R(null);throw c}))),wi(a=>!!a),ri((a,l)=>{if(Zf(a))return DD(t,r,o)?R(new ee([],{})):Bs(t);throw a}))}expandSegmentAgainstRoute(e,t,i,r,o,s,a){return wD(r,t,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,i,r,o,s):Bs(t):Bs(t)}expandSegmentAgainstRouteUsingRedirect(e,t,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?SD(o):this.lineralizeSegments(i,o).pipe(Ke(s=>{const a=new ee(s,{});return this.expandSegment(e,a,t,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Xf(t,r,o);if(!a)return Bs(t);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?SD(d):this.lineralizeSegments(r,d).pipe(Ke(h=>this.expandSegment(e,t,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(e,t,i,r,o){return"**"===i.path?(e=_D(i,e),i.loadChildren?(i._loadedRoutes?R({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(e,i)).pipe(B(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new ee(r,{})))):R(new ee(r,{}))):CD(t,i,r,e).pipe(On(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(e=i._injector??e,i,r).pipe(Ke(u=>{const d=u.injector??e,h=u.routes,{segmentGroup:f,slicedSegments:p}=ec(t,a,l,h),m=new ee(f.segments,f.children);if(0===p.length&&m.hasChildren())return this.expandChildren(d,h,m).pipe(B(v=>new ee(a,v)));if(0===h.length&&0===p.length)return R(new ee(a,{}));const _=on(i)===o;return this.expandSegment(d,m,h,p,_?J:o,!0).pipe(B(D=>new ee(a.concat(D.segments),D.children)))})):Bs(t)))}getChildConfig(e,t,i){return t.children?R({routes:t.children,injector:e}):t.loadChildren?void 0!==t._loadedRoutes?R({routes:t._loadedRoutes,injector:t._loadedInjector}):function eB(n,e,t,i){const r=e.canLoad;return void 0===r||0===r.length?R(!0):R(r.map(s=>{const a=uo(s,n);return Ei(function HV(n){return n&&Vs(n.canLoad)}(a)?a.canLoad(e,t):n.runInContext(()=>a(e,t)))})).pipe(ho(),bD())}(e,t,i).pipe(Ke(r=>r?this.configLoader.loadChildren(e,t).pipe(Ge(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function aB(n){return oo(pD(nc,3))}())):R({routes:[],injector:e})}lineralizeSegments(e,t){let i=[],r=t.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return R(i);if(r.numberOfChildren>1||!r.children[J])return oo(new C(4e3,nc));r=r.children[J]}}applyRedirectCommands(e,t,i){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),e,i)}applyRedirectCreateUrlTree(e,t,i,r){const o=this.createSegmentGroup(e,t.root,i,r);return new tr(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const i={};return st(e,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=t[a]}else i[o]=r}),i}createSegmentGroup(e,t,i,r){const o=this.createSegments(e,t.segments,i,r);let s={};return st(t.children,(a,l)=>{s[l]=this.createSegmentGroup(e,a,i,r)}),new ee(o,s)}createSegments(e,t,i,r){return t.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,r):this.findOrReturn(o,i))}findPosParam(e,t,i){const r=i[t.path.substring(1)];if(!r)throw new C(4001,nc);return r}findOrReturn(e,t){let i=0;for(const r of t){if(r.path===e.path)return t.splice(i),r;i++}return e}}class dB{}class pB{constructor(e,t,i,r,o,s,a,l){this.injector=e,this.rootComponentType=t,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const e=ec(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,e,J).pipe(B(t=>{if(null===t)return null;const i=new Zl([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},J,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new si(i,t),o=new dD(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(e){const t=e.value,i=uD(t,this.paramsInheritanceStrategy);t.params=Object.freeze(i.params),t.data=Object.freeze(i.data),e.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(e,t,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(e,t,i):this.processSegment(e,t,i,i.segments,r)}processChildren(e,t,i){return He(Object.keys(i.children)).pipe(Di(r=>{const o=i.children[r],s=yD(t,r);return this.processSegmentGroup(e,s,o,r)}),Vw((r,o)=>r&&o?(r.push(...o),r):null),function PL(n,e=!1){return Ae((t,i)=>{let r=0;t.subscribe(ge(i,o=>{const s=n(o,r++);(s||e)&&i.next(o),!s&&i.complete()}))})}(r=>null!==r),jl(null),Bw(),B(r=>{if(null===r)return null;const o=MD(r);return function mB(n){n.sort((e,t)=>e.value.outlet===J?-1:t.value.outlet===J?1:e.value.outlet.localeCompare(t.value.outlet))}(o),o}))}processSegment(e,t,i,r,o){return He(t).pipe(Di(s=>this.processSegmentAgainstRoute(s._injector??e,s,i,r,o)),wi(s=>!!s),ri(s=>{if(Zf(s))return DD(i,r,o)?R([]):R(null);throw s}))}processSegmentAgainstRoute(e,t,i,r,o){if(t.redirectTo||!wD(t,i,r,o))return R(null);let s;if("**"===t.path){const a=r.length>0?$w(r).parameters:{},l=ID(i)+r.length;s=R({snapshot:new Zl(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xD(t),on(t),t.component??t._loadedComponent??null,t,AD(i),l,RD(t),l),consumedSegments:[],remainingSegments:[]})}else s=CD(i,t,r,e).pipe(B(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=ID(i)+l.length;return{snapshot:new Zl(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xD(t),on(t),t.component??t._loadedComponent??null,t,AD(i),d,RD(t),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(On(a=>{if(null===a)return R(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;e=t._injector??e;const d=t._loadedInjector??e,h=function gB(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(t),{segmentGroup:f,slicedSegments:p}=ec(i,c,u,h.filter(_=>void 0===_.redirectTo),this.relativeLinkResolution);if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe(B(_=>null===_?null:[new si(l,_)]));if(0===h.length&&0===p.length)return R([new si(l,[])]);const m=on(t)===o;return this.processSegment(d,h,f,p,m?J:o).pipe(B(_=>null===_?null:[new si(l,_)]))}))}}function _B(n){const e=n.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function MD(n){const e=[],t=new Set;for(const i of n){if(!_B(i)){e.push(i);continue}const r=e.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),t.add(r)):e.push(i)}for(const i of t){const r=MD(i.children);e.push(new si(i.value,r))}return e.filter(i=>!t.has(i))}function AD(n){let e=n;for(;e._sourceSegment;)e=e._sourceSegment;return e}function ID(n){let e=n,t=e._segmentIndexShift??0;for(;e._sourceSegment;)e=e._sourceSegment,t+=e._segmentIndexShift??0;return t-1}function xD(n){return n.data||{}}function RD(n){return n.resolve||{}}function kD(n){return"string"==typeof n.title||null===n.title}function Jf(n){return On(e=>{const t=n(e);return t?He(t).pipe(B(()=>e)):R(e)})}let FD=(()=>{class n{buildTitle(t){let i,r=t.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===J);return i}getResolvedTitleForRoute(t){return t.data[As]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(){return Se(OD)},providedIn:"root"}),n})(),OD=(()=>{class n extends FD{constructor(t){super(),this.title=t}updateTitle(t){const i=this.buildTitle(t);void 0!==i&&this.title.setTitle(i)}}return n.\u0275fac=function(t){return new(t||n)(y(Tw))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class SB{}class AB extends class MB{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const oc=new E("",{providedIn:"root",factory:()=>({})}),ep=new E("ROUTES");let tp=(()=>{class n{constructor(t,i){this.injector=t,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return R(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const i=Ei(t.loadComponent()).pipe(Ge(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Ul(()=>{this.componentLoaders.delete(t)})),r=new Nw(i,()=>new ae).pipe(Rf());return this.componentLoaders.set(t,r),r}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return R({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(B(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(t).injector,c=Uw(l.get(ep,[],F.Self|F.Optional)));return{routes:c.map(Yf),injector:l}}),Ul(()=>{this.childrenLoaders.delete(i)})),s=new Nw(o,()=>new ae).pipe(Rf());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(t){return Ei(t()).pipe(Ke(i=>i instanceof Db||Array.isArray(i)?R(i):He(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(t){return new(t||n)(y(Qe),y(Wh))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class TB{}class xB{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function RB(n){throw n}function kB(n,e,t){return e.parse("/")}const FB={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},OB={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function ND(){const n=Se(Yw),e=Se(Os),t=Se(bs),i=Se(Qe),r=Se(Wh),o=Se(ep,{optional:!0})??[],s=Se(oc,{optional:!0})??{},a=Se(OD),l=Se(FD,{optional:!0}),c=Se(TB,{optional:!0}),u=Se(SB,{optional:!0}),d=new Le(null,n,e,t,i,r,Uw(o));return c&&(d.urlHandlingStrategy=c),u&&(d.routeReuseStrategy=u),d.titleStrategy=l??a,function PB(n,e){n.errorHandler&&(e.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(e.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(e.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(e.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(e.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(e.canceledNavigationResolution=n.canceledNavigationResolution)}(s,d),d}let Le=(()=>{class n{constructor(t,i,r,o,s,a,l){this.rootComponentType=t,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ae,this.errorHandler=RB,this.malformedUriErrorHandler=kB,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>R(void 0),this.urlHandlingStrategy=new xB,this.routeReuseStrategy=new AB,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(tp),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new gV(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new mV(h)),this.ngModule=s.get(Xi),this.console=s.get(aP);const d=s.get(re);this.isNgZoneEnabled=d instanceof re&&re.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function BL(){return new tr(new ee([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=cD(this.currentUrlTree,this.rootComponentType),this.transitions=new ot({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(t){const i=this.events;return t.pipe(Et(r=>0!==r.id),B(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),On(r=>{let o=!1,s=!1;return R(r).pipe(Ge(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),On(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return LD(a.source)&&(this.browserUrlTree=a.extractedUrl),R(a).pipe(On(d=>{const h=this.transitions.getValue();return i.next(new Hf(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?jn:Promise.resolve(d)}),function uB(n,e,t,i){return On(r=>function lB(n,e,t,i,r){return new cB(n,e,t,i,r).apply()}(n,e,t,r.extractedUrl,i).pipe(B(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Ge(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},r.urlAfterRedirects=d.urlAfterRedirects}),function vB(n,e,t,i,r,o){return Ke(s=>function fB(n,e,t,i,r,o,s="emptyOnly",a="legacy"){return new pB(n,e,t,i,r,s,a,o).recognize().pipe(On(l=>null===l?function hB(n){return new be(e=>e.error(n))}(new dB):R(l)))}(n,e,t,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(B(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Ge(d=>{if(r.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const f=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(f,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new uV(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:f,source:p,restoredState:m,extras:_}=a,b=new Hf(h,this.serializeUrl(f),p,m);i.next(b);const D=cD(f,this.rootComponentType).snapshot;return R(r={...a,targetSnapshot:D,urlAfterRedirects:f,extras:{..._,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),jn}),Ge(a=>{const l=new dV(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),B(a=>r={...a,guards:PV(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function GV(n,e){return Ke(t=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?R({...t,guardsResult:!0}):function qV(n,e,t,i){return He(n).pipe(Ke(r=>function JV(n,e,t,i,r){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?R(o.map(a=>{const l=Ps(e)??r,c=uo(a,l);return Ei(function $V(n){return n&&Vs(n.canDeactivate)}(c)?c.canDeactivate(n,e,t,i):l.runInContext(()=>c(n,e,t,i))).pipe(wi())})).pipe(ho()):R(!0)}(r.component,r.route,t,e,i)),wi(r=>!0!==r,!0))}(s,i,r,n).pipe(Ke(a=>a&&function BV(n){return"boolean"==typeof n}(a)?function KV(n,e,t,i){return He(e).pipe(Di(r=>Ms(function ZV(n,e){return null!==n&&e&&e(new _V(n)),R(!0)}(r.route.parent,i),function YV(n,e){return null!==n&&e&&e(new vV(n)),R(!0)}(r.route,i),function XV(n,e,t){const i=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>function NV(n){const e=n.routeConfig?n.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:n,guards:e}:null}(s)).filter(s=>null!==s).map(s=>Bl(()=>R(s.guards.map(l=>{const c=Ps(s.node)??t,u=uo(l,c);return Ei(function UV(n){return n&&Vs(n.canActivateChild)}(u)?u.canActivateChild(i,n):c.runInContext(()=>u(i,n))).pipe(wi())})).pipe(ho())));return R(o).pipe(ho())}(n,r.path,t),function QV(n,e,t){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return R(!0);const r=i.map(o=>Bl(()=>{const s=Ps(e)??t,a=uo(o,s);return Ei(function jV(n){return n&&Vs(n.canActivate)}(a)?a.canActivate(e,n):s.runInContext(()=>a(e,n))).pipe(wi())}));return R(r).pipe(ho())}(n,r.route,t))),wi(r=>!0!==r,!0))}(i,o,n,e):R(a)),B(a=>({...t,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Ge(a=>{if(r.guardsResult=a.guardsResult,ir(a.guardsResult))throw fD(0,a.guardsResult);const l=new hV(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Et(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),Jf(a=>{if(a.guards.canActivateChecks.length)return R(a).pipe(Ge(l=>{const c=new fV(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),On(l=>{let c=!1;return R(l).pipe(function bB(n,e){return Ke(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return R(t);let o=0;return He(r).pipe(Di(s=>function CB(n,e,t,i){const r=n.routeConfig,o=n._resolve;return void 0!==r?.title&&!kD(r)&&(o[As]=r.title),function wB(n,e,t,i){const r=function DB(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return R({});const o={};return He(r).pipe(Ke(s=>function EB(n,e,t,i){const r=Ps(e)??i,o=uo(n,r);return Ei(o.resolve?o.resolve(e,t):r.runInContext(()=>o(e,t)))}(n[s],e,t,i).pipe(wi(),Ge(a=>{o[s]=a}))),kf(1),Hw(o),ri(s=>Zf(s)?jn:oo(s)))}(o,n,e,i).pipe(B(s=>(n._resolvedData=s,n.data=uD(n,t).resolve,r&&kD(r)&&(n.data[As]=r.title),null)))}(s.route,i,n,e)),Ge(()=>o++),kf(1),Ke(s=>o===r.length?R(t):jn))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Ge({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Ge(l=>{const c=new pV(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),Jf(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(Ge(d=>{c.component=d}),B(()=>{})));for(const d of c.children)u.push(...l(d));return u};return xf(l(a.targetSnapshot.root)).pipe(jl(),Rt(1))}),Jf(()=>this.afterPreactivation()),B(a=>{const l=function EV(n,e,t){const i=Fs(n,e._root,t?t._root:void 0);return new lD(i,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),Ge(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,e,t)=>B(i=>(new OV(e,i.targetRouterState,i.currentRouterState,t).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Ge({next(){o=!0},complete(){o=!0}}),Ul(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),ri(a=>{if(s=!0,gD(a)){mD(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new Yl(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),mD(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||LD(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new oD(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return jn}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}setTransition(t){this.transitions.next({...this.transitions.value,...t})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const i="popstate"===t.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},o=t.state?.navigationId?t.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(t.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){this.config=t.map(Yf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),rV(c,this.currentUrlTree,t,d,u??null)}navigateByUrl(t,i={skipLocationChange:!1}){const r=ir(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(t,i={skipLocationChange:!1}){return function NB(n){for(let e=0;e{const o=t[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new rr(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,f)=>{a=h,l=f});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),d=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:u,targetPageId:d,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(t,i){const r=this.urlSerializer.serialize(t),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(t,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,i,r){const o=new Yl(t.id,this.serializeUrl(t.extractedUrl),i,r);this.triggerEvent(o),t.resolve(!1)}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}}return n.\u0275fac=function(t){Wa()},n.\u0275prov=S({token:n,factory:function(){return ND()},providedIn:"root"}),n})();function LD(n){return"imperative"!==n}class VD{}let BB=(()=>{class n{constructor(t,i,r,o,s){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Et(t=>t instanceof rr),Di(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=ll(o.providers,t,`Route: ${o.path}`));const s=o._injector??t,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return He(r).pipe(_r())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(t,i):R(null);const o=r.pipe(Ke(s=>null===s?R(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return i.loadComponent&&!i._loadedComponent?He([o,this.loader.loadComponent(i)]).pipe(_r()):o})}}return n.\u0275fac=function(t){return new(t||n)(y(Le),y(Wh),y(_i),y(VD),y(tp))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const rp=new E("");let BD=(()=>{class n{constructor(t,i,r={}){this.router=t,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Hf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof rr&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof sD&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.router.triggerEvent(new sD(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(t){Wa()},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();function fo(n,e){return{\u0275kind:n,\u0275providers:e}}function op(n){return[{provide:ep,multi:!0,useValue:n}]}function jD(){const n=Se(Qe);return e=>{const t=n.get(ro);if(e!==t.components[0])return;const i=n.get(Le),r=n.get(UD);1===n.get(sp)&&i.initialNavigation(),n.get($D,null,F.Optional)?.setUpPreloading(),n.get(rp,null,F.Optional)?.init(),i.resetRootComponentType(t.componentTypes[0]),r.closed||(r.next(),r.unsubscribe())}}const UD=new E("",{factory:()=>new ae}),sp=new E("",{providedIn:"root",factory:()=>1});const $D=new E("");function $B(n){return fo(0,[{provide:$D,useExisting:BB},{provide:VD,useExisting:n}])}const zD=new E("ROUTER_FORROOT_GUARD"),zB=[bs,{provide:Yw,useClass:Of},{provide:Le,useFactory:ND},Os,{provide:rn,useFactory:function HD(n){return n.routerState.root},deps:[Le]},tp];function WB(){return new yC("Router",Le)}let WD=(()=>{class n{constructor(t){}static forRoot(t,i){return{ngModule:n,providers:[zB,[],op(t),{provide:zD,useFactory:YB,deps:[[Le,new gi,new Pr]]},{provide:oc,useValue:i||{}},i?.useHash?{provide:er,useClass:YP}:{provide:er,useClass:$C},{provide:rp,useFactory:()=>{const n=Se(Le),e=Se(_1),t=Se(oc);return t.scrollOffset&&e.setOffset(t.scrollOffset),new BD(n,e,t)}},i?.preloadingStrategy?$B(i.preloadingStrategy).\u0275providers:[],{provide:yC,multi:!0,useFactory:WB},i?.initialNavigation?ZB(i):[],[{provide:GD,useFactory:jD},{provide:dC,multi:!0,useExisting:GD}]]}}static forChild(t){return{ngModule:n,providers:[op(t)]}}}return n.\u0275fac=function(t){return new(t||n)(y(zD,8))},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({imports:[qf]}),n})();function YB(n){return"guarded"}function ZB(n){return["disabled"===n.initialNavigation?fo(3,[{provide:hl,multi:!0,useFactory:()=>{const e=Se(Le);return()=>{e.setUpLocationChangeListener()}}},{provide:sp,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?fo(2,[{provide:sp,useValue:0},{provide:hl,multi:!0,deps:[Qe],useFactory:e=>{const t=e.get(qP,Promise.resolve());let i=!1;return()=>t.then(()=>new Promise(o=>{const s=e.get(Le),a=e.get(UD);(function r(o){e.get(Le).events.pipe(Et(a=>a instanceof rr||a instanceof Yl||a instanceof oD),B(a=>a instanceof rr||a instanceof Yl&&(0===a.code||1===a.code)&&null),Et(a=>null!==a),Rt(1)).subscribe(()=>{o()})})(()=>{o(!0),i=!0}),s.afterPreactivation=()=>(o(!0),i||a.closed?R(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const GD=new E("");let cc=(()=>{class n{constructor(t,i){this.route=t,this.router=i,this.navs=[]}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}ngOnInit(){throw new Error("need impl")}isActiveHeader(t){const i=this.route.firstChild?.component?.name==t.component;return i&&(this.currentNav=t),i}selectHeader(t,i=[]){i.push(...t.path.split("/")),this.router.navigate(i)}choiceHeader(t){if(null!=this.currentNav){const i=this.navs.indexOf(this.currentNav);switch(t){case"KeyQ":this.selectHeader(i-1<0?this.navs[this.navs.length-1]:this.navs[i-1]);break;case"KeyE":this.selectHeader(i+1>=this.navs.length?this.navs[0]:this.navs[i+1])}}}}return n.\u0275fac=function(t){return new(t||n)(g(rn),g(Le))},n.\u0275cmp=me({type:n,selectors:[["abs-navs-header"]],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})(),qD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=me({type:n,selectors:[["app-status-lower-header"]],decls:2,vars:0,template:function(t,i){1&t&&($(0,"p"),he(1,"status"),H())},encapsulation:2}),n})(),po=(()=>{class n{}return n.UNKNOWN=0,n.RESERVED=1,n.SYSSTATS=2,n.SPACESTATS=3,n.WIFI=4,n})(),ap=(()=>{class n{}return n.UNKNOWN=0,n.SELF=1,n.EXTERNAL=2,n})();class uc{static getRandom(e,t){return Math.random()*(t-e)+e}static getRandomRound(e,t){return Math.round(this.getRandom(e,t))}}let KD=(()=>{class n{constructor(){this.events=new ot("{}"),console.log("random data to ws create"),setInterval(()=>{this.events.next(JSON.stringify({event:po.SYSSTATS,device:ap.SELF,data:{cpu:uc.getRandom(0,99.9),mem:uc.getRandom(0,400)}})),this.events.next(JSON.stringify({event:po.SPACESTATS,device:ap.SELF,data:{free:uc.getRandom(0,40),total:50,format:"GB"}})),this.events.next(JSON.stringify({event:po.WIFI,device:ap.SELF,data:1==uc.getRandomRound(1,2)?{state:"Connected",ap:"nyk",ip:"192.168.1.2"}:{state:"Disconnected",ap:"",ip:""}}))},1e3)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function XB(n,e){if(1&n){const t=rs();$(0,"p",6),nt("click",function(){const o=Fo(t).$implicit;return Oo(rt().selectHeader(o))}),he(1),H()}if(2&n){const t=e.$implicit;Ct("inactiveHeader",!rt().isActiveHeader(t)),X(1),Pe(t.name)}}let lp,YD=(()=>{class n extends cc{constructor(t,i,r){super(t,i),this.ws=r,this.cpu=0,this.mem=0,this.wifi="",super.navs=[{name:"status",path:"status",action:()=>{},component:qD.name},{name:"2",path:"2",action:()=>{},component:""},{name:"3",path:"3",action:()=>{},component:""}]}ngOnInit(){this.ws.events.pipe(B(t=>JSON.parse(t))).subscribe(t=>{t.event==po.SYSSTATS&&(this.cpu=Math.round(t.data.cpu),this.mem=Math.round(t.data.mem)),t.event==po.WIFI&&(this.wifi=t.data.ip?`${t.data.state} to ${t.data.ap} (${t.data.ip})`:t.data.state)})}}return n.\u0275fac=function(t){return new(t||n)(g(rn),g(Le),g(KD))},n.\u0275cmp=me({type:n,selectors:[["app-stats-header"]],features:[U],decls:14,vars:4,consts:[[2,"display","flex","align-items","center","justify-content","flex-start","padding-left","45px"],["style","text-transform: uppercase;font-weight: bold; margin-bottom: 0; margin-top: 5px; padding-left: 5px",3,"inactiveHeader","click",4,"ngFor","ngForOf"],[1,"footer"],[2,"display","flex","justify-content","space-between","height","100%"],[1,"footer-text",2,"width","19.5%"],[1,"footer-text",2,"width","60%"],[2,"text-transform","uppercase","font-weight","bold","margin-bottom","0","margin-top","5px","padding-left","5px",3,"click"]],template:function(t,i){1&t&&($(0,"div",0),vt(1,XB,2,3,"p",1),H(),gn(2,"router-outlet"),$(3,"div",2)(4,"div",3)(5,"div",4)(6,"span"),he(7),H()(),$(8,"div",5)(9,"span"),he(10),H()(),$(11,"div",4)(12,"span"),he(13),H()()()()),2&t&&(X(1),bt("ngForOf",i.navs),X(6),Zi("CPU ",i.cpu,"%"),X(3),Pe(i.wifi),X(3),Zi("MEM ",i.mem,"MB"))},dependencies:[ii,or],encapsulation:2}),n})();try{lp=typeof Intl<"u"&&Intl.v8BreakIterator}catch{lp=!1}let Hs,sr,cp,Nn=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function g1(n){return n===aw}(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&&!lp)&&typeof CSS<"u"&&!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(zh))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function dc(n){return function JB(){if(null==Hs&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Hs=!0}))}finally{Hs=Hs||!1}return Hs}()?n:!!n.capture}function eH(){if(null==sr){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return sr=!1,sr;if("scrollBehavior"in document.documentElement.style)sr=!0;else{const n=Element.prototype.scrollTo;sr=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return sr}function up(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const e=n.shadowRoot.activeElement;if(e===n)break;n=e}return n}function ar(n){return n.composedPath?n.composedPath()[0]:n.target}function dp(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function XD(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function JD(n){return Et((e,t)=>n<=t)}function cH(n,e){return n===e}function hp(n){return Ae((e,t)=>{Mt(n).subscribe(ge(t,()=>t.complete(),oa)),!t.closed&&e.subscribe(t)})}function fc(n){return Array.isArray(n)?n:[n]}function qe(n){return null==n?"":"string"==typeof n?n:`${n}px`}function pc(n){return n instanceof $e?n.nativeElement:n}let hH=(()=>{class n{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),eE=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({providers:[hH]}),n})();class fH extends et{constructor(e,t){super()}schedule(e,t=0){return this}}const mc={setInterval(n,e,...t){const{delegate:i}=mc;return i?.setInterval?i.setInterval(n,e,...t):setInterval(n,e,...t)},clearInterval(n){const{delegate:e}=mc;return(e?.clearInterval||clearInterval)(n)},delegate:void 0};class fp extends fH{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var i;if(this.closed)return this;this.state=e;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,t)),this.pending=!0,this.delay=t,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,t),this}requestAsyncId(e,t,i=0){return mc.setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return t;null!=t&&mc.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(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:e,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,gr(i,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}}const pp={now:()=>(pp.delegate||Date).now(),delegate:void 0};class js{constructor(e,t=js.now){this.schedulerActionCtor=e,this.now=t}schedule(e,t=0,i){return new this.schedulerActionCtor(this,e).schedule(i,t)}}js.now=pp.now;class mp extends js{constructor(e,t=js.now){super(e,t),this.actions=[],this._active=!1}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}}}const gc=new mp(fp),pH=gc,tE=new Set;let go,gH=(()=>{class n{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):yH}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function _H(n){if(!tE.has(n))try{go||(go=document.createElement("style"),go.setAttribute("type","text/css"),document.head.appendChild(go)),go.sheet&&(go.sheet.insertRule(`@media ${n} {body{ }}`,0),tE.add(n))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return n.\u0275fac=function(t){return new(t||n)(y(Nn))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function yH(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let vH=(()=>{class n{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new ae}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return nE(fc(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let o=xf(nE(fc(t)).map(s=>this._registerQuery(s).observable));return o=Ms(o.pipe(Rt(1)),o.pipe(JD(1),function mH(n,e=gc){return Ae((t,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=o;o=null,i.next(c)}};function l(){const c=s+n,u=e.now();if(u{o=c,s=e.now(),r||(r=e.schedule(l,n),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}(0))),o.pipe(B(s=>{const a={matches:!1,breakpoints:{}};return s.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),o={observable:new be(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Hl(i),B(({matches:s})=>({query:t,matches:s})),hp(this._destroySubject)),mql:i};return this._queries.set(t,o),o}}return n.\u0275fac=function(t){return new(t||n)(y(gH),y(re))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function nE(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}let _c=(()=>{class n{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function DH(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const i=function wH(n){try{return n.frameElement}catch{return null}}(function RH(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(t));if(i&&(-1===sE(i)||!this.isVisible(i)))return!1;let r=t.nodeName.toLowerCase(),o=sE(t);return t.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function TH(n){let e=n.nodeName.toLowerCase(),t="input"===e&&n.type;return"text"===t||"password"===t||"select"===e||"textarea"===e}(t))&&("audio"===r?!!t.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,i){return function xH(n){return!function SH(n){return function AH(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function EH(n){let e=n.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(n)||function MH(n){return function IH(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||oE(n))}(t)&&!this.isDisabled(t)&&(i?.ignoreVisibility||this.isVisible(t))}}return n.\u0275fac=function(t){return new(t||n)(y(Nn))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function oE(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let e=n.getAttribute("tabindex");return!(!e||isNaN(parseInt(e,10)))}function sE(n){if(!oE(n))return null;const e=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class kH{constructor(e,t,i,r,o=!1){this._element=e,this._checker=t,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){const t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){const i=this._getFirstTabbableElement(t);return i?.focus(e),!!i}return t.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){const t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){const t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;const t=e.children;for(let i=0;i=0;i--){const r=t[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[i]):null;if(r)return r}return null}_createAnchor(){const e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Rt(1)).subscribe(e)}}let gp=(()=>{class n{constructor(t,i,r){this._checker=t,this._ngZone=i,this._document=r}create(t,i=!1){return new kH(t,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(t){return new(t||n)(y(_c),y(re),y(Q))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const PH=new E("cdk-input-modality-detector-options"),NH={ignoreKeys:[18,17,224,91,16]},_o=dc({passive:!0,capture:!0});let LH=(()=>{class n{constructor(t,i,r,o){this._platform=t,this._mostRecentTarget=null,this._modality=new ot(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ar(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(function FH(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}(s)?"keyboard":"mouse"),this._mostRecentTarget=ar(s))},this._onTouchstart=s=>{!function OH(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)}(s)?(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ar(s)):this._modality.next("keyboard")},this._options={...NH,...o},this.modalityDetected=this._modality.pipe(JD(1)),this.modalityChanged=this.modalityDetected.pipe(function lH(n,e=ui){return n=n??cH,Ae((t,i)=>{let r,o=!0;t.subscribe(ge(i,s=>{const a=e(s);(o||!n(r,a))&&(o=!1,r=a,i.next(s))}))})}()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,_o),r.addEventListener("mousedown",this._onMousedown,_o),r.addEventListener("touchstart",this._onTouchstart,_o)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,_o),document.removeEventListener("mousedown",this._onMousedown,_o),document.removeEventListener("touchstart",this._onTouchstart,_o))}}return n.\u0275fac=function(t){return new(t||n)(y(Nn),y(re),y(Q),y(PH,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const BH=new E("cdk-focus-monitor-default-options"),yc=dc({passive:!0,capture:!0});let _p=(()=>{class n{constructor(t,i,r,o,s){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 ae,this._rootNodeFocusAndBlurListener=a=>{for(let c=ar(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=s?.detectionMode||0}monitor(t,i=!1){const r=pc(t);if(!this._platform.isBrowser||1!==r.nodeType)return R(null);const o=function nH(n){if(function tH(){if(null==cp){const n=typeof document<"u"?document.head:null;cp=!(!n||!n.createShadowRoot&&!n.attachShadow)}return cp}()){const e=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new ae,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=pc(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 o=pc(t);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.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:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!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),o=ar(t);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),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,null))}_emitOrigin(t,i){t.subject.observers.length&&this._ngZone.run(()=>t.subject.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,yc),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,yc)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(hp(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!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,yc),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,yc),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,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,o)=>{(o===t||r.checkChildren&&o.contains(t))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(t){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===t||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||t.disabled)return!1;const o=t.labels;if(o)for(let s=0;s{class n{constructor(t,i){this._platform=t,this._document=i,this._breakpointSubscription=Se(vH).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}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,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(yp,lE,cE),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?t.add(yp,lE):2===i&&t.add(yp,cE)}}}return n.\u0275fac=function(t){return new(t||n)(y(Nn),y(Q))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),HH=(()=>{class n{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(t){return new(t||n)(y(uE))},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({imports:[eE]}),n})();const jH=["addListener","removeListener"],UH=["addEventListener","removeEventListener"],$H=["on","off"];function vp(n,e,t,i){if(oe(t)&&(i=t,t=void 0),i)return vp(n,e,t).pipe(Tf(i));const[r,o]=function GH(n){return oe(n.addEventListener)&&oe(n.removeEventListener)}(n)?UH.map(s=>a=>n[s](e,a,t)):function zH(n){return oe(n.addListener)&&oe(n.removeListener)}(n)?jH.map(dE(n,e)):function WH(n){return oe(n.on)&&oe(n.off)}(n)?$H.map(dE(n,e)):[];if(!r&&fu(n))return Ke(s=>vp(s,e,t))(Mt(n));if(!r)throw new TypeError("Invalid event target");return new be(s=>{const a=(...l)=>s.next(1o(a)})}function dE(n,e){return t=>i=>n[t](e,i)}const Us={schedule(n){let e=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:i}=Us;i&&(e=i.requestAnimationFrame,t=i.cancelAnimationFrame);const r=e(o=>{t=void 0,n(o)});return new et(()=>t?.(r))},requestAnimationFrame(...n){const{delegate:e}=Us;return(e?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:e}=Us;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};new class KH extends mp{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;e=e||i.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=i[0])&&e.id===t&&i.shift());if(this._active=!1,r){for(;(e=i[0])&&e.id===t&&i.shift();)e.unsubscribe();throw r}}}(class qH extends fp{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=Us.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(e,t,i);const{actions:o}=e;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(Us.cancelAnimationFrame(t),e._scheduled=void 0)}});let bp,ZH=1;const vc={};function hE(n){return n in vc&&(delete vc[n],!0)}const QH={setImmediate(n){const e=ZH++;return vc[e]=!0,bp||(bp=Promise.resolve()),bp.then(()=>hE(e)&&n()),e},clearImmediate(n){hE(n)}},{setImmediate:XH,clearImmediate:JH}=QH,bc={setImmediate(...n){const{delegate:e}=bc;return(e?.setImmediate||XH)(...n)},clearImmediate(n){const{delegate:e}=bc;return(e?.clearImmediate||JH)(n)},delegate:void 0};new class t2 extends mp{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;e=e||i.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=i[0])&&e.id===t&&i.shift());if(this._active=!1,r){for(;(e=i[0])&&e.id===t&&i.shift();)e.unsubscribe();throw r}}}(class e2 extends fp{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=bc.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(e,t,i);const{actions:o}=e;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(bc.clearImmediate(t),e._scheduled=void 0)}});function fE(n=0,e,t=pH){let i=-1;return null!=e&&(Jm(e)?t=e:i=e),new be(r=>{let o=function o2(n){return n instanceof Date&&!isNaN(n)}(n)?+n-t.now():n;o<0&&(o=0);let s=0;return t.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function pE(n,e=gc){return function r2(n){return Ae((e,t)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const c=r;r=null,t.next(c)}s&&t.complete()},l=()=>{o=null,s&&t.complete()};e.subscribe(ge(t,c=>{i=!0,r=c,o||Mt(n(c)).subscribe(o=ge(t,a,l))},()=>{s=!0,(!i||!o||o.closed)&&t.complete()}))})}(()=>fE(n,e))}const s2=new E("cdk-dir-doc",{providedIn:"root",factory:function a2(){return Se(Q)}}),l2=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Cp=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new Me,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function c2(n){const e=n?.toLowerCase()||"";return"auto"===e&&typeof navigator<"u"&&navigator?.language?l2.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(s2,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$s=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({}),n})(),d2=(()=>{class n{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new ae,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 be(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(pE(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):R()}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(Et(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,t)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=pc(i),o=t.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>vp(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(re),y(Nn),y(Q,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mE=(()=>{class n{constructor(t,i,r){this._platform=t,this._change=new ae,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.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,o=r.getBoundingClientRect();return{top:-o.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(pE(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(Nn),y(re),y(Q,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gE=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({}),n})(),_E=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({imports:[$s,gE,$s,gE]}),n})();class wp{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 Dp extends wp{constructor(e,t,i,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r}}class yE extends wp{constructor(e,t,i,r){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i,this.injector=r}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 f2 extends wp{constructor(e){super(),this.element=e instanceof $e?e.nativeElement:e}}class Ep{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof Dp?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof yE?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof f2?(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)}}class p2 extends Ep{constructor(e,t,i,r,o){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}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||Qe.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,{injector:e.injector});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 Sp=(()=>{class n extends Ep{constructor(t,i,r){super(),this._componentFactoryResolver=t,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Me,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const i=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,o=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),s=i.createComponent(o,i.length,t.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=t,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(t){t.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return n.\u0275fac=function(t){return new(t||n)(g(Gi),g(en),g(Q))},n.\u0275dir=P({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[U]}),n})(),Cc=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({}),n})();const vE=eH();class m2{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=qe(-this._previousScrollPosition.left),e.style.top=qe(-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,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),vE&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),vE&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_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 g2{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 bE{enable(){}disable(){}attach(){}}function Mp(n,e){return e.some(t=>n.bottomt.bottom||n.rightt.right)}function CE(n,e){return e.some(t=>n.topt.bottom||n.leftt.right)}class _2{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();Mp(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 y2=(()=>{class n{constructor(t,i,r,o){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new bE,this.close=s=>new g2(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new m2(this._viewportRuler,this._document),this.reposition=s=>new _2(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(t){return new(t||n)(y(d2),y(mE),y(re),y(Q))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class wE{constructor(e){if(this.scrollStrategy=new bE,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 v2{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}let DE=(()=>{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(Q))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),b2=(()=>{class n extends DE{constructor(t,i){super(t),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._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(Q),y(re,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),C2=(()=>{class n extends DE{constructor(t,i,r){super(t),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=ar(o)},this._clickListener=o=>{const s=ar(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;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(s)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(o)):d.next(o)}}}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(Q),y(Nn),y(re,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wc=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||dp()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;othis._backdropClick.next(d),this._backdropTransitionendHandler=d=>{this._disposeBackdrop(d.target)},this._keydownEvents=new ae,this._outsidePointerEvents=new ae,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(Rt(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),"function"==typeof t?.onDestroy&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),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(){const e=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),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&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={...this._config,...e},this._updateElementSize()}setDirection(e){this._config={...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=qe(this._config.width),e.height=qe(this._config.height),e.minWidth=qe(this._config.minWidth),e.minHeight=qe(this._config.minHeight),e.maxWidth=qe(this._config.maxWidth),e.maxHeight=qe(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._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?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){if(this._animationsDisabled)return void this._disposeBackdrop(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=fc(t||[]).filter(o=>!!o);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(hp(mu(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)}}const EE="cdk-overlay-connected-position-bounding-box",w2=/([A-Za-z%]+)$/;class D2{constructor(e,t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o,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 ae,this._resizeSubscription=et.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(EE),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,o=[];let s;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)?o.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(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(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&lr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(EE),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,o;if("center"==i.originX)r=e.left+e.width/2;else{const s=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==i.originX?s:a}return t.left<0&&(r-=t.left),o="center"==i.originY?e.top+e.height/2:"top"==i.originY?e.top:e.bottom,t.top<0&&(o-=t.top),{x:r,y:o}}_getOverlayPoint(e,t,i){let r,o;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,o="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+r,y:e.y+o}}_getOverlayFit(e,t,i,r){const o=ME(t);let{x:s,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+o.height-i.height,p=this._subtractOverflows(o.width,0-s,s+o.width-i.width),m=this._subtractOverflows(o.height,h,f),_=p*m;return{visibleArea:_,isCompletelyWithinViewport:o.width*o.height===_,fitsInViewportVertically:m===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,o=i.right-t.x,s=SE(this._overlayRef.getConfig().minHeight),a=SE(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=o;return(e.fitsInViewportVertically||null!=s&&s<=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=ME(t),o=this._viewportRect,s=Math.max(e.x+r.width-o.width,0),a=Math.max(e.y+r.height-o.height,0),l=Math.max(o.top-i.top-e.y,0),c=Math.max(o.left-i.left-e.x,0);let u=0,d=0;return u=r.width<=o.width?c||-s:e.xp&&!this._isInitialRender&&!this._growAfterOpen&&(s=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:s,left:d,bottom:a,right:h,width:u,height:o}}_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 o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=qe(i.height),r.top=qe(i.top),r.bottom=qe(i.bottom),r.width=qe(i.width),r.left=qe(i.left),r.right=qe(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",o&&(r.maxHeight=qe(o)),s&&(r.maxWidth=qe(s))}this._lastBoundingBoxSize=i,lr(this._boundingBox.style,r)}_resetBoundingBoxStyles(){lr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){lr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();lr(i,this._getExactOverlayY(t,e,u)),lr(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(),s.maxHeight&&(r?i.maxHeight=qe(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=qe(s.maxWidth):o&&(i.maxWidth="")),lr(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=qe(o.y),r}_getExactOverlayX(e,t,i){let s,r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=qe(o.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:CE(e,i),isOriginOutsideView:Mp(e,i),isOverlayClipped:CE(t,i),isOverlayOutsideView:Mp(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?e.offsetX??this._offsetX:e.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&fc(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 $e)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 lr(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function SE(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(w2);return t&&"px"!==t?null:parseFloat(e)}return n||null}function ME(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 AE="cdk-global-overlay-wrapper";class E2{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}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(AE),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="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._xPosition="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:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,d=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",p="",m="";l?m="flex-start":"center"===u?(m="center",h?p=d:f=d):h?"left"===u||"end"===u?(m="flex-end",f=d):("right"===u||"start"===u)&&(m="flex-start",p=d):"left"===u||"start"===u?(m="flex-start",f=d):("right"===u||"end"===u)&&(m="flex-end",p=d),e.position=this._cssPosition,e.marginLeft=l?"0":f,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":p,t.justifyContent=m,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(AE),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let S2=(()=>{class n{constructor(t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new E2}flexibleConnectedTo(t){return new D2(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(y(mE),y(Q),y(Nn),y(wc))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),M2=0,yo=(()=>{class n{constructor(t,i,r,o,s,a,l,c,u,d,h,f){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new wE(t);return s.direction=s.direction||this._directionality.value,new zs(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+M2++,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(ro)),new p2(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(y(y2),y(wc),y(Gi),y(S2),y(b2),y(Qe),y(re),y(Q),y(Cp),y(bs),y(C2),y(pl,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const T2={provide:new E("cdk-connected-overlay-scroll-strategy"),deps:[yo],useFactory:function I2(n){return()=>n.scrollStrategies.reposition()}};let IE=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({providers:[yo,T2],imports:[$s,Cc,_E,_E]}),n})();function x2(n,e){}class Dc{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let TE=(()=>{class n extends Ep{constructor(t,i,r,o,s,a,l,c){super(),this._elementRef=t,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const d=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),d},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),i}attachTemplatePortal(t){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,i){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{t.removeEventListener("blur",r),t.removeEventListener("mousedown",r),t.removeAttribute("tabindex")};t.addEventListener("blur",r),t.addEventListener("mousedown",r)})),t.focus(i)}_focusByCssSelector(t,i){let r=this._elementRef.nativeElement.querySelector(t);r&&this._forceFocus(r,i)}_trapFocus(){const t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const t=this._config.restoreFocus;let i=null;if("string"==typeof t?i=this._document.querySelector(t):"boolean"==typeof t?i=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(i=t),this._config.restoreFocus&&i&&"function"==typeof i.focus){const r=up(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,i=up();return t===i||t.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=up())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(t){return new(t||n)(g($e),g(gp),g(Q,8),g(Dc),g(_c),g(re),g(zs),g(_p))},n.\u0275cmp=me({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(t,i){if(1&t&&Lh(Sp,7),2&t){let r;ps(r=ms())&&(i._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,i){2&t&&Ut("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[U],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){1&t&&vt(0,x2,0,0,"ng-template",0)},dependencies:[Sp],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class Ap{constructor(e,t){this.overlayRef=e,this.config=t,this.closed=new ae,this.disableClose=t.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!XD(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(e,t){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this.overlayRef.dispose(),i.next(e),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",t=""){return this.overlayRef.updateSize({width:e,height:t}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}}const xE=new E("DialogScrollStrategy"),R2=new E("DialogData"),k2=new E("DefaultDialogConfig"),O2={provide:xE,deps:[yo],useFactory:function F2(n){return()=>n.scrollStrategies.block()}};let P2=0,RE=(()=>{class n{constructor(t,i,r,o,s,a){this._overlay=t,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ae,this._afterOpenedAtThisLevel=new ae,this._ariaHiddenElements=new Map,this.afterAllClosed=Bl(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Hl(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(t,i){(i={...this._defaultOptions||new Dc,...i}).id=i.id||"cdk-dialog-"+P2++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new Ap(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(t,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){Ip(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(i=>i.id===t)}ngOnDestroy(){Ip(this._openDialogsAtThisLevel,t=>{!1===t.config.closeOnDestroy&&this._removeOpenDialog(t,!1)}),Ip(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){const i=new wE({positionStrategy:t.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(i.backdropClass=t.backdropClass),i}_attachContainer(t,i,r){const o=r.injector||r.viewContainerRef?.injector,s=[{provide:Dc,useValue:r},{provide:Ap,useValue:i},{provide:zs,useValue:t}];let a;r.container?"function"==typeof r.container?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=TE;const l=new Dp(a,r.viewContainerRef,Qe.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return t.attach(l).instance}_attachDialogContent(t,i,r,o){if(t instanceof Rn){const s=this._createInjector(o,i,r,void 0);let a={$implicit:o.data,dialogRef:i};o.templateContext&&(a={...a,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new yE(t,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new Dp(t,o.viewContainerRef,s,o.componentFactoryResolver));i.componentInstance=a.instance}}_createInjector(t,i,r,o){const s=t.injector||t.viewContainerRef?.injector,a=[{provide:R2,useValue:t.data},{provide:Ap,useValue:i}];return t.providers&&("function"==typeof t.providers?a.push(...t.providers(i,t,r)):a.push(...t.providers)),t.direction&&(!s||!s.get(Cp,null,F.Optional))&&a.push({provide:Cp,useValue:{value:t.direction,change:R()}}),Qe.create({parent:s||o,providers:a})}_removeOpenDialog(t,i){const r=this.openDialogs.indexOf(t);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const i=t.parentElement.children;for(let r=i.length-1;r>-1;r--){const o=i[r];o!==t&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(t){return new(t||n)(y(yo),y(Qe),y(k2,8),y(n,12),y(wc),y(xE))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();function Ip(n,e){let t=n.length;for(;t--;)e(n[t])}let N2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({providers:[RE,O2],imports:[IE,Cc,HH,Cc]}),n})();const V2=new E("mat-sanity-checks",{providedIn:"root",factory:function L2(){return!0}});let wn=(()=>{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!dp()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(y(uE),y(V2,8),y(Q))},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({imports:[$s,$s]}),n})();function B2(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)}}}let j2=(()=>{class n{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),W2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({imports:[wn,wn]}),n})();class LE{}const ai="*";function VE(n,e){return{type:7,name:n,definitions:e,options:{}}}function xp(n,e=null){return{type:4,styles:e,timings:n}}function BE(n,e=null){return{type:3,steps:n,options:e}}function HE(n,e=null){return{type:2,steps:n,options:e}}function Si(n){return{type:6,styles:n,offset:null}}function Rp(n,e,t){return{type:0,name:n,styles:e,options:t}}function kp(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function jE(n=null){return{type:9,options:n}}function UE(n,e,t=null){return{type:11,selector:n,animation:e,options:t}}function $E(n){Promise.resolve().then(n)}class Gs{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],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._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(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(){$E(()=>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,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}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 zE{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 o=this.players.length;0==o?$E(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,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}}function q2(n,e){}const vo={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},K2={dialogContainer:VE("dialogContainer",[Rp("void, exit",Si({opacity:0,transform:"scale(0.7)"})),Rp("enter",Si({transform:"none"})),kp("* => enter",BE([xp("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Si({transform:"none",opacity:1})),UE("@*",jE(),{optional:!0})]),vo),kp("* => void, * => exit",BE([xp("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Si({opacity:0})),UE("@*",jE(),{optional:!0})]),vo)])};class Ec{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=vo.params.enterAnimationDuration,this.exitAnimationDuration=vo.params.exitAnimationDuration}}let Y2=(()=>{class n extends TE{constructor(t,i,r,o,s,a,l,c){super(t,i,r,o,s,a,l,c),this._animationStateChanged=new Me}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}}return n.\u0275fac=function(t){return new(t||n)(g($e),g(gp),g(Q,8),g(Ec),g(_c),g(re),g(zs),g(_p))},n.\u0275cmp=me({type:n,selectors:[["ng-component"]],features:[U],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})(),Z2=(()=>{class n extends Y2{constructor(t,i,r,o,s,a,l,c,u){super(t,i,r,o,s,a,l,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:t,totalTime:i}){"enter"===t?this._openAnimationDone(i):"exit"===t&&this._animationStateChanged.next({state:"closed",totalTime:i})}_onAnimationStart({toState:t,totalTime:i}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||vo.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||vo.params.exitAnimationDuration}}}}return n.\u0275fac=function(t){return new(t||n)(g($e),g(gp),g(Q,8),g(Ec),g(_c),g(re),g(zs),g(ys),g(_p))},n.\u0275cmp=me({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(t,i){1&t&&ph("@dialogContainer.start",function(o){return i._onAnimationStart(o)})("@dialogContainer.done",function(o){return i._onAnimationDone(o)}),2&t&&(vh("id",i._config.id),Ut("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),bh("@dialogContainer",i._getAnimationState()))},features:[U],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){1&t&&vt(0,q2,0,0,"ng-template",0)},dependencies:[Sp],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[K2.dialogContainer]}}),n})();class WE{constructor(e,t,i){this._ref=e,this._containerInstance=i,this._afterOpened=new ae,this._beforeClosed=new ae,this._state=0,this.disableClose=t.disableClose,this.id=e.id,i._animationStateChanged.pipe(Et(r=>"opened"===r.state),Rt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Et(r=>"closed"===r.state),Rt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),mu(this.backdropClick(),this.keydownEvents().pipe(Et(r=>27===r.keyCode&&!this.disableClose&&!XD(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function Q2(n,e,t){n._closeInteractionType=e,n.close(t)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(Et(t=>"closing"===t.state),Rt(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let t=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",t=""){return this._ref.updateSize(e,t),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const GE=new E("MatDialogData"),X2=new E("mat-dialog-default-options"),qE=new E("mat-dialog-scroll-strategy"),ej={provide:qE,deps:[yo],useFactory:function J2(n){return()=>n.scrollStrategies.block()}};let tj=0,nj=(()=>{class n{constructor(t,i,r,o,s,a,l,c,u,d){this._overlay=t,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ae,this._afterOpenedAtThisLevel=new ae,this._idPrefix="mat-dialog-",this.afterAllClosed=Bl(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Hl(void 0))),this._scrollStrategy=a,this._dialog=i.get(RE)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,i){let r;(i={...this._defaultOptions||new Ec,...i}).id=i.id||`${this._idPrefix}${tj++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(t,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Ec,useValue:i},{provide:Dc,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(i=>i.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let i=t.length;for(;i--;)t[i].close()}}return n.\u0275fac=function(t){Wa()},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),Sc=(()=>{class n extends nj{constructor(t,i,r,o,s,a,l,c){super(t,i,o,a,l,s,WE,Z2,GE,c)}}return n.\u0275fac=function(t){return new(t||n)(y(yo),y(Qe),y(bs,8),y(X2,8),y(qE),y(n,12),y(wc),y(pl,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),Op=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=P({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),ij=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({providers:[Sc,ej],imports:[N2,IE,Cc,wn,wn]}),n})(),Mi=(()=>{class n{constructor(){this.keys=new ot("")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pp=(()=>{class n{constructor(t,i,r,o){this.data=t,this.ref=i,this.sanitazer=r,this.io=o}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}ngOnInit(){this.sub=this.io.keys.subscribe(t=>{"Enter"==t&&this.ref.close()})}}return n.\u0275fac=function(t){return new(t||n)(g(GE),g(WE),g(Ll),g(Mi))},n.\u0275cmp=me({type:n,selectors:[["app-abs-app"]],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})(),rj=(()=>{class n extends Pp{constructor(){super(...arguments),this.clockTxt="",this.inverval=null}ngOnInit(){super.ngOnInit(),this.genClock(),null==this.inverval&&(this.inverval=setInterval(()=>{this.genClock()},1e3))}genClock(){this.clockTxt=(new Date).toLocaleTimeString()}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ue(n)))(i||n)}}(),n.\u0275cmp=me({type:n,selectors:[["app-clock-app"]],features:[U],decls:4,vars:1,consts:[["mat-dialog-content",""],[2,"display","flex","justify-content","center"],[2,"font-family","TechMono, sans-serif","font-size","60px"]],template:function(t,i){1&t&&($(0,"div",0)(1,"div",1)(2,"p",2),he(3),H()()()),2&t&&(X(3),Pe(i.clockTxt))},dependencies:[Op],encapsulation:2}),n})(),oj=(()=>{class n extends Pp{constructor(){super(...arguments),this.content={}}ngOnInit(){super.ngOnInit(),this.content.url=this.sanitazer.bypassSecurityTrustResourceUrl(this.data.url)}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ue(n)))(i||n)}}(),n.\u0275cmp=me({type:n,selectors:[["iframe-opener"]],features:[U],decls:2,vars:1,consts:[["mat-dialog-content",""],["width","100%","height","100%",3,"src"]],template:function(t,i){1&t&&($(0,"div",0),gn(1,"iframe",1),H()),2&t&&(X(1),bt("src",i.content.url,Sd))},dependencies:[Op]}),n})();const sj=["menuItem"];let Mc=(()=>{class n{constructor(){this.elements=[],this.elementsRight=[],this.currentSide="LEFT"}isSelected(t){const i=t==this.selected;if(i&&this.menuItems){const r=this.menuItems.toArray(),o=this.elements.indexOf(this.selected);-1!==o&&r[o]&&r[o].nativeElement.scrollIntoView({behavior:"smooth",block:"center"})}return i}choiceItem(t){switch(this.currentSide){case"LEFT":return this.choiceLeft(t);case"RIGHT":return this.choiceRight(t)}}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}choiceLeft(t){if("LEFT"!=this.currentSide)return;let i=this.elements.indexOf(this.selected);switch(t){case"KeyS":i+1>=this.elements.length&&(i=-1),this.selected=this.elements[i+1];break;case"KeyW":i-1<0&&(i=this.elements.length),this.selected=this.elements[i-1];break;case"Enter":this.selected.action()}}choiceRight(t){if("RIGHT"!=this.currentSide)return;let i=this.elementsRight.indexOf(this.selectedRight);switch(t){case"KeyS":i+1>=this.elementsRight.length&&(i=-1),this.selectedRight=this.elementsRight[i+1];break;case"KeyW":i-1<0&&(i=this.elementsRight.length),this.selectedRight=this.elementsRight[i-1];break;case"Enter":this.selectedRight.action()}}ngOnInit(){throw new Error("need impl")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=me({type:n,selectors:[["ng-component"]],viewQuery:function(t,i){if(1&t&&Lh(sj,5),2&t){let r;ps(r=ms())&&(i.menuItems=r)}},decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})();function aj(n,e){if(1&n&&($(0,"p",5),he(1),H()),2&n){const t=e.$implicit,i=e.index,r=rt().index,o=rt();gh("text-transform",o.caps?"uppercase":""),Ct("keyboard_current",o.isCurrentKey(r,i)),X(1),Pe(t)}}function lj(n,e){if(1&n&&($(0,"div",3),vt(1,aj,2,5,"p",4),H()),2&n){const t=e.$implicit;X(1),bt("ngForOf",t)}}let KE=(()=>{class n extends Pp{constructor(){super(...arguments),this.keyboard=[],this.keyboards={ru:["\u0439\u0446\u0443\u043a\u0435\u043d\u0433\u0448\u0449\u0437\u0445\u044a".split(""),"\u0444\u044b\u0432\u0430\u043f\u0440\u043e\u043b\u0434\u0436\u044d".split(""),"\u044f\u0447\u0441\u043c\u0438\u0442\u044c\u0431\u044e.,".split("")],en:["qwertyuiop[]".split(""),"asdfghjkl;'\"".split(""),"zxcvbnm,./".split("")]},this.current="ru",this.text="",this.caps=!1,this.x=0,this.y=0}isCurrentKey(t,i){return t==this.x&&i==this.y}createKeyboard(){this.x=0,this.y=0,this.keyboard=[],this.keyboard.push("1234567890-=".split("").concat(["<--"])),this.keyboards[this.current].forEach(t=>{this.keyboard.push(t)}),this.keyboard.push(["change","caps","space","wipe","exit","save"])}closeKeyboard(t=!1){this.ref.close(t?this.text:null)}ngOnInit(){this.createKeyboard(),this.sub=this.io.keys.subscribe(t=>{switch(t){case"KeyW":return this.x<=0&&(this.x=this.keyboard.length),this.x--,void(this.keyboard[this.x].length=this.keyboard.length-1&&(this.x=-1),this.x++,this.keyboard[this.x].length=this.keyboard[this.x].length-1&&(this.y=-1),this.y++;break;case"Enter":{const i=this.keyboard[this.x][this.y];switch(i){case"change":switch(this.current){case"en":this.current="ru";break;case"ru":this.current="en"}this.createKeyboard();break;case"caps":this.caps=!this.caps;break;case"wipe":this.text="";break;case"space":this.text+=" ";break;case"exit":this.closeKeyboard();break;case"save":this.closeKeyboard(!0);break;case"<--":this.text=this.text.slice(0,-1);break;default:this.text+=this.caps?i.toUpperCase():i}break}}})}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ue(n)))(i||n)}}(),n.\u0275cmp=me({type:n,selectors:[["app-keyboard"]],features:[U],decls:7,vars:2,consts:[["mat-dialog-content",""],[2,"display","flex","justify-content","center","height","150px","word-break","break-all","align-items","center","border","1px solid rgb(0 242 0 / 30%)"],["style","display: flex; flex-direction: row; justify-content: space-between",4,"ngFor","ngForOf"],[2,"display","flex","flex-direction","row","justify-content","space-between"],["class","keyboard_key",3,"keyboard_current","text-transform",4,"ngFor","ngForOf"],[1,"keyboard_key"]],template:function(t,i){1&t&&($(0,"div",0)(1,"div")(2,"div",1)(3,"p"),he(4),H()(),$(5,"div"),vt(6,lj,2,1,"div",2),H()()()),2&t&&(X(4),Pe(i.text),X(2),bt("ngForOf",i.keyboard))},dependencies:[ii,Op],encapsulation:2}),n})(),Np=(()=>{class n{constructor(t){this.dialog=t,this.inApp=!1}openApp(t,i={}){return this.inApp=!0,this.dialog.open(t,{width:"100%",height:"100%",disableClose:!0,data:i}).afterClosed()}openKeyboard(){return this.openApp(KE)}}return n.\u0275fac=function(t){return new(t||n)(y(Sc))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class cj{}class Ai{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),o=r.toLowerCase(),s=t.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{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 Ai?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 Ai;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Ai?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 o=e.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}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 uj{encodeKey(e){return ZE(e)}encodeValue(e){return ZE(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const hj=/%(\d[a-f0-9])/gi,fj={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ZE(n){return encodeURIComponent(n).replace(hj,(e,t)=>fj[t]??e)}function Ac(n){return`${n}`}class Ii{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new uj,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function dj(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const i=e.fromObject[t],r=Array.isArray(i)?i.map(Ac):[Ac(i)];this.map.set(t,r)})):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(o=>{t.push({param:i,value:o,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 Ii({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(Ac(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(Ac(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 pj{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 QE(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function XE(n){return typeof Blob<"u"&&n instanceof Blob}function JE(n){return typeof FormData<"u"&&n instanceof FormData}class qs{constructor(e,t,i,r){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function mj(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,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Ai),this.context||(this.context=new pj),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ad.set(h,e.setHeaders[h]),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((d,h)=>d.set(h,e.setParams[h]),c)),new qs(t,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var at=(()=>((at=at||{})[at.Sent=0]="Sent",at[at.UploadProgress=1]="UploadProgress",at[at.ResponseHeader=2]="ResponseHeader",at[at.DownloadProgress=3]="DownloadProgress",at[at.Response=4]="Response",at[at.User=5]="User",at))();class Lp extends class _j{constructor(e,t=200,i="OK"){this.headers=e.headers||new Ai,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=at.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Lp({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 Vp(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 t0=(()=>{class n{constructor(t){this.handler=t}request(t,i,r={}){let o;if(t instanceof qs)o=t;else{let l,c;l=r.headers instanceof Ai?r.headers:new Ai(r.headers),r.params&&(c=r.params instanceof Ii?r.params:new Ii({fromObject:r.params})),o=new qs(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 s=R(o).pipe(Di(l=>this.handler.handle(l)));if(t instanceof qs||"events"===r.observe)return s;const a=s.pipe(Et(l=>l instanceof Lp));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(B(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(B(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(B(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(B(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 Ii).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,Vp(r,i))}post(t,i,r={}){return this.request("POST",t,Vp(r,i))}put(t,i,r={}){return this.request("PUT",t,Vp(r,i))}}return n.\u0275fac=function(t){return new(t||n)(y(cj))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const vj=["*"];let Ic;function Ks(n){return function bj(){if(void 0===Ic&&(Ic=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(Ic=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return Ic}()?.createHTML(n)||n}function n0(n){return Error(`Unable to find icon with the name "${n}"`)}function r0(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function o0(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class cr{constructor(e,t,i){this.url=e,this.svgText=t,this.options=i}}let Tc=(()=>{class n{constructor(t,i,r,o){this._httpClient=t,this._sanitizer=i,this._errorHandler=o,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","mat-ligature-font"],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,o){return this._addSvgIconConfig(t,i,new cr(r,null,o))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,r,o){const s=this._sanitizer.sanitize(ue.HTML,r);if(!s)throw o0(r);const a=Ks(s);return this._addSvgIconConfig(t,i,new cr("",a,o))}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 cr(i,null,r))}addSvgIconSetLiteralInNamespace(t,i,r){const o=this._sanitizer.sanitize(ue.HTML,i);if(!o)throw o0(i);const s=Ks(o);return this._addSvgIconSetConfig(t,new cr("",s,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(ue.RESOURCE_URL,t);if(!i)throw r0(t);const r=this._cachedIconsByUrl.get(i);return r?R(xc(r)):this._loadSvgIconFromConfig(new cr(t,null)).pipe(Ge(o=>this._cachedIconsByUrl.set(i,o)),B(o=>xc(o)))}getNamedSvgIcon(t,i=""){const r=s0(i,t);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,t),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(t,s):oo(n0(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?R(xc(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(B(i=>xc(i)))}_getSvgFromIconSetConfigs(t,i){const r=this._extractIconWithNameFromAnySet(t,i);return r?R(r):function YE(...n){const e=eg(n),{args:t,keys:i}=Fw(n),r=new be(o=>{const{length:s}=t;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(i?Ow(i,a):a),o.complete())}))}});return e?r.pipe(Tf(e)):r}(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(ri(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(ue.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),R(null)})))).pipe(B(()=>{const s=this._extractIconWithNameFromAnySet(t,i);if(!s)throw n0(t);return s}))}_extractIconWithNameFromAnySet(t,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(t)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,t,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Ge(i=>t.svgText=i),B(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?R(null):this._fetchIcon(t).pipe(Ge(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,r){const o=t.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString(Ks(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(t){const i=this._document.createElement("DIV");i.innerHTML=t;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(t){const i=this._svgElementFromString(Ks("")),r=t.attributes;for(let o=0;oKs(c)),Ul(()=>this._inProgressUrlFetches.delete(s)),rg());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(t,i,r){return this._svgIconConfigs.set(s0(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;re?e.pathname+e.search:""}}}),a0=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Ij=a0.map(n=>`[${n}]`).join(", "),Tj=/^url\(['"]?#(.*?)['"]?\)$/;let l0=(()=>{class n extends Ej{constructor(t,i,r,o,s,a){super(t),this._iconRegistry=i,this._location=o,this._errorHandler=s,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=et.EMPTY,a&&(a.color&&(this.color=this.defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=function uH(n){return null!=n&&"false"!=`${n}`}(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).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>t.classList.remove(r)),i.forEach(r=>t.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(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,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${t}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(t){const i=t.querySelectorAll(Ij),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],l=a.getAttribute(s),c=l?l.match(Tj):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:s,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(Rt(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return n.\u0275fac=function(t){return new(t||n)(g($e),g(Tc),Ir("aria-hidden"),g(Mj),g(Yn),g(Sj,8))},n.\u0275cmp=me({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(t,i){2&t&&(Ut("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),Ct("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:[U],ngContentSelectors:vj,decls:1,vars:0,template:function(t,i){1&t&&(function cv(n){const e=w()[16][6];if(!e.projection){const i=e.projection=Uo(n?n.length:1,null),r=i.slice();let o=e.child;for(;null!==o;){const s=n?mk(o,n):0;null!==s&&(r[s]?r[s].projectionNext=o:i[s]=o,r[s]=o),o=o.next}}}(),function uv(n,e=0,t){const i=w(),r=ie(),o=Ur(r,22+n,16,null,t||null);null===o.projection&&(o.projection=e),Ou(),64!=(64&o.flags)&&function TT(n,e,t){x_(e[q],0,e,t,C_(n,t,e),S_(t.parent||e[6],t,e))}(r,i,o)}(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),n})(),xj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({imports:[wn,wn]}),n})();function Rj(n,e){if(1&n&&($(0,"div")(1,"p",6),he(2),H()()),2&n){const t=e.$implicit;Ct("menu-selected",t==rt().selected),X(2),Pe(t.name)}}function kj(n,e){if(1&n&&($(0,"mat-icon",7),he(1),H()),2&n){const t=rt();X(1),Pe(t.selected.icon)}}let c0=(()=>{class n extends Mc{constructor(t,i,r){super(),this.dialog=t,this.io=i,this.apps=r,this.elements=[{name:"Clock",action:()=>{this.openApp(rj)},matIcon:!0,icon:"access_time",about:"\u0417\u0430\u0431\u044b\u0442\u044b\u0435 \u0447\u0430\u0441\u044b \u0441\u0430\u043c\u043e\u0433\u043e \u0442\u043e\u0434\u0434\u0430 \u0433\u043e\u0432\u0430\u0440\u0434\u0430. \u041e\u043d \u0437\u0430\u0431\u044b\u043b \u0438\u0445 \u0432 \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u0442\u043d\u043e\u0439 \u0438\u0433\u0440\u0435 \u043a\u0430\u043b\u043b\u0430\u0443\u044276."},{name:"KeyboardTest",action:()=>{this.openApp(KE)},matIcon:!0,icon:"help",about:"Keyboard input test"},{name:"Rick Roll",action:()=>{this.openApp(oj,{url:"https://youtu.be/dQw4w9WgXcQ?output=embed"})},matIcon:!0,icon:"record_voice_over",about:"\u041d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043b\u0443\u0447\u0448\u0435 \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0440\u0438\u043a\u0440\u043e\u043b\u043b\u0430"}],this.selected=this.elements[0]}createSub(){this.sub=this.io.keys.subscribe(t=>{this.apps.inApp||super.choiceItem(t)})}ngOnInit(){this.createSub()}openApp(t,i={}){this.apps.inApp=!0,this.dialog.open(t,{width:"100%",height:"100%",disableClose:!0,data:i}).afterClosed().subscribe(()=>this.apps.inApp=!1)}}return n.\u0275fac=function(t){return new(t||n)(g(Sc),g(Mi),g(Np))},n.\u0275cmp=me({type:n,selectors:[["app-inventory-apps-component"]],features:[U],decls:9,vars:3,consts:[[2,"display","flex","flex-direction","row","justify-content","center","height","84%"],[2,"width","45%"],[3,"menu-selected",4,"ngFor","ngForOf"],[2,"width","45%","display","flex","flex-direction","column"],[2,"text-align","center"],["class","rotating-image","style","font-size: 100px; height: 100px; width: 100px",4,"ngIf"],[2,"margin","0 0"],[1,"rotating-image",2,"font-size","100px","height","100px","width","100px"]],template:function(t,i){1&t&&($(0,"div",0)(1,"div",1),vt(2,Rj,3,3,"div",2),H(),$(3,"div",3)(4,"div",4),vt(5,kj,2,1,"mat-icon",5),H(),$(6,"div")(7,"p"),he(8),H()()()()),2&t&&(X(2),bt("ngForOf",i.elements),X(3),bt("ngIf",i.selected.matIcon),X(3),Pe(i.selected.about))},dependencies:[ii,nw,l0],encapsulation:2}),n})(),u0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=me({type:n,selectors:[["app-inventory-custom"]],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})();function Fj(n,e){if(1&n){const t=rs();$(0,"p",7),nt("click",function(){const o=Fo(t).$implicit;return Oo(rt().selectHeader(o))}),he(1),H()}if(2&n){const t=e.$implicit;Ct("inactiveHeader",!rt().isActiveHeader(t)),X(1),Pe(t.name)}}let d0=(()=>{class n extends cc{constructor(t,i,r,o,s){super(t,i),this.ws=r,this.io=o,this.apps=s,this.free=0,this.total=0,this.format="",this.path="inventory",super.navs=[{name:"apps",path:"apps",action:()=>{},component:c0.name},{name:"custom",path:"custom",action:()=>{},component:u0.name}]}selectHeader(t){super.selectHeader(t,[this.path])}ngOnInit(){this.ws.events.pipe(B(t=>JSON.parse(t))).subscribe(t=>{t.event==po.SPACESTATS&&(this.free=Math.round(t.data.free),this.total=Math.round(t.data.total),this.format=t.data.format)}),this.sub=this.io.keys.subscribe(t=>{this.apps.inApp||super.choiceHeader(t)})}}return n.\u0275fac=function(t){return new(t||n)(g(rn),g(Le),g(KD),g(Mi),g(Np))},n.\u0275cmp=me({type:n,selectors:[["app-inv-header"]],features:[U],decls:15,vars:4,consts:[[2,"display","flex","align-items","center","justify-content","flex-start","padding-left","45px"],["style","text-transform: uppercase;font-weight: bold; margin-bottom: 0; margin-top: 5px; padding-left: 5px",3,"inactiveHeader","click",4,"ngFor","ngForOf"],[2,"padding-top","2.5%"],[1,"footer"],[2,"display","flex","justify-content","space-between","height","100%"],[1,"footer-text",2,"width","19.5%"],[1,"footer-text",2,"width","60%"],[2,"text-transform","uppercase","font-weight","bold","margin-bottom","0","margin-top","5px","padding-left","5px",3,"click"]],template:function(t,i){1&t&&($(0,"div",0),vt(1,Fj,2,3,"p",1),H(),$(2,"div",2),gn(3,"router-outlet"),H(),$(4,"div",3)(5,"div",4)(6,"div",5)(7,"span"),he(8),H()(),$(9,"div",5)(10,"span"),he(11,"\u0445\u0437 \u0447\u0442\u043e \u0442\u0443\u0442 \u043d\u0430\u0434\u043e"),H()(),$(12,"div",6)(13,"span"),he(14,"nigger"),H()()()()),2&t&&(X(1),bt("ngForOf",i.navs),X(7),yh("",i.free,"/",i.total,"",i.format,""))},dependencies:[ii,or],encapsulation:2}),n})(),h0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=me({type:n,selectors:[["app-map-header"]],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})(),f0=(()=>{class n{constructor(){this.name="",this.volume=.5,this.tracks=[],this.player=new Audio,this.player.addEventListener("ended",()=>{let t=this.tracks.pop();t&&this.playThis(t.src,t.name)})}playThis(t,i){this.player.src=t,this.player.volume=this.volume,this.name=i,this.player.play()}stop(){this.player.pause()}volumeUp(){this.volume>.9||(this.volume=this.volume+.1,this.player.volume=this.volume)}volumeDown(){this.volume<.1||(this.volume=this.volume-.1,this.player.volume=this.volume)}getVolume(){return Math.round(100*this.volume)}getTime(){return this.player.duration?this.player.duration<60?"0:"+Math.floor(this.player.currentTime)+" / 0:"+Math.floor(this.player.duration):Math.floor(this.player.currentTime)+" / "+Math.floor(this.player.duration):"0:00 / 0:00"}getName(){return this.name?"\u0421\u0435\u0439\u0447\u0430\u0441 \u0438\u0433\u0440\u0430\u0435\u0442: "+this.name:"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0438\u0433\u0440\u0430\u0435\u0442"}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Oj(n,e){if(1&n&&($(0,"div")(1,"p",6),he(2),H()()),2&n){const t=e.$implicit,i=rt();Ct("menu-selected",t==i.selected&&"LEFT"==i.currentSide),X(2),Pe(t.name)}}function Pj(n,e){if(1&n&&($(0,"div")(1,"p",6),he(2),H()()),2&n){const t=e.$implicit,i=rt();Ct("menu-selected",t==i.selectedRight&&"RIGHT"==i.currentSide),X(2),Pe(t.name)}}let Nj=(()=>{class n extends Mc{constructor(t,i){super(),this.player=t,this.io=i,this.elements=[{name:"niggers",src:"../../../../assets/music/pvz.mp3",action:()=>{this.play()}}],this.selected=this.elements[0],this.elementsRight=[{name:"STOP",action:()=>this.player.stop()},{name:"Volume UP",action:()=>this.player.volumeUp()},{name:"Volume DOWN",action:()=>this.player.volumeDown()}],this.selectedRight=this.elementsRight[0]}ngOnInit(){this.sub=this.io.keys.subscribe(t=>{switch(t){case"KeyA":this.currentSide="LEFT";break;case"KeyD":this.currentSide="RIGHT";break;default:super.choiceItem(t)}})}play(){this.player.playThis(this.selected.src,this.selected.name)}}return n.\u0275fac=function(t){return new(t||n)(g(f0),g(Mi))},n.\u0275cmp=me({type:n,selectors:[["app-radio"]],features:[U],decls:8,vars:2,consts:[[2,"display","flex","flex-direction","row","justify-content","center","height","81%","padding-top","7%"],[2,"width","45%"],[3,"menu-selected",4,"ngFor","ngForOf"],[2,"width","45%","display","flex","flex-direction","column"],[2,"text-align","center"],[1,"rotating-image",2,"font-size","100px","height","100px","width","100px"],[2,"margin","0 0"]],template:function(t,i){1&t&&($(0,"div",0)(1,"div",1),vt(2,Oj,3,3,"div",2),H(),$(3,"div",3)(4,"div",4)(5,"mat-icon",5),he(6,"audiotrack"),H()(),vt(7,Pj,3,3,"div",2),H()()),2&t&&(X(2),bt("ngForOf",i.elements),X(5),bt("ngForOf",i.elementsRight))},dependencies:[ii,l0],encapsulation:2}),n})(),p0=(()=>{class n{constructor(t){this.player=t}}return n.\u0275fac=function(t){return new(t||n)(g(f0))},n.\u0275cmp=me({type:n,selectors:[["app-radio-header"]],decls:12,vars:3,consts:[[1,"footer"],[2,"display","flex","justify-content","space-between","height","100%"],[1,"footer-text",2,"width","65%"],[1,"footer-text",2,"width","9.5%","text-align","center"],[1,"footer-text",2,"width","24.5%","text-align","right"]],template:function(t,i){1&t&&(gn(0,"app-radio"),$(1,"div",0)(2,"div",1)(3,"div",2)(4,"span"),he(5),H()(),$(6,"div",3)(7,"span"),he(8),H()(),$(9,"div",4)(10,"span"),he(11),H()()()()),2&t&&(X(5),Pe(i.player.getName()),X(3),Zi("",i.player.getVolume()," %"),X(3),Pe(i.player.getTime()))},dependencies:[Nj],encapsulation:2}),n})();class Bp extends ae{constructor(e=1/0,t=1/0,i=pp){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){const{isStopped:t,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;t||(i.push(e),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(e),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;sJSON.parse(n.data),serializer:n=>JSON.stringify(n)};class Hp extends au{constructor(e,t){if(super(),this._socket=null,e instanceof be)this.destination=t,this.source=e;else{const i=this._config=Object.assign({},Lj);if(this._output=new ae,"string"==typeof e)i.url=e;else for(const r in e)e.hasOwnProperty(r)&&(i[r]=e[r]);if(!i.WebSocketCtor&&WebSocket)i.WebSocketCtor=WebSocket;else if(!i.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new Bp}}lift(e){const t=new Hp(this._config,this.destination);return t.operator=e,t.source=this,t}_resetState(){this._socket=null,this.source||(this.destination=new Bp),this._output=new ae}multiplex(e,t,i){const r=this;return new be(o=>{try{r.next(e())}catch(a){o.error(a)}const s=r.subscribe({next:a=>{try{i(a)&&o.next(a)}catch(l){o.error(l)}},error:a=>o.error(a),complete:()=>o.complete()});return()=>{try{r.next(t())}catch(a){o.error(a)}s.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:e,protocol:t,url:i,binaryType:r}=this._config,o=this._output;let s=null;try{s=t?new e(i,t):new e(i),this._socket=s,r&&(this._socket.binaryType=r)}catch(l){return void o.error(l)}const a=new et(()=>{this._socket=null,s&&1===s.readyState&&s.close()});s.onopen=l=>{const{_socket:c}=this;if(!c)return s.close(),void this._resetState();const{openObserver:u}=this._config;u&&u.next(l);const d=this.destination;this.destination=aa.create(h=>{if(1===s.readyState)try{const{serializer:f}=this._config;s.send(f(h))}catch(f){this.destination.error(f)}},h=>{const{closingObserver:f}=this._config;f&&f.next(void 0),h&&h.code?s.close(h.code,h.reason):o.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),this._resetState()},()=>{const{closingObserver:h}=this._config;h&&h.next(void 0),s.close(),this._resetState()}),d&&d instanceof Bp&&a.add(d.subscribe(this.destination))},s.onerror=l=>{this._resetState(),o.error(l)},s.onclose=l=>{s===this._socket&&this._resetState();const{closeObserver:c}=this._config;c&&c.next(l),l.wasClean?o.complete():o.error(l)},s.onmessage=l=>{try{const{deserializer:c}=this._config;o.next(c(l))}catch(c){o.error(c)}}}_subscribe(e){const{source:t}=this;return t?t.subscribe(e):(this._socket||this._connectSocket(),this._output.subscribe(e),e.add(()=>{const{_socket:i}=this;0===this._output.observers.length&&(i&&(1===i.readyState||0===i.readyState)&&i.close(),this._resetState())}),e)}unsubscribe(){const{_socket:e}=this;e&&(1===e.readyState||0===e.readyState)&&e.close(),this._resetState(),super.unsubscribe()}}function m0(n,e){return e?t=>Ms(e.pipe(Rt(1),function jj(){return Ae((n,e)=>{n.subscribe(ge(e,oa))})}()),t.pipe(m0(n))):Ke((t,i)=>n(t,i).pipe(Rt(1),Hw(t)))}let y0=(()=>{class n{constructor(){this.channels=[],this.channelChange=new ot(0),this.nodes=[],this.nodesChange=new ot(0),this.messages=new ot("{}"),this.state=0,this.meshId=0,this.connect()}getMyMesh(){if(0==this.meshId)return{name:"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e",id:0};{let t=this.nodes.filter(i=>i.id==this.meshId);return t.length>0?t.pop():{name:"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e",id:0}}}connect(){this.socket$=function Bj(n){return new Hp(n)}(`ws://${location.host}/mesh/ws`).pipe(function Hj(n){return Ae((e,t)=>{let i,o,r=!1;const s=()=>{i=e.subscribe(ge(t,void 0,void 0,a=>{o||(o=new ae,n(o).subscribe(ge(t,()=>i?s():r=!0))),o&&o.next(a)})),r&&(i.unsubscribe(),i=null,r=!1,s())};s()})}(t=>t.pipe(Ge(i=>{console.log("WebSocket error, reconnecting...",i),this.state=5}),function Uj(n,e=gc){const t=fE(n,e);return m0(()=>t)}(3e3)))),this.socket$.subscribe(t=>{switch(t.event){case 4:this.meshId=t.data;break;case 1:{const i=t.data,r=this.nodes.filter(o=>o.id==i.id);if(0==r.length)this.nodes.push(i);else{let o=this.nodes.indexOf(r[0]);this.nodes[o]=i}this.nodesChange.next((new Date).getTime());break}case 2:this.state=t.data;break;case 0:{const i=t.data,r=this.channels.filter(o=>o.index==i.index);if(0==r.length)this.channels.push(i);else{let o=this.channels.indexOf(r[0]);this.channels[o]=i}this.channelChange.next((new Date).getTime());break}}})}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),v0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=me({type:n,selectors:[["app-mesh-my-node"]],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})();function Qj(n,e){if(1&n&&($(0,"div",null,6)(2,"p",7),he(3),H()()),2&n){const t=e.$implicit,i=rt();Ct("menu-selected",i.isSelected(t)&&"LEFT"==i.currentSide),X(3),Pe(t.name)}}function Xj(n,e){if(1&n&&($(0,"div")(1,"p",7),he(2),H()()),2&n){const t=e.$implicit,i=rt();Ct("menu-selected",t==i.selectedRight&&"RIGHT"==i.currentSide),X(2),Pe(t.name)}}let b0=(()=>{class n extends Mc{constructor(t,i,r,o){super(),this.io=t,this.meshtastic=i,this.dialog=r,this.apps=o,this.elementsRight=[{name:"\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c",action:()=>{this.apps.openKeyboard().subscribe(s=>{console.log(s),this.apps.inApp=!1})}},{name:"\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f",action:()=>{}},{name:"\u0422\u0440\u0430\u0441\u0438\u0440\u043e\u0432\u043a\u0430*",action:()=>{}}],this.selectedRight=this.elementsRight[0]}createSub(){this.sub=this.io.keys.subscribe(t=>{if(!this.apps.inApp)switch(t){case"KeyA":this.currentSide="LEFT";break;case"KeyD":this.currentSide="RIGHT";break;default:super.choiceItem(t)}})}ngOnInit(){this.createSub(),this.elements=this.meshtastic.nodes,this.meshtastic.nodesChange.subscribe(t=>{this.elements=this.meshtastic.nodes,null==this.selected&&(this.selected=this.elements[0])})}}return n.\u0275fac=function(t){return new(t||n)(g(Mi),g(y0),g(Sc),g(Np))},n.\u0275cmp=me({type:n,selectors:[["app-mesh-list-node"]],features:[U],decls:9,vars:3,consts:[[2,"display","flex","flex-direction","row","justify-content","center","height","84%"],["id","nodes",2,"width","45%","overflow-y","hidden","height","230px","scroll-behavior","smooth"],[3,"menu-selected",4,"ngFor","ngForOf"],[2,"width","2.5%","display","flex","flex-direction","column"],["id","info",2,"width","45%","display","flex","flex-direction","column"],[1,"secondary-color",2,"text-align","center","height","125px","margin-bottom","10px"],["menuItem",""],[2,"margin","0 0"]],template:function(t,i){1&t&&($(0,"div",0)(1,"div",1),vt(2,Qj,4,3,"div",2),H(),gn(3,"div",3),$(4,"div",4)(5,"div",5)(6,"p"),he(7),H()(),vt(8,Xj,3,3,"div",2),H()()),2&t&&(X(2),bt("ngForOf",i.elements),X(5),Pe(null==i.selected?null:i.selected.name),X(1),bt("ngForOf",i.elementsRight))},dependencies:[ii],encapsulation:2}),n})(),C0=(()=>{class n extends Mc{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ue(n)))(i||n)}}(),n.\u0275cmp=me({type:n,selectors:[["app-mesh-channel"]],features:[U],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})();function Jj(n,e){if(1&n){const t=rs();$(0,"p",8),nt("click",function(){const o=Fo(t).$implicit;return Oo(rt().selectHeader(o))}),he(1),H()}if(2&n){const t=e.$implicit;Ct("inactiveHeader",!rt().isActiveHeader(t)),X(1),Pe(t.name)}}let w0=(()=>{class n extends cc{constructor(t,i,r,o){super(i,r),this.meshtastic=t,this.io=o,this.path="mesh",this.meshtastic.channelChange.subscribe(s=>{let a=[{name:"my",path:"my",action:()=>{},component:v0.name},{name:"list",path:"list",action:()=>{},component:b0.name}];a.push(...this.meshtastic.channels.map(l=>({name:`${l.name}`,path:`channel/${l.index}`,action:()=>{},component:C0.name}))),console.log(a),super.navs=a})}isActiveHeader(t){let i=this.route.firstChild?.component?.name==t.component;if(this.route.firstChild?.snapshot.params){const r=t.path.split("/");r.length>1&&(i=i&&this.route.firstChild?.snapshot.params.index==r[1])}return i&&(this.currentNav=t),i}getMeshState(){switch(this.meshtastic.state){case 0:return"\u041d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d";case 1:return"\u041e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438";case 2:return"\u0414\u043e\u0441\u0442\u0443\u043f\u0435\u043d";case 3:return"\u041e\u0448\u0438\u0431\u043a\u0430 \u043c\u043e\u0434\u0443\u043b\u044f";case 4:return"\u041f\u0435\u0440\u0435\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435";case 5:return"\u041e\u0448\u0438\u0431\u043a\u0430 \u0432\u0435\u0431\u0441\u043e\u043a\u0435\u0442\u0430";default:return"\u0425\u0443\u0439 \u0437\u043d\u0430\u0435\u0442"}}selectHeader(t){super.selectHeader(t,[this.path])}ngOnInit(){this.sub=this.io.keys.subscribe(t=>{super.choiceHeader(t)})}}return n.\u0275fac=function(t){return new(t||n)(g(y0),g(rn),g(Le),g(Mi))},n.\u0275cmp=me({type:n,selectors:[["app-meshtastic-header"]],features:[U],decls:15,vars:4,consts:[[2,"display","flex","align-items","center","justify-content","flex-start","padding-left","45px"],["style","text-transform: uppercase;font-weight: bold; margin-bottom: 0; margin-top: 5px; padding-left: 5px",3,"inactiveHeader","click",4,"ngFor","ngForOf"],[2,"padding-top","2.5%"],[1,"footer"],[2,"display","flex","justify-content","space-between","height","100%"],[1,"footer-text",2,"width","30%"],[1,"footer-text",2,"width","49%"],[1,"footer-text",2,"width","20%"],[2,"text-transform","uppercase","font-weight","bold","margin-bottom","0","margin-top","5px","padding-left","5px",3,"click"]],template:function(t,i){1&t&&($(0,"div",0),vt(1,Jj,2,3,"p",1),H(),$(2,"div",2),gn(3,"router-outlet"),H(),$(4,"div",3)(5,"div",4)(6,"div",5)(7,"span"),he(8),H()(),$(9,"div",6)(10,"span"),he(11),H()(),$(12,"div",7)(13,"span"),he(14),H()()()()),2&t&&(X(1),bt("ngForOf",i.navs),X(7),Pe(i.getMeshState()),X(3),Pe(i.meshtastic.getMyMesh().name),X(3),Zi("",i.meshtastic.nodes.length," nodes"))},dependencies:[ii,or],encapsulation:2}),n})();function eU(n,e){if(1&n){const t=rs();$(0,"p",2),nt("click",function(){const o=Fo(t).$implicit;return Oo(rt().selectHeader(o))}),he(1),H()}if(2&n){const t=e.$implicit;Ct("activeHeader",rt().isActiveHeader(t))("baseActiveHeader",!0),X(1),Pe(t.name)}}const tU=[{path:"",component:(()=>{class n extends cc{constructor(t,i,r){super(t,i),this.io=r,super.navs=[{name:"stat",path:"stats",action:()=>{},component:YD.name},{name:"inv",path:"inventory",action:()=>{},component:d0.name},{name:"map",path:"map",action:()=>{},component:h0.name},{name:"radio",path:"radio",action:()=>{},component:p0.name},{name:"mesh",path:"mesh",action:()=>{},component:w0.name}]}ngOnInit(){this.sub=this.io.keys.subscribe(t=>{if(null!=this.currentNav&&t.startsWith("Digit")&&6==t.length){let i=Number.parseInt(t.replace("Digit",""))-1;this.navs[i]&&this.selectHeader(this.navs[i])}})}}return n.\u0275fac=function(t){return new(t||n)(g(rn),g(Le),g(Mi))},n.\u0275cmp=me({type:n,selectors:[["ui"]],features:[U],decls:3,vars:1,consts:[[2,"display","flex","align-items","center","justify-content","space-evenly","border-bottom","1px solid rgb(0, 242, 0)"],[3,"activeHeader","baseActiveHeader","click",4,"ngFor","ngForOf"],[3,"click"]],template:function(t,i){1&t&&($(0,"div",0),vt(1,eU,2,5,"p",1),H(),gn(2,"router-outlet")),2&t&&(X(1),bt("ngForOf",i.navs))},dependencies:[ii,or],encapsulation:2}),n})(),children:[{path:"",redirectTo:"stats",pathMatch:"full"},{path:"stats",component:YD,children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",component:qD}]},{path:"inventory",component:d0,children:[{path:"",redirectTo:"apps",pathMatch:"full"},{path:"apps",component:c0},{path:"custom",component:u0}]},{path:"data",component:(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=me({type:n,selectors:[["app-data-header"]],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})()},{path:"map",component:h0},{path:"radio",component:p0},{path:"mesh",component:w0,children:[{path:"",redirectTo:"my",pathMatch:"full"},{path:"my",component:v0},{path:"list",component:b0},{path:"channel/:index",component:C0}]}]}];let nU=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({imports:[WD.forRoot(tU),WD]}),n})(),iU=(()=>{class n{constructor(t){this.io=t}pressKeys(t){this.io.keys.next(t.code),this.io.keys.next("")}}return n.\u0275fac=function(t){return new(t||n)(g(Mi))},n.\u0275cmp=me({type:n,selectors:[["app-root"]],hostBindings:function(t,i){1&t&&nt("keypress",function(o){return i.pressKeys(o)},0,ey)},decls:1,vars:0,template:function(t,i){1&t&&gn(0,"router-outlet")},dependencies:[or]}),n})();function D0(n){return new C(3e3,!1)}function VU(){return typeof window<"u"&&typeof window.document<"u"}function jp(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Ti(n){switch(n.length){case 0:return new Gs;case 1:return n[0];default:return new zE(n)}}function E0(n,e,t,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,m)=>{let _=m,b=p;if("offset"!==m)switch(_=e.normalizePropertyName(_,s),b){case"!":b=r.get(m);break;case ai:b=o.get(m);break;default:b=e.normalizeStyleValue(m,_,b,s)}f.set(_,b)}),h||a.push(f),c=f,l=d}),s.length)throw function MU(n){return new C(3502,!1)}();return a}function Up(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&$p(t,"start",n)));break;case"done":n.onDone(()=>i(t&&$p(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&$p(t,"destroy",n)))}}function $p(n,e,t){const o=zp(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,t.totalTime??n.totalTime,!!t.disabled),s=n._data;return null!=s&&(o._data=s),o}function zp(n,e,t,i,r="",o=0,s){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function $t(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function S0(n){const e=n.indexOf(":");return[n.substring(1,e),n.slice(e+1)]}let Wp=(n,e)=>!1,M0=(n,e,t)=>[],A0=null;function Gp(n){const e=n.parentNode||n.host;return e===A0?null:e}(jp()||typeof Element<"u")&&(VU()?(A0=(()=>document.documentElement)(),Wp=(n,e)=>{for(;e;){if(e===n)return!0;e=Gp(e)}return!1}):Wp=(n,e)=>n.contains(e),M0=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let ur=null,I0=!1;const T0=Wp,x0=M0;let R0=(()=>{class n{validateStyleProperty(t){return function HU(n){ur||(ur=function jU(){return typeof document<"u"?document.body:null}()||{},I0=!!ur.style&&"WebkitAppearance"in ur.style);let e=!0;return ur.style&&!function BU(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in ur.style,!e&&I0&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in ur.style)),e}(t)}matchesElement(t,i){return!1}containsElement(t,i){return T0(t,i)}getParentElement(t){return Gp(t)}query(t,i,r){return x0(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,o,s,a=[],l){return new Gs(r,o)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),qp=(()=>{class n{}return n.NOOP=new R0,n})();const Kp="ng-enter",Rc="ng-leave",kc="ng-trigger",Fc=".ng-trigger",F0="ng-animating",Yp=".ng-animating";function li(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Zp(parseFloat(e[1]),e[2])}function Zp(n,e){return"s"===e?1e3*n:n}function Oc(n,e,t){return n.hasOwnProperty("duration")?n:function zU(n,e,t){let r,o=0,s="";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(D0()),{duration:0,delay:0,easing:""};r=Zp(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=Zp(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(function rU(){return new C(3100,!1)}()),a=!0),o<0&&(e.push(function oU(){return new C(3101,!1)}()),a=!0),a&&e.splice(l,0,D0())}return{duration:r,delay:o,easing:s}}(n,e,t)}function Ys(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function O0(n){const e=new Map;return Object.keys(n).forEach(t=>{e.set(t,n[t])}),e}function xi(n,e=new Map,t){if(t)for(let[i,r]of t)e.set(i,r);for(let[i,r]of n)e.set(i,r);return e}function N0(n,e,t){return t?e+":"+t+";":""}function L0(n){let e="";for(let t=0;t{const o=Xp(r);t&&!t.has(r)&&t.set(r,n.style[o]),n.style[o]=i}),jp()&&L0(n))}function dr(n,e){n.style&&(e.forEach((t,i)=>{const r=Xp(i);n.style[r]=""}),jp()&&L0(n))}function Zs(n){return Array.isArray(n)?1==n.length?n[0]:HE(n):n}const Qp=new RegExp("{{\\s*(.+?)\\s*}}","g");function V0(n){let e=[];if("string"==typeof n){let t;for(;t=Qp.exec(n);)e.push(t[1]);Qp.lastIndex=0}return e}function Qs(n,e,t){const i=n.toString(),r=i.replace(Qp,(o,s)=>{let a=e[s];return null==a&&(t.push(function aU(n){return new C(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function Pc(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const qU=/-+([a-z0-9])/g;function Xp(n){return n.replace(qU,(...e)=>e[1].toUpperCase())}function KU(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 lU(n){return new C(3004,!1)}()}}function B0(n,e){return window.getComputedStyle(n)[e]}function e$(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function t$(n,e,t){if(":"==n[0]){const l=function n$(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) *"}}(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 CU(n){return new C(3015,!1)}()),e;const r=i[1],o=i[2],s=i[3];e.push(H0(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&e.push(H0(s,r))}(i,t,e)):t.push(n),t}const Bc=new Set(["true","1"]),Hc=new Set(["false","0"]);function H0(n,e){const t=Bc.has(n)||Hc.has(n),i=Bc.has(e)||Hc.has(e);return(r,o)=>{let s="*"==n||n==r,a="*"==e||e==o;return!s&&t&&"boolean"==typeof r&&(s=r?Bc.has(n):Hc.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?Bc.has(e):Hc.has(e)),s&&a}}const i$=new RegExp("s*:selfs*,?","g");function Jp(n,e,t,i){return new r$(n).build(e,t,i)}class r${constructor(e){this._driver=e}build(e,t,i){const r=new a$(t);return this._resetContextStyleTimingState(r),zt(this,Zs(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0;const o=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push(function uU(){return new C(3006,!1)}()),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,o.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,s.push(l)}else t.errors.push(function dU(){return new C(3007,!1)}())}),{type:7,name:e.name,states:o,transitions:s,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 o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{V0(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Pc(o.values()),t.errors.push(function hU(n,e){return new C(3008,!1)}()))}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,Zs(e.animation),t);return{type:1,matchers:e$(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:hr(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>zt(this,i,t)),options:hr(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const o=e.steps.map(s=>{t.currentTime=i;const a=zt(this,s,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:o,options:hr(e.options)}}visitAnimate(e,t){const i=function c$(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return em(Oc(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=em(0,0,"");return o.dynamic=!0,o.strValue=t,o}const r=Oc(t,e);return em(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,o=e.styles?e.styles:Si({});if(5==o.type)r=this.visitKeyframes(o,t);else{let s=e.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Si(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,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=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)"string"==typeof a?a===ai?i.push(a):t.errors.push(new C(3002,!1)):i.push(O0(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(t.errors.push(function pU(n,e,t,i,r){return new C(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),t.options&&function GU(n,e,t){const i=e.params||{},r=V0(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||t.push(function sU(n){return new C(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function mU(){return new C(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=e.steps.map(b=>{const D=this._makeStyleAst(b,t);let v=null!=D.offset?D.offset:function l$(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){const i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}(D.styles),I=0;return null!=v&&(o++,I=D.offset=v),l=l||I<0||I>1,a=a||I0&&o{const v=h>0?D==f?1:h*D:s[D],I=v*_;t.currentTime=p+m.delay+I,m.duration=I,this._validateStyleAst(b,t),b.offset=v,i.styles.push(b)}),i}visitReference(e,t){return{type:8,animation:zt(this,Zs(e.animation),t),options:hr(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:hr(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:hr(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[o,s]=function o$(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(i$,"")),n=n.replace(/@\*/g,Fc).replace(/@\w+/g,t=>Fc+"-"+t.slice(1)).replace(/:animating/g,Yp),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+o:o,$t(t.collectedStyles,t.currentQuerySelector,new Map);const a=zt(this,Zs(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:hr(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function vU(){return new C(3013,!1)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:Oc(e.timings,t.errors,!0);return{type:12,animation:zt(this,Zs(e.animation),t),timings:i,options:null}}}class a${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=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function hr(n){return n?(n=Ys(n)).params&&(n.params=function s$(n){return n?Ys(n):null}(n.params)):n={},n}function em(n,e,t){return{duration:n,delay:e,easing:t}}function tm(n,e,t,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class jc{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 h$=new RegExp(":enter","g"),p$=new RegExp(":leave","g");function nm(n,e,t,i,r,o=new Map,s=new Map,a,l,c=[]){return(new m$).buildKeyframes(n,e,t,i,r,o,s,a,l,c)}class m${buildKeyframes(e,t,i,r,o,s,a,l,c,u=[]){c=c||new jc;const d=new im(e,t,c,r,o,u,[]);d.options=l;const h=l.delay?li(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),zt(this,i,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const _=f[m];if(_.element===t){p=_;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[tm(t,[],[],[],0,h,"",!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),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(const r of e){const o=r?.delay;if(o){const s="number"==typeof o?o:li(Qs(o,r?.params??{},t.errors));i.delayNextStep(s)}}}_visitSubInstructions(e,t,i){let o=t.currentTimeline.currentTime;const s=null!=i.duration?li(i.duration):null,a=null!=i.delay?li(i.delay):null;return 0!==s&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}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 o=e.options;if(o&&(o.params||o.delay)&&(r=t.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Uc);const s=li(o.delay);r.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>zt(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let r=t.currentTimeline.currentTime;const o=e.options&&e.options.delay?li(e.options.delay):0;e.steps.forEach(s=>{const a=t.createSubContext(e.options);o&&a.delayNextStep(o),zt(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return Oc(t.params?Qs(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 o=e.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(i.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(o):i.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,o=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+o),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?li(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Uc);let s=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);o&&d.delayNextStep(o),c===t.element&&(l=d.currentTimeline),zt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,r=t.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(t.currentQueryTotal-1);let l=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.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 Uc={};class im{constructor(e,t,i,r,o,s,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Uc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new $c(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=li(i.duration)),null!=i.delay&&(r.delay=li(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=Qs(o[a],s,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,o=new im(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Uc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},o=new g$(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,o,s){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(h$,"."+this._enterClassName)).replace(p$,"."+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!o&&0==a.length&&s.push(function bU(n){return new C(3014,!1)}()),a}}class $c{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),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.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new $c(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=new Map,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.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||ai),this._currentKeyframe.set(t,ai);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&this._previousKeyframe.set("easing",t);const o=r&&r.params||{},s=function _$(n,e){const t=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||e.keys();for(let o of i)t.set(o,ai)}else xi(r,t)}),t}(e,this._globalTimelineStyles);for(let[a,l]of s){const c=Qs(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??ai),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(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){e._styleSummary.forEach((t,i)=>{const r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.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,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?e.add(d):u===ai&&t.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=e.size?Pc(e.values()):[],s=t.size?Pc(t.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return tm(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class g$ extends $c{constructor(e,t,i,r,o,s,a=!1){super(e,t,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.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 o=[],s=i+t,a=t/s,l=xi(e[0]);l.set("offset",0),o.push(l);const c=xi(e[0]);c.set("offset",$0(a)),o.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=xi(e[d]);const f=h.get("offset");h.set("offset",$0((t+f*i)/s)),o.push(h)}i=s,t=0,r="",e=o}return tm(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function $0(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class rm{}const y$=new Set(["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"]);class v$ extends rm{normalizePropertyName(e,t){return Xp(e)}normalizeStyleValue(e,t,i,r){let o="";const s=i.toString().trim();if(y$.has(t)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function cU(n,e){return new C(3005,!1)}())}return s+o}}function z0(n,e,t,i,r,o,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const om={};class W0{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function b$(n,e,t,i,r){return n.some(o=>o(e,t,i,r))}(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){let r=this._stateStyles.get("*");return void 0!==e&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,i):new Map}build(e,t,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||om,p=this.buildStyles(i,a&&a.params||om,d),m=l&&l.params||om,_=this.buildStyles(r,m,d),b=new Set,D=new Map,v=new Map,I="void"===r,Y={params:C$(m,h),delay:this.ast.options?.delay},ne=u?[]:nm(e,t,this.ast.animation,o,s,p,_,Y,c,d);let ke=0;if(ne.forEach(Gt=>{ke=Math.max(Gt.duration+Gt.delay,ke)}),d.length)return z0(t,this._triggerName,i,r,I,p,_,[],[],D,v,ke,d);ne.forEach(Gt=>{const qt=Gt.element,wo=$t(D,qt,new Set);Gt.preStyleProps.forEach(Dn=>wo.add(Dn));const ci=$t(v,qt,new Set);Gt.postStyleProps.forEach(Dn=>ci.add(Dn)),qt!==t&&b.add(qt)});const Wt=Pc(b.values());return z0(t,this._triggerName,i,r,I,p,_,ne,Wt,D,v,ke)}}function C$(n,e){const t=Ys(e);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(t[i]=n[i]);return t}class w${constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i=new Map,r=Ys(this.defaultParams);return Object.keys(e).forEach(o=>{const s=e[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Qs(s,r,t));const l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),i.set(l,s)})}),i}}class E${constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{this.states.set(r.name,new w$(r.style,r.options&&r.options.params||{},i))}),G0(this.states,"true","1"),G0(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new W0(e,r,this.states))}),this.fallbackTransition=function S$(n,e,t){return new W0(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,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(s=>s.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function G0(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}const M$=new jc;class A${constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const i=[],o=Jp(this._driver,t,i,[]);if(i.length)throw function AU(n){return new C(3503,!1)}();this._animations.set(e,o)}_buildPlayer(e,t,i){const r=e.element,o=E0(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const r=[],o=this._animations.get(e);let s;const a=new Map;if(o?(s=nm(this._driver,t,o,Kp,Rc,new Map,new Map,i,M$,r),s.forEach(u=>{const d=$t(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function IU(){return new C(3300,!1)}()),s=[]),r.length)throw function TU(n){return new C(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,ai))})});const c=Ti(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw function xU(n){return new C(3301,!1)}();return t}listen(e,t,i,r){const o=zp(t,"","","");return Up(this._getPlayer(e),i,o,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 o=this._getPlayer(e);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const q0="ng-animate-queued",sm="ng-animate-disabled",k$=[],K0={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},F$={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},sn="__ng_removed";class am{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function L$(n){return n??null}(i?e.value:e),i){const o=Ys(e);delete o.value,this.options=o}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 Xs="void",lm=new am(Xs);class O${constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,an(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.has(t))throw function RU(n,e){return new C(3302,!1)}();if(null==i||0==i.length)throw function kU(n){return new C(3303,!1)}();if(!function V$(n){return"start"==n||"done"==n}(i))throw function FU(n,e){return new C(3400,!1)}();const o=$t(this._elementListeners,e,[]),s={name:t,phase:i,callback:r};o.push(s);const a=$t(this._engine.statesByElement,e,new Map);return a.has(t)||(an(e,kc),an(e,kc+"-"+t),a.set(t,lm)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw function OU(n){return new C(3401,!1)}();return t}trigger(e,t,i,r=!0){const o=this._getTrigger(t),s=new cm(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(an(e,kc),an(e,kc+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t);const c=new am(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=lm),c.value!==Xs&&l.value===c.value){if(!function j$(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r{dr(e,_),Ln(e,b)})}return}const h=$t(this._engine.playersByElement,e,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(an(e,q0),s.onStart(()=>{bo(e,q0)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const _=this._engine.playersByElement.get(e);if(_){let b=_.indexOf(s);b>=0&&_.splice(b,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(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,Fc,!0);i.forEach(r=>{if(r[sn])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){const o=this._engine.statesByElement.get(e),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(e,c,Xs,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,s),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(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||lm,u=new am(Xs),d=new cm(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,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 o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else{let s=e;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{const o=e[sn];(!o||o===K0)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){an(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=zp(o,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Up(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s: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 P${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,o)=>{}}_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 O$(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;if(i.length-1>=0){let s=!1,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),s=!0;break}a=this.driver.getParentElement(a)}s||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)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&t.add(o)}return t}trigger(e,t,i,r){if(zc(t)){const o=this._fetchNamespace(e);if(o)return o.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!zc(t))return;const o=t[sn];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){const s=this._fetchNamespace(e);s&&s.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),an(e,sm)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),bo(e,sm))}removeNode(e,t,i,r){if(zc(t)){const o=e?this._fetchNamespace(e):null;if(o?o.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),i){const s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,i,r,o){this.collectedLeaveElements.push(t),t[sn]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,t,i,r,o){return zc(t)?this._fetchNamespace(e).listen(t,i,r,o):()=>{}}_buildInstruction(e,t,i,r,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,o)}destroyInnerAnimations(e){let t=this.driver.query(e,Fc,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Yp,!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){const t=e[sn];if(t&&t.setForRemoval){if(e[sn]=K0,t.namespaceId){this.destroyInnerAnimations(e);const i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(sm)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!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;ii()),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 PU(n){return new C(3402,!1)}()}_flushAnimations(e,t){const i=new jc,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(x=>{u.add(x);const k=this.driver.query(x,".ng-animate-queued",!0);for(let L=0;L{const L=Kp+m++;p.set(k,L),x.forEach(se=>an(se,L))});const _=[],b=new Set,D=new Set;for(let x=0;xb.add(se)):D.add(k))}const v=new Map,I=Q0(h,Array.from(b));I.forEach((x,k)=>{const L=Rc+m++;v.set(k,L),x.forEach(se=>an(se,L))}),e.push(()=>{f.forEach((x,k)=>{const L=p.get(k);x.forEach(se=>bo(se,L))}),I.forEach((x,k)=>{const L=v.get(k);x.forEach(se=>bo(se,L))}),_.forEach(x=>{this.processLeaveNode(x)})});const Y=[],ne=[];for(let x=this._namespaceList.length-1;x>=0;x--)this._namespaceList[x].drainQueuedTransitions(t).forEach(L=>{const se=L.player,it=L.element;if(Y.push(se),this.collectedEnterElements.length){const ft=it[sn];if(ft&&ft.setForMove){if(ft.previousTriggersValues&&ft.previousTriggersValues.has(L.triggerName)){const mr=ft.previousTriggersValues.get(L.triggerName),ln=this.statesByElement.get(L.element);if(ln&&ln.has(L.triggerName)){const nu=ln.get(L.triggerName);nu.value=mr,ln.set(L.triggerName,nu)}}return void se.destroy()}}const Bn=!d||!this.driver.containsElement(d,it),Kt=v.get(it),Oi=p.get(it),Fe=this._buildInstruction(L,i,Oi,Kt,Bn);if(Fe.errors&&Fe.errors.length)return void ne.push(Fe);if(Bn)return se.onStart(()=>dr(it,Fe.fromStyles)),se.onDestroy(()=>Ln(it,Fe.toStyles)),void r.push(se);if(L.isFallbackTransition)return se.onStart(()=>dr(it,Fe.fromStyles)),se.onDestroy(()=>Ln(it,Fe.toStyles)),void r.push(se);const mM=[];Fe.timelines.forEach(ft=>{ft.stretchStartingKeyframe=!0,this.disabledNodes.has(ft.element)||mM.push(ft)}),Fe.timelines=mM,i.append(it,Fe.timelines),s.push({instruction:Fe,player:se,element:it}),Fe.queriedElements.forEach(ft=>$t(a,ft,[]).push(se)),Fe.preStyleProps.forEach((ft,mr)=>{if(ft.size){let ln=l.get(mr);ln||l.set(mr,ln=new Set),ft.forEach((nu,km)=>ln.add(km))}}),Fe.postStyleProps.forEach((ft,mr)=>{let ln=c.get(mr);ln||c.set(mr,ln=new Set),ft.forEach((nu,km)=>ln.add(km))})});if(ne.length){const x=[];ne.forEach(k=>{x.push(function NU(n,e){return new C(3505,!1)}())}),Y.forEach(k=>k.destroy()),this.reportError(x)}const ke=new Map,Wt=new Map;s.forEach(x=>{const k=x.element;i.has(k)&&(Wt.set(k,k),this._beforeAnimationBuild(x.player.namespaceId,x.instruction,ke))}),r.forEach(x=>{const k=x.element;this._getPreviousPlayers(k,!1,x.namespaceId,x.triggerName,null).forEach(se=>{$t(ke,k,[]).push(se),se.destroy()})});const Gt=_.filter(x=>J0(x,l,c)),qt=new Map;Z0(qt,this.driver,D,c,ai).forEach(x=>{J0(x,l,c)&&Gt.push(x)});const ci=new Map;f.forEach((x,k)=>{Z0(ci,this.driver,new Set(x),l,"!")}),Gt.forEach(x=>{const k=qt.get(x),L=ci.get(x);qt.set(x,new Map([...Array.from(k?.entries()??[]),...Array.from(L?.entries()??[])]))});const Dn=[],Do=[],Eo={};s.forEach(x=>{const{element:k,player:L,instruction:se}=x;if(i.has(k)){if(u.has(k))return L.onDestroy(()=>Ln(k,se.toStyles)),L.disabled=!0,L.overrideTotalTime(se.totalTime),void r.push(L);let it=Eo;if(Wt.size>1){let Kt=k;const Oi=[];for(;Kt=Kt.parentNode;){const Fe=Wt.get(Kt);if(Fe){it=Fe;break}Oi.push(Kt)}Oi.forEach(Fe=>Wt.set(Fe,it))}const Bn=this._buildAnimation(L.namespaceId,se,ke,o,ci,qt);if(L.setRealPlayer(Bn),it===Eo)Dn.push(L);else{const Kt=this.playersByElement.get(it);Kt&&Kt.length&&(L.parentPlayer=Ti(Kt)),r.push(L)}}else dr(k,se.fromStyles),L.onDestroy(()=>Ln(k,se.toStyles)),Do.push(L),u.has(k)&&r.push(L)}),Do.forEach(x=>{const k=o.get(x.element);if(k&&k.length){const L=Ti(k);x.setRealPlayer(L)}}),r.forEach(x=>{x.parentPlayer?x.syncPlayerEvents(x.parentPlayer):x.destroy()});for(let x=0;x<_.length;x++){const k=_[x],L=k[sn];if(bo(k,Rc),L&&L.hasAnimation)continue;let se=[];if(a.size){let Bn=a.get(k);Bn&&Bn.length&&se.push(...Bn);let Kt=this.driver.query(k,Yp,!0);for(let Oi=0;Oi!Bn.destroyed);it.length?B$(this,k,it):this.processLeaveNode(k)}return _.length=0,Dn.forEach(x=>{this.players.push(x),x.onDone(()=>{x.destroy();const k=this.players.indexOf(x);this.players.splice(k,1)}),x.play()}),Dn}elementContainsData(e,t){let i=!1;const r=t[sn];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,o){let s=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(s=a)}else{const a=this.playersByElement.get(e);if(a){const l=!o||o==Xs;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(e,t,i){const o=t.element,s=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==o,d=$t(i,c,[]);this._getPreviousPlayers(c,u,s,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}dr(o,t.fromStyles)}_buildAnimation(e,t,i,r,o,s){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(p=>{const m=p.element;u.add(m);const _=m[sn];if(_&&_.removedBeforeQueried)return new Gs(p.duration,p.delay);const b=m!==l,D=function H$(n){const e=[];return X0(n,e),e}((i.get(m)||k$).map(ke=>ke.getRealPlayer())).filter(ke=>!!ke.element&&ke.element===m),v=o.get(m),I=s.get(m),Y=E0(0,this._normalizer,0,p.keyframes,v,I),ne=this._buildPlayer(p,Y,D);if(p.subTimeline&&r&&d.add(m),b){const ke=new cm(e,a,m);ke.setRealPlayer(ne),c.push(ke)}return ne});c.forEach(p=>{$t(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function N$(n,e,t){let i=n.get(e);if(i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&n.delete(e)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>an(p,F0));const f=Ti(h);return f.onDestroy(()=>{u.forEach(p=>bo(p,F0)),Ln(l,t.toStyles)}),d.forEach(p=>{$t(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 Gs(e.duration,e.delay)}}class cm{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Gs,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>Up(e,i,void 0,r))}),this._queuedCallbacks.clear(),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){$t(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 zc(n){return n&&1===n.nodeType}function Y0(n,e){const t=n.style.display;return n.style.display=e??"none",t}function Z0(n,e,t,i,r){const o=[];t.forEach(l=>o.push(Y0(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=e.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[sn]=F$,s.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>Y0(l,o[a++])),s}function Q0(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const r=new Set(e),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return e.forEach(a=>{const l=s(a);1!==l&&t.get(l).push(a)}),t}function an(n,e){n.classList?.add(e)}function bo(n,e){n.classList?.remove(e)}function B$(n,e,t){Ti(t).onDone(()=>n.processLeaveNode(e))}function X0(n,e){for(let t=0;tr.add(o)):e.set(n,i),t.delete(n),!0}class Wc{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new P$(e,t,i),this._timelineEngine=new A$(e,t,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,t,i,r,o){const s=e+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=Jp(this._driver,o,l,[]);if(l.length)throw function SU(n,e){return new C(3404,!1)}();a=function D$(n,e,t){return new E$(n,e,t)}(r,u,this._normalizer),this._triggerCache[s]=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[o,s]=S0(i);this._timelineEngine.command(o,t,s,r)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,o){if("@"==i.charAt(0)){const[s,a]=S0(i);return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(e,t,i,r,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let $$=(()=>{class n{constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(t);o||n.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Ln(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ln(this._element,this._initialStyles),this._endStyles&&(Ln(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(dr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(dr(this._element,this._endStyles),this._endStyles=null),Ln(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function um(n){let e=null;return n.forEach((t,i)=>{(function z$(n){return"display"===n||"position"===n})(i)&&(e=e||new Map,e.set(i,t))}),e}class eS{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._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,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]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&e.set(r,this._finished?i:B0(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class W${validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return T0(e,t)}getParentElement(e){return Gp(e)}query(e,t,i){return x0(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof eS);(function YU(n,e){return 0===n||0===e})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let d=function WU(n){return n.length?n[0]instanceof Map?n:n.map(e=>O0(e)):[]}(t).map(f=>xi(f));d=function ZU(n,e,t){if(t.size&&e.length){let i=e[0],r=[];if(t.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,B0(n,a)))}}return e}(e,d,c);const h=function U$(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=um(e[0]),e.length>1&&(i=um(e[e.length-1]))):e instanceof Map&&(t=um(e)),t||i?new $$(n,t,i):null}(e,d);return new eS(e,d,l,h)}}let G$=(()=>{class n extends LE{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:un.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?HE(t):t;return tS(this._renderer,null,i,"register",[r]),new q$(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(y(Jo),y(Q))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class q$ extends class G2{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new K$(this._id,e,t||{},this._renderer)}}class K${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 tS(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(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function tS(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const nS="@.disabled";let Y$=(()=>{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=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(t,i){const o=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new iS("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=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(s,a,t,u.name,u)};return i.data.animation.forEach(l),new Z$(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&ti(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(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(Jo),y(Wc),y(re))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class iS{constructor(e,t,i,r){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>t.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}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==nS?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 Z$ extends iS{constructor(e,t,i,r,o){super(t,i,r,o),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==nS?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const r=function Q$(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let o=t.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function X$(n){const e=n.indexOf(".");return[n.substring(0,e),n.slice(e+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}const rS=[{provide:LE,useClass:G$},{provide:rm,useFactory:function ez(){return new v$}},{provide:Wc,useClass:(()=>{class n extends Wc{constructor(t,i,r,o){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(y(Q),y(qp),y(rm),y(ro))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})()},{provide:Jo,useFactory:function tz(n,e,t){return new Y$(n,e,t)},deps:[Nl,Wc,re]}],dm=[{provide:qp,useFactory:()=>new W$},{provide:pl,useValue:"BrowserAnimations"},...rS],oS=[{provide:qp,useClass:R0},{provide:pl,useValue:"NoopAnimations"},...rS];let nz=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?oS:dm}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({providers:dm,imports:[Iw]}),n})(),sS=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({}),n})(),aS=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({imports:[sw,wn,eE,wn]}),n})(),az=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({providers:[j2],imports:[sS,aS,wn,sS,aS]}),n})(),QS=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({}),n})(),a3=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({imports:[QS]}),n})(),l3=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({imports:[a3]}),n})(),u3=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=pe({imports:[W2,wn,wn]}),n})(),d3=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ve({type:n,bootstrap:[iU]}),n.\u0275inj=pe({imports:[Iw,nU,nz,ij,az,l3,u3,xj]}),n})();(function MP(){IC=!1})(),pL().bootstrapModule(d3).catch(n=>console.error(n))}},oe=>{oe(oe.s=923)}]); \ No newline at end of file diff --git a/pipboyUI/dist/pipboy-ui/styles.6561013e58b05f16.css b/pipboyUI/dist/pipboy-ui/styles.688d38c9b65f26a9.css similarity index 99% rename from pipboyUI/dist/pipboy-ui/styles.6561013e58b05f16.css rename to pipboyUI/dist/pipboy-ui/styles.688d38c9b65f26a9.css index 1efc09c..420b88b 100644 --- a/pipboyUI/dist/pipboy-ui/styles.6561013e58b05f16.css +++ b/pipboyUI/dist/pipboy-ui/styles.688d38c9b65f26a9.css @@ -1 +1 @@ -.mat-badge-content{font-weight:600;font-size:12px;font-family:Roboto,Helvetica Neue,sans-serif}.mat-badge-small .mat-badge-content{font-size:9px}.mat-badge-large .mat-badge-content{font-size:24px}.mat-h1,.mat-headline,.mat-typography .mat-h1,.mat-typography .mat-headline,.mat-typography h1{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2,.mat-title,.mat-typography .mat-h2,.mat-typography .mat-title,.mat-typography h2{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h3,.mat-subheading-2,.mat-typography .mat-h3,.mat-typography .mat-subheading-2,.mat-typography h3{font:400 16px/28px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h4,.mat-subheading-1,.mat-typography .mat-h4,.mat-typography .mat-subheading-1,.mat-typography h4{font:400 15px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h5,.mat-typography .mat-h5,.mat-typography h5{font:400 11.62px/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-h6,.mat-typography .mat-h6,.mat-typography h6{font:400 9.38px/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-body-strong,.mat-body-2,.mat-typography .mat-body-strong,.mat-typography .mat-body-2{font:500 14px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-body,.mat-body-1,.mat-typography .mat-body,.mat-typography .mat-body-1,.mat-typography{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-body p,.mat-body-1 p,.mat-typography .mat-body p,.mat-typography .mat-body-1 p,.mat-typography p{margin:0 0 12px}.mat-small,.mat-caption,.mat-typography .mat-small,.mat-typography .mat-caption{font:400 12px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-display-4,.mat-typography .mat-display-4{font:300 112px/112px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.05em;margin:0 0 56px}.mat-display-3,.mat-typography .mat-display-3{font:400 56px/56px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.02em;margin:0 0 64px}.mat-display-2,.mat-typography .mat-display-2{font:400 45px/48px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.005em;margin:0 0 64px}.mat-display-1,.mat-typography .mat-display-1{font:400 34px/40px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-bottom-sheet-container{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-button,.mat-raised-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button,.mat-fab,.mat-mini-fab{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}.mat-button-toggle,.mat-card{font-family:Roboto,Helvetica Neue,sans-serif}.mat-card-title{font-size:24px;font-weight:500}.mat-card-header .mat-card-title{font-size:20px}.mat-card-subtitle,.mat-card-content{font-size:14px}.mat-checkbox{font-family:Roboto,Helvetica Neue,sans-serif}.mat-checkbox-layout .mat-checkbox-label{line-height:24px}.mat-chip{font-size:14px;font-weight:500}.mat-chip .mat-chip-trailing-icon.mat-icon,.mat-chip .mat-chip-remove.mat-icon{font-size:18px}.mat-table{font-family:Roboto,Helvetica Neue,sans-serif}.mat-header-cell{font-size:12px;font-weight:500}.mat-cell,.mat-footer-cell{font-size:14px}.mat-calendar{font-family:Roboto,Helvetica Neue,sans-serif}.mat-calendar-body{font-size:13px}.mat-calendar-body-label,.mat-calendar-period-button{font-size:14px;font-weight:500}.mat-calendar-table-header th{font-size:11px;font-weight:400}.mat-dialog-title{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-expansion-panel-header{font-family:Roboto,Helvetica Neue,sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-form-field{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-form-field-wrapper{padding-bottom:1.34375em}.mat-form-field-prefix .mat-icon,.mat-form-field-suffix .mat-icon{font-size:150%;line-height:1.125}.mat-form-field-prefix .mat-icon-button,.mat-form-field-suffix .mat-icon-button{height:1.5em;width:1.5em}.mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-suffix .mat-icon-button .mat-icon{height:1.125em;line-height:1.125}.mat-form-field-infix{padding:.5em 0;border-top:.84375em solid rgba(0,0,0,0)}.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.34375em) scale(.75);width:133.3333333333%}.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.34374em) scale(.75);width:133.3333433333%}.mat-form-field-label-wrapper{top:-.84375em;padding-top:.84375em}.mat-form-field-label{top:1.34375em}.mat-form-field-underline{bottom:1.34375em}.mat-form-field-subscript-wrapper{font-size:75%;margin-top:.6666666667em;top:calc(100% - 1.7916666667em)}.mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:1.25em}.mat-form-field-appearance-legacy .mat-form-field-infix{padding:.4375em 0}.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);width:133.3333333333%}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);width:133.3333433333%}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);width:133.3333533333%}.mat-form-field-appearance-legacy .mat-form-field-label{top:1.28125em}.mat-form-field-appearance-legacy .mat-form-field-underline{bottom:1.25em}.mat-form-field-appearance-legacy .mat-form-field-subscript-wrapper{margin-top:.5416666667em;top:calc(100% - 1.6666666667em)}@media print{.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28122em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28121em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.2812em) scale(.75)}}.mat-form-field-appearance-fill .mat-form-field-infix{padding:.25em 0 .75em}.mat-form-field-appearance-fill .mat-form-field-label{top:1.09375em;margin-top:-.5em}.mat-form-field-appearance-fill.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-fill.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-fill.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-.59374em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-outline .mat-form-field-infix{padding:1em 0}.mat-form-field-appearance-outline .mat-form-field-label{top:1.84375em;margin-top:-.25em}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-outline.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-outline.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.59374em) scale(.75);width:133.3333433333%}.mat-grid-tile-header,.mat-grid-tile-footer{font-size:14px}.mat-grid-tile-header .mat-line,.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2),.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:12px}input.mat-input-element{margin-top:-.0625em}.mat-menu-item{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px}.mat-radio-button,.mat-select{font-family:Roboto,Helvetica Neue,sans-serif}.mat-select-trigger{height:1.125em}.mat-slide-toggle-content{font-family:Roboto,Helvetica Neue,sans-serif}.mat-slider-thumb-label-text{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:500}.mat-stepper-vertical,.mat-stepper-horizontal{font-family:Roboto,Helvetica Neue,sans-serif}.mat-step-label{font-size:14px;font-weight:400}.mat-step-sub-label-error{font-weight:400}.mat-step-label-error{font-size:14px}.mat-step-label-selected{font-size:14px;font-weight:500}.mat-tab-group{font-family:Roboto,Helvetica Neue,sans-serif}.mat-tab-label,.mat-tab-link{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0}.mat-tooltip{font-family:Roboto,Helvetica Neue,sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset{font-size:14px;padding-top:8px;padding-bottom:8px}.mat-list-item,.mat-list-option{font-family:Roboto,Helvetica Neue,sans-serif}.mat-list-base .mat-list-item{font-size:16px}.mat-list-base .mat-list-item .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base .mat-list-item .mat-line:nth-child(n+2){font-size:14px}.mat-list-base .mat-list-option{font-size:16px}.mat-list-base .mat-list-option .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base .mat-list-option .mat-line:nth-child(n+2){font-size:14px}.mat-list-base .mat-subheader{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}.mat-list-base[dense] .mat-list-item{font-size:12px}.mat-list-base[dense] .mat-list-item .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense] .mat-list-item .mat-line:nth-child(n+2){font-size:12px}.mat-list-base[dense] .mat-list-option{font-size:12px}.mat-list-base[dense] .mat-list-option .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense] .mat-list-option .mat-line:nth-child(n+2){font-size:12px}.mat-list-base[dense] .mat-subheader{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:500}.mat-option{font-family:Roboto,Helvetica Neue,sans-serif;font-size:16px}.mat-optgroup-label{font:500 14px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-simple-snackbar{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px}.mat-simple-snackbar-action{line-height:1;font-family:inherit;font-size:inherit;font-weight:500}.mat-tree{font-family:Roboto,Helvetica Neue,sans-serif}.mat-tree-node,.mat-nested-tree-node{font-weight:400;font-size:14px}.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0)}.cdk-high-contrast-active .mat-ripple-element{display:none}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator{position:relative}.mat-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator{position:relative}.mat-mdc-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-mdc-focus-indicator-display: block}.mat-ripple-element{background-color:#0000001a}.mat-option{color:#000000de}.mat-option:hover:not(.mat-option-disabled),.mat-option:focus:not(.mat-option-disabled){background:rgba(0,0,0,.04)}.mat-option.mat-selected:not(.mat-option-multiple):not(.mat-option-disabled){background:rgba(0,0,0,.04)}.mat-option.mat-active{background:rgba(0,0,0,.04);color:#000000de}.mat-option.mat-option-disabled{color:#00000061}.mat-primary .mat-option.mat-selected:not(.mat-option-disabled){color:#3f51b5}.mat-accent .mat-option.mat-selected:not(.mat-option-disabled){color:#ff4081}.mat-warn .mat-option.mat-selected:not(.mat-option-disabled){color:#f44336}.mat-optgroup-label{color:#0000008a}.mat-optgroup-disabled .mat-optgroup-label{color:#00000061}.mat-pseudo-checkbox{color:#0000008a}.mat-pseudo-checkbox:after{color:#fafafa}.mat-pseudo-checkbox-disabled{color:#b0b0b0}.mat-primary .mat-pseudo-checkbox-checked,.mat-primary .mat-pseudo-checkbox-indeterminate{background:#3f51b5}.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-indeterminate,.mat-accent .mat-pseudo-checkbox-checked,.mat-accent .mat-pseudo-checkbox-indeterminate{background:#ff4081}.mat-warn .mat-pseudo-checkbox-checked,.mat-warn .mat-pseudo-checkbox-indeterminate{background:#f44336}.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background:#b0b0b0}.mat-app-background{background-color:#fafafa;color:#000000de}.mat-elevation-z0{box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}.mat-elevation-z1{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.mat-elevation-z2{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.mat-elevation-z3{box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f}.mat-elevation-z4{box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-elevation-z5{box-shadow:0 3px 5px -1px #0003,0 5px 8px #00000024,0 1px 14px #0000001f}.mat-elevation-z6{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.mat-elevation-z7{box-shadow:0 4px 5px -2px #0003,0 7px 10px 1px #00000024,0 2px 16px 1px #0000001f}.mat-elevation-z8{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.mat-elevation-z9{box-shadow:0 5px 6px -3px #0003,0 9px 12px 1px #00000024,0 3px 16px 2px #0000001f}.mat-elevation-z10{box-shadow:0 6px 6px -3px #0003,0 10px 14px 1px #00000024,0 4px 18px 3px #0000001f}.mat-elevation-z11{box-shadow:0 6px 7px -4px #0003,0 11px 15px 1px #00000024,0 4px 20px 3px #0000001f}.mat-elevation-z12{box-shadow:0 7px 8px -4px #0003,0 12px 17px 2px #00000024,0 5px 22px 4px #0000001f}.mat-elevation-z13{box-shadow:0 7px 8px -4px #0003,0 13px 19px 2px #00000024,0 5px 24px 4px #0000001f}.mat-elevation-z14{box-shadow:0 7px 9px -4px #0003,0 14px 21px 2px #00000024,0 5px 26px 4px #0000001f}.mat-elevation-z15{box-shadow:0 8px 9px -5px #0003,0 15px 22px 2px #00000024,0 6px 28px 5px #0000001f}.mat-elevation-z16{box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f}.mat-elevation-z17{box-shadow:0 8px 11px -5px #0003,0 17px 26px 2px #00000024,0 6px 32px 5px #0000001f}.mat-elevation-z18{box-shadow:0 9px 11px -5px #0003,0 18px 28px 2px #00000024,0 7px 34px 6px #0000001f}.mat-elevation-z19{box-shadow:0 9px 12px -6px #0003,0 19px 29px 2px #00000024,0 7px 36px 6px #0000001f}.mat-elevation-z20{box-shadow:0 10px 13px -6px #0003,0 20px 31px 3px #00000024,0 8px 38px 7px #0000001f}.mat-elevation-z21{box-shadow:0 10px 13px -6px #0003,0 21px 33px 3px #00000024,0 8px 40px 7px #0000001f}.mat-elevation-z22{box-shadow:0 10px 14px -6px #0003,0 22px 35px 3px #00000024,0 8px 42px 7px #0000001f}.mat-elevation-z23{box-shadow:0 11px 14px -7px #0003,0 23px 36px 3px #00000024,0 9px 44px 8px #0000001f}.mat-elevation-z24{box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.mat-theme-loaded-marker{display:none}.mat-autocomplete-panel{background:#fff;color:#000000de}.mat-autocomplete-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover){background:#fff}.mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover):not(.mat-option-disabled){color:#000000de}.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-hidden .mat-badge-content{display:none}.mat-badge-content{position:absolute;text-align:center;display:inline-block;border-radius:50%;transition:transform .2s ease-in-out;transform:scale(.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:16px;height:16px;line-height:16px}.mat-badge-small.mat-badge-above .mat-badge-content{top:-8px}.mat-badge-small.mat-badge-below .mat-badge-content{bottom:-8px}.mat-badge-small.mat-badge-before .mat-badge-content{left:-16px}[dir=rtl] .mat-badge-small.mat-badge-before .mat-badge-content{left:auto;right:-16px}.mat-badge-small.mat-badge-after .mat-badge-content{right:-16px}[dir=rtl] .mat-badge-small.mat-badge-after .mat-badge-content{right:auto;left:-16px}.mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-8px}.mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-8px}.mat-badge-medium .mat-badge-content{width:22px;height:22px;line-height:22px}.mat-badge-medium.mat-badge-above .mat-badge-content{top:-11px}.mat-badge-medium.mat-badge-below .mat-badge-content{bottom:-11px}.mat-badge-medium.mat-badge-before .mat-badge-content{left:-22px}[dir=rtl] .mat-badge-medium.mat-badge-before .mat-badge-content{left:auto;right:-22px}.mat-badge-medium.mat-badge-after .mat-badge-content{right:-22px}[dir=rtl] .mat-badge-medium.mat-badge-after .mat-badge-content{right:auto;left:-22px}.mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-11px}.mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-11px}.mat-badge-large .mat-badge-content{width:28px;height:28px;line-height:28px}.mat-badge-large.mat-badge-above .mat-badge-content{top:-14px}.mat-badge-large.mat-badge-below .mat-badge-content{bottom:-14px}.mat-badge-large.mat-badge-before .mat-badge-content{left:-28px}[dir=rtl] .mat-badge-large.mat-badge-before .mat-badge-content{left:auto;right:-28px}.mat-badge-large.mat-badge-after .mat-badge-content{right:-28px}[dir=rtl] .mat-badge-large.mat-badge-after .mat-badge-content{right:auto;left:-28px}.mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-14px}.mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-14px}.mat-badge-content{color:#fff;background:#3f51b5}.cdk-high-contrast-active .mat-badge-content{outline:solid 1px;border-radius:0}.mat-badge-accent .mat-badge-content{background:#ff4081;color:#fff}.mat-badge-warn .mat-badge-content{color:#fff;background:#f44336}.mat-badge-disabled .mat-badge-content{background:#b9b9b9;color:#00000061}.mat-bottom-sheet-container{box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f;background:#fff;color:#000000de}.mat-button,.mat-icon-button,.mat-stroked-button{color:inherit;background:rgba(0,0,0,0)}.mat-button.mat-primary,.mat-icon-button.mat-primary,.mat-stroked-button.mat-primary{color:#3f51b5}.mat-button.mat-accent,.mat-icon-button.mat-accent,.mat-stroked-button.mat-accent{color:#ff4081}.mat-button.mat-warn,.mat-icon-button.mat-warn,.mat-stroked-button.mat-warn{color:#f44336}.mat-button.mat-primary.mat-button-disabled,.mat-button.mat-accent.mat-button-disabled,.mat-button.mat-warn.mat-button-disabled,.mat-button.mat-button-disabled.mat-button-disabled,.mat-icon-button.mat-primary.mat-button-disabled,.mat-icon-button.mat-accent.mat-button-disabled,.mat-icon-button.mat-warn.mat-button-disabled,.mat-icon-button.mat-button-disabled.mat-button-disabled,.mat-stroked-button.mat-primary.mat-button-disabled,.mat-stroked-button.mat-accent.mat-button-disabled,.mat-stroked-button.mat-warn.mat-button-disabled,.mat-stroked-button.mat-button-disabled.mat-button-disabled{color:#00000042}.mat-button.mat-primary .mat-button-focus-overlay,.mat-icon-button.mat-primary .mat-button-focus-overlay,.mat-stroked-button.mat-primary .mat-button-focus-overlay{background-color:#3f51b5}.mat-button.mat-accent .mat-button-focus-overlay,.mat-icon-button.mat-accent .mat-button-focus-overlay,.mat-stroked-button.mat-accent .mat-button-focus-overlay{background-color:#ff4081}.mat-button.mat-warn .mat-button-focus-overlay,.mat-icon-button.mat-warn .mat-button-focus-overlay,.mat-stroked-button.mat-warn .mat-button-focus-overlay{background-color:#f44336}.mat-button.mat-button-disabled .mat-button-focus-overlay,.mat-icon-button.mat-button-disabled .mat-button-focus-overlay,.mat-stroked-button.mat-button-disabled .mat-button-focus-overlay{background-color:#0000}.mat-button .mat-ripple-element,.mat-icon-button .mat-ripple-element,.mat-stroked-button .mat-ripple-element{opacity:.1;background-color:currentColor}.mat-button-focus-overlay{background:#000}.mat-stroked-button:not(.mat-button-disabled){border-color:#0000001f}.mat-flat-button,.mat-raised-button,.mat-fab,.mat-mini-fab{color:#000000de;background-color:#fff}.mat-flat-button.mat-primary,.mat-raised-button.mat-primary,.mat-fab.mat-primary,.mat-mini-fab.mat-primary,.mat-flat-button.mat-accent,.mat-raised-button.mat-accent,.mat-fab.mat-accent,.mat-mini-fab.mat-accent,.mat-flat-button.mat-warn,.mat-raised-button.mat-warn,.mat-fab.mat-warn,.mat-mini-fab.mat-warn{color:#fff}.mat-flat-button.mat-primary.mat-button-disabled,.mat-flat-button.mat-accent.mat-button-disabled,.mat-flat-button.mat-warn.mat-button-disabled,.mat-flat-button.mat-button-disabled.mat-button-disabled,.mat-raised-button.mat-primary.mat-button-disabled,.mat-raised-button.mat-accent.mat-button-disabled,.mat-raised-button.mat-warn.mat-button-disabled,.mat-raised-button.mat-button-disabled.mat-button-disabled,.mat-fab.mat-primary.mat-button-disabled,.mat-fab.mat-accent.mat-button-disabled,.mat-fab.mat-warn.mat-button-disabled,.mat-fab.mat-button-disabled.mat-button-disabled,.mat-mini-fab.mat-primary.mat-button-disabled,.mat-mini-fab.mat-accent.mat-button-disabled,.mat-mini-fab.mat-warn.mat-button-disabled,.mat-mini-fab.mat-button-disabled.mat-button-disabled{color:#00000042}.mat-flat-button.mat-primary,.mat-raised-button.mat-primary,.mat-fab.mat-primary,.mat-mini-fab.mat-primary{background-color:#3f51b5}.mat-flat-button.mat-accent,.mat-raised-button.mat-accent,.mat-fab.mat-accent,.mat-mini-fab.mat-accent{background-color:#ff4081}.mat-flat-button.mat-warn,.mat-raised-button.mat-warn,.mat-fab.mat-warn,.mat-mini-fab.mat-warn{background-color:#f44336}.mat-flat-button.mat-primary.mat-button-disabled,.mat-flat-button.mat-accent.mat-button-disabled,.mat-flat-button.mat-warn.mat-button-disabled,.mat-flat-button.mat-button-disabled.mat-button-disabled,.mat-raised-button.mat-primary.mat-button-disabled,.mat-raised-button.mat-accent.mat-button-disabled,.mat-raised-button.mat-warn.mat-button-disabled,.mat-raised-button.mat-button-disabled.mat-button-disabled,.mat-fab.mat-primary.mat-button-disabled,.mat-fab.mat-accent.mat-button-disabled,.mat-fab.mat-warn.mat-button-disabled,.mat-fab.mat-button-disabled.mat-button-disabled,.mat-mini-fab.mat-primary.mat-button-disabled,.mat-mini-fab.mat-accent.mat-button-disabled,.mat-mini-fab.mat-warn.mat-button-disabled,.mat-mini-fab.mat-button-disabled.mat-button-disabled{background-color:#0000001f}.mat-flat-button.mat-primary .mat-ripple-element,.mat-raised-button.mat-primary .mat-ripple-element,.mat-fab.mat-primary .mat-ripple-element,.mat-mini-fab.mat-primary .mat-ripple-element,.mat-flat-button.mat-accent .mat-ripple-element,.mat-raised-button.mat-accent .mat-ripple-element,.mat-fab.mat-accent .mat-ripple-element,.mat-mini-fab.mat-accent .mat-ripple-element,.mat-flat-button.mat-warn .mat-ripple-element,.mat-raised-button.mat-warn .mat-ripple-element,.mat-fab.mat-warn .mat-ripple-element,.mat-mini-fab.mat-warn .mat-ripple-element{background-color:#ffffff1a}.mat-stroked-button:not([class*=mat-elevation-z]),.mat-flat-button:not([class*=mat-elevation-z]){box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}.mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.mat-raised-button:not(.mat-button-disabled):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.mat-raised-button.mat-button-disabled:not([class*=mat-elevation-z]){box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}.mat-fab:not([class*=mat-elevation-z]),.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.mat-fab:not(.mat-button-disabled):active:not([class*=mat-elevation-z]),.mat-mini-fab:not(.mat-button-disabled):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px #0003,0 12px 17px 2px #00000024,0 5px 22px 4px #0000001f}.mat-fab.mat-button-disabled:not([class*=mat-elevation-z]),.mat-mini-fab.mat-button-disabled:not([class*=mat-elevation-z]){box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.mat-button-toggle{color:#00000061}.mat-button-toggle .mat-button-toggle-focus-overlay{background-color:#0000001f}.mat-button-toggle-appearance-standard{color:#000000de;background:#fff}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:#000}.mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:solid 1px #e0e0e0}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:solid 1px #e0e0e0}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:none;border-top:solid 1px #e0e0e0}.mat-button-toggle-checked{background-color:#e0e0e0;color:#0000008a}.mat-button-toggle-checked.mat-button-toggle-appearance-standard{color:#000000de}.mat-button-toggle-disabled{color:#00000042;background-color:#eee}.mat-button-toggle-disabled.mat-button-toggle-appearance-standard{background:#fff}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:#bdbdbd}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border:solid 1px #e0e0e0}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:48px}.mat-card{background:#fff;color:#000000de}.mat-card:not([class*=mat-elevation-z]){box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.mat-card.mat-card-flat:not([class*=mat-elevation-z]){box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}.mat-card-subtitle{color:#0000008a}.mat-checkbox-frame{border-color:#0000008a}.mat-checkbox-checkmark{fill:#fafafa}.mat-checkbox-checkmark-path{stroke:#fafafa!important}.mat-checkbox-mixedmark{background-color:#fafafa}.mat-checkbox-indeterminate.mat-primary .mat-checkbox-background,.mat-checkbox-checked.mat-primary .mat-checkbox-background{background-color:#3f51b5}.mat-checkbox-indeterminate.mat-accent .mat-checkbox-background,.mat-checkbox-checked.mat-accent .mat-checkbox-background{background-color:#ff4081}.mat-checkbox-indeterminate.mat-warn .mat-checkbox-background,.mat-checkbox-checked.mat-warn .mat-checkbox-background{background-color:#f44336}.mat-checkbox-disabled.mat-checkbox-checked .mat-checkbox-background,.mat-checkbox-disabled.mat-checkbox-indeterminate .mat-checkbox-background{background-color:#b0b0b0}.mat-checkbox-disabled:not(.mat-checkbox-checked) .mat-checkbox-frame{border-color:#b0b0b0}.mat-checkbox-disabled .mat-checkbox-label{color:#00000061}.mat-checkbox .mat-ripple-element{background-color:#000}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element{background:#3f51b5}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element{background:#ff4081}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element{background:#f44336}.mat-chip.mat-standard-chip{background-color:#e0e0e0;color:#000000de}.mat-chip.mat-standard-chip .mat-chip-remove{color:#000000de;opacity:.4}.mat-chip.mat-standard-chip:not(.mat-chip-disabled):active{box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f}.mat-chip.mat-standard-chip:not(.mat-chip-disabled) .mat-chip-remove:hover{opacity:.54}.mat-chip.mat-standard-chip.mat-chip-disabled{opacity:.4}.mat-chip.mat-standard-chip:after{background:#000}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary{background-color:#3f51b5;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-ripple-element{background-color:#ffffff1a}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn{background-color:#f44336;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-ripple-element{background-color:#ffffff1a}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent{background-color:#ff4081;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-ripple-element{background-color:#ffffff1a}.mat-table{background:#fff}.mat-table thead,.mat-table tbody,.mat-table tfoot,mat-header-row,mat-row,mat-footer-row,[mat-header-row],[mat-row],[mat-footer-row],.mat-table-sticky{background:inherit}mat-row,mat-header-row,mat-footer-row,th.mat-header-cell,td.mat-cell,td.mat-footer-cell{border-bottom-color:#0000001f}.mat-header-cell{color:#0000008a}.mat-cell,.mat-footer-cell{color:#000000de}.mat-calendar-arrow{fill:#0000008a}.mat-datepicker-toggle,.mat-datepicker-content .mat-calendar-next-button,.mat-datepicker-content .mat-calendar-previous-button{color:#0000008a}.mat-calendar-table-header-divider:after{background:rgba(0,0,0,.12)}.mat-calendar-table-header,.mat-calendar-body-label{color:#0000008a}.mat-calendar-body-cell-content,.mat-date-range-input-separator{color:#000000de;border-color:#0000}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:#00000061}.mat-form-field-disabled .mat-date-range-input-separator{color:#00000061}.mat-calendar-body-in-preview{color:#0000003d}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:#00000061}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:#0000002e}.mat-calendar-body-in-range:before{background:rgba(63,81,181,.2)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-calendar-body-comparison-bridge-start:before,[dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(to right,rgba(63,81,181,.2) 50%,rgba(249,171,0,.2) 50%)}.mat-calendar-body-comparison-bridge-end:before,[dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(to left,rgba(63,81,181,.2) 50%,rgba(249,171,0,.2) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after{background:#a8dab5}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-calendar-body-selected{background-color:#3f51b5;color:#fff}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:#3f51b566}.mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#3f51b54d}@media (hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#3f51b54d}}.mat-datepicker-content{box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;background-color:#fff;color:#000000de}.mat-datepicker-content.mat-accent .mat-calendar-body-in-range:before{background:rgba(255,64,129,.2)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-start:before,.mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(to right,rgba(255,64,129,.2) 50%,rgba(249,171,0,.2) 50%)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-end:before,.mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(to left,rgba(255,64,129,.2) 50%,rgba(249,171,0,.2) 50%)}.mat-datepicker-content.mat-accent .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after{background:#a8dab5}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-datepicker-content.mat-accent .mat-calendar-body-selected{background-color:#ff4081;color:#fff}.mat-datepicker-content.mat-accent .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:#ff408166}.mat-datepicker-content.mat-accent .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content.mat-accent .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-accent .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#ff40814d}@media (hover: hover){.mat-datepicker-content.mat-accent .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#ff40814d}}.mat-datepicker-content.mat-warn .mat-calendar-body-in-range:before{background:rgba(244,67,54,.2)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-start:before,.mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(to right,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 50%)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-end:before,.mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(to left,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 50%)}.mat-datepicker-content.mat-warn .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after{background:#a8dab5}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-datepicker-content.mat-warn .mat-calendar-body-selected{background-color:#f44336;color:#fff}.mat-datepicker-content.mat-warn .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:#f4433666}.mat-datepicker-content.mat-warn .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content.mat-warn .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-warn .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#f443364d}@media (hover: hover){.mat-datepicker-content.mat-warn .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#f443364d}}.mat-datepicker-content-touch{box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.mat-datepicker-toggle-active{color:#3f51b5}.mat-datepicker-toggle-active.mat-accent{color:#ff4081}.mat-datepicker-toggle-active.mat-warn{color:#f44336}.mat-date-range-input-inner[disabled]{color:#00000061}.mat-dialog-container{box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f;background:#fff;color:#000000de}.mat-divider{border-top-color:#0000001f}.mat-divider-vertical{border-right-color:#0000001f}.mat-expansion-panel{background:#fff;color:#000000de}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.mat-action-row{border-top-color:#0000001f}.mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true]),.mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true]),.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true]){background:rgba(0,0,0,.04)}@media (hover: none){.mat-expansion-panel:not(.mat-expanded):not([aria-disabled=true]) .mat-expansion-panel-header:hover{background:#fff}}.mat-expansion-panel-header-title{color:#000000de}.mat-expansion-panel-header-description,.mat-expansion-indicator:after{color:#0000008a}.mat-expansion-panel-header[aria-disabled=true]{color:#00000042}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header{height:48px}.mat-expansion-panel-header.mat-expanded{height:64px}.mat-form-field-label,.mat-hint{color:#0009}.mat-form-field.mat-focused .mat-form-field-label{color:#3f51b5}.mat-form-field.mat-focused .mat-form-field-label.mat-accent{color:#ff4081}.mat-form-field.mat-focused .mat-form-field-label.mat-warn{color:#f44336}.mat-focused .mat-form-field-required-marker{color:#ff4081}.mat-form-field-ripple{background-color:#000000de}.mat-form-field.mat-focused .mat-form-field-ripple{background-color:#3f51b5}.mat-form-field.mat-focused .mat-form-field-ripple.mat-accent{background-color:#ff4081}.mat-form-field.mat-focused .mat-form-field-ripple.mat-warn{background-color:#f44336}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid) .mat-form-field-infix:after{color:#3f51b5}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-accent .mat-form-field-infix:after{color:#ff4081}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-warn .mat-form-field-infix:after{color:#f44336}.mat-form-field.mat-form-field-invalid .mat-form-field-label,.mat-form-field.mat-form-field-invalid .mat-form-field-label.mat-accent,.mat-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#f44336}.mat-form-field.mat-form-field-invalid .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple.mat-accent{background-color:#f44336}.mat-error{color:#f44336}.mat-form-field-appearance-legacy .mat-form-field-label,.mat-form-field-appearance-legacy .mat-hint{color:#0000008a}.mat-form-field-appearance-legacy .mat-form-field-underline{background-color:#0000006b}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(to right,rgba(0,0,0,.42) 0%,rgba(0,0,0,.42) 33%,transparent 0%);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-standard .mat-form-field-underline{background-color:#0000006b}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(to right,rgba(0,0,0,.42) 0%,rgba(0,0,0,.42) 33%,transparent 0%);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-fill .mat-form-field-flex{background-color:#0000000a}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{background-color:#00000005}.mat-form-field-appearance-fill .mat-form-field-underline:before{background-color:#0000006b}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-label{color:#00000061}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-underline:before{background-color:#0000}.mat-form-field-appearance-outline .mat-form-field-outline{color:#0000001f}.mat-form-field-appearance-outline .mat-form-field-outline-thick{color:#000000de}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{color:#3f51b5}.mat-form-field-appearance-outline.mat-focused.mat-accent .mat-form-field-outline-thick{color:#ff4081}.mat-form-field-appearance-outline.mat-focused.mat-warn .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick{color:#f44336}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-label{color:#00000061}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:#0000000f}.mat-icon.mat-primary{color:#3f51b5}.mat-icon.mat-accent{color:#ff4081}.mat-icon.mat-warn{color:#f44336}.mat-form-field-type-mat-native-select .mat-form-field-infix:after{color:#0000008a}.mat-input-element:disabled,.mat-form-field-type-mat-native-select.mat-form-field-disabled .mat-form-field-infix:after{color:#00000061}.mat-input-element{caret-color:#3f51b5}.mat-input-element::placeholder{color:#0000006b}.mat-input-element::-moz-placeholder{color:#0000006b}.mat-input-element::-webkit-input-placeholder{color:#0000006b}.mat-input-element:-ms-input-placeholder{color:#0000006b}.mat-form-field.mat-accent .mat-input-element{caret-color:#ff4081}.mat-form-field.mat-warn .mat-input-element,.mat-form-field-invalid .mat-input-element{caret-color:#f44336}.mat-form-field-type-mat-native-select.mat-form-field-invalid .mat-form-field-infix:after{color:#f44336}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{color:#000000de}.mat-list-base .mat-subheader{color:#0000008a}.mat-list-base .mat-list-item-disabled{background-color:#eee;color:#00000061}.mat-list-option:hover,.mat-list-option:focus,.mat-nav-list .mat-list-item:hover,.mat-nav-list .mat-list-item:focus,.mat-action-list .mat-list-item:hover,.mat-action-list .mat-list-item:focus{background:rgba(0,0,0,.04)}.mat-list-single-selected-option,.mat-list-single-selected-option:hover,.mat-list-single-selected-option:focus{background:rgba(0,0,0,.12)}.mat-menu-panel{background:#fff}.mat-menu-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-menu-item{background:rgba(0,0,0,0);color:#000000de}.mat-menu-item[disabled],.mat-menu-item[disabled] .mat-menu-submenu-icon,.mat-menu-item[disabled] .mat-icon-no-color{color:#00000061}.mat-menu-item .mat-icon-no-color,.mat-menu-submenu-icon{color:#0000008a}.mat-menu-item:hover:not([disabled]),.mat-menu-item.cdk-program-focused:not([disabled]),.mat-menu-item.cdk-keyboard-focused:not([disabled]),.mat-menu-item-highlighted:not([disabled]){background:rgba(0,0,0,.04)}.mat-paginator{background:#fff}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{color:#0000008a}.mat-paginator-decrement,.mat-paginator-increment{border-top:2px solid rgba(0,0,0,.54);border-right:2px solid rgba(0,0,0,.54)}.mat-paginator-first,.mat-paginator-last{border-top:2px solid rgba(0,0,0,.54)}.mat-icon-button[disabled] .mat-paginator-decrement,.mat-icon-button[disabled] .mat-paginator-increment,.mat-icon-button[disabled] .mat-paginator-first,.mat-icon-button[disabled] .mat-paginator-last{border-color:#00000061}.mat-paginator-container{min-height:56px}.mat-progress-bar-background{fill:#cbd0e9}.mat-progress-bar-buffer{background-color:#cbd0e9}.mat-progress-bar-fill:after{background-color:#3f51b5}.mat-progress-bar.mat-accent .mat-progress-bar-background{fill:#fbccdc}.mat-progress-bar.mat-accent .mat-progress-bar-buffer{background-color:#fbccdc}.mat-progress-bar.mat-accent .mat-progress-bar-fill:after{background-color:#ff4081}.mat-progress-bar.mat-warn .mat-progress-bar-background{fill:#f9ccc9}.mat-progress-bar.mat-warn .mat-progress-bar-buffer{background-color:#f9ccc9}.mat-progress-bar.mat-warn .mat-progress-bar-fill:after{background-color:#f44336}.mat-progress-spinner circle,.mat-spinner circle{stroke:#3f51b5}.mat-progress-spinner.mat-accent circle,.mat-spinner.mat-accent circle{stroke:#ff4081}.mat-progress-spinner.mat-warn circle,.mat-spinner.mat-warn circle{stroke:#f44336}.mat-radio-outer-circle{border-color:#0000008a}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:#3f51b5}.mat-radio-button.mat-primary .mat-radio-inner-circle,.mat-radio-button.mat-primary .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-primary:active .mat-radio-persistent-ripple{background-color:#3f51b5}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff4081}.mat-radio-button.mat-accent .mat-radio-inner-circle,.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:#ff4081}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-outer-circle{border-color:#f44336}.mat-radio-button.mat-warn .mat-radio-inner-circle,.mat-radio-button.mat-warn .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-warn:active .mat-radio-persistent-ripple{background-color:#f44336}.mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-outer-circle,.mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:#00000061}.mat-radio-button.mat-radio-disabled .mat-radio-ripple .mat-ripple-element,.mat-radio-button.mat-radio-disabled .mat-radio-inner-circle{background-color:#00000061}.mat-radio-button.mat-radio-disabled .mat-radio-label-content{color:#00000061}.mat-radio-button .mat-ripple-element{background-color:#000}.mat-select-value{color:#000000de}.mat-select-placeholder{color:#0000006b}.mat-select-disabled .mat-select-value{color:#00000061}.mat-select-arrow{color:#0000008a}.mat-select-panel{background:#fff}.mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-select-panel .mat-option.mat-selected:not(.mat-option-multiple){background:rgba(0,0,0,.12)}.mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:#3f51b5}.mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#ff4081}.mat-form-field.mat-focused.mat-warn .mat-select-arrow,.mat-form-field .mat-select.mat-select-invalid .mat-select-arrow{color:#f44336}.mat-form-field .mat-select.mat-select-disabled .mat-select-arrow{color:#00000061}.mat-drawer-container{background-color:#fafafa;color:#000000de}.mat-drawer{background-color:#fff;color:#000000de}.mat-drawer.mat-drawer-push{background-color:#fff}.mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f}.mat-drawer-side{border-right:solid 1px rgba(0,0,0,.12)}.mat-drawer-side.mat-drawer-end,[dir=rtl] .mat-drawer-side{border-left:solid 1px rgba(0,0,0,.12);border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-left:none;border-right:solid 1px rgba(0,0,0,.12)}.mat-drawer-backdrop.mat-drawer-shown{background-color:#0009}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:#ff4081}.mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:#ff40818a}.mat-slide-toggle.mat-checked .mat-ripple-element{background-color:#ff4081}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-thumb{background-color:#3f51b5}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar{background-color:#3f51b58a}.mat-slide-toggle.mat-primary.mat-checked .mat-ripple-element{background-color:#3f51b5}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-thumb{background-color:#f44336}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:#f443368a}.mat-slide-toggle.mat-warn.mat-checked .mat-ripple-element{background-color:#f44336}.mat-slide-toggle:not(.mat-checked) .mat-ripple-element{background-color:#000}.mat-slide-toggle-thumb{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#fafafa}.mat-slide-toggle-bar{background-color:#00000061}.mat-slider-track-background{background-color:#00000042}.mat-slider.mat-primary .mat-slider-track-fill,.mat-slider.mat-primary .mat-slider-thumb,.mat-slider.mat-primary .mat-slider-thumb-label{background-color:#3f51b5}.mat-slider.mat-primary .mat-slider-thumb-label-text{color:#fff}.mat-slider.mat-primary .mat-slider-focus-ring{background-color:#3f51b533}.mat-slider.mat-accent .mat-slider-track-fill,.mat-slider.mat-accent .mat-slider-thumb,.mat-slider.mat-accent .mat-slider-thumb-label{background-color:#ff4081}.mat-slider.mat-accent .mat-slider-thumb-label-text{color:#fff}.mat-slider.mat-accent .mat-slider-focus-ring{background-color:#ff408133}.mat-slider.mat-warn .mat-slider-track-fill,.mat-slider.mat-warn .mat-slider-thumb,.mat-slider.mat-warn .mat-slider-thumb-label{background-color:#f44336}.mat-slider.mat-warn .mat-slider-thumb-label-text{color:#fff}.mat-slider.mat-warn .mat-slider-focus-ring{background-color:#f4433633}.mat-slider:hover .mat-slider-track-background,.mat-slider.cdk-focused .mat-slider-track-background{background-color:#00000061}.mat-slider.mat-slider-disabled .mat-slider-track-background,.mat-slider.mat-slider-disabled .mat-slider-track-fill,.mat-slider.mat-slider-disabled .mat-slider-thumb,.mat-slider.mat-slider-disabled:hover .mat-slider-track-background{background-color:#00000042}.mat-slider.mat-slider-min-value .mat-slider-focus-ring{background-color:#0000001f}.mat-slider.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,.mat-slider.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label{background-color:#000000de}.mat-slider.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,.mat-slider.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label{background-color:#00000042}.mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb{border-color:#00000042;background-color:#0000}.mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb,.mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb{border-color:#00000061}.mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb,.mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb{border-color:#00000042}.mat-slider-has-ticks .mat-slider-wrapper:after{border-color:#000000b3}.mat-slider-horizontal .mat-slider-ticks{background-image:repeating-linear-gradient(to right,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent);background-image:-moz-repeating-linear-gradient(.0001deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-slider-vertical .mat-slider-ticks{background-image:repeating-linear-gradient(to bottom,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused,.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:#0000000a}.mat-step-header:hover[aria-disabled=true]{cursor:default}@media (hover: none){.mat-step-header:hover{background:none}}.mat-step-header .mat-step-label,.mat-step-header .mat-step-optional{color:#0000008a}.mat-step-header .mat-step-icon{background-color:#0000008a;color:#fff}.mat-step-header .mat-step-icon-selected,.mat-step-header .mat-step-icon-state-done,.mat-step-header .mat-step-icon-state-edit{background-color:#3f51b5;color:#fff}.mat-step-header.mat-accent .mat-step-icon{color:#fff}.mat-step-header.mat-accent .mat-step-icon-selected,.mat-step-header.mat-accent .mat-step-icon-state-done,.mat-step-header.mat-accent .mat-step-icon-state-edit{background-color:#ff4081;color:#fff}.mat-step-header.mat-warn .mat-step-icon{color:#fff}.mat-step-header.mat-warn .mat-step-icon-selected,.mat-step-header.mat-warn .mat-step-icon-state-done,.mat-step-header.mat-warn .mat-step-icon-state-edit{background-color:#f44336;color:#fff}.mat-step-header .mat-step-icon-state-error{background-color:#0000;color:#f44336}.mat-step-header .mat-step-label.mat-step-label-active{color:#000000de}.mat-step-header .mat-step-label.mat-step-label-error{color:#f44336}.mat-stepper-horizontal,.mat-stepper-vertical{background-color:#fff}.mat-stepper-vertical-line:before{border-left-color:#0000001f}.mat-horizontal-stepper-header:before,.mat-horizontal-stepper-header:after,.mat-stepper-horizontal-line{border-top-color:#0000001f}.mat-horizontal-stepper-header{height:72px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header,.mat-vertical-stepper-header{padding:24px}.mat-stepper-vertical-line:before{top:-16px;bottom:-16px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:after,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:before{top:36px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{top:36px}.mat-sort-header-arrow{color:#757575}.mat-tab-nav-bar,.mat-tab-header{border-bottom:1px solid rgba(0,0,0,.12)}.mat-tab-group-inverted-header .mat-tab-nav-bar,.mat-tab-group-inverted-header .mat-tab-header{border-top:1px solid rgba(0,0,0,.12);border-bottom:none}.mat-tab-label,.mat-tab-link{color:#000000de}.mat-tab-label.mat-tab-disabled,.mat-tab-link.mat-tab-disabled{color:#00000061}.mat-tab-header-pagination-chevron{border-color:#000000de}.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:#00000061}.mat-tab-group[class*=mat-background-]>.mat-tab-header,.mat-tab-nav-bar[class*=mat-background-]{border-bottom:none;border-top:none}.mat-tab-group.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:#c5cae94d}.mat-tab-group.mat-primary .mat-ink-bar,.mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:#3f51b5}.mat-tab-group.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:#ff80ab4d}.mat-tab-group.mat-accent .mat-ink-bar,.mat-tab-nav-bar.mat-accent .mat-ink-bar{background-color:#ff4081}.mat-tab-group.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:#ffcdd24d}.mat-tab-group.mat-warn .mat-ink-bar,.mat-tab-nav-bar.mat-warn .mat-ink-bar{background-color:#f44336}.mat-tab-group.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:#c5cae94d}.mat-tab-group.mat-background-primary>.mat-tab-header,.mat-tab-group.mat-background-primary>.mat-tab-link-container,.mat-tab-group.mat-background-primary>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination{background-color:#3f51b5}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:#fff6}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:#fff;opacity:.4}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-ripple-element,.mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element{background-color:#fff;opacity:.12}.mat-tab-group.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:#ff80ab4d}.mat-tab-group.mat-background-accent>.mat-tab-header,.mat-tab-group.mat-background-accent>.mat-tab-link-container,.mat-tab-group.mat-background-accent>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination{background-color:#ff4081}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:#fff6}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:#fff;opacity:.4}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-ripple-element,.mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element{background-color:#fff;opacity:.12}.mat-tab-group.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:#ffcdd24d}.mat-tab-group.mat-background-warn>.mat-tab-header,.mat-tab-group.mat-background-warn>.mat-tab-link-container,.mat-tab-group.mat-background-warn>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination{background-color:#f44336}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:#fff6}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:#fff;opacity:.4}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-ripple-element,.mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element{background-color:#fff;opacity:.12}.mat-toolbar{background:#f5f5f5;color:#000000de}.mat-toolbar.mat-primary{background:#3f51b5;color:#fff}.mat-toolbar.mat-accent{background:#ff4081;color:#fff}.mat-toolbar.mat-warn{background:#f44336;color:#fff}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}.mat-tooltip{background:rgba(97,97,97,.9)}.mat-tree{background:#fff}.mat-tree-node,.mat-nested-tree-node{color:#000000de}.mat-tree-node{min-height:48px}.mat-snack-bar-container{color:#ffffffb3;background:#323232;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.mat-simple-snackbar-action{color:#ff4081}@font-face{font-family:RobotoTodd;src:url(Roboto-Regular.a8e6f6203d22df08.ttf);font-weight:400;font-style:normal}@font-face{font-family:RobotoTodd;src:url(Roboto-Bold.3b887fc8dca30f62.ttf);font-weight:700;font-style:normal}@font-face{font-family:TechMono;src:url(TechMono.5c8f60d90e003254.ttf);font-weight:400;font-style:normal}html,body{height:320px;width:460px;background-color:#000}body{margin:0;font-family:RobotoTodd,Helvetica Neue,sans-serif;color:#00f200}.activeHeader{border-left:2px solid rgb(0,242,0)!important;border-right:2px solid rgb(0,242,0)!important;border-bottom:1px solid black;margin-bottom:-1px!important;padding-right:5px;padding-left:5px}.baseActiveHeader{text-transform:uppercase;font-weight:700;margin-bottom:0;margin-top:5px;border-right:2px solid transparent;border-left:2px solid transparent;padding-right:5px;padding-left:5px}.inactiveHeader{color:#00f2004d}.footer{#background-color: rgba(0,242,0,.3);position:fixed;left:0;bottom:0;width:460px;height:6.5%}.footer-text,.secondary-color{background-color:#00f2004d}.menu-selected{background-color:#00f200;color:#000}.mat-dialog-container{background:black;color:#00f200;padding:0!important;width:460px!important}.mat-dialog-content{max-height:100vh!important;margin:0!important}.cdk-overlay-pane{max-width:100%!important}.rotating-image{animation:rotateY 3s linear infinite}@keyframes rotateY{0%{transform:rotateY(0)}to{transform:rotateY(360deg)}}.keyboard_key{border:1px rgba(0,242,0,.3) solid;margin:unset!important;padding:4px;min-width:20px;text-align:center}.keyboard_current{background-color:#00f200;color:#000} +.mat-badge-content{font-weight:600;font-size:12px;font-family:Roboto,Helvetica Neue,sans-serif}.mat-badge-small .mat-badge-content{font-size:9px}.mat-badge-large .mat-badge-content{font-size:24px}.mat-h1,.mat-headline,.mat-typography .mat-h1,.mat-typography .mat-headline,.mat-typography h1{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2,.mat-title,.mat-typography .mat-h2,.mat-typography .mat-title,.mat-typography h2{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h3,.mat-subheading-2,.mat-typography .mat-h3,.mat-typography .mat-subheading-2,.mat-typography h3{font:400 16px/28px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h4,.mat-subheading-1,.mat-typography .mat-h4,.mat-typography .mat-subheading-1,.mat-typography h4{font:400 15px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h5,.mat-typography .mat-h5,.mat-typography h5{font:400 11.62px/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-h6,.mat-typography .mat-h6,.mat-typography h6{font:400 9.38px/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-body-strong,.mat-body-2,.mat-typography .mat-body-strong,.mat-typography .mat-body-2{font:500 14px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-body,.mat-body-1,.mat-typography .mat-body,.mat-typography .mat-body-1,.mat-typography{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-body p,.mat-body-1 p,.mat-typography .mat-body p,.mat-typography .mat-body-1 p,.mat-typography p{margin:0 0 12px}.mat-small,.mat-caption,.mat-typography .mat-small,.mat-typography .mat-caption{font:400 12px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-display-4,.mat-typography .mat-display-4{font:300 112px/112px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.05em;margin:0 0 56px}.mat-display-3,.mat-typography .mat-display-3{font:400 56px/56px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.02em;margin:0 0 64px}.mat-display-2,.mat-typography .mat-display-2{font:400 45px/48px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.005em;margin:0 0 64px}.mat-display-1,.mat-typography .mat-display-1{font:400 34px/40px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-bottom-sheet-container{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-button,.mat-raised-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button,.mat-fab,.mat-mini-fab{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}.mat-button-toggle,.mat-card{font-family:Roboto,Helvetica Neue,sans-serif}.mat-card-title{font-size:24px;font-weight:500}.mat-card-header .mat-card-title{font-size:20px}.mat-card-subtitle,.mat-card-content{font-size:14px}.mat-checkbox{font-family:Roboto,Helvetica Neue,sans-serif}.mat-checkbox-layout .mat-checkbox-label{line-height:24px}.mat-chip{font-size:14px;font-weight:500}.mat-chip .mat-chip-trailing-icon.mat-icon,.mat-chip .mat-chip-remove.mat-icon{font-size:18px}.mat-table{font-family:Roboto,Helvetica Neue,sans-serif}.mat-header-cell{font-size:12px;font-weight:500}.mat-cell,.mat-footer-cell{font-size:14px}.mat-calendar{font-family:Roboto,Helvetica Neue,sans-serif}.mat-calendar-body{font-size:13px}.mat-calendar-body-label,.mat-calendar-period-button{font-size:14px;font-weight:500}.mat-calendar-table-header th{font-size:11px;font-weight:400}.mat-dialog-title{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-expansion-panel-header{font-family:Roboto,Helvetica Neue,sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-form-field{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-form-field-wrapper{padding-bottom:1.34375em}.mat-form-field-prefix .mat-icon,.mat-form-field-suffix .mat-icon{font-size:150%;line-height:1.125}.mat-form-field-prefix .mat-icon-button,.mat-form-field-suffix .mat-icon-button{height:1.5em;width:1.5em}.mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-suffix .mat-icon-button .mat-icon{height:1.125em;line-height:1.125}.mat-form-field-infix{padding:.5em 0;border-top:.84375em solid rgba(0,0,0,0)}.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.34375em) scale(.75);width:133.3333333333%}.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.34374em) scale(.75);width:133.3333433333%}.mat-form-field-label-wrapper{top:-.84375em;padding-top:.84375em}.mat-form-field-label{top:1.34375em}.mat-form-field-underline{bottom:1.34375em}.mat-form-field-subscript-wrapper{font-size:75%;margin-top:.6666666667em;top:calc(100% - 1.7916666667em)}.mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:1.25em}.mat-form-field-appearance-legacy .mat-form-field-infix{padding:.4375em 0}.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);width:133.3333333333%}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);width:133.3333433333%}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);width:133.3333533333%}.mat-form-field-appearance-legacy .mat-form-field-label{top:1.28125em}.mat-form-field-appearance-legacy .mat-form-field-underline{bottom:1.25em}.mat-form-field-appearance-legacy .mat-form-field-subscript-wrapper{margin-top:.5416666667em;top:calc(100% - 1.6666666667em)}@media print{.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28122em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28121em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.2812em) scale(.75)}}.mat-form-field-appearance-fill .mat-form-field-infix{padding:.25em 0 .75em}.mat-form-field-appearance-fill .mat-form-field-label{top:1.09375em;margin-top:-.5em}.mat-form-field-appearance-fill.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-fill.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-fill.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-.59374em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-outline .mat-form-field-infix{padding:1em 0}.mat-form-field-appearance-outline .mat-form-field-label{top:1.84375em;margin-top:-.25em}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-outline.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-outline.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.59374em) scale(.75);width:133.3333433333%}.mat-grid-tile-header,.mat-grid-tile-footer{font-size:14px}.mat-grid-tile-header .mat-line,.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2),.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:12px}input.mat-input-element{margin-top:-.0625em}.mat-menu-item{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px}.mat-radio-button,.mat-select{font-family:Roboto,Helvetica Neue,sans-serif}.mat-select-trigger{height:1.125em}.mat-slide-toggle-content{font-family:Roboto,Helvetica Neue,sans-serif}.mat-slider-thumb-label-text{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:500}.mat-stepper-vertical,.mat-stepper-horizontal{font-family:Roboto,Helvetica Neue,sans-serif}.mat-step-label{font-size:14px;font-weight:400}.mat-step-sub-label-error{font-weight:400}.mat-step-label-error{font-size:14px}.mat-step-label-selected{font-size:14px;font-weight:500}.mat-tab-group{font-family:Roboto,Helvetica Neue,sans-serif}.mat-tab-label,.mat-tab-link{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0}.mat-tooltip{font-family:Roboto,Helvetica Neue,sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset{font-size:14px;padding-top:8px;padding-bottom:8px}.mat-list-item,.mat-list-option{font-family:Roboto,Helvetica Neue,sans-serif}.mat-list-base .mat-list-item{font-size:16px}.mat-list-base .mat-list-item .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base .mat-list-item .mat-line:nth-child(n+2){font-size:14px}.mat-list-base .mat-list-option{font-size:16px}.mat-list-base .mat-list-option .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base .mat-list-option .mat-line:nth-child(n+2){font-size:14px}.mat-list-base .mat-subheader{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}.mat-list-base[dense] .mat-list-item{font-size:12px}.mat-list-base[dense] .mat-list-item .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense] .mat-list-item .mat-line:nth-child(n+2){font-size:12px}.mat-list-base[dense] .mat-list-option{font-size:12px}.mat-list-base[dense] .mat-list-option .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense] .mat-list-option .mat-line:nth-child(n+2){font-size:12px}.mat-list-base[dense] .mat-subheader{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:500}.mat-option{font-family:Roboto,Helvetica Neue,sans-serif;font-size:16px}.mat-optgroup-label{font:500 14px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-simple-snackbar{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px}.mat-simple-snackbar-action{line-height:1;font-family:inherit;font-size:inherit;font-weight:500}.mat-tree{font-family:Roboto,Helvetica Neue,sans-serif}.mat-tree-node,.mat-nested-tree-node{font-weight:400;font-size:14px}.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0)}.cdk-high-contrast-active .mat-ripple-element{display:none}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator{position:relative}.mat-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator{position:relative}.mat-mdc-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-mdc-focus-indicator-display: block}.mat-ripple-element{background-color:#0000001a}.mat-option{color:#000000de}.mat-option:hover:not(.mat-option-disabled),.mat-option:focus:not(.mat-option-disabled){background:rgba(0,0,0,.04)}.mat-option.mat-selected:not(.mat-option-multiple):not(.mat-option-disabled){background:rgba(0,0,0,.04)}.mat-option.mat-active{background:rgba(0,0,0,.04);color:#000000de}.mat-option.mat-option-disabled{color:#00000061}.mat-primary .mat-option.mat-selected:not(.mat-option-disabled){color:#3f51b5}.mat-accent .mat-option.mat-selected:not(.mat-option-disabled){color:#ff4081}.mat-warn .mat-option.mat-selected:not(.mat-option-disabled){color:#f44336}.mat-optgroup-label{color:#0000008a}.mat-optgroup-disabled .mat-optgroup-label{color:#00000061}.mat-pseudo-checkbox{color:#0000008a}.mat-pseudo-checkbox:after{color:#fafafa}.mat-pseudo-checkbox-disabled{color:#b0b0b0}.mat-primary .mat-pseudo-checkbox-checked,.mat-primary .mat-pseudo-checkbox-indeterminate{background:#3f51b5}.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-indeterminate,.mat-accent .mat-pseudo-checkbox-checked,.mat-accent .mat-pseudo-checkbox-indeterminate{background:#ff4081}.mat-warn .mat-pseudo-checkbox-checked,.mat-warn .mat-pseudo-checkbox-indeterminate{background:#f44336}.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background:#b0b0b0}.mat-app-background{background-color:#fafafa;color:#000000de}.mat-elevation-z0{box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}.mat-elevation-z1{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.mat-elevation-z2{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.mat-elevation-z3{box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f}.mat-elevation-z4{box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-elevation-z5{box-shadow:0 3px 5px -1px #0003,0 5px 8px #00000024,0 1px 14px #0000001f}.mat-elevation-z6{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.mat-elevation-z7{box-shadow:0 4px 5px -2px #0003,0 7px 10px 1px #00000024,0 2px 16px 1px #0000001f}.mat-elevation-z8{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.mat-elevation-z9{box-shadow:0 5px 6px -3px #0003,0 9px 12px 1px #00000024,0 3px 16px 2px #0000001f}.mat-elevation-z10{box-shadow:0 6px 6px -3px #0003,0 10px 14px 1px #00000024,0 4px 18px 3px #0000001f}.mat-elevation-z11{box-shadow:0 6px 7px -4px #0003,0 11px 15px 1px #00000024,0 4px 20px 3px #0000001f}.mat-elevation-z12{box-shadow:0 7px 8px -4px #0003,0 12px 17px 2px #00000024,0 5px 22px 4px #0000001f}.mat-elevation-z13{box-shadow:0 7px 8px -4px #0003,0 13px 19px 2px #00000024,0 5px 24px 4px #0000001f}.mat-elevation-z14{box-shadow:0 7px 9px -4px #0003,0 14px 21px 2px #00000024,0 5px 26px 4px #0000001f}.mat-elevation-z15{box-shadow:0 8px 9px -5px #0003,0 15px 22px 2px #00000024,0 6px 28px 5px #0000001f}.mat-elevation-z16{box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f}.mat-elevation-z17{box-shadow:0 8px 11px -5px #0003,0 17px 26px 2px #00000024,0 6px 32px 5px #0000001f}.mat-elevation-z18{box-shadow:0 9px 11px -5px #0003,0 18px 28px 2px #00000024,0 7px 34px 6px #0000001f}.mat-elevation-z19{box-shadow:0 9px 12px -6px #0003,0 19px 29px 2px #00000024,0 7px 36px 6px #0000001f}.mat-elevation-z20{box-shadow:0 10px 13px -6px #0003,0 20px 31px 3px #00000024,0 8px 38px 7px #0000001f}.mat-elevation-z21{box-shadow:0 10px 13px -6px #0003,0 21px 33px 3px #00000024,0 8px 40px 7px #0000001f}.mat-elevation-z22{box-shadow:0 10px 14px -6px #0003,0 22px 35px 3px #00000024,0 8px 42px 7px #0000001f}.mat-elevation-z23{box-shadow:0 11px 14px -7px #0003,0 23px 36px 3px #00000024,0 9px 44px 8px #0000001f}.mat-elevation-z24{box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.mat-theme-loaded-marker{display:none}.mat-autocomplete-panel{background:#fff;color:#000000de}.mat-autocomplete-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover){background:#fff}.mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover):not(.mat-option-disabled){color:#000000de}.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-hidden .mat-badge-content{display:none}.mat-badge-content{position:absolute;text-align:center;display:inline-block;border-radius:50%;transition:transform .2s ease-in-out;transform:scale(.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:16px;height:16px;line-height:16px}.mat-badge-small.mat-badge-above .mat-badge-content{top:-8px}.mat-badge-small.mat-badge-below .mat-badge-content{bottom:-8px}.mat-badge-small.mat-badge-before .mat-badge-content{left:-16px}[dir=rtl] .mat-badge-small.mat-badge-before .mat-badge-content{left:auto;right:-16px}.mat-badge-small.mat-badge-after .mat-badge-content{right:-16px}[dir=rtl] .mat-badge-small.mat-badge-after .mat-badge-content{right:auto;left:-16px}.mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-8px}.mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-8px}.mat-badge-medium .mat-badge-content{width:22px;height:22px;line-height:22px}.mat-badge-medium.mat-badge-above .mat-badge-content{top:-11px}.mat-badge-medium.mat-badge-below .mat-badge-content{bottom:-11px}.mat-badge-medium.mat-badge-before .mat-badge-content{left:-22px}[dir=rtl] .mat-badge-medium.mat-badge-before .mat-badge-content{left:auto;right:-22px}.mat-badge-medium.mat-badge-after .mat-badge-content{right:-22px}[dir=rtl] .mat-badge-medium.mat-badge-after .mat-badge-content{right:auto;left:-22px}.mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-11px}.mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-11px}.mat-badge-large .mat-badge-content{width:28px;height:28px;line-height:28px}.mat-badge-large.mat-badge-above .mat-badge-content{top:-14px}.mat-badge-large.mat-badge-below .mat-badge-content{bottom:-14px}.mat-badge-large.mat-badge-before .mat-badge-content{left:-28px}[dir=rtl] .mat-badge-large.mat-badge-before .mat-badge-content{left:auto;right:-28px}.mat-badge-large.mat-badge-after .mat-badge-content{right:-28px}[dir=rtl] .mat-badge-large.mat-badge-after .mat-badge-content{right:auto;left:-28px}.mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-14px}.mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-14px}.mat-badge-content{color:#fff;background:#3f51b5}.cdk-high-contrast-active .mat-badge-content{outline:solid 1px;border-radius:0}.mat-badge-accent .mat-badge-content{background:#ff4081;color:#fff}.mat-badge-warn .mat-badge-content{color:#fff;background:#f44336}.mat-badge-disabled .mat-badge-content{background:#b9b9b9;color:#00000061}.mat-bottom-sheet-container{box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f;background:#fff;color:#000000de}.mat-button,.mat-icon-button,.mat-stroked-button{color:inherit;background:rgba(0,0,0,0)}.mat-button.mat-primary,.mat-icon-button.mat-primary,.mat-stroked-button.mat-primary{color:#3f51b5}.mat-button.mat-accent,.mat-icon-button.mat-accent,.mat-stroked-button.mat-accent{color:#ff4081}.mat-button.mat-warn,.mat-icon-button.mat-warn,.mat-stroked-button.mat-warn{color:#f44336}.mat-button.mat-primary.mat-button-disabled,.mat-button.mat-accent.mat-button-disabled,.mat-button.mat-warn.mat-button-disabled,.mat-button.mat-button-disabled.mat-button-disabled,.mat-icon-button.mat-primary.mat-button-disabled,.mat-icon-button.mat-accent.mat-button-disabled,.mat-icon-button.mat-warn.mat-button-disabled,.mat-icon-button.mat-button-disabled.mat-button-disabled,.mat-stroked-button.mat-primary.mat-button-disabled,.mat-stroked-button.mat-accent.mat-button-disabled,.mat-stroked-button.mat-warn.mat-button-disabled,.mat-stroked-button.mat-button-disabled.mat-button-disabled{color:#00000042}.mat-button.mat-primary .mat-button-focus-overlay,.mat-icon-button.mat-primary .mat-button-focus-overlay,.mat-stroked-button.mat-primary .mat-button-focus-overlay{background-color:#3f51b5}.mat-button.mat-accent .mat-button-focus-overlay,.mat-icon-button.mat-accent .mat-button-focus-overlay,.mat-stroked-button.mat-accent .mat-button-focus-overlay{background-color:#ff4081}.mat-button.mat-warn .mat-button-focus-overlay,.mat-icon-button.mat-warn .mat-button-focus-overlay,.mat-stroked-button.mat-warn .mat-button-focus-overlay{background-color:#f44336}.mat-button.mat-button-disabled .mat-button-focus-overlay,.mat-icon-button.mat-button-disabled .mat-button-focus-overlay,.mat-stroked-button.mat-button-disabled .mat-button-focus-overlay{background-color:#0000}.mat-button .mat-ripple-element,.mat-icon-button .mat-ripple-element,.mat-stroked-button .mat-ripple-element{opacity:.1;background-color:currentColor}.mat-button-focus-overlay{background:#000}.mat-stroked-button:not(.mat-button-disabled){border-color:#0000001f}.mat-flat-button,.mat-raised-button,.mat-fab,.mat-mini-fab{color:#000000de;background-color:#fff}.mat-flat-button.mat-primary,.mat-raised-button.mat-primary,.mat-fab.mat-primary,.mat-mini-fab.mat-primary,.mat-flat-button.mat-accent,.mat-raised-button.mat-accent,.mat-fab.mat-accent,.mat-mini-fab.mat-accent,.mat-flat-button.mat-warn,.mat-raised-button.mat-warn,.mat-fab.mat-warn,.mat-mini-fab.mat-warn{color:#fff}.mat-flat-button.mat-primary.mat-button-disabled,.mat-flat-button.mat-accent.mat-button-disabled,.mat-flat-button.mat-warn.mat-button-disabled,.mat-flat-button.mat-button-disabled.mat-button-disabled,.mat-raised-button.mat-primary.mat-button-disabled,.mat-raised-button.mat-accent.mat-button-disabled,.mat-raised-button.mat-warn.mat-button-disabled,.mat-raised-button.mat-button-disabled.mat-button-disabled,.mat-fab.mat-primary.mat-button-disabled,.mat-fab.mat-accent.mat-button-disabled,.mat-fab.mat-warn.mat-button-disabled,.mat-fab.mat-button-disabled.mat-button-disabled,.mat-mini-fab.mat-primary.mat-button-disabled,.mat-mini-fab.mat-accent.mat-button-disabled,.mat-mini-fab.mat-warn.mat-button-disabled,.mat-mini-fab.mat-button-disabled.mat-button-disabled{color:#00000042}.mat-flat-button.mat-primary,.mat-raised-button.mat-primary,.mat-fab.mat-primary,.mat-mini-fab.mat-primary{background-color:#3f51b5}.mat-flat-button.mat-accent,.mat-raised-button.mat-accent,.mat-fab.mat-accent,.mat-mini-fab.mat-accent{background-color:#ff4081}.mat-flat-button.mat-warn,.mat-raised-button.mat-warn,.mat-fab.mat-warn,.mat-mini-fab.mat-warn{background-color:#f44336}.mat-flat-button.mat-primary.mat-button-disabled,.mat-flat-button.mat-accent.mat-button-disabled,.mat-flat-button.mat-warn.mat-button-disabled,.mat-flat-button.mat-button-disabled.mat-button-disabled,.mat-raised-button.mat-primary.mat-button-disabled,.mat-raised-button.mat-accent.mat-button-disabled,.mat-raised-button.mat-warn.mat-button-disabled,.mat-raised-button.mat-button-disabled.mat-button-disabled,.mat-fab.mat-primary.mat-button-disabled,.mat-fab.mat-accent.mat-button-disabled,.mat-fab.mat-warn.mat-button-disabled,.mat-fab.mat-button-disabled.mat-button-disabled,.mat-mini-fab.mat-primary.mat-button-disabled,.mat-mini-fab.mat-accent.mat-button-disabled,.mat-mini-fab.mat-warn.mat-button-disabled,.mat-mini-fab.mat-button-disabled.mat-button-disabled{background-color:#0000001f}.mat-flat-button.mat-primary .mat-ripple-element,.mat-raised-button.mat-primary .mat-ripple-element,.mat-fab.mat-primary .mat-ripple-element,.mat-mini-fab.mat-primary .mat-ripple-element,.mat-flat-button.mat-accent .mat-ripple-element,.mat-raised-button.mat-accent .mat-ripple-element,.mat-fab.mat-accent .mat-ripple-element,.mat-mini-fab.mat-accent .mat-ripple-element,.mat-flat-button.mat-warn .mat-ripple-element,.mat-raised-button.mat-warn .mat-ripple-element,.mat-fab.mat-warn .mat-ripple-element,.mat-mini-fab.mat-warn .mat-ripple-element{background-color:#ffffff1a}.mat-stroked-button:not([class*=mat-elevation-z]),.mat-flat-button:not([class*=mat-elevation-z]){box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}.mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.mat-raised-button:not(.mat-button-disabled):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.mat-raised-button.mat-button-disabled:not([class*=mat-elevation-z]){box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}.mat-fab:not([class*=mat-elevation-z]),.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.mat-fab:not(.mat-button-disabled):active:not([class*=mat-elevation-z]),.mat-mini-fab:not(.mat-button-disabled):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px #0003,0 12px 17px 2px #00000024,0 5px 22px 4px #0000001f}.mat-fab.mat-button-disabled:not([class*=mat-elevation-z]),.mat-mini-fab.mat-button-disabled:not([class*=mat-elevation-z]){box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.mat-button-toggle{color:#00000061}.mat-button-toggle .mat-button-toggle-focus-overlay{background-color:#0000001f}.mat-button-toggle-appearance-standard{color:#000000de;background:#fff}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:#000}.mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:solid 1px #e0e0e0}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:solid 1px #e0e0e0}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:none;border-top:solid 1px #e0e0e0}.mat-button-toggle-checked{background-color:#e0e0e0;color:#0000008a}.mat-button-toggle-checked.mat-button-toggle-appearance-standard{color:#000000de}.mat-button-toggle-disabled{color:#00000042;background-color:#eee}.mat-button-toggle-disabled.mat-button-toggle-appearance-standard{background:#fff}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:#bdbdbd}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border:solid 1px #e0e0e0}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:48px}.mat-card{background:#fff;color:#000000de}.mat-card:not([class*=mat-elevation-z]){box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.mat-card.mat-card-flat:not([class*=mat-elevation-z]){box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}.mat-card-subtitle{color:#0000008a}.mat-checkbox-frame{border-color:#0000008a}.mat-checkbox-checkmark{fill:#fafafa}.mat-checkbox-checkmark-path{stroke:#fafafa!important}.mat-checkbox-mixedmark{background-color:#fafafa}.mat-checkbox-indeterminate.mat-primary .mat-checkbox-background,.mat-checkbox-checked.mat-primary .mat-checkbox-background{background-color:#3f51b5}.mat-checkbox-indeterminate.mat-accent .mat-checkbox-background,.mat-checkbox-checked.mat-accent .mat-checkbox-background{background-color:#ff4081}.mat-checkbox-indeterminate.mat-warn .mat-checkbox-background,.mat-checkbox-checked.mat-warn .mat-checkbox-background{background-color:#f44336}.mat-checkbox-disabled.mat-checkbox-checked .mat-checkbox-background,.mat-checkbox-disabled.mat-checkbox-indeterminate .mat-checkbox-background{background-color:#b0b0b0}.mat-checkbox-disabled:not(.mat-checkbox-checked) .mat-checkbox-frame{border-color:#b0b0b0}.mat-checkbox-disabled .mat-checkbox-label{color:#00000061}.mat-checkbox .mat-ripple-element{background-color:#000}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element{background:#3f51b5}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element{background:#ff4081}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element{background:#f44336}.mat-chip.mat-standard-chip{background-color:#e0e0e0;color:#000000de}.mat-chip.mat-standard-chip .mat-chip-remove{color:#000000de;opacity:.4}.mat-chip.mat-standard-chip:not(.mat-chip-disabled):active{box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f}.mat-chip.mat-standard-chip:not(.mat-chip-disabled) .mat-chip-remove:hover{opacity:.54}.mat-chip.mat-standard-chip.mat-chip-disabled{opacity:.4}.mat-chip.mat-standard-chip:after{background:#000}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary{background-color:#3f51b5;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-ripple-element{background-color:#ffffff1a}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn{background-color:#f44336;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-ripple-element{background-color:#ffffff1a}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent{background-color:#ff4081;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-ripple-element{background-color:#ffffff1a}.mat-table{background:#fff}.mat-table thead,.mat-table tbody,.mat-table tfoot,mat-header-row,mat-row,mat-footer-row,[mat-header-row],[mat-row],[mat-footer-row],.mat-table-sticky{background:inherit}mat-row,mat-header-row,mat-footer-row,th.mat-header-cell,td.mat-cell,td.mat-footer-cell{border-bottom-color:#0000001f}.mat-header-cell{color:#0000008a}.mat-cell,.mat-footer-cell{color:#000000de}.mat-calendar-arrow{fill:#0000008a}.mat-datepicker-toggle,.mat-datepicker-content .mat-calendar-next-button,.mat-datepicker-content .mat-calendar-previous-button{color:#0000008a}.mat-calendar-table-header-divider:after{background:rgba(0,0,0,.12)}.mat-calendar-table-header,.mat-calendar-body-label{color:#0000008a}.mat-calendar-body-cell-content,.mat-date-range-input-separator{color:#000000de;border-color:#0000}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:#00000061}.mat-form-field-disabled .mat-date-range-input-separator{color:#00000061}.mat-calendar-body-in-preview{color:#0000003d}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:#00000061}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:#0000002e}.mat-calendar-body-in-range:before{background:rgba(63,81,181,.2)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-calendar-body-comparison-bridge-start:before,[dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(to right,rgba(63,81,181,.2) 50%,rgba(249,171,0,.2) 50%)}.mat-calendar-body-comparison-bridge-end:before,[dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(to left,rgba(63,81,181,.2) 50%,rgba(249,171,0,.2) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after{background:#a8dab5}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-calendar-body-selected{background-color:#3f51b5;color:#fff}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:#3f51b566}.mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#3f51b54d}@media (hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#3f51b54d}}.mat-datepicker-content{box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;background-color:#fff;color:#000000de}.mat-datepicker-content.mat-accent .mat-calendar-body-in-range:before{background:rgba(255,64,129,.2)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-start:before,.mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(to right,rgba(255,64,129,.2) 50%,rgba(249,171,0,.2) 50%)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-end:before,.mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(to left,rgba(255,64,129,.2) 50%,rgba(249,171,0,.2) 50%)}.mat-datepicker-content.mat-accent .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after{background:#a8dab5}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-datepicker-content.mat-accent .mat-calendar-body-selected{background-color:#ff4081;color:#fff}.mat-datepicker-content.mat-accent .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:#ff408166}.mat-datepicker-content.mat-accent .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content.mat-accent .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-accent .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#ff40814d}@media (hover: hover){.mat-datepicker-content.mat-accent .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#ff40814d}}.mat-datepicker-content.mat-warn .mat-calendar-body-in-range:before{background:rgba(244,67,54,.2)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-start:before,.mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(to right,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 50%)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-end:before,.mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(to left,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 50%)}.mat-datepicker-content.mat-warn .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after{background:#a8dab5}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-datepicker-content.mat-warn .mat-calendar-body-selected{background-color:#f44336;color:#fff}.mat-datepicker-content.mat-warn .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:#f4433666}.mat-datepicker-content.mat-warn .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content.mat-warn .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-warn .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#f443364d}@media (hover: hover){.mat-datepicker-content.mat-warn .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#f443364d}}.mat-datepicker-content-touch{box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.mat-datepicker-toggle-active{color:#3f51b5}.mat-datepicker-toggle-active.mat-accent{color:#ff4081}.mat-datepicker-toggle-active.mat-warn{color:#f44336}.mat-date-range-input-inner[disabled]{color:#00000061}.mat-dialog-container{box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f;background:#fff;color:#000000de}.mat-divider{border-top-color:#0000001f}.mat-divider-vertical{border-right-color:#0000001f}.mat-expansion-panel{background:#fff;color:#000000de}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.mat-action-row{border-top-color:#0000001f}.mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true]),.mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true]),.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true]){background:rgba(0,0,0,.04)}@media (hover: none){.mat-expansion-panel:not(.mat-expanded):not([aria-disabled=true]) .mat-expansion-panel-header:hover{background:#fff}}.mat-expansion-panel-header-title{color:#000000de}.mat-expansion-panel-header-description,.mat-expansion-indicator:after{color:#0000008a}.mat-expansion-panel-header[aria-disabled=true]{color:#00000042}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header{height:48px}.mat-expansion-panel-header.mat-expanded{height:64px}.mat-form-field-label,.mat-hint{color:#0009}.mat-form-field.mat-focused .mat-form-field-label{color:#3f51b5}.mat-form-field.mat-focused .mat-form-field-label.mat-accent{color:#ff4081}.mat-form-field.mat-focused .mat-form-field-label.mat-warn{color:#f44336}.mat-focused .mat-form-field-required-marker{color:#ff4081}.mat-form-field-ripple{background-color:#000000de}.mat-form-field.mat-focused .mat-form-field-ripple{background-color:#3f51b5}.mat-form-field.mat-focused .mat-form-field-ripple.mat-accent{background-color:#ff4081}.mat-form-field.mat-focused .mat-form-field-ripple.mat-warn{background-color:#f44336}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid) .mat-form-field-infix:after{color:#3f51b5}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-accent .mat-form-field-infix:after{color:#ff4081}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-warn .mat-form-field-infix:after{color:#f44336}.mat-form-field.mat-form-field-invalid .mat-form-field-label,.mat-form-field.mat-form-field-invalid .mat-form-field-label.mat-accent,.mat-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#f44336}.mat-form-field.mat-form-field-invalid .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple.mat-accent{background-color:#f44336}.mat-error{color:#f44336}.mat-form-field-appearance-legacy .mat-form-field-label,.mat-form-field-appearance-legacy .mat-hint{color:#0000008a}.mat-form-field-appearance-legacy .mat-form-field-underline{background-color:#0000006b}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(to right,rgba(0,0,0,.42) 0%,rgba(0,0,0,.42) 33%,transparent 0%);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-standard .mat-form-field-underline{background-color:#0000006b}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(to right,rgba(0,0,0,.42) 0%,rgba(0,0,0,.42) 33%,transparent 0%);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-fill .mat-form-field-flex{background-color:#0000000a}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{background-color:#00000005}.mat-form-field-appearance-fill .mat-form-field-underline:before{background-color:#0000006b}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-label{color:#00000061}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-underline:before{background-color:#0000}.mat-form-field-appearance-outline .mat-form-field-outline{color:#0000001f}.mat-form-field-appearance-outline .mat-form-field-outline-thick{color:#000000de}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{color:#3f51b5}.mat-form-field-appearance-outline.mat-focused.mat-accent .mat-form-field-outline-thick{color:#ff4081}.mat-form-field-appearance-outline.mat-focused.mat-warn .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick{color:#f44336}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-label{color:#00000061}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:#0000000f}.mat-icon.mat-primary{color:#3f51b5}.mat-icon.mat-accent{color:#ff4081}.mat-icon.mat-warn{color:#f44336}.mat-form-field-type-mat-native-select .mat-form-field-infix:after{color:#0000008a}.mat-input-element:disabled,.mat-form-field-type-mat-native-select.mat-form-field-disabled .mat-form-field-infix:after{color:#00000061}.mat-input-element{caret-color:#3f51b5}.mat-input-element::placeholder{color:#0000006b}.mat-input-element::-moz-placeholder{color:#0000006b}.mat-input-element::-webkit-input-placeholder{color:#0000006b}.mat-input-element:-ms-input-placeholder{color:#0000006b}.mat-form-field.mat-accent .mat-input-element{caret-color:#ff4081}.mat-form-field.mat-warn .mat-input-element,.mat-form-field-invalid .mat-input-element{caret-color:#f44336}.mat-form-field-type-mat-native-select.mat-form-field-invalid .mat-form-field-infix:after{color:#f44336}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{color:#000000de}.mat-list-base .mat-subheader{color:#0000008a}.mat-list-base .mat-list-item-disabled{background-color:#eee;color:#00000061}.mat-list-option:hover,.mat-list-option:focus,.mat-nav-list .mat-list-item:hover,.mat-nav-list .mat-list-item:focus,.mat-action-list .mat-list-item:hover,.mat-action-list .mat-list-item:focus{background:rgba(0,0,0,.04)}.mat-list-single-selected-option,.mat-list-single-selected-option:hover,.mat-list-single-selected-option:focus{background:rgba(0,0,0,.12)}.mat-menu-panel{background:#fff}.mat-menu-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-menu-item{background:rgba(0,0,0,0);color:#000000de}.mat-menu-item[disabled],.mat-menu-item[disabled] .mat-menu-submenu-icon,.mat-menu-item[disabled] .mat-icon-no-color{color:#00000061}.mat-menu-item .mat-icon-no-color,.mat-menu-submenu-icon{color:#0000008a}.mat-menu-item:hover:not([disabled]),.mat-menu-item.cdk-program-focused:not([disabled]),.mat-menu-item.cdk-keyboard-focused:not([disabled]),.mat-menu-item-highlighted:not([disabled]){background:rgba(0,0,0,.04)}.mat-paginator{background:#fff}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{color:#0000008a}.mat-paginator-decrement,.mat-paginator-increment{border-top:2px solid rgba(0,0,0,.54);border-right:2px solid rgba(0,0,0,.54)}.mat-paginator-first,.mat-paginator-last{border-top:2px solid rgba(0,0,0,.54)}.mat-icon-button[disabled] .mat-paginator-decrement,.mat-icon-button[disabled] .mat-paginator-increment,.mat-icon-button[disabled] .mat-paginator-first,.mat-icon-button[disabled] .mat-paginator-last{border-color:#00000061}.mat-paginator-container{min-height:56px}.mat-progress-bar-background{fill:#cbd0e9}.mat-progress-bar-buffer{background-color:#cbd0e9}.mat-progress-bar-fill:after{background-color:#3f51b5}.mat-progress-bar.mat-accent .mat-progress-bar-background{fill:#fbccdc}.mat-progress-bar.mat-accent .mat-progress-bar-buffer{background-color:#fbccdc}.mat-progress-bar.mat-accent .mat-progress-bar-fill:after{background-color:#ff4081}.mat-progress-bar.mat-warn .mat-progress-bar-background{fill:#f9ccc9}.mat-progress-bar.mat-warn .mat-progress-bar-buffer{background-color:#f9ccc9}.mat-progress-bar.mat-warn .mat-progress-bar-fill:after{background-color:#f44336}.mat-progress-spinner circle,.mat-spinner circle{stroke:#3f51b5}.mat-progress-spinner.mat-accent circle,.mat-spinner.mat-accent circle{stroke:#ff4081}.mat-progress-spinner.mat-warn circle,.mat-spinner.mat-warn circle{stroke:#f44336}.mat-radio-outer-circle{border-color:#0000008a}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:#3f51b5}.mat-radio-button.mat-primary .mat-radio-inner-circle,.mat-radio-button.mat-primary .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-primary:active .mat-radio-persistent-ripple{background-color:#3f51b5}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff4081}.mat-radio-button.mat-accent .mat-radio-inner-circle,.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:#ff4081}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-outer-circle{border-color:#f44336}.mat-radio-button.mat-warn .mat-radio-inner-circle,.mat-radio-button.mat-warn .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-warn:active .mat-radio-persistent-ripple{background-color:#f44336}.mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-outer-circle,.mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:#00000061}.mat-radio-button.mat-radio-disabled .mat-radio-ripple .mat-ripple-element,.mat-radio-button.mat-radio-disabled .mat-radio-inner-circle{background-color:#00000061}.mat-radio-button.mat-radio-disabled .mat-radio-label-content{color:#00000061}.mat-radio-button .mat-ripple-element{background-color:#000}.mat-select-value{color:#000000de}.mat-select-placeholder{color:#0000006b}.mat-select-disabled .mat-select-value{color:#00000061}.mat-select-arrow{color:#0000008a}.mat-select-panel{background:#fff}.mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-select-panel .mat-option.mat-selected:not(.mat-option-multiple){background:rgba(0,0,0,.12)}.mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:#3f51b5}.mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#ff4081}.mat-form-field.mat-focused.mat-warn .mat-select-arrow,.mat-form-field .mat-select.mat-select-invalid .mat-select-arrow{color:#f44336}.mat-form-field .mat-select.mat-select-disabled .mat-select-arrow{color:#00000061}.mat-drawer-container{background-color:#fafafa;color:#000000de}.mat-drawer{background-color:#fff;color:#000000de}.mat-drawer.mat-drawer-push{background-color:#fff}.mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f}.mat-drawer-side{border-right:solid 1px rgba(0,0,0,.12)}.mat-drawer-side.mat-drawer-end,[dir=rtl] .mat-drawer-side{border-left:solid 1px rgba(0,0,0,.12);border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-left:none;border-right:solid 1px rgba(0,0,0,.12)}.mat-drawer-backdrop.mat-drawer-shown{background-color:#0009}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:#ff4081}.mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:#ff40818a}.mat-slide-toggle.mat-checked .mat-ripple-element{background-color:#ff4081}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-thumb{background-color:#3f51b5}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar{background-color:#3f51b58a}.mat-slide-toggle.mat-primary.mat-checked .mat-ripple-element{background-color:#3f51b5}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-thumb{background-color:#f44336}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:#f443368a}.mat-slide-toggle.mat-warn.mat-checked .mat-ripple-element{background-color:#f44336}.mat-slide-toggle:not(.mat-checked) .mat-ripple-element{background-color:#000}.mat-slide-toggle-thumb{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#fafafa}.mat-slide-toggle-bar{background-color:#00000061}.mat-slider-track-background{background-color:#00000042}.mat-slider.mat-primary .mat-slider-track-fill,.mat-slider.mat-primary .mat-slider-thumb,.mat-slider.mat-primary .mat-slider-thumb-label{background-color:#3f51b5}.mat-slider.mat-primary .mat-slider-thumb-label-text{color:#fff}.mat-slider.mat-primary .mat-slider-focus-ring{background-color:#3f51b533}.mat-slider.mat-accent .mat-slider-track-fill,.mat-slider.mat-accent .mat-slider-thumb,.mat-slider.mat-accent .mat-slider-thumb-label{background-color:#ff4081}.mat-slider.mat-accent .mat-slider-thumb-label-text{color:#fff}.mat-slider.mat-accent .mat-slider-focus-ring{background-color:#ff408133}.mat-slider.mat-warn .mat-slider-track-fill,.mat-slider.mat-warn .mat-slider-thumb,.mat-slider.mat-warn .mat-slider-thumb-label{background-color:#f44336}.mat-slider.mat-warn .mat-slider-thumb-label-text{color:#fff}.mat-slider.mat-warn .mat-slider-focus-ring{background-color:#f4433633}.mat-slider:hover .mat-slider-track-background,.mat-slider.cdk-focused .mat-slider-track-background{background-color:#00000061}.mat-slider.mat-slider-disabled .mat-slider-track-background,.mat-slider.mat-slider-disabled .mat-slider-track-fill,.mat-slider.mat-slider-disabled .mat-slider-thumb,.mat-slider.mat-slider-disabled:hover .mat-slider-track-background{background-color:#00000042}.mat-slider.mat-slider-min-value .mat-slider-focus-ring{background-color:#0000001f}.mat-slider.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,.mat-slider.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label{background-color:#000000de}.mat-slider.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,.mat-slider.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label{background-color:#00000042}.mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb{border-color:#00000042;background-color:#0000}.mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb,.mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb{border-color:#00000061}.mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb,.mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb{border-color:#00000042}.mat-slider-has-ticks .mat-slider-wrapper:after{border-color:#000000b3}.mat-slider-horizontal .mat-slider-ticks{background-image:repeating-linear-gradient(to right,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent);background-image:-moz-repeating-linear-gradient(.0001deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-slider-vertical .mat-slider-ticks{background-image:repeating-linear-gradient(to bottom,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused,.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:#0000000a}.mat-step-header:hover[aria-disabled=true]{cursor:default}@media (hover: none){.mat-step-header:hover{background:none}}.mat-step-header .mat-step-label,.mat-step-header .mat-step-optional{color:#0000008a}.mat-step-header .mat-step-icon{background-color:#0000008a;color:#fff}.mat-step-header .mat-step-icon-selected,.mat-step-header .mat-step-icon-state-done,.mat-step-header .mat-step-icon-state-edit{background-color:#3f51b5;color:#fff}.mat-step-header.mat-accent .mat-step-icon{color:#fff}.mat-step-header.mat-accent .mat-step-icon-selected,.mat-step-header.mat-accent .mat-step-icon-state-done,.mat-step-header.mat-accent .mat-step-icon-state-edit{background-color:#ff4081;color:#fff}.mat-step-header.mat-warn .mat-step-icon{color:#fff}.mat-step-header.mat-warn .mat-step-icon-selected,.mat-step-header.mat-warn .mat-step-icon-state-done,.mat-step-header.mat-warn .mat-step-icon-state-edit{background-color:#f44336;color:#fff}.mat-step-header .mat-step-icon-state-error{background-color:#0000;color:#f44336}.mat-step-header .mat-step-label.mat-step-label-active{color:#000000de}.mat-step-header .mat-step-label.mat-step-label-error{color:#f44336}.mat-stepper-horizontal,.mat-stepper-vertical{background-color:#fff}.mat-stepper-vertical-line:before{border-left-color:#0000001f}.mat-horizontal-stepper-header:before,.mat-horizontal-stepper-header:after,.mat-stepper-horizontal-line{border-top-color:#0000001f}.mat-horizontal-stepper-header{height:72px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header,.mat-vertical-stepper-header{padding:24px}.mat-stepper-vertical-line:before{top:-16px;bottom:-16px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:after,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:before{top:36px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{top:36px}.mat-sort-header-arrow{color:#757575}.mat-tab-nav-bar,.mat-tab-header{border-bottom:1px solid rgba(0,0,0,.12)}.mat-tab-group-inverted-header .mat-tab-nav-bar,.mat-tab-group-inverted-header .mat-tab-header{border-top:1px solid rgba(0,0,0,.12);border-bottom:none}.mat-tab-label,.mat-tab-link{color:#000000de}.mat-tab-label.mat-tab-disabled,.mat-tab-link.mat-tab-disabled{color:#00000061}.mat-tab-header-pagination-chevron{border-color:#000000de}.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:#00000061}.mat-tab-group[class*=mat-background-]>.mat-tab-header,.mat-tab-nav-bar[class*=mat-background-]{border-bottom:none;border-top:none}.mat-tab-group.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:#c5cae94d}.mat-tab-group.mat-primary .mat-ink-bar,.mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:#3f51b5}.mat-tab-group.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:#ff80ab4d}.mat-tab-group.mat-accent .mat-ink-bar,.mat-tab-nav-bar.mat-accent .mat-ink-bar{background-color:#ff4081}.mat-tab-group.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:#ffcdd24d}.mat-tab-group.mat-warn .mat-ink-bar,.mat-tab-nav-bar.mat-warn .mat-ink-bar{background-color:#f44336}.mat-tab-group.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:#c5cae94d}.mat-tab-group.mat-background-primary>.mat-tab-header,.mat-tab-group.mat-background-primary>.mat-tab-link-container,.mat-tab-group.mat-background-primary>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination{background-color:#3f51b5}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:#fff6}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:#fff;opacity:.4}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-ripple-element,.mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element{background-color:#fff;opacity:.12}.mat-tab-group.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:#ff80ab4d}.mat-tab-group.mat-background-accent>.mat-tab-header,.mat-tab-group.mat-background-accent>.mat-tab-link-container,.mat-tab-group.mat-background-accent>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination{background-color:#ff4081}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:#fff6}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:#fff;opacity:.4}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-ripple-element,.mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element{background-color:#fff;opacity:.12}.mat-tab-group.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:#ffcdd24d}.mat-tab-group.mat-background-warn>.mat-tab-header,.mat-tab-group.mat-background-warn>.mat-tab-link-container,.mat-tab-group.mat-background-warn>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination{background-color:#f44336}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:#fff6}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:#fff;opacity:.4}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-ripple-element,.mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element{background-color:#fff;opacity:.12}.mat-toolbar{background:#f5f5f5;color:#000000de}.mat-toolbar.mat-primary{background:#3f51b5;color:#fff}.mat-toolbar.mat-accent{background:#ff4081;color:#fff}.mat-toolbar.mat-warn{background:#f44336;color:#fff}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}.mat-tooltip{background:rgba(97,97,97,.9)}.mat-tree{background:#fff}.mat-tree-node,.mat-nested-tree-node{color:#000000de}.mat-tree-node{min-height:48px}.mat-snack-bar-container{color:#ffffffb3;background:#323232;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.mat-simple-snackbar-action{color:#ff4081}@font-face{font-family:RobotoTodd;src:url(Roboto-Regular.a8e6f6203d22df08.ttf);font-weight:400;font-style:normal}@font-face{font-family:RobotoTodd;src:url(Roboto-Bold.3b887fc8dca30f62.ttf);font-weight:700;font-style:normal}@font-face{font-family:TechMono;src:url(TechMono.5c8f60d90e003254.ttf);font-weight:400;font-style:normal}html,body{height:320px;width:460px;background-color:#000}body{margin:0;font-family:RobotoTodd,Helvetica Neue,sans-serif;color:#00f200}.activeHeader{border-left:2px solid rgb(0,242,0)!important;border-right:2px solid rgb(0,242,0)!important;border-bottom:1px solid black;margin-bottom:-1px!important;padding-right:5px;padding-left:5px}.baseActiveHeader{text-transform:uppercase;font-weight:700;margin-bottom:0;margin-top:5px;border-right:2px solid transparent;border-left:2px solid transparent;padding-right:5px;padding-left:5px}.inactiveHeader{color:#00f2004d}.footer{#background-color: rgba(0,242,0,.3);position:fixed;left:0;bottom:0;width:460px;height:6.5%}.footer-text,.secondary-color{background-color:#00f2004d}.menu-selected{background-color:#00f200;color:#000}.mat-dialog-container{background:black;color:#00f200;padding:0!important;width:460px!important}.mat-snack-bar-container{box-shadow:unset!important;background:black;color:unset!important;border:2px rgb(0,242,0) solid}.mat-progress-spinner,.mat-spinner,circle{stroke:#00f200!important}.mat-dialog-content{max-height:100vh!important;margin:0!important}.cdk-overlay-pane{max-width:100%!important}.rotating-image{animation:rotateY 3s linear infinite}@keyframes rotateY{0%{transform:rotateY(0)}to{transform:rotateY(360deg)}}.keyboard_key{border:1px rgba(0,242,0,.3) solid;margin:unset!important;padding:4px;min-width:20px;text-align:center}.keyboard_current{background-color:#00f200;color:#000} diff --git a/pipboyUI/src/app/app-routing.module.ts b/pipboyUI/src/app/app-routing.module.ts index 80b526d..973953c 100644 --- a/pipboyUI/src/app/app-routing.module.ts +++ b/pipboyUI/src/app/app-routing.module.ts @@ -13,7 +13,7 @@ import {InventoryCustomComponent} from "./components/LowerHeaders/Inventory/inve import {MeshtasticHeaderComponent} from "./components/UpperHeaders/meshtastic-header.component"; import {MeshMyNodeComponent} from "./components/LowerHeaders/meshtastic/mesh-my-node.component"; import {MeshListNodeComponent} from "./components/LowerHeaders/meshtastic/mesh-list-node.component"; -import {MeshChannelComponent} from "./components/LowerHeaders/meshtastic/mesh-channel.component"; +import {MeshMessagesComponent} from "./components/LowerHeaders/meshtastic/mesh-messages.component"; const routes: Routes = [ { @@ -58,9 +58,9 @@ const routes: Routes = [ component: MeshtasticHeaderComponent, children: [ {path: '', redirectTo: 'my', pathMatch: 'full'}, - {path: "my", component: MeshMyNodeComponent}, - {path: "list", component: MeshListNodeComponent}, - {path: "channel/:index", component: MeshChannelComponent} + {path: "my", component: MeshMyNodeComponent }, + {path: "list", component: MeshListNodeComponent }, + {path: "messages/:index", component: MeshMessagesComponent } ] } ] diff --git a/pipboyUI/src/app/app.module.ts b/pipboyUI/src/app/app.module.ts index 9a3db74..3836921 100644 --- a/pipboyUI/src/app/app.module.ts +++ b/pipboyUI/src/app/app.module.ts @@ -25,7 +25,10 @@ import {KeyboardAppComponent} from "./components/apps/keyboard-app.component"; import {MeshtasticHeaderComponent} from "./components/UpperHeaders/meshtastic-header.component"; import {MeshMyNodeComponent} from "./components/LowerHeaders/meshtastic/mesh-my-node.component"; import {MeshListNodeComponent} from "./components/LowerHeaders/meshtastic/mesh-list-node.component"; -import {MeshChannelComponent} from "./components/LowerHeaders/meshtastic/mesh-channel.component"; +import {MatProgressSpinnerModule} from "@angular/material/progress-spinner"; +import {MeshMessagesComponent} from "./components/LowerHeaders/meshtastic/mesh-messages.component"; +import {HttpClientModule} from "@angular/common/http"; +import {MatSnackBarModule} from "@angular/material/snack-bar"; @NgModule({ declarations: [ @@ -47,17 +50,20 @@ import {MeshChannelComponent} from "./components/LowerHeaders/meshtastic/mesh-ch MeshtasticHeaderComponent, MeshMyNodeComponent, MeshListNodeComponent, - MeshChannelComponent + MeshMessagesComponent ], imports: [ BrowserModule, + HttpClientModule, AppRoutingModule, BrowserAnimationsModule, MatDialogModule, MatInputModule, FormsModule, MatButtonModule, - MatIconModule + MatIconModule, + MatProgressSpinnerModule, + MatSnackBarModule ], providers: [], bootstrap: [AppComponent] diff --git a/pipboyUI/src/app/components/LowerHeaders/Inventory/inventory-apps.component.ts b/pipboyUI/src/app/components/LowerHeaders/Inventory/inventory-apps.component.ts index 274e397..d0b3565 100644 --- a/pipboyUI/src/app/components/LowerHeaders/Inventory/inventory-apps.component.ts +++ b/pipboyUI/src/app/components/LowerHeaders/Inventory/inventory-apps.component.ts @@ -39,7 +39,7 @@ export interface InvApp { ` }) -export class InventoryAppsComponent extends AbsListSelect { +export class InventoryAppsComponent extends AbsListSelect { constructor(protected dialog: MatDialog, protected io: IOService, protected apps: AppsService) { diff --git a/pipboyUI/src/app/components/LowerHeaders/Radio/radio.component.ts b/pipboyUI/src/app/components/LowerHeaders/Radio/radio.component.ts index 055264c..b5e79b1 100644 --- a/pipboyUI/src/app/components/LowerHeaders/Radio/radio.component.ts +++ b/pipboyUI/src/app/components/LowerHeaders/Radio/radio.component.ts @@ -27,7 +27,7 @@ export interface RadioControl {action: Function, name: string} ` }) -export class RadioComponent extends AbsListSelect { +export class RadioComponent extends AbsListSelect { constructor(protected player: PlayerService, protected io: IOService) { super(); diff --git a/pipboyUI/src/app/components/LowerHeaders/meshtastic/mesh-channel.component.ts b/pipboyUI/src/app/components/LowerHeaders/meshtastic/mesh-channel.component.ts deleted file mode 100644 index d1f9596..0000000 --- a/pipboyUI/src/app/components/LowerHeaders/meshtastic/mesh-channel.component.ts +++ /dev/null @@ -1,12 +0,0 @@ -import {Component} from "@angular/core"; -import {AbsListSelect} from "../../abstract/AbsListSelect"; - -@Component({ - selector: 'app-mesh-channel', - template: ` - ` -}) -export class MeshChannelComponent extends AbsListSelect { - - -} diff --git a/pipboyUI/src/app/components/LowerHeaders/meshtastic/mesh-list-node.component.ts b/pipboyUI/src/app/components/LowerHeaders/meshtastic/mesh-list-node.component.ts index 9fca128..cad5f55 100644 --- a/pipboyUI/src/app/components/LowerHeaders/meshtastic/mesh-list-node.component.ts +++ b/pipboyUI/src/app/components/LowerHeaders/meshtastic/mesh-list-node.component.ts @@ -1,10 +1,11 @@ import {Component, ElementRef, OnInit, QueryList, ViewChildren} from "@angular/core"; import {IOService} from "../../../services/IOService"; -import {MeshtasticService} from "../../../services/MeshtasticService"; +import {MeshNode, MeshNodeShort, MeshtasticService} from "../../../services/MeshtasticService"; import {AbsListSelect} from "../../abstract/AbsListSelect"; import {MatDialog} from "@angular/material/dialog"; import {AppsService} from "../../../services/AppsService"; import {RadioControl} from "../Radio/radio.component"; +import {MatSnackBar} from "@angular/material/snack-bar"; @Component({ selector: 'app-mesh-list-node', @@ -18,7 +19,12 @@ import {RadioControl} from "../Radio/radio.component";
-

{{selected?.name}}

+
+

SNR: {{nodeInfo?.snr}} dB

+

Hops: {{nodeInfo?.hops_away}}

+

Появлялся: {{nodeInfo?.last_heard | date: 'HH:mm dd/MM'}}

+
+

{{el.name}}

@@ -27,22 +33,53 @@ import {RadioControl} from "../Radio/radio.component";
` }) -export class MeshListNodeComponent extends AbsListSelect implements OnInit { +export class MeshListNodeComponent extends AbsListSelect implements OnInit { constructor(public io: IOService, public meshtastic: MeshtasticService, protected dialog: MatDialog, - protected apps: AppsService) { + protected apps: AppsService, + protected snack: MatSnackBar) { super(); } + loading: boolean = false; + nodeInfo?: MeshNode; + override elementsRight:any[] = [ - {name: "Написать", action: () => {this.apps.openKeyboard().subscribe((res) => {console.log(res); this.apps.inApp = false})}}, + {name: "Написать", action: () => { + this.apps.openKeyboard().subscribe( + (txt) => { + if (txt) { + this.meshtastic.sendMessage(txt, this.nodeInfo?.num).subscribe( + (res) => { + this.snack.open("Сообщение отправлено", undefined, {duration:2000}); + } + ) + } + this.apps.inApp = false; + } + )}}, {name: "Сообщения", action: () => {}}, {name: "Трасировка*", action: () => {}} ] override selectedRight:any = this.elementsRight[0] + /*override isSelected(el: any): boolean { + const res = super.isSelected(el); + if (res && this.selected != undefined) { + this.loading = true; + this.meshtastic.getNodeInfo(this.selected.id).subscribe( + (res: MeshNode) => { + this.nodeInfo = res; + this.loading = false; + } + ) + } + + return res; + }*/ + createSub() { this.sub = this.io.keys.subscribe((code) => { if (this.apps.inApp) return; @@ -56,12 +93,26 @@ export class MeshListNodeComponent extends AbsListSelect implements OnInit { break } default: { - super.choiceItem(code) + if (super.choiceItem(code)) { + this.updateNodeInfo() + } } } }); } + updateNodeInfo() { + if (this.selected) { + this.loading = true; + this.meshtastic.getNodeInfo(this.selected.id).subscribe( + (res: MeshNode) => { + this.nodeInfo = res; + this.loading = false; + } + ) + } + } + override ngOnInit() { this.createSub() this.elements = this.meshtastic.nodes; @@ -70,6 +121,7 @@ export class MeshListNodeComponent extends AbsListSelect implements OnInit { this.elements = this.meshtastic.nodes; if (this.selected == undefined) { this.selected = this.elements[0]; + this.updateNodeInfo(); } } ) diff --git a/pipboyUI/src/app/components/LowerHeaders/meshtastic/mesh-messages.component.ts b/pipboyUI/src/app/components/LowerHeaders/meshtastic/mesh-messages.component.ts new file mode 100644 index 0000000..038f883 --- /dev/null +++ b/pipboyUI/src/app/components/LowerHeaders/meshtastic/mesh-messages.component.ts @@ -0,0 +1,94 @@ +import {Component, OnInit} from "@angular/core"; +import {AbsListSelect} from "../../abstract/AbsListSelect"; +import {IOService} from "../../../services/IOService"; +import {MeshMessage, MeshtasticService, PUB_CH} from "../../../services/MeshtasticService"; +import {AppsService} from "../../../services/AppsService"; +import {ActivatedRoute} from "@angular/router"; + +@Component({ + selector: "app-mesh-messages", + template: ` +
+
+
+

+ {{meshtastic.getNodeName(el.fr0m)}} + {{meshtastic.getMsgTo(el)}} + {{el.rx_time | date: 'HH:mm:ss dd/MM'}} + [{{el.hop_limit}}]

+

{{el.msg}}

+
+
+
+
+

{{el.name}}

+
+
+
+ ` +})//todo maybe view any msg shit +export class MeshMessagesComponent extends AbsListSelect implements OnInit { + constructor(public io: IOService, + public meshtastic: MeshtasticService, + protected apps: AppsService, + protected route: ActivatedRoute) { + super(); + } + + override elementsRight:any[] = [ + {name: "Reply to DM", action: () => {}}, + {name: "Reply", action: () => {}}, + ]; + + override selectedRight = this.elementsRight[0]; + private currentIndex:any; + + override ngOnInit() { + this.route.params.subscribe( + (params) => { + this.currentIndex = params["index"]; + let upd = () => {}; + switch (params["index"]) { + case "-1": { + upd = () => this.elements = this.meshtastic.messages; + break; + } + default: { + upd = () => this.elements = this.meshtastic.messages.filter((msg) => msg.to == PUB_CH && msg.channel == parseInt(params["index"])); + break; + } + } + + upd(); + this.meshtastic.messagesChange.subscribe((msg) => { + if (msg) { + upd() + } + }) + + if (this.elements) + this.selected = this.elements[this.elements.length] + } + ) + this.createSub(); + } + + createSub() { + this.sub = this.io.keys.subscribe((code) => { + if (this.apps.inApp) return; + switch (code) { + case "KeyA": { + this.currentSide = "LEFT" + break + } + case "KeyD": { + this.currentSide = "RIGHT"; + break + } + default: { + super.choiceItem(code) + } + } + }); + } +} diff --git a/pipboyUI/src/app/components/UpperHeaders/meshtastic-header.component.ts b/pipboyUI/src/app/components/UpperHeaders/meshtastic-header.component.ts index 7837bbb..01e7a71 100644 --- a/pipboyUI/src/app/components/UpperHeaders/meshtastic-header.component.ts +++ b/pipboyUI/src/app/components/UpperHeaders/meshtastic-header.component.ts @@ -1,7 +1,7 @@ import {Component, OnInit} from "@angular/core"; import { AVAILABLE, - ERR, + ERR, MeshMessage, MeshtasticService, NOT_CONNECTED, RECONNECT, @@ -12,7 +12,8 @@ import {ActivatedRoute, Router} from "@angular/router"; import {MeshMyNodeComponent} from "../LowerHeaders/meshtastic/mesh-my-node.component"; import {MeshListNodeComponent} from "../LowerHeaders/meshtastic/mesh-list-node.component"; import {IOService} from "../../services/IOService"; -import {MeshChannelComponent} from "../LowerHeaders/meshtastic/mesh-channel.component"; +import {MatSnackBar} from "@angular/material/snack-bar"; +import {MeshMessagesComponent} from "../LowerHeaders/meshtastic/mesh-messages.component"; @Component({ selector: "app-meshtastic-header", @@ -44,17 +45,19 @@ export class MeshtasticHeaderComponent extends AbsNavsHeaderComponent implements constructor(public meshtastic: MeshtasticService, route: ActivatedRoute, router: Router, - public io: IOService) { + public io: IOService, + protected snack: MatSnackBar) { super(route, router); this.meshtastic.channelChange.subscribe( (listen:any) => { let base = [ {name: "my", path: "my", action: () => {}, component: MeshMyNodeComponent.name}, - {name: "list", path: "list", action: () => {}, component: MeshListNodeComponent.name} + {name: "list", path: "list", action: () => {}, component: MeshListNodeComponent.name}, + {name: "messages", path: "messages/-1", action: () => {}, component: MeshMessagesComponent.name} ] base.push(... this.meshtastic.channels.map((ch) => { - return {name: `${ch.name}`, path: `channel/${ch.index}`, action: () => {}, component: MeshChannelComponent.name} + return {name: `${ch.name}`, path: `messages/${ch.index}`, action: () => {}, component: MeshMessagesComponent.name} })); console.log(base); super.navs = base; @@ -92,6 +95,14 @@ export class MeshtasticHeaderComponent extends AbsNavsHeaderComponent implements } override ngOnInit(): void { + this.meshtastic.messagesChange.subscribe(//todo mb to main app view + (msg: MeshMessage) => { + if (msg.fr0m == this.meshtastic.meshId) return; + const userName = this.meshtastic.getNodeName(msg.fr0m) + this.snack.open(`${userName}: ${msg.msg}`, undefined, {duration: 2000}) + } + ) + this.sub = this.io.keys.subscribe((code) => { //if (this.apps.inApp) return; super.choiceHeader(code); diff --git a/pipboyUI/src/app/components/abstract/AbsListSelect.ts b/pipboyUI/src/app/components/abstract/AbsListSelect.ts index b342789..f2cd306 100644 --- a/pipboyUI/src/app/components/abstract/AbsListSelect.ts +++ b/pipboyUI/src/app/components/abstract/AbsListSelect.ts @@ -2,12 +2,12 @@ import {Component, ElementRef, OnDestroy, OnInit, QueryList, ViewChildren} from import {Subscription} from "rxjs"; @Component({template:""}) -export abstract class AbsListSelect implements OnInit, OnDestroy{ - elements: any[] = [] - selected: any; +export abstract class AbsListSelect implements OnInit, OnDestroy{ + elements: LEFT[] = [] + selected?: LEFT; - elementsRight: any = [] - selectedRight:any; + elementsRight: RIGHT[] = [] + selectedRight?:RIGHT; currentSide: "RIGHT" | "LEFT" = "LEFT"; @@ -17,7 +17,7 @@ export abstract class AbsListSelect implements OnInit, OnDestroy{ isSelected(el:any):boolean { const res = el == this.selected; - if (res && this.menuItems) { + if (res && this.menuItems && this.selected != undefined) { const itemsArray = this.menuItems.toArray(); const selectedIndex = this.elements.indexOf(this.selected); if (selectedIndex !== -1 && itemsArray[selectedIndex]) { @@ -31,7 +31,7 @@ export abstract class AbsListSelect implements OnInit, OnDestroy{ return res; } - choiceItem(code: string) { + choiceItem(code: string):boolean { switch (this.currentSide) { case "LEFT": return this.choiceLeft(code) case "RIGHT": return this.choiceRight(code) @@ -42,44 +42,54 @@ export abstract class AbsListSelect implements OnInit, OnDestroy{ if (this.sub) this.sub.unsubscribe(); } - choiceLeft(code: string) { - if (this.currentSide != "LEFT") return; - let currentIdx = this.elements.indexOf(this.selected); + choiceLeft(code: string):boolean { + if (this.currentSide != "LEFT") return false; + let currentIdx = this.selected == undefined ? 0 : this.elements.indexOf(this.selected); switch (code) { case 'KeyS': { if (currentIdx + 1 >= this.elements.length) currentIdx = -1; this.selected = this.elements[currentIdx + 1]; - break; + return true; } case 'KeyW': { if (currentIdx - 1 < 0) currentIdx = this.elements.length; this.selected = this.elements[currentIdx - 1]; - break; + return true; } case 'Enter': { - this.selected.action() + if (this.selected != undefined) + { // @ts-ignore + this.selected.action() + } + return false; } } + return false; } - choiceRight(code: string) { - if (this.currentSide != "RIGHT") return; - let currentIdx = this.elementsRight.indexOf(this.selectedRight); + choiceRight(code: string): boolean { + if (this.currentSide != "RIGHT") return false; + let currentIdx = this.selectedRight == undefined ? 0 : this.elementsRight.indexOf(this.selectedRight); switch (code) { case 'KeyS': { if (currentIdx + 1 >= this.elementsRight.length) currentIdx = -1; this.selectedRight = this.elementsRight[currentIdx + 1]; - break; + return true; } case 'KeyW': { if (currentIdx - 1 < 0) currentIdx = this.elementsRight.length; this.selectedRight = this.elementsRight[currentIdx - 1]; - break; + return true; } case 'Enter': { - this.selectedRight.action() + if (this.selectedRight != undefined) + { // @ts-ignore + this.selectedRight.action() + } + return false; } } + return false; } ngOnInit(): void { diff --git a/pipboyUI/src/app/services/MeshtasticService.ts b/pipboyUI/src/app/services/MeshtasticService.ts index e1ad6a5..9ff3b76 100644 --- a/pipboyUI/src/app/services/MeshtasticService.ts +++ b/pipboyUI/src/app/services/MeshtasticService.ts @@ -1,7 +1,8 @@ import {Injectable} from "@angular/core"; import {WebSocketSubject} from "rxjs/internal/observable/dom/WebSocketSubject"; import {webSocket} from "rxjs/webSocket"; -import {BehaviorSubject, delay, retryWhen, tap} from "rxjs"; +import {BehaviorSubject, delay, Observable, retryWhen, tap} from "rxjs"; +import {HttpClient} from "@angular/common/http"; export const WS_EVENT_CHANNEL = 0; export const WS_EVENT_NODE = 1; @@ -20,31 +21,96 @@ export const ERR = 3; export const RECONNECT = 4; export const WS_ERR = 5; -interface MeshNodeShort { +export const PUB_CH = 0xFFFFFFFF; + +export interface MeshNodeShort { id: number; name: string; } -interface MeshChannel { +export interface MeshChannel { index: number; name: string; } +export interface MeshUser { + id?: String; + long_name?: String; + short_name?:String; +} + +export interface MeshNode { + num?: number; + user?: MeshUser; + snr?: number; + hops_away?: number; + last_heard?: number; +} + +export interface MeshMessage { + fr0m: number; + to:number; + msg?:string; + id?:number; + rx_time?:number; + rx_snr?:number; + hop_limit?:number; + rx_rssi?:number; + channel?:number; + append_time: number; +} + +export interface MeshNewMessage { + txt: string; + node_id?: number|null; + channel_id?:number; +} + @Injectable({ providedIn: 'root' }) export class MeshtasticService { + private meshRoute = "mesh/api" private socket$?: any; public channels: MeshChannel[] = []; public channelChange = new BehaviorSubject(0); public nodes: MeshNodeShort[] = []; public nodesChange = new BehaviorSubject(0); - public messages = new BehaviorSubject('{}') + public messagesChange = new BehaviorSubject({} as MeshMessage); + public messages: MeshMessage[] = []; public state: number = NOT_CONNECTED; public meshId: number = 0; + public getNodeInfo(id: number): Observable { + return this.http.get(`${this.meshRoute}/nodes/${id}`) + } - constructor() { + public getNodeName(id: number): string { + const name:string|undefined = this.nodes.filter(n => n.id == id).map(n => n.name).pop(); + return name ? name : "Unknown"; + } + + public getMsgTo(msg: MeshMessage): string { + if (msg.to == PUB_CH) { + //chanel + const chName: string|undefined = this.channels + .filter((ch) => ch.index == msg.channel) + .map((ch) => ch.name) + .pop(); + return chName == undefined ? "CH_U" : chName; + } else return "DM" + } + + public sendMessage(txt: string, node_id: number|null =null, channel_id: number = 0) { + let payload: MeshNewMessage = { + txt: txt, + node_id: node_id, + channel_id: channel_id + } + return this.http.post(`${this.meshRoute}/messages`, payload); + } + + constructor(private http: HttpClient) { this.connect(); } @@ -69,6 +135,11 @@ export class MeshtasticService { this.socket$.subscribe( (parsed: {type: number, event: number, data: any}) => { switch (parsed.event) { + case WS_EVENT_MESSAGE: { + this.messages.push(parsed.data); + this.messagesChange.next(parsed.data); + break; + } case WS_EVENT_MYID: { this.meshId = parsed.data; break; diff --git a/pipboyUI/src/styles.scss b/pipboyUI/src/styles.scss index 405a374..da75d0e 100644 --- a/pipboyUI/src/styles.scss +++ b/pipboyUI/src/styles.scss @@ -85,6 +85,17 @@ body { width: $screen-width !important; } +.mat-snack-bar-container { + box-shadow: unset !important; + background: black; + color: unset !important; + border: 2px $primary-color solid; +} + +.mat-progress-spinner, .mat-spinner, circle { + stroke: $primary-color !important; +} + .mat-dialog-content { max-height: 100vh !important; margin: 0 0px !important;